@font-face {
  font-family: "SinTilde";
  src: url("../fonts/Sin-Tilde-Font.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Bold.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Black.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 900;
}

:root {
  --ink: #111313;
  --paper: #f2f0e8;
  --orange: #ff5b24;
  --blue: #b8c8ff;
  --cold: #e5edf1;
  --page-progress: 0;
  --scroll-y: 0px;
  --pointer-x: 0px;
  --pointer-y: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 320px;
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: "SinTilde", "Montserrat", Arial, sans-serif;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
  overflow-x: clip;
}

main {
  width: 100%;
  max-width: 1920px;
  min-width: 0;
  margin-inline: auto;
  overflow-x: hidden;
  overflow-x: clip;
}

main > * {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  color: var(--ink);
  background: var(--orange);
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.section-shell {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(24px, 4.7vw, 76px);
  position: relative;
}

.problem-layout > *,
.font-intro > *,
.tester-layout > *,
.library-intro > *,
.upload-layout > *,
.library-controls > *,
.closing-line > *,
.footer-row > * {
  min-width: 0;
  max-width: 100%;
}

.dark-section {
  background: var(--ink);
  color: #fff;
}

.light-section {
  background: var(--paper);
}

.blue-section {
  background: var(--blue);
}

.cold-section {
  background: var(--cold);
}

.body-copy {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(0.8rem, 0.75vw, 0.96rem);
  line-height: 1.62;
  letter-spacing: -0.018em;
}

.display-title {
  margin: 0;
  /*font-size: clamp(3rem, 5.8vw, 6.65rem);*/
  font-size: clamp(3rem, 4.3vw, 6.65rem);
  font-weight: 900;
  /*line-height: 0.84;*/
  line-height: 0.9;
  /*letter-spacing: -0.065em;*/
  text-transform: uppercase;
}

.headline-punct {
  display: inline;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}

.headline-punct.is-period { margin-left: 0.01em; }
.headline-punct.is-comma { margin-left: -0.015em; }

.display-title em,
.font-name em {
  color: var(--orange);
  font-style: normal;
}

.display-title.inverse {
  color: #fff;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.eyebrow i {
  width: 22px;
  height: 2px;
  display: inline-block;
  background: currentColor;
}

.eyebrow.orange {
  color: var(--orange);
}

.section-kicker {
  display: flex;
  justify-content: space-between;
  padding-bottom: 23px;
  border-bottom: 1px solid rgba(17, 19, 19, 0.25);
  color: rgba(17, 19, 19, 0.6);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.section-kicker.inverse {
  color: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 4px;
  background: var(--orange);
  transform: scaleX(var(--page-progress));
  transform-origin: left;
  pointer-events: none;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.button {
  min-height: 54px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border: 1px solid currentColor;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button span {
  font-size: 1.1rem;
}

.button-light {
  color: var(--ink);
  background: #fff;
  border-color: #fff;
}

.button-light:hover {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
}

.button-ghost {
  color: #fff;
  background: rgba(17, 19, 19, 0.3);
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
}

.button-orange {
  color: var(--ink);
  background: var(--orange);
  border-color: var(--orange);
}

.button-dark {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

/* Hero */
.hero {
  min-height: max(900px, 100svh);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.site-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  isolation: isolate;
}

.site-nav::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(100vw, 1920px);
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(10, 12, 12, 0.98) 0%, rgba(10, 12, 12, 0.9) 58%, rgba(10, 12, 12, 0.72) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand-lockup {
  width: 62px;
  display: block;
}

.brand-lockup img {
  width: 100%;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.7vw, 42px);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.nav-links a {
  position: relative;
}

.nav-links > a:not(.nav-download)::after {
  content: "";
  position: absolute;
  inset: auto 0 -8px;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-links > a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-download {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  background: #fff;
  color: var(--ink);
}

.hero-media {
  position: absolute;
  z-index: -3;
  inset: -2px -2px -2px calc(42% - 12px);
  overflow: hidden;
  background: var(--ink);
  transform: translateZ(0);
}

.hero-pan {
  position: absolute;
  inset: -18% -12%;
  transform: translate3d(var(--pointer-x), calc(var(--parallax-y, 0px) + var(--pointer-y)), 0) scale(1.1);
  will-change: transform;
}

.hero-pan img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% center;
  filter: saturate(0.88) contrast(1.08);
  animation: heroBreath 9s ease-in-out infinite alternate;
}

.hero-image-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(17, 19, 19, 0.94) 3%, rgba(17, 19, 19, 0.15) 40%, rgba(17, 19, 19, 0.03) 75%),
    linear-gradient(0deg, rgba(17, 19, 19, 0.48), transparent 42%);
}

.hero-grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.16;
  background-image: linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 7.15vw 7.15vw;
  -webkit-mask-image: linear-gradient(90deg, transparent 0 42%, #000 60%);
  mask-image: linear-gradient(90deg, transparent 0 42%, #000 60%);
  transform: translateY(calc(var(--scroll-y) * -0.035));
}

.hero-content {
  min-height: max(900px, 100svh);
  padding-top: clamp(190px, 24vh, 250px);
  padding-bottom: 110px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hero-content .eyebrow { margin-bottom: 26px; }

.hero-logo {
  width: clamp(310px, 42vw, 610px);
  margin: 0 0 0 -0.5%;
}

.hero-logo img {
  width: 100%;
  height: auto;
}

.hero-intro {
  max-width: 470px;
  margin: 36px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.hero-actions {
  display: flex;
  margin-top: 36px;
}

.hero-actions .button { min-width: 230px; }

.hero-index {
  position: absolute;
  right: clamp(24px, 4.7vw, 76px);
  bottom: 72px;
  display: flex;
  align-items: end;
  gap: 18px;
  font-size: 0.52rem;
  letter-spacing: 0.08em;
}

.hero-index strong { font-size: 2.4rem; line-height: 0.75; }

.scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 25px;
  transform: translateX(-50%);
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 0.5rem;
  letter-spacing: 0.1em;
}

.scroll-cue span { animation: cueBounce 1.5s ease-in-out infinite; }

/* Problem */
.problem {
  min-height: 850px;
  padding-block: clamp(86px, 10vw, 150px);
}

.problem-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(54px, 8vw, 130px);
  align-items: center;
  padding-top: clamp(68px, 7vw, 105px);
}

.problem .display-title { 
  /*font-size: clamp(3.45rem, 5.25vw, 6.05rem); */
  font-size: clamp(3.45rem, 3.4vw, 6.05rem); 
}
.problem-copy { max-width: 420px; margin: 38px 0 0; }

.anatomy-card {
  min-height: 470px;
  padding: 24px;
  border: 1px solid rgba(17, 19, 19, 0.5);
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.anatomy-card::before,
.anatomy-card::after {
  content: "";
  position: absolute;
  background: rgba(17, 19, 19, 0.15);
}

.anatomy-card::before { width: 1px; inset: 0 auto 0 50%; }
.anatomy-card::after { height: 1px; inset: 50% 0 auto; }

.anatomy-meta,
.anatomy-line {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.anatomy-line { position: absolute; inset: auto 24px 22px; }

.composition-demo {
  height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  /*padding-inline: clamp(20px, 3vw, 48px);*/
}

.composition-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--ink);
  /*font-size: clamp(2.25rem, 3.65vw, 4.25rem);*/
  font-size: clamp(2.25rem, 2.6vw, 4.25rem);
  font-weight: 900;
  /*line-height: 0.78;*/
  line-height: 0.9;
  /*letter-spacing: -0.07em;*/
  text-align: center;
  white-space: nowrap;
  transform: translateX(calc((var(--local-progress, 0.5) - .5) * 16px));
}

.accented-i {
  display: inline-block;
  position: relative;
}

.accented-i i {
  position: absolute;
  z-index: 2;
  top: -0.3em;
  left: 58%;
  width: 0.31em;
  height: 0.52em;
  background: var(--orange);
  clip-path: polygon(14% 0, 100% 10%, 86% 100%, 0 90%);
  transform: translateX(-50%) rotate(30deg);
  animation: accentFloat 2.4s ease-in-out infinite;
}

/* Fire */
.fire-scene {
  min-height: 850px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.fire-base {
  position: absolute;
  z-index: -3;
  inset: 0;
  background: center / cover no-repeat url("../images/mac-lab-fire.png");
  filter: saturate(0.85) contrast(1.12) brightness(0.78);
}

.fire-video {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: -2;
  inset: 0;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.95) contrast(1.08) brightness(0.82);
}

.fire-scene::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 19, 19, 0.86) 0%, rgba(17, 19, 19, 0.64) 27%, transparent 55%),
    linear-gradient(0deg, rgba(17, 19, 19, 0.46), transparent 50%);
}

.heat-haze {
  position: absolute;
  z-index: 0;
  inset: 36% 0 0;
  opacity: 0.15;
  background: repeating-linear-gradient(87deg, transparent 0 18px, rgba(255, 255, 255, 0.26) 20px, transparent 23px 44px);
  filter: blur(8px);
  animation: heatWave 4s linear infinite;
  pointer-events: none;
}

.fire-content {
  min-height: 850px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.fire-content .display-title {
  max-width: 49%;
  /*font-size: clamp(3.55rem, 5.25vw, 6rem);*/
  font-size: clamp(3.55rem, 3.25vw, 6rem);
  /*line-height: 0.84;*/
  line-height: 0.9;
}

.fire-note {
  position: absolute;
  right: clamp(24px, 5vw, 78px);
  bottom: 58px;
  padding: 14px 16px;
  border-left: 2px solid var(--orange);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
}

/* Font */
.font-section { padding-block: clamp(90px, 11vw, 170px); }

.font-intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(64px, 10vw, 170px);
  padding-top: clamp(35px, 4.6vw, 65px);
  padding-bottom: clamp(70px, 9vw, 130px);
  align-items: start;
}

.font-logo {
  width: min(100%, 500px);
  margin: 0;
  align-self: start;
}

.font-logo img {
  width: 100%;
  height: auto;
}

.font-description { max-width: 570px; }
.font-description > p { color: rgba(255, 255, 255, 0.72); margin: 0 0 44px; }

.font-description dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.font-description dl div { padding: 16px 0; }
.font-description dt { color: rgba(255, 255, 255, 0.42); font-size: 0.55rem; }
.font-description dd { margin: 8px 0 0; font-size: 0.7rem; font-weight: 700; }

.credits-grid {
  margin-top: clamp(48px, 7vw, 100px);
  padding-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.42);
}

.credits-grid div {
  display: grid;
  grid-template-columns: minmax(95px, 0.68fr) 1.32fr;
  gap: 12px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.52rem;
  line-height: 1.45;
}

.credits-grid span { font-weight: 700; }
.credits-grid strong { color: rgba(255, 255, 255, 0.56); font-weight: 400; }

.specimen {
  border: 1px solid rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.specimen-head {
  height: 48px;
  padding-inline: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
}

.specimen-head span:last-child { color: var(--orange); }

.specimen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255, 255, 255, 0.08);
  gap: 1px;
}

.specimen-panel {
  min-width: 0;
  min-height: 280px;
  padding: clamp(30px, 3.3vw, 52px);
  background: var(--ink);
  overflow: hidden;
}

.specimen-label { font-size: 0.62rem; color: rgba(255, 255, 255, 0.54); }

.vowel-line {
  margin-top: 72px;
  font-size: clamp(3.5rem, 5vw, 5.8rem);
  font-weight: 900;
  letter-spacing: 0.065em;
  line-height: 0.8;
  text-align: center;
  white-space: nowrap;
  transform: translateX(calc((var(--local-progress, 0.5) - .5) * -12px));
}

.sintilde-face { font-family: "SinTilde", sans-serif; }
.montserrat-face { font-family: "Montserrat", sans-serif; }
.lower-panel { border-top: 1px solid rgba(255, 255, 255, 0.12); }

.download-row {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.download-row > span { color: rgba(255, 255, 255, 0.45); font-size: 0.56rem; letter-spacing: 0.07em; }

/* Tester */
.tester { padding-block: clamp(96px, 12vw, 180px); }

.tester-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.78fr) minmax(520px, 1.22fr);
  gap: clamp(70px, 9vw, 145px);
  align-items: center;
}

.tester .display-title { 
  font-size: clamp(3.8rem, 4vw, 6.9rem); 
}
.tester-copy { max-width: 430px; margin: 34px 0; }

.tester-switch { display: flex; }

.tester-switch button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(17, 19, 19, 0.35);
  background: transparent;
  font-size: 0.58rem;
  font-weight: 700;
  cursor: pointer;
}

.tester-switch button + button { border-left: 0; }
.tester-switch button.active { background: var(--ink); color: #fff; }

.tester-card {
  min-height: 530px;
  border: 1px solid rgba(17, 19, 19, 0.45);
  background: var(--paper);
  box-shadow: 12px 12px 0 rgba(17, 19, 19, 0.12);
  display: flex;
  flex-direction: column;
}

.tester-toolbar,
.tester-footer {
  min-height: 52px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(17, 19, 19, 0.2);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tester-toolbar label { display: flex; align-items: center; gap: 12px; }
.tester-toolbar input { width: 115px; accent-color: var(--orange); }
.tester-toolbar strong { font-size: 1rem; }

.tester-canvas {
  min-height: 420px;
  flex: 1;
  position: relative;
  overflow: hidden;
}

.tester-preview,
.tester-input {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  min-height: 420px;
  padding: 34px;
  font-size: clamp(38px, var(--tester-size), 118px);
  font-weight: 900;
  /*line-height: 0.82;*/
  line-height: 1;
  /*letter-spacing: -0.065em;*/
  white-space: pre-wrap;
  overflow-wrap: break-word;
  overflow: auto;
}

.tester-preview {
  z-index: 1;
  pointer-events: none;
  scrollbar-width: none;
}

.tester-input {
  z-index: 2;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: transparent;
  -webkit-text-fill-color: transparent;
  caret-color: var(--ink);
  scrollbar-width: none;
}

.tester-preview::-webkit-scrollbar,
.tester-input::-webkit-scrollbar { display: none; }

.tester-punct {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.font-inside { font-family: "SinTilde", "Montserrat", sans-serif; }
.font-outside { font-family: "Montserrat", sans-serif; }
.tester-footer { border-top: 1px solid rgba(17, 19, 19, 0.2); border-bottom: 0; }

/* Library */
.library-section { padding-block: clamp(95px, 12vw, 180px); }

.library-intro {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(72px, 10vw, 155px);
  align-items: end;
}

.library-intro .display-title {
  /*font-size: clamp(3.45rem, 5.35vw, 6.15rem);*/
  font-size: clamp(3.45rem, 3.75vw, 6.15rem);
  /*line-height: 0.84;*/
}

.library-intro > p { max-width: 520px; margin: 0 0 10px; }

.library-controls {
  margin-top: 82px;
  padding-bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid rgba(17, 19, 19, 0.42);
}

.filter-row { display: flex; flex-wrap: wrap; }

.filter-row button {
  padding: 9px 13px;
  border: 1px solid rgba(17, 19, 19, 0.3);
  background: transparent;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.filter-row button + button { border-left: 0; }
.filter-row button.active { color: #fff; background: var(--orange); border-color: var(--orange); }

.search-box {
  width: min(340px, 100%);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--ink);
}

.search-box input {
  width: 100%;
  padding: 10px 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.58rem;
  font-weight: 700;
}

.search-box span:last-child { font-size: 1.2rem; }

.font-card-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;

}

.font-card {
  min-width: 0;
  border: 1px solid rgba(17, 19, 19, 0.3);
  background: #fff;
  animation: cardEnter 0.48s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: var(--card-delay, 0ms);
  transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.32s ease;
}

.font-card:nth-child(6n + 6) .card-glyph{
  color: var(--ink);
  background: var(--blue);
}
.font-card:nth-child(6n + 4) .card-glyph{
  color: var(--ink);
  background: var(--orange);
}
.font-card:nth-child(6n + 3) .card-glyph{
  color: var(--ink);
  background: var(--orange);
}
.font-card:nth-child(6n + 2) .card-glyph{
  color: var(--ink);
  background: var(--blue);
}
.font-card:nth-child(n+7){
  /*display: none !important;*/
}


.font-card:hover { transform: translateY(-9px); box-shadow: 0 14px 0 rgba(17, 19, 19, 0.08); }

.card-meta {
  height: 42px;
  padding-inline: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(17, 19, 19, 0.18);
  font-size: 0.49rem;
  font-weight: 700;
  text-transform: uppercase;
}

/*.card-meta span:last-child { color: var(--orange); }*/

.card-glyph {
  min-height: 285px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  font-size: clamp(6.5rem, 12vw, 12rem);
  font-weight: 900;
  line-height: 0.74;
  text-align: center;
  white-space: pre-line;
  overflow: hidden;
}

.tone-blue .card-glyph { color: var(--ink); background: var(--blue); }
.tone-orange .card-glyph { color: var(--ink); background: var(--orange); font-size: clamp(3rem, 5.5vw, 5.6rem); }
.tone-orange .card-glyph span { display: block; }

.card-body { padding: 23px; }
.card-body h3 { 
  margin: 0; 
  font-size: 1.1rem; 
  font-weight: 900; 
  text-transform: uppercase;
}
.card-body h3 span{
  font-family: "Montserrat";
  font-weight: normal;
  font-size: .67rem;
}
.card-body p { min-height: 54px; margin: 13px 0 20px; font-family: "Montserrat", sans-serif; font-size: 0.67rem; line-height: 1.5; }
.card-body > a { display: flex; justify-content: space-between; padding-top: 16px; border-top: 1px solid rgba(17, 19, 19, 0.22); font-size: 0.57rem; font-weight: 700; }

.rating { min-height: 28px; display: flex; align-items: center; }
.rating button { padding: 0 2px; border: 0; background: transparent; color: #bcbcb6; cursor: pointer; font-size: 0.88rem; }
.rating button.active { color: var(--orange); }
.empty-state { grid-column: 1 / -1; padding: 60px 20px; border: 1px solid rgba(17, 19, 19, 0.3); text-align: center; font-size: 0.7rem; }

.cont_arrows{
  display: grid;
  grid-template-columns: 50px auto 50px;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
}
.arrow{
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: var(--orange);
  aspect-ratio: 1;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.arrow_off{
  background: gray;
  color: #fff;
  cursor: default;
}

.paginacion{
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.btn_num{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  aspect-ratio: 1;
  border-radius: 50%;
  font-size: 16px;
  border: 1px solid #000;
  cursor: pointer;
}

.btn_on{
  background: var(--orange);
}


/* Upload */
.upload-section {
  min-height: 720px;
  padding-block: clamp(105px, 13vw, 190px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.orange-diagonal {
  position: absolute;
  z-index: -1;
  top: -25%;
  right: 8%;
  width: clamp(70px, 9vw, 130px);
  height: 150%;
  background: var(--orange);
  transform: translateY(calc((var(--local-progress, .5) - .5) * 220px)) rotate(39deg);
  transform-origin: center;
}

.upload-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(80px, 13vw, 210px);
  align-items: center;
}

.upload-copy { max-width: 450px; color: rgba(255, 255, 255, 0.68); margin-top: 35px; }
.upload-steps { max-width: 580px; }

.upload-steps > div {
  min-height: 92px;
  padding: 17px 6px;
  display: grid;
  grid-template-columns: 35px 0.8fr 1.2fr;
  gap: 20px;
  align-items: start;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.upload-steps > div strong { color: var(--orange); font-size: 0.65rem; }
.upload-steps > div span { font-size: 0.68rem; font-weight: 700; }
.upload-steps > div p { margin: 0; color: rgba(255, 255, 255, 0.57); font-family: "Montserrat", sans-serif; font-size: 0.63rem; line-height: 1.45; }

.step-download {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--orange);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  transition: color 0.25s ease, padding 0.25s ease;
}

.step-download:hover { color: var(--orange); padding-inline: 4px; }

.upload-button { margin-top: 22px; cursor: pointer; }
.upload-button input { display: none; }
.upload-status { display: inline-block; margin-left: 16px; color: rgba(255, 255, 255, 0.5); font-size: 0.53rem; }

/* Upload modal */
.upload-modal-backdrop,
.modal_respuesta {
  position: fixed;
  z-index: 200;
  inset: 0;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(6, 8, 8, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal_respuesta{
  display: none;
}

.upload-modal {
  width: min(900px, 100%);
  max-height: calc(100svh - 48px);
  position: relative;
  /*overflow: auto;*/
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 18px 18px 0 var(--orange);
  isolation: isolate;
  overflow-x: hidden;
  overflow-y: auto;
}

.upload-modal::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: 0.16;
  background-image: linear-gradient(rgba(17, 19, 19, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 19, 0.22) 1px, transparent 1px);
  background-size: 25% 25%;
}

.upload-modal-diagonal {
  width: 72px;
  height: 350px;
  position: absolute;
  z-index: -1;
  top: -145px;
  right: 34px;
  background: var(--orange);
  transform: rotate(39deg);
}

.upload-modal-close,
.cerrar_resp {
  width: 48px;
  height: 48px;
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  border: 1px solid rgba(17, 19, 19, 0.35);
  background: var(--paper);
  color: var(--ink);
  font-family: "Montserrat", sans-serif;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.upload-modal-header,
.upload-success {
  padding: clamp(36px, 6vw, 68px);
}

.modal-index {
  display: block;
  margin-bottom: 34px;
  color: var(--orange);
  font-family: "Montserrat", sans-serif;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.upload-modal h2 {
  max-width: 560px;
  margin: 0;
  /*font-size: clamp(3.65rem, 6.8vw, 6.5rem);*/
  font-size: clamp(3.65rem, 3.75vw, 6.5rem);
  font-weight: 900;
  line-height: 0.8;
  /*letter-spacing: -0.07em;*/
  text-transform: uppercase;
}

.upload-modal-header > p,
.upload-success > p {
  max-width: 560px;
  margin: 30px 0 0;
  font-family: "Montserrat", sans-serif;
  font-size: 0.82rem;
  line-height: 1.65;
}

.upload-modal-form {
  padding: 0 clamp(36px, 6vw, 68px) clamp(38px, 6vw, 68px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 36px;
}

.upload-modal-form label {
  display: grid;
  gap: 12px;
  font-family: "Montserrat", sans-serif;
}

.upload-modal-form label > span,
.upload-file-tag span {
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.upload-modal-form input,
.upload-modal-form textarea {
  width: 100%;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid rgba(17, 19, 19, 0.5);
  outline: 0;
  background: transparent;
  font-family: "Montserrat", sans-serif;
  font-size: 0.88rem;
}
.upload-modal-form textarea {
  /*min-height: 110px;*/
  min-height: 80px;
  resize: vertical;
  line-height: 1.55;
}

.bloke_radio{
  display: flex;
  flex-direction: column;
  gap: 12px;
  grid-column: 1 / -1;
}
.list_radio{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.list_radio label{
  display: flex;
  align-items: center;
  padding: 8px 0;
}
.list_radio label input{
  width: initial;
  margin: 0
}

.upload-description-field,
.upload-file-tag,
.upload-modal-actions { grid-column: 1 / -1; }

.upload-file-tag {
  padding: 15px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid rgba(17, 19, 19, 0.3);
  background: rgba(255, 255, 255, 0.45);
  font-family: "Montserrat", sans-serif;
}

.upload-file-tag strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-modal-actions {
  display: flex;
  gap: 0;
}

.upload-modal-actions .button { min-width: 250px; cursor: pointer; }
.modal-cancel { background: var(--ink); color: #fff; border-color: var(--ink); }

.upload-success {
  min-height: 610px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.upload-success .upload-file-tag { width: min(100%, 590px); margin: 32px 0; }
.upload-success .button { align-self: flex-start; min-width: 220px; cursor: pointer; }

/* Closing */
.closing { padding-block: clamp(100px, 13vw, 190px) 60px; }
.closing .display-title {
  /*font-size: clamp(3.9rem, 6.8vw, 7.75rem);*/
  font-size: clamp(3.9rem, 4.65vw, 7.75rem);
  /*line-height: 0.84;*/
}

.closing-line {
  margin-top: 60px;
  padding-block: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  border-top: 1px solid rgba(17, 19, 19, 0.32);
  border-bottom: 1px solid rgba(17, 19, 19, 0.32);
}

.closing-line p { max-width: 690px; margin: 0; }
.footer-row { margin-top: 60px; display: flex; align-items: end; justify-content: space-between; gap: 30px; font-size: 0.52rem; letter-spacing: 0.06em; }
.footer-brand { width: 68px; }
.footer-row div { display: flex; gap: 24px; }

@keyframes heroBreath {
  from { transform: scale(1.015); }
  to { transform: scale(1.07); }
}

@keyframes ruleScan {
  0%, 100% { transform: scaleX(0.12); opacity: 0.2; }
  45% { transform: scaleX(1); opacity: 0.95; }
  62% { transform: scaleX(0.65) translateX(22%); opacity: 0.5; }
}

@keyframes cueBounce {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(6px); }
}

@keyframes accentFloat {
  0%, 100% { transform: translateX(-50%) rotate(30deg) translateY(0); }
  50% { transform: translateX(-50%) rotate(30deg) translateY(-7px); }
}

@media (min-width: 1600px) {
  .section-shell {
    width: min(calc(100% - 120px), 1440px);
    padding-inline: 64px;
  }
  .hero-media { left: calc(46% - 12px); }
  .problem-layout { grid-template-columns: minmax(0, 530px) minmax(0, 650px); gap: 120px; justify-content: space-between; }
  .fire-content .display-title { max-width: 590px; }
  .font-intro { 
    grid-template-columns: minmax(0, 520px) minmax(0, 610px); 
    gap: 150px; 
    justify-content: space-between; 
  }
  .tester-layout { grid-template-columns: minmax(0, 420px) minmax(0, 730px); gap: 130px; justify-content: space-between; }
  .library-intro { grid-template-columns: minmax(0, 650px) minmax(0, 430px); gap: 120px; justify-content: space-between; }
  .upload-layout { grid-template-columns: minmax(0, 560px) minmax(0, 620px); gap: 100px; justify-content: space-between; }
  .closing .display-title { max-width: 1240px; }
}

@keyframes cardEnter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fireFlicker {
  0%, 100% { opacity: 0.38; filter: saturate(2) contrast(1.2) brightness(1.05) blur(1px); }
  25% { opacity: 0.75; filter: saturate(2.7) contrast(1.35) brightness(1.38) blur(2px); }
  65% { opacity: 0.53; filter: saturate(2.3) contrast(1.1) brightness(1.2) blur(0); }
}

@keyframes flameRise {
  from { background-position: 50% 51%; }
  to { background-position: 50% 46%; }
}

@keyframes heatWave {
  from { transform: translate3d(-1.5%, 2%, 0) skewX(-1deg); }
  50% { transform: translate3d(1.5%, -2%, 0) skewX(1deg); }
  to { transform: translate3d(-1.5%, 2%, 0) skewX(-1deg); }
}

@media (max-width: 1000px) {
  .site-nav { min-height: 76px; }
  .nav-links {
    gap: clamp(12px, 2vw, 24px);
    font-size: 0.53rem;
  }
  .nav-download { gap: 12px; }
  .hero-media { left: calc(36% - 12px); opacity: 0.82; }
  .problem-layout,
  .tester-layout { grid-template-columns: 1fr; }
  .anatomy-card { max-width: 720px; }
  .font-intro { grid-template-columns: 1fr; gap: 60px; }
  .tester-card { min-height: 480px; }
  .library-intro { gap: 7vw; }
  .font-card-grid { grid-template-columns: repeat(2, 1fr); }
  .upload-layout { grid-template-columns: 1fr; gap: 70px; }
  .upload-steps { max-width: 720px; }
}

@media (max-width: 720px) {
  main,
  main > *,
  .section-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .section-shell { padding-inline: 20px; }
  .problem-layout,
  .font-intro,
  .specimen,
  .tester-layout,
  .tester-card,
  .library-intro,
  .library-controls,
  .font-card-grid,
  .upload-layout,
  .upload-steps,
  .closing-line,
  .footer-row {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .display-title { line-height: 0.82; }
  .section-kicker span:last-child { display: none; }
  .site-nav {
    min-height: 112px;
    padding-block: 13px;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .nav-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding-bottom: 3px;
    overflow: hidden;
    white-space: normal;
    font-size: 0.48rem;
  }
  .nav-links > a { min-width: 0; display: flex; align-items: center; justify-content: center; text-align: center; }
  .nav-links > a:not(.nav-download)::after { display: none; }
  .nav-download { grid-column: 1 / -1; width: 100%; min-height: 36px; margin-top: 3px; padding-inline: 12px; gap: 10px; }
  .hero { min-height: 860px; }
  .hero-media { inset: -2px; opacity: 0.58; }
  .hero-image-wash { background: linear-gradient(90deg, var(--ink) 0, rgba(17,19,19,.76) 52%, rgba(17,19,19,.12)), linear-gradient(0deg, var(--ink), transparent 48%); }
  .hero-content { min-height: 860px; padding-top: 220px; justify-content: flex-start; overflow: hidden; }
  .hero-content .eyebrow { width: 100%; max-width: 100%; font-size: 0.63rem; line-height: 1.35; }
  .hero-logo { width: 100%; max-width: 430px; }
  .hero-intro { width: 100%; max-width: 100%; margin-top: 34px; }
  .hero-actions { width: 100%; max-width: 100%; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-index { display: none; }
  .scroll-cue { display: none; }
  .problem-layout { grid-template-columns: 1fr; gap: 62px; }
  .problem .display-title { 
    /*font-size: clamp(3.4rem, 15vw, 5.2rem); */
    font-size: clamp(2.4rem, 10.5vw, 5.2rem); 
  }
  .anatomy-card { min-height: 390px; padding: 16px; }
  .anatomy-line { inset-inline: 16px; }
  .composition-demo { height: 300px; padding-inline: 8px; }
  .composition-copy { 
    font-size: clamp(1.75rem, 7.5vw, 3rem); 
  }
  .fire-scene, .fire-content { min-height: 700px; }
  .fire-base, .fire-video { object-position: 58% center; background-position: 58% center; }
  .fire-content { justify-content: flex-end; padding-bottom: 105px; }
  .fire-content .display-title {
    max-width: 94%;
    /*font-size: clamp(3.05rem, 13.5vw, 4.8rem);*/
    font-size: clamp(2.05rem, 9.5vw, 4.8rem);
  }
  .fire-note { 
    /*right: 20px; */
    left: 20px; 
    bottom: 24px; 
  }
  .font-logo { width: min(88vw, 460px); }
  .font-description dl { grid-template-columns: 1fr; }
  .font-description dl div + div { border-top: 1px solid rgba(255,255,255,.14); }
  .credits-grid { grid-template-columns: 1fr; }
  .specimen-head { display: flex; justify-content: space-between; }
  .specimen-grid { grid-template-columns: 1fr; }
  .specimen-panel { min-height: 200px; }
  .vowel-line { margin-top: 48px; font-size: 13vw; letter-spacing: 0.025em; }
  .download-row { align-items: flex-start; flex-direction: column; }
  .tester-layout { grid-template-columns: 1fr; gap: 55px; }
  .tester .display-title { 
    /*font-size: clamp(3.8rem, 17vw, 5.7rem); */
    font-size: clamp(2.8rem, 14.5vw, 5.7rem); 
  }
  .tester-card { min-height: 420px; }
  .tester-toolbar label { display: none; }
  .tester-canvas,
  .tester-preview,
  .tester-input { min-height: 330px; }
  .tester-preview,
  .tester-input { padding: 24px; font-size: min(var(--tester-size), 17vw); }
  .library-intro { grid-template-columns: 1fr; gap: 42px; }
  .library-controls { margin-top: 60px; align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .font-card-grid { grid-template-columns: 1fr; }
  .card-glyph { min-height: 240px; font-size: 10rem; }
  .tone-orange .card-glyph { font-size: 4.6rem; }
  .upload-layout { grid-template-columns: 1fr; gap: 62px; }
  .upload-steps > div { grid-template-columns: 30px 1fr; }
  .upload-steps > div p { grid-column: 2; }
  .orange-diagonal { right: -18%; opacity: 0.45; }
  .upload-status { display: block; margin: 14px 0 0; }
  .upload-modal-backdrop,
  .modal_respuesta { 
    padding: 14px; 
  }
  .upload-modal { width: 100%; max-width: 100%; max-height: calc(100svh - 28px); border-width: 2px; box-shadow: 8px 8px 0 var(--orange); }
  .upload-modal-close,
  .cerrar_resp { 
    top: 12px; right: 12px; 
  }
  .upload-modal-header,
  .upload-success { padding: 32px 22px; }
  .upload-modal-header { padding-top: 72px; }
  .upload-modal h2 { 
    max-width: calc(100% - 28px); 
    /*font-size: clamp(2.85rem, 13.5vw, 4.45rem); */
    font-size: clamp(2rem, 9vw, 4.45rem); 
  }
  .upload-modal-form { padding: 0 22px 30px; grid-template-columns: 1fr; gap: 24px; }
  .upload-modal-actions { flex-direction: column; }
  .upload-modal-actions .button { width: 100%; min-width: 0; }
  .upload-file-tag { align-items: flex-start; flex-direction: column; gap: 8px; }
  .upload-file-tag strong { width: 100%; }
  .upload-success { min-height: 560px; }
  .closing .display-title { 
    /*font-size: clamp(3.45rem, 15vw, 5.4rem); */
    font-size: clamp(2rem, 9vw, 5.4rem); 
  }
  .closing-line { align-items: stretch; flex-direction: column; }
  .footer-row { align-items: flex-start; flex-direction: column; }
  .footer-row div { flex-wrap: wrap; }

  .library-intro .display-title{
    font-size: clamp(2.3rem, 10vw, 6.15rem);
  }
}

@media (max-width: 500px){
  .list_radio{
    display: flex;
    justify-content: space-between;
  }
}






@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-pan, .interface-vowels, .fire-base { transform: none; }
  .fire-video { display: none; }
}

/*
 * Versión HTML + CSS sin JavaScript.
 * Mantiene visibles los bloques que en la aplicación completa aparecen
 * mediante observadores de scroll.
 */
[data-reveal] {
  opacity: 1;
  transform: none;
}



.flex_centro{
  display: flex;
  justify-content: center;
  padding-top: clamp(35px, 4.6vw, 65px);
}

.cont_video{
  width: 100%;
  /*max-width: 800px;*/
  aspect-ratio: 1/.56;
  position: relative;
}
.cont_video img{
  cursor: pointer;
}
.cont_video iframe{
  position: absolute;
  width: 100%;
  height: 100%;
}