/* ==========================================================================
   Aitheria · concepto "sala de proyección"
   Misma marca (papel, tinta, Gunken), mismo contenido. Nuevo lenguaje de movimiento:
   el scroll dirige la película. Animaciones ligadas al scroll con CSS nativo
   (animation-timeline) y respaldo estático donde el navegador no lo soporta.
   ========================================================================== */

@font-face {
  font-family: "Gunken";
  src: url("../fonts/gunken.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #F6F4EE;
  --paper-2: #EDEAE2;
  --ink: #0B0D13;
  --ink-70: rgba(11, 13, 19, .70);
  --ink-55: rgba(11, 13, 19, .55);
  --ink-12: rgba(11, 13, 19, .12);
  --paper-80: rgba(246, 244, 238, .80);
  --paper-55: rgba(246, 244, 238, .55);
  --paper-16: rgba(246, 244, 238, .16);

  --f-display: "Gunken", "Avenir Next", "Avenir", system-ui, sans-serif;
  --f-body: "Avenir Next", "Avenir", "Nunito Sans", system-ui, sans-serif;

  /* Escala tipográfica: una sola por rol en toda la página
     hero ≥ cierre > h2 > número de paso > h3 > lead > cuerpo > apoyo > etiqueta */
  --t-hero: clamp(34px, 4.2vw, 64px);
  --t-close: clamp(34px, 4.2vw, 64px);
  --t-h2: clamp(30px, 3.4vw, 52px);
  --t-num: clamp(30px, 2.8vw, 42px);
  --t-h3: clamp(20px, 1.7vw, 26px);
  --t-lead: 18px;
  --t-body: 16px;
  --t-small: 14px;
  --t-micro: 13px;

  --m: clamp(16px, 4vw, 56px);
  --gutter: 24px;
  --nav-h: 68px;

  /* Curvas fuertes (Emil Kowalski): salida rápida, movimiento en pantalla controlado */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
p { text-wrap: pretty; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.display {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: lowercase;
  line-height: 1.06;
  text-wrap: balance;
}
.display .comma { font-family: var(--f-body); font-weight: 500; }
.label { font-size: var(--t-small); color: var(--ink-55); }
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--m); }

/* ── Botones ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--ghost { color: var(--paper); border-color: var(--paper-16); }
@media (hover: hover) and (pointer: fine) {
  .btn--ink:hover { background: transparent; color: var(--ink); }
  .btn--paper:hover { background: #fff; border-color: #fff; }
  .btn--ghost:hover { border-color: var(--paper); }
  .btn .arrow { transition: transform 200ms var(--ease-out); }
  .btn:hover .arrow { transform: translateX(3px); }
}

/* ── Navegación ────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  color: var(--ink);
  transition: color 300ms ease, background-color 300ms ease;
}
.nav.is-dark { color: var(--paper); }
.nav { background: rgba(246, 244, 238, .86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.nav.is-dark { background: rgba(11, 13, 19, .80); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand svg:first-child { width: 26px; height: 26px; }
.brand svg:last-child { width: 92px; height: auto; }
.nav__links { display: flex; gap: clamp(20px, 2.4vw, 36px); font-size: 14px; font-weight: 500; }
.nav__links a { opacity: .7; transition: opacity 200ms ease; }
.nav__links a:hover { opacity: 1; }
.nav__end { display: flex; align-items: center; gap: 18px; }
.lang { display: inline-flex; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.lang button { opacity: .4; min-width: 32px; min-height: 44px; padding: 0 4px; }
.lang button[aria-pressed="true"] { opacity: 1; }
.nav .btn { min-height: 38px; padding: 0 16px; font-size: 13px; }
.nav.is-dark .btn--ink { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.nav.is-over { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--paper); }
.nav.is-over .btn--ink { background: transparent; color: var(--paper); border-color: rgba(246, 244, 238, .4); }
@media (hover: hover) and (pointer: fine) { .nav.is-over .btn--ink:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); } }
.nav__toggle { display: none; width: 44px; height: 44px; margin-right: -10px; align-items: center; justify-content: center; }
.nav__toggle span { position: relative; display: block; width: 22px; height: 1px; background: currentColor; }
.nav__toggle span::before,
.nav__toggle span::after { content: ""; position: absolute; left: 0; width: 22px; height: 1px; background: currentColor; transition: transform 300ms var(--ease-out), top 300ms var(--ease-out); }
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after { top: 7px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Menú móvil: cortina de tinta que baja desde arriba */
.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--ink);
  color: var(--paper);
  padding: calc(var(--nav-h) + 32px) var(--m) calc(32px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 500ms var(--ease-in-out), visibility 0s linear 500ms;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 500ms var(--ease-in-out), visibility 0s; }
.menu__links { display: flex; flex-direction: column; }
.menu__links a { display: flex; align-items: baseline; gap: 16px; font-size: var(--t-h2); padding-block: 14px; border-bottom: 1px solid var(--paper-16); }
.menu__num { font-family: var(--f-body); font-size: 13px; color: var(--paper-55); }
.menu__foot { display: flex; flex-direction: column; gap: 20px; }
.menu__foot .lang { font-size: 14px; }
.menu__foot .btn { justify-content: center; }
body.menu-open { overflow: hidden; }
body.menu-open .nav { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--paper); }

/* ── 1 · Hero: foto a sangre (como la web publicada); el texto se desvanece al hacer scroll ── */

.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  max-height: 1100px;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  isolation: isolate;
  view-timeline: --hero block;
}
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease-in-out); }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7.5s linear; }
.slide.is-active img { transform: scale(1); }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,13,19,.38) 0%, rgba(11,13,19,0) 16%),
    linear-gradient(0deg, rgba(11,13,19,.62) 0%, rgba(11,13,19,.18) 30%, rgba(11,13,19,0) 48%),
    linear-gradient(90deg, rgba(11,13,19,.32) 0%, rgba(11,13,19,0) 45%);
}

.mono { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.hero__top { position: absolute; top: calc(var(--nav-h) + 28px); left: 0; right: 0; }
.hero__top .wrap { display: flex; justify-content: space-between; gap: 24px; color: var(--paper-80); }

.hero__content { position: absolute; left: 0; right: 0; bottom: clamp(92px, 11vh, 120px); }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 24px; align-items: end; text-shadow: 0 1px 18px rgba(11, 13, 19, .28); }
.hero__grid .btn { text-shadow: none; }
.hero__title { grid-column: 1 / span 7; font-size: var(--t-hero); line-height: 1.02; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; white-space: nowrap; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); transition: transform .8s var(--ease-out); }
.hero.is-ready .hero__title .line > span { transform: none; }
.hero.is-ready .hero__title .line:nth-child(2) > span { transition-delay: .08s; }
.hero__aside {
  grid-column: 1 / span 5;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .7s var(--ease-out) .2s, transform .7s var(--ease-out) .2s;
}
.hero.is-ready .hero__aside { opacity: 1; transform: none; }
.hero__aside p { color: var(--paper-80); font-size: var(--t-body); max-width: 30em; }

.hero__index { position: absolute; left: 0; right: 0; bottom: 40px; }
.hero__index ol { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.hero__index button { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 10px; color: var(--paper-55); transition: color 300ms ease; }
.hero__index button:hover,
.hero__index button[aria-current="true"] { color: var(--paper); }
.hero__index .bar { position: relative; height: 1px; background: var(--paper-16); overflow: hidden; }
.hero__index .bar i { position: absolute; inset: 0; background: var(--paper); transform: scaleX(0); transform-origin: left; }
.hero__index button[aria-current="true"] .bar i { animation: progress 5200ms linear forwards; }
.hero.is-paused .hero__index button[aria-current="true"] .bar i { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }

/* Al hacer scroll: el texto se desvanece, sube un poco y se desenfoca; la foto se queda */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .fade-on-scroll { animation: fade-away linear both; animation-timeline: --hero; animation-range: exit 0% exit 45%; }
    .hero__index.fade-on-scroll { animation-range: exit 0% exit 25%; }
  }
}
@keyframes fade-away { to { opacity: 0; transform: translateY(-48px); filter: blur(6px); } }

/* ── 2 · Portafolio: película horizontal guiada por el scroll ─────────── */

.reel { position: relative; height: calc(100vh + var(--distance, 2400px)); view-timeline: --reel block; background: var(--paper); }
.reel__stage { position: sticky; top: 0; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.reel__track { display: flex; align-items: flex-start; gap: clamp(20px, 2.4vw, 40px); padding-inline: var(--m); width: max-content; will-change: transform; }

.reel__intro { width: min(40vw, 560px); flex: none; display: flex; flex-direction: column; gap: 16px; align-self: center; padding-right: clamp(24px, 4vw, 80px); }
.reel__intro h2 { font-size: var(--t-h2); }

.shot { flex: none; display: flex; flex-direction: column; gap: 12px; }
.shot__media { height: min(62vh, 640px); overflow: hidden; background: var(--paper-2); }
.shot--wide .shot__media { aspect-ratio: 3 / 2; }
.shot--tall .shot__media { aspect-ratio: 3 / 4; }
.shot__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .shot:hover .shot__media img { transform: scale(1.03); } }
.shot figcaption { display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: var(--ink-55); }
.shot figcaption .display { font-size: var(--t-h3); color: var(--ink); }

.reel__progress { margin: 40px var(--m) 0; height: 1px; background: var(--ink-12); position: relative; }
.reel__progress i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Rango exacto en píxeles (lo calcula el JS): empieza cuando la sección toca el borde superior y dura lo que mide la tira */
    .reel__track { animation: pan linear both; animation-timeline: --reel; animation-range: contain; }
    .reel__progress i { animation: grow linear both; animation-timeline: --reel; animation-range: contain; }
  }
}
@keyframes pan { to { transform: translateX(calc(-1 * var(--distance, 2400px))); } }
@keyframes grow { to { transform: scaleX(1); } }

/* Sin scroll-driven (o en celular): galería con deslizamiento horizontal nativo */
.reel.is-static { height: auto !important; }
.reel.is-static .reel__track { animation: none; transform: none; }
.reel.is-static .reel__stage { position: static; height: auto; padding-block: 96px; }
.reel.is-static .reel__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
.reel.is-static .reel__track::-webkit-scrollbar { display: none; }
.reel.is-static .shot,
.reel.is-static .reel__intro { scroll-snap-align: start; }
.reel.is-static .reel__track { scroll-padding-inline: var(--m); }
.reel.is-static .reel__progress { display: none; }

/* ── Diseño gráfico · antes y después ─────────────────────────────────── */

.design { padding: clamp(96px, 10vw, 152px) 0; }
.design__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-bottom: 48px; }
.design__head h2 { grid-column: 1 / span 8; font-size: var(--t-h2); }
.cases { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 48px; }
.case { grid-column: span 5; display: flex; flex-direction: column; gap: 14px; }
.case:first-child { grid-column: 2 / span 5; }
.case__head { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.case__head strong { font-weight: 600; }
.case__head span { color: var(--ink-55); }

.ba { --pos: 50%; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: var(--paper); pointer-events: none; }
.ba__handle { position: absolute; top: 50%; left: 0; width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; transition: transform 160ms var(--ease-out); }
.ba:active .ba__handle { transform: translate(-50%, -50%) scale(.92); }
.ba__handle svg { width: 20px; height: 20px; }
.ba input { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.ba:has(input:focus-visible) { outline: 1px solid var(--ink); outline-offset: 4px; }
.case__actions { display: flex; justify-content: space-between; }
.chip { font-size: var(--t-micro); white-space: nowrap; padding: 8px 14px; border: 1px solid var(--ink-12); border-radius: 999px; color: var(--ink-70); transition: transform 160ms var(--ease-out), border-color 200ms ease, color 200ms ease; }
.chip:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--ink); color: var(--ink); } }

/* ── 3 · Video: el cuadro se expande al entrar ────────────────────────── */

.film { background: var(--ink); color: var(--paper); padding: clamp(48px, 6vw, 96px) 0; view-timeline: --film block; }
.player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.player video { width: 100%; height: 100%; object-fit: cover; }
.player__sound { position: absolute; right: 20px; bottom: 20px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--paper); border: 1px solid rgba(246,244,238,.4); background: rgba(11,13,19,.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform 160ms var(--ease-out); }
.player__sound:active { transform: scale(.94); }
.player__sound svg { width: 18px; height: 18px; }
.player__sound .on { display: none; }
.player__sound[aria-pressed="true"] .on { display: block; }
.player__sound[aria-pressed="true"] .off { display: none; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .player { animation: film-open linear both; animation-timeline: --film; animation-range: entry 10% cover 45%; }
  }
}
@keyframes film-open { from { clip-path: inset(10% 14% 10% 14%); } to { clip-path: inset(0 0 0 0); } }

/* ── Servicios: ventana fija a la izquierda; la foto cambia dentro del mismo cuadro ── */

.services { padding: clamp(96px, 10vw, 152px) 0; }
.services__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-bottom: 56px; }
.services__head .label { grid-column: 1 / span 3; padding-top: 14px; }
.services__head h2 { grid-column: 4 / -1; font-size: var(--t-h2); }
.services__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }

.svc-window {
  grid-column: 1 / span 4;
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-2);
}
.svc-window img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 500ms var(--ease-out), transform 900ms var(--ease-out);
}
.svc-window img.is-current { opacity: 1; transform: none; }
/* Las piezas de diseño se muestran completas, nunca recortadas */
.svc-window img.is-piece { object-fit: contain; }

.svc-list { grid-column: 6 / -1; border-top: 1px solid var(--ink); }
.svc {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: var(--gutter);
  row-gap: 12px;
  padding: clamp(28px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--ink-12);
  min-height: 26vh;
  cursor: default;
}
.svc__num { grid-row: 1 / span 2; font-size: 14px; color: var(--ink-55); padding-top: 6px; }
.svc__title { font-size: var(--t-h3); }
.svc__text { color: var(--ink-70); max-width: 34em; }
.svc__thumb { display: none; }
/* El activo manda; los demás se atenúan (solo en pantallas con ventana) */
.svc > :not(.svc__thumb) { transition: opacity 300ms ease; }
.svc-list.has-active .svc:not(.is-active) > :not(.svc__thumb) { opacity: .32; }

/* ── Proceso ───────────────────────────────────────────────────────────── */

.process { background: var(--paper-2); padding: clamp(96px, 10vw, 152px) 0; view-timeline: --process block; }
.process__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-bottom: 64px; }
.process__head .label { grid-column: 1 / span 3; padding-top: 14px; }
.process__head h2 { grid-column: 4 / -1; font-size: var(--t-h2); }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); padding-top: 40px; }
.steps__line { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--ink-12); }
.steps__line i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(1); }
.step { display: flex; flex-direction: column; gap: 12px; }
.step__num { font-family: var(--f-display); font-size: var(--t-num); line-height: .9; }
.step h3 { font-size: var(--t-h3); }
.step p { color: var(--ink-70); max-width: 26em; }
.process__note { margin-top: 72px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.process__note p { grid-column: 4 / span 7; font-size: var(--t-lead); font-style: italic; color: var(--ink-70); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .steps__line i { transform: scaleX(0); animation: grow linear both; animation-timeline: --process; animation-range: entry 40% cover 55%; }
  }
}

/* ── Contacto ──────────────────────────────────────────────────────────── */

.contact { background: var(--ink); color: var(--paper); padding: clamp(112px, 12vw, 184px) 0 clamp(64px, 8vw, 112px); }
.contact .label { color: var(--paper-55); margin-bottom: 20px; display: block; }
.contact h2 { font-size: var(--t-close); line-height: 1.04; max-width: 16em; }
.contact__lead { margin-top: 28px; max-width: 36em; color: var(--paper-80); font-size: var(--t-lead); }
.contact__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.contact__ig { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--paper-16); color: var(--paper-80); transition: border-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.contact__ig:active { transform: scale(.95); }
@media (hover: hover) and (pointer: fine) { .contact__ig:hover { border-color: var(--paper); color: var(--paper); } }
.contact__ig svg { width: 20px; height: 20px; }
.magnetic { transition: transform 400ms var(--ease-out); }

/* ── Footer: la palabra sube desde abajo ──────────────────────────────── */

.footer { background: var(--ink); color: var(--paper); padding: 0 0 28px; overflow: hidden; view-timeline: --footer block; }
.footer__word { width: 100%; height: auto; margin-bottom: 24px; }
.footer__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--t-micro); color: var(--paper-55); }
.footer__row nav { display: flex; gap: 24px; }
.footer__row a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__row a:hover { color: var(--paper); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .footer__word { animation: rise linear both; animation-timeline: --footer; animation-range: entry 0% entry 90%; }
  }
}
@keyframes rise { from { transform: translateY(35%); clip-path: inset(0 0 100% 0); } to { transform: none; clip-path: inset(0 0 0 0); } }

/* ── Aparición al entrar (secciones sin scroll-driven) ────────────────── */

.rise { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.rise.is-in { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .nav__links, .nav__cta, .nav__end > .lang { display: none; }
  .nav__toggle { display: inline-flex; }
  .hero__title { grid-column: 1 / span 10; }
  .hero__aside { grid-column: 1 / span 8; }
  .svc-window { grid-column: 1 / span 5; }
  .svc-list { grid-column: 6 / -1; }
}

@media (max-width: 760px) {
  :root {
    --gutter: 16px;
    --nav-h: 60px;
    --t-close: 28px;
    --t-h2: 26px;
    --t-num: 24px;
    --t-h3: 20px;
    --t-lead: 16px;
  }
  .hero__title, .hero__aside { grid-column: 1 / -1; }
  .hero__title { font-size: clamp(22px, 7.4vw, 34px); }
  .hero__content { bottom: 64px; }
  .hero__index { bottom: 28px; }
  .hero__index ol { gap: 6px; }
  .hero__index .label { display: none; }
  .hero__index button { padding-block: 20px; margin-block: -20px; }
  .hero__top .wrap > :last-child { display: none; }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(11,13,19,.4) 0%, rgba(11,13,19,0) 16%),
      linear-gradient(0deg, rgba(11,13,19,.78) 0%, rgba(11,13,19,.35) 38%, rgba(11,13,19,0) 60%);
  }

  .shot__media { height: min(54vh, 460px); }
  .reel__intro { width: 86vw; padding-right: 16px; }

  .design__head h2 { grid-column: 1 / -1; }
  .case, .case:first-child { grid-column: 1 / -1; }

  .services__head .label, .services__head h2,
  .process__head .label, .process__head h2 { grid-column: 1 / -1; }
  .services__head h2, .process__head h2 { margin-top: 8px; }
  /* Servicios: la misma ventana fija, arriba; la lista pasa por debajo */
  .services__body { display: block; }
  .svc-window { position: sticky; top: calc(var(--nav-h) + 12px); z-index: 2; aspect-ratio: auto; height: 34svh; margin-bottom: 8px; box-shadow: 0 16px 24px -8px var(--paper); }
  .svc { grid-template-columns: 32px 1fr; row-gap: 8px; min-height: 30svh; }
  .svc-list { padding-bottom: 22svh; }
  .svc__num { grid-row: 1 / span 2; }

  .steps { grid-template-columns: 1fr; row-gap: 40px; }
  .process__note p { grid-column: 1 / -1; }
  .contact__actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .rise { opacity: 1; transform: none; }
  .slide img { transform: none; }
  .hero__title .line > span, .hero__aside { transform: none; opacity: 1; }
}
