/* ============================================================
   okari — landing
   Los videos NO van en recuadros: cada uno es un escenario
   a pantalla completa y la interfaz flota encima.
   ============================================================ */

:root {
  --black:      #050505;
  --gold:       #c9a227;
  --gold-lit:   #f2d98b;
  --gold-deep:  #8a6d14;
  --coral:      #ef6a4c;   /* acento — el mismo del logo */
  --violet:     #9b7ec8;
  --ink:        #f6f2ea;
  --ink-dim:    rgba(246, 242, 234, 0.62);
  --ink-faint:  rgba(246, 242, 234, 0.34);
  --hairline:   rgba(246, 242, 234, 0.16);

  --serif: "Instrument Serif", "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --section-y: clamp(5rem, 14vh, 10rem);

  /* ancho del riel fijo de la izquierda */
  --rail: 84px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --slow: 1.2s;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============================================================
   REVEAL AL SCROLL
   ============================================================ */

.reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity var(--slow) var(--ease), translate var(--slow) var(--ease);
  transition-delay: var(--d, 0ms);
}

.reveal.is-in { opacity: 1; translate: 0 0; }

/* ============================================================
   MARCA
   ============================================================ */

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

/* cuadro coral con el punto — el ancla de la identidad */
.brand__mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: none;
  background: var(--coral);
  display: grid;
  place-items: center;
}

.brand__mark::before {
  content: "";
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 2px solid #0b0605;
}

.brand__mark::after {
  content: "";
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #0b0605;
}

.brand__name {
  position: relative;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -0.015em;
  padding-inline: 0.1em;
}

.brand__name::before {
  content: "";
  position: absolute;
  left: -0.02em;
  width: 82%;
  top: 0.60em;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
}

.brand__i { position: relative; }

.brand__i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.06em;
  translate: -50% 0;
  width: 0.30em; height: 0.30em;
  border-radius: 50%;
  background: var(--violet);
}

.brand--sm .brand__mark { width: 34px; height: 34px; }
.brand--sm .brand__mark::before { width: 12px; height: 12px; }
.brand--sm .brand__name { font-size: 1.2rem; }

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(.85rem, 2vw, 1.35rem) var(--gutter);
  transition: background .6s var(--ease), backdrop-filter .6s var(--ease),
              border-color .6s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-stuck {
  background: rgba(5, 5, 5, .74);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
}

.nav__links { display: flex; gap: clamp(1.5rem, 3.5vw, 3rem); }

.nav__links a {
  position: relative;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  padding-block: 0.35rem;
  transition: color .5s var(--ease);
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--coral);
  scale: 0 1;
  transform-origin: left;
  transition: scale .6s var(--ease);
}

.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { scale: 1 1; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0; border: 0;
  background: none;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  height: 1.5px; width: 24px;
  margin-inline: auto;
  background: var(--ink);
  transition: translate .5s var(--ease), rotate .5s var(--ease), opacity .3s var(--ease);
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) { translate: 0 6.5px; rotate: 45deg; }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { translate: 0 -6.5px; rotate: -45deg; }

/* ============================================================
   RIEL IZQUIERDO FIJO
   ============================================================ */

.rail {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 35;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-block: clamp(7rem, 16vh, 10rem) clamp(2rem, 5vh, 3rem);
  pointer-events: none;
}

.rail > * { pointer-events: auto; }

.rail__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.rail__dot {
  width: 18px; height: 26px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  position: relative;
}

.rail__dot::after {
  content: "";
  position: absolute;
  left: 50%; top: 6px;
  translate: -50% 0;
  width: 2px; height: 5px;
  border-radius: 2px;
  background: var(--coral);
  animation: railDot 2.6s var(--ease) infinite;
}

@keyframes railDot {
  0%, 100% { translate: -50% 0; opacity: 1; }
  60%      { translate: -50% 9px; opacity: .2; }
}

.rail__line {
  width: 1px;
  height: clamp(40px, 8vh, 70px);
  background: linear-gradient(to bottom, var(--hairline), transparent);
}

.rail__word {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  color: var(--ink-faint);
  writing-mode: vertical-rl;
}

.rail__social {
  display: grid;
  gap: 1.1rem;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}

.rail__social a { transition: color .5s var(--ease); }
.rail__social a:hover { color: var(--coral); }

/* ============================================================
   ESCENARIO — el video ocupa toda la pantalla
   ============================================================ */

.stage {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--black);
}

.stage__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.stage__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.stage--face .stage__video {
  object-position: 50% 32%;
  filter: saturate(1.15) contrast(1.05) brightness(1.1);
}

/* ============================================================
   PROFUNDIDAD 3D
   Dos capas del mismo video: el fondo mas grande y desenfocado,
   el primer plano enmascarado sobre la cabeza. Se desplazan a
   distinta velocidad con el raton, y eso separa la cabeza del
   fondo sin necesidad de recortar al sujeto.
   ============================================================ */

.depth {
  perspective: 1200px;
  perspective-origin: 50% 45%;
}

.depth .depth__bg,
.depth .depth__fg {
  position: absolute;
  inset: 0;
  will-change: transform;
  transition: transform .9s var(--ease);
}

.depth .depth__bg {
  scale: 1.18;
  filter: saturate(1) contrast(1.02) brightness(.6) blur(5px);
}

/* la mascara deja ver el primer plano solo donde esta la cabeza
   y lo funde hacia los bordes: sin bordes duros, sin recortes */
.depth .depth__fg {
  -webkit-mask-image: radial-gradient(ellipse 62% 74% at 46% 44%, #000 30%, rgba(0,0,0,.65) 55%, transparent 76%);
  mask-image: radial-gradient(ellipse 62% 74% at 46% 44%, #000 30%, rgba(0,0,0,.65) 55%, transparent 76%);
  filter: saturate(1.16) contrast(1.07) brightness(1.14);
}

/* mientras el puntero se mueve, la respuesta es inmediata */
.depth.is-tracking .depth__bg,
.depth.is-tracking .depth__fg { transition: none; }

/* ---------- foco que sigue al cursor ---------- */

.stage__spot {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle 34vmax at var(--mx, 50%) var(--my, 45%),
              rgba(246, 242, 234, .14) 0%,
              rgba(201, 162, 39, .07) 26%,
              transparent 58%);
  mix-blend-mode: screen;
  transition: opacity 1.2s var(--ease);
}

.stage:hover .stage__spot { opacity: 1; }

/* ---------- grano: mata el banding y da textura de pelicula ---------- */

.stage__grain {
  position: absolute;
  inset: -8%;
  z-index: 2;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(3) infinite;
}

@keyframes grain {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-2%, 1.5%); }
  66%  { transform: translate(1.5%, -2%); }
  100% { transform: translate(0, 0); }
}

/* ---------- escenario 03: la mano liquida ---------- */

.stage--hand .stage__video {
  object-position: 50% 46%;
  filter: saturate(1) contrast(1.06) brightness(1.06);
}

/* el sujeto esta centrado y algo mas alto que en el rostro:
   la mascara se ajusta a el */
.depth--hand .depth__fg {
  -webkit-mask-image: radial-gradient(ellipse 54% 66% at 50% 42%, #000 32%, rgba(0,0,0,.6) 58%, transparent 78%);
  mask-image: radial-gradient(ellipse 54% 66% at 50% 42%, #000 32%, rgba(0,0,0,.6) 58%, transparent 78%);
  filter: saturate(1) contrast(1.1) brightness(1.12);
}

.depth--hand .depth__bg {
  filter: contrast(1.02) brightness(.5) blur(6px);
}

/* el fondo del video es negro puro: el velo puede ser mas suave
   para no apagar los brillos del agua */
.stage--hand .stage__veil {
  background:
    linear-gradient(to right, rgba(5,5,5,.82) 0%, rgba(5,5,5,.28) 32%, rgba(5,5,5,.05) 55%, rgba(5,5,5,.45) 100%),
    linear-gradient(to bottom, rgba(5,5,5,.78) 0%, rgba(5,5,5,.06) 26%, rgba(5,5,5,.14) 58%, rgba(5,5,5,.82) 100%);
}

/* oscurecido para que la interfaz se lea sobre el video */
.stage__veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(to right, rgba(5,5,5,.88) 0%, rgba(5,5,5,.35) 34%, rgba(5,5,5,.10) 55%, rgba(5,5,5,.55) 100%),
    linear-gradient(to bottom, rgba(5,5,5,.80) 0%, rgba(5,5,5,.15) 26%, rgba(5,5,5,.20) 60%, rgba(5,5,5,.85) 100%);
}

/* aros concéntricos finísimos */
.stage__rings {
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;
  z-index: 4;
  pointer-events: none;
}

.stage__rings span {
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1px solid rgba(246, 242, 234, .07);
}

.stage__rings span:nth-child(1) { width: 58svh; height: 58svh; }
.stage__rings span:nth-child(2) { width: 92svh; height: 92svh; }
.stage__rings span:nth-child(3) { width: 128svh; height: 128svh; }

/* ---------- centro ---------- */

.stage__center {
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;
  z-index: 3;
  width: min(90vw, 760px);
  text-align: center;
}

.stage__eyebrow {
  margin: 0;
  font-size: clamp(.68rem, 1.7vw, .8rem);
  letter-spacing: 0.34em;
  color: var(--ink);
}

.stage__eyebrow i {
  font-style: normal;
  color: var(--coral);
  margin-inline: .5em;
}

/* hueco reservado: aquí el propio video revela el logo okari */
.stage__logo-space { height: clamp(88px, 19vh, 200px); }

.stage__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 12vw, 8.5rem);
  line-height: .95;
  letter-spacing: -0.02em;
}

.stage__sub {
  margin: clamp(.5rem, 1.5vh, 1rem) 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 3.4vw, 1.9rem);
  line-height: 1.3;
  color: var(--ink);
}

/* la placa gris de la referencia */
.stage__sub--plate {
  display: inline-block;
  padding: .2em .7em;
  background: rgba(246, 242, 234, .14);
  backdrop-filter: blur(6px);
}

/* el bloque central del reveal entra cuando el logo aparece */
.stage--reveal .stage__eyebrow,
.stage--reveal .stage__sub {
  opacity: 0;
  translate: 0 16px;
  transition: opacity 1.6s var(--ease), translate 1.6s var(--ease);
}

.stage--reveal .stage__sub { transition-delay: .25s; }

.stage--reveal.is-revealed .stage__eyebrow,
.stage--reveal.is-revealed .stage__sub {
  opacity: 1;
  translate: 0 0;
}

/* ---------- índices verticales ---------- */

.index {
  position: absolute;
  left: calc(var(--rail) + clamp(.5rem, 2vw, 2rem));
  top: 50%;
  translate: 0 -50%;
  z-index: 3;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: clamp(1.5rem, 4vh, 2.75rem);
  max-height: 78svh;
}

.index__item {
  display: grid;
  grid-template-columns: 28px auto;
  align-items: start;
  gap: .9rem;
  max-width: 250px;
}

.index__bar {
  width: 28px;
  height: 2px;
  margin-top: .4rem;
  background: var(--hairline);
  transition: background .6s var(--ease), width .6s var(--ease);
}

.index__item.is-active .index__bar { background: var(--coral); width: 40px; }

.index__title,
.index__body {
  writing-mode: vertical-rl;
  rotate: 180deg;
}

.index__title {
  max-block-size: 150px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink);
}

.index__body {
  grid-column: 2;
  max-block-size: 150px;
  font-size: .66rem;
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--ink-faint);
  overflow: hidden;
}

.index__item { grid-template-columns: 28px auto auto; }

/* ---------- número gigante ---------- */

.bignum {
  position: absolute;
  right: 0;
  top: 26%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--ink);
}

.bignum span {
  font-family: var(--serif);
  font-size: clamp(4rem, 11vw, 9rem);
  line-height: 1;
  letter-spacing: -0.03em;
  /* sangra por el borde derecho, como en la referencia */
  margin-right: -0.25em;
  order: 2;
}

/* la flecha queda a la izquierda del numero */
.bignum svg {
  width: 22px; height: 22px;
  color: var(--coral);
  order: 1;
  flex: none;
}

/* ---------- puntos ---------- */

.dots {
  position: absolute;
  right: clamp(1.25rem, 3vw, 2.5rem);
  top: 60%;
  translate: 0 -50%;
  z-index: 3;
  margin: 0; padding: 0;
  list-style: none;
  display: grid;
  gap: .85rem;
  justify-items: center;
}

.dots li {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ink-faint);
}

.dots li.is-active {
  width: 14px; height: 14px;
  background: none;
  border: 1px solid var(--coral);
  position: relative;
}

.dots li.is-active::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--coral);
}

/* ---------- bloque inferior ---------- */

.brief {
  position: absolute;
  right: clamp(1.25rem, 4vw, 4rem);
  bottom: clamp(6rem, 14vh, 8.5rem);
  z-index: 3;
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  max-width: 380px;
}

.brief__go {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--coral);
  color: #100603;
  display: grid;
  place-items: center;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  transition: scale .5s var(--ease), box-shadow .5s var(--ease);
}

.brief__go:hover {
  scale: 1.08;
  box-shadow: 0 0 0 8px rgba(239, 106, 76, .16);
}

.brief__title {
  margin: 0 0 .4rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
}

.brief__title::before {
  content: "";
  display: block;
  width: 26px; height: 2px;
  margin-bottom: .7rem;
  background: var(--coral);
}

.brief__body {
  margin: 0;
  font-size: .74rem;
  line-height: 1.65;
  color: var(--ink-dim);
}

/* ---------- pie del escenario ---------- */

.stage__foot {
  position: absolute;
  left: calc(var(--rail) + clamp(.5rem, 2vw, 1.5rem));
  right: clamp(1.25rem, 4vw, 4rem);
  bottom: clamp(1.5rem, 4vh, 2.5rem);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
}

.progress {
  flex: 1;
  max-width: 330px;
  height: 2px;
  background: rgba(246, 242, 234, .18);
}

.progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--coral);
  transition: width .2s linear;
}

.next {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--ink-dim);
  transition: color .5s var(--ease);
}

.next:hover { color: var(--ink); }

.next__arrows {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
}

.next__arrows svg {
  width: 15px; height: 15px;
  rotate: 180deg;
  color: var(--ink-dim);
}

.next__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  transition: border-color .5s var(--ease), scale .5s var(--ease);
}

.next:hover .next__ring { border-color: var(--coral); scale: 1.1; }

/* ============================================================
   SECCIONES DE TEXTO
   ============================================================ */

.section {
  position: relative;
  padding: var(--section-y) var(--gutter) var(--section-y)
           calc(var(--rail) + var(--gutter));
  max-width: 1400px;
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 clamp(1.5rem, 3vh, 2.25rem);
  font-size: .68rem;
  letter-spacing: .3em;
  color: var(--coral);
  text-transform: uppercase;
}

.manifesto__text {
  margin: 0;
  max-width: 20ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 8vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.manifesto__text em {
  font-style: italic;
  background: linear-gradient(100deg, var(--gold-deep), var(--gold-lit) 40%, var(--gold) 70%, var(--gold-lit));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.manifesto__note {
  margin: clamp(2rem, 4vh, 3rem) 0 0;
  max-width: 46ch;
  color: var(--ink-dim);
}

.pillars__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  margin: 0; padding: 0;
  list-style: none;
}

.pillar {
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline);
}

.pillar__num {
  display: block;
  font-family: var(--serif);
  font-size: .95rem;
  letter-spacing: .1em;
  color: var(--coral);
}

.pillar__title {
  margin: .75rem 0 1rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
}

.pillar__body {
  margin: 0;
  font-size: .94rem;
  color: var(--ink-dim);
}

/* ---------- cta ---------- */

.cta { text-align: center; isolation: isolate; }

.cta__glow {
  position: absolute;
  z-index: -1;
  left: 50%; top: 50%;
  translate: -50% -50%;
  width: min(90vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,.18) 0%, rgba(201,162,39,.06) 45%, transparent 70%);
  filter: blur(50px);
}

.cta__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.cta__title em {
  font-style: italic;
  background: linear-gradient(100deg, var(--gold-deep), var(--gold-lit) 40%, var(--gold) 70%, var(--gold-lit));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta__body {
  margin: clamp(1.5rem, 3vh, 2rem) auto clamp(2.25rem, 4vh, 3rem);
  max-width: 42ch;
  color: var(--ink-dim);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .9rem 1.8rem;
  border-radius: 999px;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: translate .6s var(--ease);
}

.btn--gold {
  background: linear-gradient(100deg, var(--gold-deep), var(--gold) 45%, var(--gold-lit));
  color: #120d02;
}

.btn--gold:hover { translate: 0 -2px; }

.btn--lg {
  padding: 1.1rem 2.4rem;
  font-family: var(--serif);
  font-size: clamp(1rem, 3.2vw, 1.25rem);
  letter-spacing: .02em;
  text-transform: none;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(2rem, 5vh, 3rem) var(--gutter) clamp(2rem, 5vh, 3rem)
           calc(var(--rail) + var(--gutter));
  border-top: 1px solid var(--hairline);
}

.footer__note { margin: 0; font-size: .78rem; color: var(--ink-faint); }

.footer__links { display: flex; gap: 1.5rem; font-size: .78rem; color: var(--ink-dim); }
.footer__links a { transition: color .5s var(--ease); }
.footer__links a:hover { color: var(--coral); }

/* ============================================================
   MENÚ MÓVIL
   ============================================================ */

.menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(5, 5, 5, .97);
  backdrop-filter: blur(10px);
}

.menu[hidden] { display: none; }

.menu nav { display: grid; gap: 1.75rem; text-align: center; }

.menu a {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 9vw, 2.75rem);
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* En portrait el <video> carga el master vertical 9:16 (ver index.html),
   asi que 'cover' llena la pantalla entera sin tocar el logo.
   Guard para pantallas absurdamente estrechas (<5:12): ahi si conviene
   contener el video y fundirlo en negro antes que recortar el logo. */
@media (max-aspect-ratio: 5/12) {
  .stage--reveal .stage__video {
    object-fit: contain;
    background: var(--black);
  }

  .stage--reveal .stage__media::before,
  .stage--reveal .stage__media::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    height: 18%;
    z-index: 1;
    pointer-events: none;
  }

  .stage--reveal .stage__media::before {
    top: 0;
    background: linear-gradient(to bottom, var(--black) 10%, transparent);
  }

  .stage--reveal .stage__media::after {
    bottom: 0;
    background: linear-gradient(to top, var(--black) 10%, transparent);
  }
}

/* sin sitio para los índices verticales */
@media (max-width: 1180px) {
  .index { display: none; }
}

@media (max-width: 900px) {
  :root { --rail: 0px; }

  /* una sola capa: decodificar dos videos a la vez es caro en movil
     y sin puntero el paralaje de capas casi no se aprecia */
  .depth .depth__bg { display: none; }

  .depth .depth__fg {
    -webkit-mask-image: none;
    mask-image: none;
    filter: saturate(1.15) contrast(1.05) brightness(1.1);
  }

  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .rail { display: none; }

  .section {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

  .footer {
    padding-left: var(--gutter);
    justify-content: center;
    text-align: center;
  }

  .pillars__list { grid-template-columns: 1fr; gap: 2.25rem; }

  /* la interfaz del escenario se reordena hacia abajo */
  .stage__center {
    top: auto;
    bottom: clamp(11rem, 30vh, 16rem);
    translate: -50% 0;
    width: min(92vw, 560px);
  }

  .stage--face .stage__center { bottom: clamp(12rem, 32vh, 17rem); }

  .stage__logo-space { height: 0; }

  /* en portrait el logo lo pinta el video, así que el bloque
     central se coloca por debajo de él */
  .stage--reveal .stage__eyebrow { margin-bottom: .75rem; }

  .bignum {
    top: clamp(4.5rem, 11vh, 6rem);
    bottom: auto;
    left: auto;
    right: clamp(1.25rem, 5vw, 2rem);
    gap: .75rem;
  }

  .bignum span {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
    margin-right: 0;
    opacity: .85;
  }

  .bignum svg { width: 16px; height: 16px; }

  .dots { display: none; }

  .brief {
    left: clamp(1.25rem, 5vw, 2rem);
    right: clamp(1.25rem, 5vw, 2rem);
    bottom: clamp(4.5rem, 11vh, 6rem);
    max-width: none;
    gap: .9rem;
  }

  .brief__go { width: 40px; height: 40px; }

  .stage__foot {
    left: clamp(1.25rem, 5vw, 2rem);
    right: clamp(1.25rem, 5vw, 2rem);
    gap: 1rem;
  }

  .progress { max-width: none; }
  .next__label { display: none; }
}

@media (max-width: 560px) {
  .stage__center { bottom: clamp(12rem, 32vh, 15rem); }
  .brief__body { font-size: .7rem; }
  .stage__rings span:nth-child(3) { display: none; }
}

/* pantallas cortas en horizontal */
@media (max-height: 560px) and (orientation: landscape) {
  .stage__logo-space { height: clamp(60px, 16vh, 110px); }
  .brief { bottom: clamp(4rem, 12vh, 5rem); max-width: 300px; }
  .index { display: none; }
}

/* ============================================================
   ACCESIBILIDAD
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }

  .reveal { opacity: 1; translate: none; }

  .stage--reveal .stage__eyebrow,
  .stage--reveal .stage__sub { opacity: 1; translate: none; }
}

:where(a, button):focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
  border-radius: 2px;
}
