/* ==========================================================================
   Iván Roldán — v2
   Concepto: la web como una sala de proyección. Negro de cine, texto hueso,
   un único acento ámbar (el piloto de REC y el cabezal de reproducción).
   Una sección clara (servicios + fotogramas) hace de "mesa de luz".
   ========================================================================== */

:root {
  color-scheme: dark;
  --black: #000000;
  --ink: #F2F0EB;          /* texto sobre negro */
  --mute: #8E8C86;         /* texto secundario */
  --line: rgba(242, 240, 235, .14);
  --panel: #0E0E0E;        /* superficies sobre negro */
  --paper: #E6E7E3;        /* mesa de luz */
  --paper-ink: #0D0D0C;
  --paper-mute: #5E5F5B;
  --paper-line: rgba(13, 13, 12, .14);
  --amber: #F7AD4B;        /* acento: REC, cabezal, foco */

  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 2.6vw, 40px);
  --max: 1440px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.645, .045, .355, 1);

  --bg: var(--black);
  --fg: var(--ink);
  --fg-2: var(--mute);
  --rule: var(--line);
}

/* Cuando una sección clara ocupa la pantalla, toda la página cambia de luz */
body.is-light { --bg: var(--paper); --fg: var(--paper-ink); --fg-2: var(--paper-mute); --rule: var(--paper-line); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--display);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  overflow-x: clip;
  transition: background-color .6s var(--ease-io), color .6s var(--ease-io);
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--amber); color: #000; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--amber); color: #000; padding: .7rem 1rem; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ----- Fondo: luz de proyector + grano de película ----- */
.ambient { position: fixed; inset: -10vh -10vw; z-index: -1; pointer-events: none; transform: translate3d(0, var(--amb-y, 0px), 0); transition: opacity .8s var(--ease-io); }
.ambient i { position: absolute; display: block; border-radius: 50%; will-change: transform; }
.ambient__a { width: 70vmax; height: 70vmax; left: -18vmax; top: -22vmax; background: radial-gradient(closest-side, rgba(247, 173, 75, .16), rgba(247, 173, 75, .05) 45%, transparent 72%); animation: drift-a 38s ease-in-out infinite alternate; }
.ambient__b { width: 80vmax; height: 80vmax; right: -30vmax; top: 18vh; background: radial-gradient(closest-side, rgba(64, 118, 140, .2), rgba(64, 118, 140, .06) 50%, transparent 74%); animation: drift-b 46s ease-in-out infinite alternate; }
.ambient__c { width: 60vmax; height: 60vmax; left: 20vw; bottom: -30vmax; background: radial-gradient(closest-side, rgba(150, 62, 44, .16), rgba(150, 62, 44, .04) 50%, transparent 74%); animation: drift-c 52s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(22vw, 18vh) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-26vw, -14vh) scale(.9); } }
@keyframes drift-c { to { transform: translate(-18vw, -22vh) scale(1.2); } }
.grain { position: fixed; inset: -50%; z-index: 40; pointer-events: none; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%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 1s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); } 60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(-2%, 6%); } }
body.is-light .ambient { opacity: 0; }
body.is-light .grain { opacity: .05; }

/* ----- Tipografía base ----- */
.section-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.5rem var(--gutter); align-items: end; padding: 0 var(--gutter); max-width: var(--max); margin: 0 auto; }
.section-head h2, .reels__info h2, .strip__head h2 {
  font-weight: 500; font-size: clamp(2.6rem, 7.4vw, 7.25rem); line-height: .92; letter-spacing: -.045em; text-wrap: balance;
}
.section-head p { color: var(--fg-2); max-width: 40ch; justify-self: end; transition: color .6s var(--ease-io); }

.mask-lines .line { display: block; overflow: clip; padding-bottom: .06em; margin-bottom: -.06em; }
.mask-lines .line > span { display: block; }

.link-arrow { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--mono); font-size: .78rem; text-decoration: none; padding: .7rem 0; }
.link-arrow::after { content: ""; width: 1.6rem; height: 1px; background: currentColor; transition: width .3s var(--ease); }
.link-arrow:hover::after { width: 2.6rem; }

.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.4rem; border-radius: 999px; border: 1px solid var(--rule); background: transparent; text-decoration: none; font-weight: 600; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease); }
.pill:hover { border-color: currentColor; }
.pill:active { transform: scale(.97); }
.pill:disabled { opacity: .35; cursor: not-allowed; }
.pill--accent { background: var(--amber); color: #000; border-color: var(--amber); }
.pill--accent:hover { background: var(--ink); border-color: var(--ink); }

/* ==========================================================================
   Carga (solo primera visita, solo con JS)
   ========================================================================== */
.loader { display: none; }
.js .loader.is-on {
  display: grid; position: fixed; inset: 0; z-index: 90; background: #000; color: var(--ink);
  grid-template-rows: 1fr auto 1fr; padding: var(--gutter); font-family: var(--mono); font-size: .8rem;
}
.loader__rec { display: flex; align-items: center; gap: .5rem; align-self: start; }
.loader__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); animation: blink 1s steps(2) infinite; }
.loader__name { font-family: var(--display); font-weight: 500; letter-spacing: -.045em; font-size: clamp(2.4rem, 9vw, 8rem); line-height: 1; justify-self: center; overflow: clip; }
.loader__count { align-self: end; justify-self: end; font-variant-numeric: tabular-nums; }
@keyframes blink { 50% { opacity: 0; } }

/* ==========================================================================
   Navegación: cápsula de cristal + visor
   ========================================================================== */
.nav {
  position: fixed; z-index: 50; top: calc(12px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%);
  width: min(720px, calc(100% - 24px)); display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 10px 10px 10px 18px; border-radius: 12px; color: #fff;
  background: rgba(40, 40, 40, .42); -webkit-backdrop-filter: blur(28px) saturate(140%); backdrop-filter: blur(28px) saturate(140%);
  font-family: var(--mono); font-size: .74rem; letter-spacing: -.02em; text-transform: uppercase;
  transition: transform .5s var(--ease), opacity .3s;
}
.nav.is-hidden { transform: translate(-50%, calc(-100% - 24px)); }
.nav__brand { position: relative; text-decoration: none; padding: 6px 0; white-space: nowrap; min-width: 9.5rem; }
.nav__full, .nav__short { display: block; transition: opacity .3s var(--ease), transform .4s var(--ease); }
.nav__short { position: absolute; left: 0; top: 6px; opacity: 0; transform: translateY(60%); }
.nav__short i { font-style: normal; opacity: .5; }
.nav__short b { font-weight: 400; color: var(--amber); }
.nav.is-compact .nav__full { opacity: 0; transform: translateY(-60%); }
.nav.is-compact .nav__short { opacity: 1; transform: none; }
.nav__links { display: flex; gap: 2px; }
.nav__links a { position: relative; text-decoration: none; padding: 7px 9px; border-radius: 6px; }
.nav__links a::before { content: ""; position: absolute; inset: 0; border-radius: 6px; background: rgba(0, 0, 0, .5); opacity: 0; transform: scale(.88); transition: opacity .2s var(--ease-io), transform .2s var(--ease-io); z-index: -1; }
.nav__links a:hover::before, .nav__links a:focus-visible::before { opacity: 1; transform: scale(1); }
.nav__links a .ch { display: inline-block; min-width: .62em; text-align: center; }
.nav__links a .ch.is-scrambling { color: var(--amber); }

/* Visor: cuatro esquinas que encuadran al pasar el cursor */
.viewfinder { position: relative; width: 40px; height: 40px; flex: 0 0 40px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.viewfinder::before { content: ""; position: absolute; inset: 4px; border-radius: 6px; background: rgba(0, 0, 0, .5); opacity: 0; transform: scale(.88); transition: opacity .2s var(--ease-io), transform .2s var(--ease-io); }
.viewfinder span { position: absolute; width: 7px; height: 7px; border: 1.5px solid currentColor; transition: transform .25s var(--ease-io), border-color .2s; }
.viewfinder span:nth-child(1) { top: 11px; left: 11px; border-right: 0; border-bottom: 0; }
.viewfinder span:nth-child(2) { top: 11px; right: 11px; border-left: 0; border-bottom: 0; }
.viewfinder span:nth-child(3) { bottom: 11px; left: 11px; border-right: 0; border-top: 0; }
.viewfinder span:nth-child(4) { bottom: 11px; right: 11px; border-left: 0; border-top: 0; }
.viewfinder:hover::before, .viewfinder:focus-visible::before { opacity: 1; transform: scale(1); }
.viewfinder:hover span:nth-child(1) { transform: translate(3px, 3px); }
.viewfinder:hover span:nth-child(2) { transform: translate(-3px, 3px); }
.viewfinder:hover span:nth-child(3) { transform: translate(3px, -3px); }
.viewfinder:hover span:nth-child(4) { transform: translate(-3px, -3px); }
.viewfinder[aria-expanded="true"] span { border-color: var(--amber); }
.viewfinder[aria-expanded="true"] span:nth-child(1) { transform: translate(5px, 5px); }
.viewfinder[aria-expanded="true"] span:nth-child(2) { transform: translate(-5px, 5px); }
.viewfinder[aria-expanded="true"] span:nth-child(3) { transform: translate(5px, -5px); }
.viewfinder[aria-expanded="true"] span:nth-child(4) { transform: translate(-5px, -5px); }

.menu { position: fixed; inset: 0; z-index: 45; background: #000; color: var(--ink); display: grid; grid-template-rows: 1fr auto; padding: calc(96px + env(safe-area-inset-top, 0px)) var(--gutter) calc(var(--gutter) + env(safe-area-inset-bottom, 0px)); }
.menu__links { display: flex; flex-direction: column; justify-content: center; }
.menu__links a { font-size: clamp(2.2rem, 7vw, 5rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.04; text-decoration: none; width: fit-content; transition: color .2s; }
.menu__links a:hover { color: var(--amber); }
.menu__foot { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-family: var(--mono); font-size: .78rem; }
.menu__foot a { padding: .6rem 0; text-decoration: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; color: #fff; height: 200svh; }
.hero__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #000;
  --fx: 50vw; --fy: 46svh; --fw: min(34vw, 560px); --fh: min(22vw, 360px); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Paneles de desenfoque alrededor del rectángulo a foco */
.hero__blur { position: absolute; z-index: 1; background: rgba(0, 0, 0, .28); -webkit-backdrop-filter: blur(18px) saturate(.8); backdrop-filter: blur(18px) saturate(.8); pointer-events: none; }
.hero__blur--t { left: 0; right: 0; top: 0; height: calc(var(--fy) - var(--fh) / 2); }
.hero__blur--b { left: 0; right: 0; bottom: 0; top: calc(var(--fy) + var(--fh) / 2); }
.hero__blur--l { left: 0; top: calc(var(--fy) - var(--fh) / 2); height: var(--fh); width: calc(var(--fx) - var(--fw) / 2); }
.hero__blur--r { right: 0; top: calc(var(--fy) - var(--fh) / 2); height: var(--fh); left: calc(var(--fx) + var(--fw) / 2); }
.focus { position: absolute; z-index: 2; left: calc(var(--fx) - var(--fw) / 2); top: calc(var(--fy) - var(--fh) / 2); width: var(--fw); height: var(--fh); pointer-events: none; font-family: var(--mono); font-size: .64rem; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); transition: opacity .3s; }
.focus__c { position: absolute; width: 18px; height: 18px; border: 1.5px solid #fff; }
.focus__c--tl { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.focus__c--tr { right: -1px; top: -1px; border-left: 0; border-bottom: 0; }
.focus__c--bl { left: -1px; bottom: -1px; border-right: 0; border-top: 0; }
.focus__c--br { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.focus__point { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 1.5px solid var(--amber); border-radius: 50%; animation: afLock 2.4s var(--ease) infinite; }
.focus__point::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: var(--amber); }
@keyframes afLock { 0%, 100% { transform: scale(1); opacity: 1; } 45% { transform: scale(1.5); opacity: .5; } 60% { transform: scale(.9); opacity: 1; } }
.focus__top, .focus__bottom { position: absolute; left: 0; right: 0; display: flex; justify-content: space-between; gap: .8rem; white-space: nowrap; }
.focus__top { bottom: calc(100% + 8px); }
.focus__bottom { top: calc(100% + 8px); }
.focus b { font-weight: 500; }
.rec { display: inline-flex; align-items: center; gap: .4rem; }
.rec i { width: 7px; height: 7px; border-radius: 50%; background: #ff4b3a; box-shadow: 0 0 6px #ff4b3a; animation: blink 1.2s steps(2) infinite; }
.tc { font-variant-numeric: tabular-nums; }
.hero.is-wide .focus { opacity: 0; }
.hero__copy { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); display: grid; gap: 1.2rem; pointer-events: none; }
.hero__copy a { pointer-events: auto; }
.hero__name { font-weight: 500; letter-spacing: -.055em; line-height: .82; font-size: clamp(3.6rem, 12.5vw, 13.5rem); text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero__foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 1rem var(--gutter); align-items: end; }
.hero__role { font-family: var(--mono); font-size: .78rem; }
.hero__lede { max-width: 42ch; font-size: clamp(1rem, 1.25vw, 1.2rem); }
.hero__scroll { font-family: var(--mono); font-size: .78rem; text-decoration: none; padding: .7rem 0; display: inline-flex; gap: .6rem; align-items: center; }
.hero__scroll::before { content: ""; width: 0; height: 0; border-left: 7px solid var(--amber); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }

/* ==========================================================================
   Marcas: cinta lateral infinita
   ========================================================================== */
.brands { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem var(--gutter); align-items: center; padding: clamp(2rem, 4vw, 3rem) 0 clamp(2rem, 4vw, 3rem) var(--gutter); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.brands__label { font-family: var(--mono); font-size: .74rem; color: var(--fg-2); white-space: nowrap; }
.brands__marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brands__track { display: flex; width: max-content; animation: marquee var(--marquee-dur, 34s) linear infinite; }
.brands__marquee:hover .brands__track { animation-play-state: paused; }
.brands__set { list-style: none; margin: 0; padding: 0 clamp(1.5rem, 3vw, 3rem) 0 0; display: flex; align-items: center; gap: clamp(2.5rem, 6vw, 6rem); }
.brands__set li { flex: 0 0 auto; }
.brands__set img { height: clamp(24px, 2.6vw, 38px); width: auto; opacity: .7; transition: opacity .25s; }
.brands__set img:hover { opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Sobre mí
   ========================================================================== */
.about { padding: clamp(4rem, 10vw, 9rem) var(--gutter); }
.about__pin { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: var(--gutter); align-items: center; min-height: 80svh; }
.about__text { font-size: clamp(1.7rem, 3.6vw, 3.4rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 450; text-wrap: pretty; }
.about__text .w { transition: opacity .2s; }
.js .about__text.is-scrub .w { opacity: .18; transition: opacity .35s var(--ease); }
.js .about__text.is-scrub .w.is-lit { opacity: 1; }
.about__portrait { margin: 0; justify-self: end; width: min(100%, 420px); }
.about__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; filter: grayscale(.25) contrast(1.05); }
.about__portrait figcaption { font-family: var(--mono); font-size: .72rem; color: var(--fg-2); margin-top: .7rem; }

/* ==========================================================================
   Trabajos: línea de tiempo con cabezal
   ========================================================================== */
.work { padding: clamp(4rem, 8vw, 7rem) 0 clamp(4rem, 8vw, 7rem); border-top: 1px solid var(--rule); }
.timeline { position: relative; max-width: var(--max); margin: clamp(2rem, 4vw, 3rem) auto 0; padding: 0 var(--gutter); display: grid; gap: clamp(5rem, 12vw, 11rem); }
.timeline__track { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--rule); }
.timeline__head { position: absolute; z-index: 6; top: 0; left: 50%; width: 1px; height: var(--head, 0px); background: var(--amber); }
.timeline__track, .timeline__head { border-radius: 2px; }
.timeline__head { width: 3px; margin-left: -1px; }
.timeline__track { width: 3px; margin-left: -1px; background: rgba(242, 240, 235, .12); }
.timeline__dot { position: absolute; left: 50%; bottom: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--amber); transform: translate(-50%, 50%); box-shadow: 0 0 0 5px rgba(247, 173, 75, .16), 0 0 24px 4px rgba(247, 173, 75, .35); transition: transform .3s var(--ease); }
.timeline__dot::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--amber); opacity: 0; }
.timeline__head.is-pulse .timeline__dot { animation: dotPop .6s var(--ease); }
.timeline__head.is-pulse .timeline__dot::after { animation: dotRing .9s var(--ease) forwards; }
@keyframes dotPop { 40% { transform: translate(-50%, 50%) scale(1.45); } }
@keyframes dotRing { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(3.2); } }
.timeline__label { position: absolute; z-index: 7; left: 50%; bottom: 0; transform: translate(18px, 50%); box-shadow: 0 6px 18px rgba(0, 0, 0, .45); display: block; overflow: hidden; height: 1.9rem; padding: 0 .7rem; border-radius: 999px; background: rgba(0, 0, 0, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(247, 173, 75, .35); font-family: var(--mono); font-size: .68rem; line-height: 1.8rem; color: var(--ink); white-space: nowrap; opacity: 0; transition: opacity .3s; }
.timeline__head.has-chapter .timeline__label { opacity: 1; }
.timeline__label span { display: block; animation: chapIn .5s var(--ease); }
@keyframes chapIn { from { transform: translateY(100%); opacity: 0; } }
.timeline__chapter { position: absolute; z-index: 5; left: 50%; width: 11px; height: 3px; margin-left: -5px; border-radius: 2px; background: rgba(242, 240, 235, .35); transition: background-color .3s, transform .4s var(--ease); }
.timeline__chapter.is-reached { background: var(--amber); transform: scaleX(1.8); }

.clip { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; gap: 0 var(--gutter); }
.clip__media { display: grid; gap: 10px; text-decoration: none; }
.clip--left .clip__media { grid-column: 1 / span 6; }
.clip--left .clip__meta { grid-column: 8 / span 5; }
.clip--right .clip__media { grid-column: 7 / span 6; grid-row: 1; }
.clip--right .clip__meta { grid-column: 1 / span 5; grid-row: 1; text-align: right; justify-items: end; }
.clip__media--duo { grid-template-columns: 1fr 1fr; align-items: end; }
.clip__media--duo .reveal-media:nth-child(2) { margin-bottom: 18%; }
.clip__media--wide { grid-template-columns: 1.15fr .85fr; align-items: start; }
.clip__media--wide .reveal-media:nth-child(2) { margin-top: 22%; }
.clip__media--single { grid-template-columns: minmax(0, 300px); justify-content: center; }
.clip__media--thumbs { grid-template-columns: 1fr; }
.clip__media--thumbs .reveal-media:nth-child(2) { width: 70%; justify-self: end; margin-top: -14%; }
.reveal-media { display: block; overflow: hidden; border-radius: 4px; background: #111; }
.reveal-media img, .reveal-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.clip__media--duo img, .clip__media--duo video, .clip__media--wide video, .clip__media--wide img, .clip__media--single video { aspect-ratio: 9 / 14; }
.clip__media:hover .reveal-media img, .clip__media:hover .reveal-media video { transform: scale(1.035); }
.clip__meta { display: grid; gap: .9rem; }
.clip__meta h3 { position: relative; font-size: clamp(2.2rem, 5.4vw, 5.25rem); font-weight: 500; letter-spacing: -.05em; line-height: .9; padding-bottom: .18em; opacity: .32; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.clip__meta h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; border-radius: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.16, 1, .3, 1) .1s; }
.clip--right .clip__meta h3::after { transform-origin: right; }
.clip__meta p, .clip__meta .link-arrow { opacity: .45; transition: opacity .6s var(--ease); }
.clip .reveal-media { filter: saturate(.35) brightness(.75); transition: filter .8s var(--ease); }
.clip.is-current .clip__meta h3 { opacity: 1; transform: translateX(.25rem); }
.clip--right.is-current .clip__meta h3 { transform: translateX(-.25rem); }
.clip.is-current .clip__meta h3::after { transform: scaleX(1); }
.clip.is-current .clip__meta p, .clip.is-current .clip__meta .link-arrow { opacity: 1; }
.clip.is-current .reveal-media, .clip.is-past .reveal-media { filter: none; }
.clip.is-past .clip__meta h3 { opacity: .7; }
.clip__meta p { color: var(--fg-2); max-width: 34ch; }
.work__all { text-align: center; margin-top: clamp(4rem, 8vw, 6rem); padding: 0 var(--gutter); }

/* ==========================================================================
   Espiral de trabajos (entrada a Trabajos)
   ========================================================================== */
.helix { position: relative; height: 230svh; margin-top: calc(-1 * clamp(4rem, 8vw, 7rem)); }
.helix__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.helix__stage { position: absolute; inset: 0; perspective: 1700px; perspective-origin: 50% 50%; transform-style: preserve-3d; }
.helix__card { position: absolute; left: 50%; top: 50%; width: clamp(150px, 19vw, 300px); aspect-ratio: 4 / 3; margin: calc(clamp(150px, 19vw, 300px) * -3 / 8) 0 0 calc(clamp(150px, 19vw, 300px) / -2); border-radius: 10px; overflow: hidden; background: #111; box-shadow: 0 24px 50px rgba(0, 0, 0, .5); will-change: transform, opacity; }
.helix__card img, .helix__card video { width: 100%; height: 100%; object-fit: cover; }
.helix__title { position: relative; z-index: 2; text-align: center; display: grid; gap: 1rem; justify-items: center; padding: 0 var(--gutter); pointer-events: none; }
.helix__title h2 { font-weight: 500; font-size: clamp(3.4rem, 12vw, 12rem); line-height: .9; letter-spacing: -.055em; text-shadow: 0 8px 40px rgba(0, 0, 0, .6); }
.helix__title p { color: var(--fg-2); max-width: 36ch; font-family: var(--mono); font-size: .78rem; }
.helix__title.in-stage { position: absolute; left: 50%; top: 50%; width: 100%; transform: translate(-50%, -50%) translateZ(0); }
html:not(.js) .helix, .no-helix .helix { height: auto; margin-top: 0; }
html:not(.js) .helix__pin { position: relative; height: auto; padding: 2rem 0; }
html:not(.js) .helix__stage { display: none; }
.no-helix .helix { height: auto; margin-top: 0; }
.no-helix .helix__pin { position: relative; height: auto; padding: 2rem 0; }
.no-helix .helix__stage { display: none; }
@media (max-width: 900px) {
  .helix { height: 200svh; }
  .helix__card { width: 34vw; margin: -12.75vw 0 0 -17vw; border-radius: 8px; }
}

/* ==========================================================================
   Reels
   ========================================================================== */
.reels { border-top: 1px solid var(--rule); }
/* Texto, columna de miniaturas y reel, juntos y centrados como un solo bloque */
.reels__wrap { max-width: var(--max); margin: 0 auto; min-height: 100svh; padding: clamp(5rem, 8vw, 7rem) var(--gutter); display: grid; grid-template-columns: minmax(0, 30rem) auto auto; justify-content: center; align-items: center; gap: clamp(2rem, 4vw, 4.5rem); }
.reels__info { display: grid; align-content: center; gap: 2rem; }
.reels__info h2 { font-size: clamp(2.6rem, 5.2vw, 5.4rem); }
.reels__info > p { color: var(--fg-2); max-width: 40ch; }
.reels__now { display: grid; gap: .3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.reels__kicker { font-family: var(--mono); font-size: .72rem; color: var(--amber); }
.reels__now strong { font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 500; letter-spacing: -.03em; }
.reels__thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, clamp(64px, 6vw, 92px)); gap: 10px; align-self: center; }
.reels__thumbs button { display: block; transition: transform .3s var(--ease); width: 100%; padding: 0; border: 0; border-radius: 4px; overflow: hidden; background: #111; cursor: pointer; outline-offset: 3px; position: relative; }
.reels__thumbs img { aspect-ratio: 9 / 16; width: 100%; object-fit: cover; opacity: .45; filter: grayscale(.6); transition: opacity .3s, filter .3s, transform .4s var(--ease); }
.reels__thumbs button:hover img, .reels__thumbs .is-active img { opacity: 1; filter: none; }
.reels__thumbs button:hover, .reels__thumbs .is-active { transform: scale(1.04); }
.reels__thumbs .is-active::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px var(--amber); border-radius: 4px; }
.reels__stage { position: relative; display: grid; place-items: center; }
.reels__stage::before { content: ""; position: absolute; inset: 8% -18%; z-index: -1; background: radial-gradient(closest-side, rgba(247, 173, 75, .14), transparent 70%); filter: blur(10px); }
.reels__video { box-shadow: 0 30px 80px rgba(0, 0, 0, .55); height: min(80svh, 820px); width: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: #111; transition: opacity .25s; }
.reels__video.is-swapping { opacity: 0; }

.reels__rail, .reels__dots { display: none; }
.hint-mobile { display: none; }

/* ==========================================================================
   Servicios + fotogramas (mesa de luz)
   ========================================================================== */
.services { padding: clamp(5rem, 10vw, 9rem) 0 clamp(3rem, 6vw, 5rem); }
.services__list { list-style: none; margin: clamp(3rem, 6vw, 5rem) auto 0; padding: 0 var(--gutter); max-width: var(--max); }
.service { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 120px; gap: 1rem var(--gutter); align-items: center; padding: clamp(1.2rem, 2.4vw, 2rem) 0; border-top: 1px solid var(--rule); transition: border-color .6s var(--ease-io); }
.service:last-child { border-bottom: 1px solid var(--rule); }
.service h3 { font-size: clamp(1.6rem, 3.4vw, 3.2rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; transition: transform .35s var(--ease); }
.service p { color: var(--fg-2); }
.service img { width: 120px; height: 80px; object-fit: cover; border-radius: 4px; clip-path: inset(50% 0 50% 0); transition: clip-path .45s var(--ease); justify-self: end; }
.service:hover h3 { transform: translateX(.4rem); }
.service:hover img { clip-path: inset(0 0 0 0); }

.strip { padding: clamp(3rem, 6vw, 5rem) 0 clamp(5rem, 10vw, 8rem); overflow: clip; }
.strip__head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; padding: 0 var(--gutter); max-width: var(--max); margin: 0 auto clamp(2rem, 4vw, 3rem); }
.strip__viewport { overflow: hidden; }
.strip__track { display: flex; align-items: flex-start; gap: 14px; width: max-content; padding-left: var(--gutter); will-change: transform; }
.strip__item { margin: 0; flex: 0 0 auto; overflow: hidden; border-radius: 4px; transition: opacity .35s, filter .35s; }
.strip__item img { height: 100%; width: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.s-tall { height: clamp(260px, 34vw, 480px); aspect-ratio: 2 / 3; }
.s-mid { height: clamp(200px, 26vw, 360px); aspect-ratio: 3 / 4; }
.s-wide { height: clamp(200px, 24vw, 340px); aspect-ratio: 3 / 2; }
.s-low { margin-top: clamp(40px, 6vw, 90px); }
.strip__viewport.is-hovering .strip__item { opacity: .45; filter: grayscale(.5); }
.strip__viewport.is-hovering .strip__item:hover { opacity: 1; filter: none; }
.strip__viewport.is-hovering .strip__item:hover img { transform: scale(1.04); }

/* ==========================================================================
   Mesa de montaje
   ========================================================================== */
.mesa { padding: clamp(5rem, 10vw, 9rem) 0; border-top: 1px solid var(--rule); }
.mesa__grid { max-width: var(--max); margin: clamp(3rem, 6vw, 4.5rem) auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--gutter); align-items: start; }
.mesa__panel { display: grid; gap: 1.6rem; }
.mesa__progress { display: flex; align-items: center; gap: 1rem; font-family: var(--mono); font-size: .72rem; color: var(--fg-2); }
.mesa__progress i { flex: 1; height: 1px; background: var(--rule); position: relative; }
.mesa__progress b { position: absolute; left: 0; top: -1px; height: 3px; width: 20%; background: var(--amber); transition: width .4s var(--ease); }
.mesa__step { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.mesa__step.is-active { display: block; }
.mesa__step legend { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; margin-bottom: 1.4rem; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .15s; }
.chips button:hover { border-color: var(--ink); }
.chips button:active { transform: scale(.97); }
.chips button[aria-pressed="true"] { background: var(--ink); color: #000; border-color: var(--ink); }
.mesa__controls, .mesa__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mesa__result { display: grid; gap: 1rem; padding: clamp(1.25rem, 2.5vw, 2rem); border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.mesa__kicker { font-family: var(--mono); font-size: .72rem; color: var(--amber); }
.mesa__result h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.mesa__result dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; }
.mesa__result dt { font-family: var(--mono); font-size: .68rem; color: var(--mute); }
.mesa__result dd { margin: .2rem 0 0; }
.mesa__note { color: var(--mute); }
.mesa__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mesa__tags span { font-family: var(--mono); font-size: .68rem; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 999px; }

.mesa__timeline { position: sticky; top: 90px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px; font-family: var(--mono); font-size: .66rem; color: var(--mute); overflow: hidden; }
.mt__top { display: flex; justify-content: space-between; margin-bottom: 10px; }
.mt__tc { color: var(--amber); font-variant-numeric: tabular-nums; }
.mt__ruler { display: flex; justify-content: space-between; margin-left: 34px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.mt__tracks { position: relative; }
.mt__track { display: grid; grid-template-columns: 34px 1fr; align-items: center; height: 34px; border-bottom: 1px solid rgba(242, 240, 235, .06); }
.mt__track b { font-weight: 400; }
.mt__lane { position: relative; height: 24px; }
.mt__clip { position: absolute; top: 2px; bottom: 2px; border-radius: 3px; background: #3F8F8C; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); animation: clipIn .45s var(--ease) both; animation-delay: var(--d, 0ms); transform-origin: left; }
.mt__clip--v3 { background: #6E58A8; } .mt__clip--v2 { background: #2F6E7A; } .mt__clip--t1 { background: #8466BE; }
.mt__clip--tr { background: #C9C4B8; } .mt__clip--a1 { background: #5F8C46; } .mt__clip--a2 { background: #47703A; } .mt__clip--fx { background: #B35A4A; }
.mt__clip--wave::after { content: ""; position: absolute; inset: 6px 4px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 2px, transparent 2px 5px); -webkit-mask: linear-gradient(transparent 15%, #000 45%, #000 55%, transparent 85%); mask: linear-gradient(transparent 15%, #000 45%, #000 55%, transparent 85%); }
@keyframes clipIn { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
.mt__head { position: absolute; top: 0; bottom: 0; left: calc(34px + (100% - 34px) * var(--p, 0)); width: 2px; background: var(--amber); transition: left .5s var(--ease); }
.mt__head::before { content: ""; position: absolute; top: -2px; left: -5px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid var(--amber); }
.mt__status { margin-top: 12px; font-size: .7rem; }
.mesa.is-rendering .mt__head { animation: render 1.4s var(--ease-io) both; }
@keyframes render { from { left: 34px; } to { left: calc(100% - 2px); } }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta { padding: clamp(6rem, 12vw, 11rem) var(--gutter) clamp(4rem, 8vw, 7rem); max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--rule); }
.cta__head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.5rem 5rem; align-items: end; }
.cta__title { font-size: clamp(2.8rem, 7.6vw, 7.5rem); font-weight: 500; letter-spacing: -.05em; line-height: .92; text-wrap: balance; }
.cta__lede { color: var(--fg-2); justify-self: end; max-width: 32ch; font-size: 1.1rem; }
.cta__actions { display: flex; gap: 12px; margin-top: clamp(2.5rem, 5vw, 4rem); }
.cta__btn {
  position: relative; display: flex; align-items: center; min-height: clamp(76px, 9vw, 104px); padding: 0 clamp(1.4rem, 2.6vw, 2.2rem);
  border-radius: 999px; border: 1px solid transparent; text-decoration: none; font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 500; letter-spacing: -.02em; cursor: pointer;
  transition: flex-grow .55s var(--ease), background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.cta__btn svg { position: absolute; right: clamp(1.4rem, 2.6vw, 2.2rem); width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; opacity: 0; transition: opacity .25s, transform .35s var(--ease); }
.cta__btn--primary { flex: 3 1 0; background: var(--ink); color: #000; }
.cta__btn--primary svg { opacity: 1; }
.cta__btn--secondary { flex: 2 1 0; background: rgba(242, 240, 235, .1); color: var(--ink); }
.cta__btn:hover { box-shadow: -12px 0 22px 2px rgba(247, 173, 75, .38), 0 0 18px 6px rgba(255, 255, 255, .5), 12px 0 22px 2px rgba(247, 173, 75, .22); }
.cta__btn:hover svg { transform: translateX(4px); }
.cta__actions:has(.cta__btn--secondary:hover) .cta__btn--primary { flex-grow: 2; background: rgba(242, 240, 235, .1); color: var(--ink); box-shadow: none; }
.cta__actions:has(.cta__btn--secondary:hover) .cta__btn--primary svg { opacity: 0; }
.cta__btn--secondary:hover { flex-grow: 3; background: var(--ink); color: #000; }
.cta__btn--secondary:hover svg { opacity: 1; }
.cta__btn--primary[aria-expanded="true"] svg { transform: rotate(90deg); }
.cta__facts { list-style: none; margin: 2.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 2rem; font-family: var(--mono); font-size: .74rem; color: var(--mute); }
.cta__facts li { display: inline-flex; align-items: center; gap: .55rem; }
.cta__facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }

.form { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem var(--gutter); padding: clamp(1.25rem, 3vw, 2.4rem); border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.form.is-opening { animation: formIn .5s var(--ease) both; }
@keyframes formIn { from { opacity: 0; transform: translateY(14px); } }
.form__row { display: grid; gap: .5rem; }
.form__row--full { grid-column: 1 / -1; }
.form label { font-family: var(--mono); font-size: .72rem; color: var(--mute); }
.form input, .form textarea { width: 100%; font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: .7rem 0; border-radius: 0; transition: border-color .2s; }
.form textarea { resize: vertical; min-height: 7rem; }
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--amber); }
.form ::placeholder { color: #5f5d58; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form__note { font-size: .95rem; }
.botcheck { display: none; }
.cta__mail { margin-top: 2rem; color: var(--mute); display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; }
.mail { color: var(--ink); user-select: all; }
.copy { font-family: var(--mono); font-size: .7rem; padding: .5rem .8rem; min-height: 36px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; }
.copy:hover { border-color: var(--ink); }

/* ==========================================================================
   Pie
   ========================================================================== */
.foot { padding: clamp(3rem, 6vw, 5rem) var(--gutter) calc(1.2rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--rule); overflow: clip; }
.foot__cols { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem var(--gutter); }
.foot__cols a { display: block; text-decoration: none; padding: .25rem 0; width: fit-content; }
.foot__cols a:hover { color: var(--amber); }
.foot__k { font-family: var(--mono); font-size: .7rem; color: var(--mute); margin-bottom: .7rem; }
.foot__word { font-weight: 600; font-variation-settings: "wdth" 112; letter-spacing: -.06em; line-height: .78; font-size: clamp(3.4rem, 15.4vw, 17rem); white-space: nowrap; margin: clamp(3rem, 6vw, 5rem) 0 1.4rem; text-align: center; }
.foot__bar { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; gap: 1rem; font-family: var(--mono); font-size: .7rem; color: var(--mute); }
.foot__bar a { text-decoration: none; padding: .4rem 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) and (min-width: 901px) {
  .reels__wrap { grid-template-columns: minmax(0, 1fr) auto; }
  .reels__thumbs { grid-column: 1; grid-row: 2; grid-template-columns: repeat(6, 64px); align-self: start; }
  .reels__stage { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .hero__foot { grid-template-columns: 1fr; gap: .6rem; }
  .hero__pin { --fw: 76vw; --fh: 50vw; --fy: 34svh; }
  .hero__scroll { display: none; }
  .focus { font-size: .56rem; }
  .focus__top span:nth-child(4), .focus__bottom span:nth-child(3) { display: none; }
  .nav { width: calc(100% - 24px); }
  .section-head, .cta__head { grid-template-columns: 1fr; }
  .section-head p, .cta__lede { justify-self: start; }
  .timeline__chapter { margin-left: -4px; }
  .timeline__label { display: none; }
  .hint-desktop { display: none; }
  .hint-mobile { display: inline; }
  .brands { grid-template-columns: 1fr; }
  .brands__list { justify-content: flex-start; gap: 1.2rem 2rem; }
  .about__pin { grid-template-columns: 1fr; min-height: 0; }
  .about__portrait { justify-self: start; width: min(78%, 360px); }
  .timeline__track, .timeline__head { left: var(--gutter); }
  .clip { grid-template-columns: 1fr; gap: 1.4rem; padding-left: 1.4rem; }
  .clip--left .clip__media, .clip--left .clip__meta, .clip--right .clip__media, .clip--right .clip__meta { grid-column: 1; grid-row: auto; text-align: left; justify-items: start; }
  .clip__media--single { justify-content: start; grid-template-columns: minmax(0, 240px); }
  .reels__wrap { display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 1rem; min-height: 100svh; padding: calc(80px + env(safe-area-inset-top, 0px)) 0 1.5rem; }
  .reels__info { padding: 0 var(--gutter); gap: .6rem; }
  .reels__info h2 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .reels__info > p { font-size: .92rem; }
  .reels__stage, .reels__now, .reels__thumbs { display: none; }
  .reels__rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: .4rem calc(50% - min(56svh, 540px) * 9 / 32); scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .reels__rail::-webkit-scrollbar { display: none; }
  .reels__slide { flex: 0 0 auto; margin: 0; scroll-snap-align: center; display: grid; gap: .6rem; transition: opacity .35s, transform .35s var(--ease); opacity: .45; transform: scale(.94); }
  .reels__slide.is-active { opacity: 1; transform: none; }
  .reels__slide video { height: min(56svh, 540px); width: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: #111; }
  .reels__slide figcaption { display: grid; gap: .1rem; font-weight: 500; letter-spacing: -.02em; }
  .reels__slide figcaption span { font-family: var(--mono); font-size: .66rem; color: var(--amber); font-weight: 400; letter-spacing: 0; }
  .reels__dots { display: flex; justify-content: center; gap: 6px; }
  .reels__dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(242, 240, 235, .25); transition: width .3s var(--ease), background-color .3s; }
  .reels__dots i.is-on { width: 18px; background: var(--amber); }
  .service { grid-template-columns: 1fr; gap: .4rem; }
  .service img { display: none; }
  .mesa__grid { grid-template-columns: 1fr; }
  .mesa__timeline { position: relative; top: 0; order: -1; }
  .mesa__result dl { grid-template-columns: 1fr 1fr; }
  .cta__actions { flex-direction: column; }
  .cta__btn { flex: none !important; }
  .form { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__cols > div:first-child { grid-column: 1 / -1; }
}

/* ----- Animaciones de entrada (solo con JS y sin reducción de movimiento) ----- */

.mask-lines.is-split .line > span { transform: translateY(110%); transition: transform 1.1s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i) * 80ms); }
.mask-lines.is-split.is-in .line > span { transform: none; }

.will-reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s cubic-bezier(.76, 0, .24, 1); }
.will-reveal > img, .will-reveal > video { transform: scale(1.2); transition: transform 1.6s cubic-bezier(.16, 1, .3, 1); }
.will-reveal.is-in { clip-path: inset(0 0 0 0); }
.will-reveal.is-in > img, .will-reveal.is-in > video { transform: scale(1); }
.clip__media .will-reveal:nth-child(2) { transition-delay: .15s; }
.clip__media .will-reveal:nth-child(2) > img, .clip__media .will-reveal:nth-child(2) > video { transition-delay: .15s; }

.will-up { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease), transform 1s cubic-bezier(.16, 1, .3, 1), filter .9s var(--ease); transition-delay: var(--d, 0ms); }
.will-up.is-in { opacity: 1; transform: none; filter: none; }
.will-blur { filter: blur(14px); opacity: 0; transform: translateY(30px); transition: filter 1.2s var(--ease), opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.will-blur.is-in { filter: none; opacity: 1; transform: none; }

.will-rise > span { display: inline-block; transform: translateY(100%); opacity: 0; transition: transform 1s cubic-bezier(.16, 1, .3, 1), opacity 1s; transition-delay: calc(var(--i) * 30ms); }
.will-rise.is-in > span { transform: none; opacity: 1; }

@media (hover: none) {
  .service img { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ambient i, .grain, .brands__track { animation: none !important; }
  .hero { height: 100svh; }
  .helix { height: auto; margin-top: 0; }
  .helix__pin { position: relative; height: auto; padding: 2rem 0; }
  .helix__stage { display: none; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .js .about__text.is-scrub .w { opacity: 1; }
}

/* ==========================================================================
   Página de proyectos
   ========================================================================== */
.archive { padding: calc(110px + env(safe-area-inset-top, 0px)) var(--gutter) clamp(4rem, 8vw, 6rem); max-width: var(--max); margin: 0 auto; }
.archive__head { display: grid; gap: 1rem; }
.archive__head h1 { font-size: clamp(3.2rem, 11vw, 10rem); font-weight: 500; letter-spacing: -.055em; line-height: .86; }
.archive__head p { color: var(--mute); max-width: 48ch; }
.archive__back { width: fit-content; }
.archive__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 2.2rem 0 2.6rem; }
.archive__tabs a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; transition: background-color .2s, color .2s, border-color .2s; }
.archive__tabs a:hover { border-color: var(--ink); }
.archive__tabs a[aria-current="page"] { background: var(--ink); color: #000; border-color: var(--ink); }
.archive__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.acard { position: relative; display: block; padding: 0; border: 0; background: #111; border-radius: 6px; overflow: hidden; cursor: pointer; text-align: left; text-decoration: none; color: var(--ink); }
.acard--wide { grid-column: span 2; }
.archive__grid { grid-auto-flow: dense; }
.archive__grid--overview { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.archive__grid--overview .acard { grid-column: auto; }
.archive__grid--overview .acard img, .archive__grid--overview .acard video { aspect-ratio: 9 / 14; }
.acard img, .acard video { width: 100%; aspect-ratio: 9 / 14; object-fit: cover; transition: transform .7s var(--ease); }
.acard--wide img, .acard--wide video { aspect-ratio: 16 / 10; }
.acard:hover img, .acard:hover video { transform: scale(1.04); }
.acard__label { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: .15rem; padding: 2.5rem 1rem 1rem; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.acard__label small { font-family: var(--mono); font-size: .66rem; color: var(--amber); }
.acard__label strong { font-weight: 500; font-size: 1.15rem; letter-spacing: -.02em; }
.archive__cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; margin-top: clamp(4rem, 8vw, 6rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.archive__cta h2 { font-size: clamp(1.8rem, 4vw, 3.4rem); font-weight: 500; letter-spacing: -.04em; }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.94); display: grid; grid-template-rows: auto 1fr; padding: calc(16px + env(safe-area-inset-top, 0px)) var(--gutter) calc(16px + env(safe-area-inset-bottom, 0px)); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.lightbox__bar span { font-family: var(--mono); font-size: .7rem; color: var(--amber); margin-right: .4rem; }
.lightbox__stage { display: grid; place-items: center; min-height: 0; padding-top: 16px; }
.lightbox__stage img, .lightbox__stage video { max-height: calc(100svh - 120px); width: auto; max-width: 100%; object-fit: contain; border-radius: 6px; }
@media (max-width: 900px) {
  .archive__grid, .archive__grid--overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
