/* ═══════════════════════════════════════════════════════════════
   DayOff Studio — estilos del sitio público
   Paleta: negro de sala, papel de póster, ámbar de proyector.
   ═══════════════════════════════════════════════════════════════ */

/* ── Fuentes (alojadas en /public/fonts; licencia OFL en /fonts/LICENSE.txt) ── */
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-tight-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/instrument-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/instrument-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/instrument-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --bg: #0a0908;          /* negro de sala */
  --bg-2: #131110;        /* carbón */
  --bg-3: #1c1a18;
  --ink: #ece6da;         /* papel de póster */
  --ink-dim: #a39d92;
  --ink-faint: #8a847a;   /* contraste ≥ 4.5:1 sobre el negro (accesibilidad AA) */
  --line: rgba(236, 230, 218, .14);
  --accent: #d9a441;      /* ámbar de proyector */
  --accent-2: #b8432f;    /* rojo de claqueta */

  --f-display: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --f-text: 'Instrument Sans', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.77, 0, .175, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
/* Sin "scroll-behavior: smooth" en html: rompe los cálculos de ScrollTrigger cuando recalcula con la
   página ya bajada (dejaba un espacio negro entre el hero y el estreno y el título sin aparecer).
   El desplazamiento suave de los enlaces del menú se hace desde site.js. */
html { -webkit-text-size-adjust: 100%; }
/* Nada puede ensanchar la página hacia los lados (en celular se podía arrastrar a la derecha).
   "clip" recorta sin crear una barra de scroll ni romper las secciones fijadas. */
html, body { overflow-x: clip; max-width: 100%; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-loading, body.is-locked { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--accent); color: var(--bg); }
.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

/* ── Grano de película y viñeta ── */
.grain {
  position: fixed; inset: -50%; z-index: 900; pointer-events: none;
  opacity: .07; mix-blend-mode: screen;
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); }
  40% { transform: translate(5%, -7%); } 60% { transform: translate(-3%, 8%); }
  80% { transform: translate(7%, 2%); } 100% { transform: translate(0, 0); }
}
.vignette {
  position: fixed; inset: 0; z-index: 899; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,.3) 100%);
}

/* ── Logo ── */
/* El logo es horizontal (proporción 550:276): se dimensiona por el alto */
.logo-mark { display: inline-block; height: 40px; aspect-ratio: 550 / 276; color: var(--ink); flex: none; }
.logo-mark--lg { height: 110px; }
.logo-mark--xl { height: clamp(90px, 14vw, 180px); }
/* Footer: logo gigante solo con contorno */
.logo-mark svg, .logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo-ring, .logo-horizon, .logo-under { stroke-dasharray: 100; }


/* ═══════════ PRELOADER ═══════════ */
.preloader {
  position: fixed; inset: 0; z-index: 1100; background: var(--bg);
  display: grid; place-items: center;
}
.preloader__leader { position: absolute; width: min(46vmin, 320px); aspect-ratio: 1; display: grid; place-items: center; }
.preloader__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.preloader__ring circle, .preloader__ring line { fill: none; stroke: var(--ink-faint); stroke-width: 1; }
.preloader__ring .ring-bg { stroke: var(--line); }
.preloader__ring .ring-sweep {
  stroke: var(--ink); stroke-width: 2; stroke-dasharray: 100; stroke-dashoffset: 100;
  transform: rotate(-90deg); transform-origin: center;
}
.preloader__count { font: 400 clamp(90px, 22vmin, 180px)/1 var(--f-display); }
/* Máscara del logo: capa negra a pantalla completa con el logo recortado */
.preloader__mask { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.preloader.is-masking { background: transparent; }
.preloader.is-masking .preloader__mask { display: block; }
.preloader__tagline {
  position: absolute; left: 0; right: 0; text-align: center; margin: 0; opacity: 0;
  font-size: clamp(11px, 1.2vw, 15px); letter-spacing: .6em; color: var(--ink);
}
.preloader__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 48px; height: 1px; background: var(--line); }
.preloader__progress span { display: block; height: 100%; width: 0; background: var(--ink); }
.preloader__meta { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 20px; display: flex; justify-content: space-between; font: 11px var(--f-mono); letter-spacing: .14em; color: var(--ink-dim); }
.preloader__call { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-transform: uppercase; }
.preloader__call b { font-weight: 500; display: inline-block; }
.preloader__rec { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); opacity: 0; transition: opacity .3s; }
.preloader__call.is-rolling .preloader__rec { opacity: 1; animation: blink 1s steps(2) infinite; }
.preloader__call.is-action b { color: var(--accent); }
.preloader__slate { margin-right: 28px; color: var(--ink-faint); }

/* ═══════════ CORTINA DE TRANSICIÓN ═══════════ */
.curtain { position: fixed; inset: 0; z-index: 1050; pointer-events: none; display: grid; grid-template-columns: 1fr 1fr; }
.curtain__panel { background: var(--bg-2); transform: scaleY(0); }
.curtain__panel:first-child { transform-origin: top; }
.curtain__panel:nth-child(2) { transform-origin: bottom; }
.curtain__brand { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; }

/* ═══════════ HEADER ═══════════ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: transform .6s var(--ease), background .4s, padding .4s;
}
.header.is-scrolled { background: linear-gradient(rgba(10,9,8,.85), rgba(10,9,8,0)); padding-block: 14px; }
.header.is-hidden { transform: translateY(-110%); }
.brand { display: flex; align-items: center; gap: 12px; }

.nav { display: flex; gap: clamp(18px, 3vw, 44px); }
.nav a { position: relative; font: 500 11px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim); transition: color .3s; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.menu-btn { display: none; width: 34px; height: 34px; position: relative; }
.menu-btn span { position: absolute; left: 6px; right: 6px; height: 1px; background: var(--ink); transition: transform .4s var(--ease); }
.menu-btn span:first-child { top: 13px; } .menu-btn span:last-child { top: 21px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 760px) {
  .menu-btn { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: flex-start;
    padding: var(--gutter); gap: 22px; background: var(--bg);
    clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease);
  }
  .nav.is-open { clip-path: inset(0 0 0 0); }
  .nav a { font: 400 44px/1 var(--f-display); letter-spacing: 0; text-transform: none; color: var(--ink); }
  .nav a::after { display: none; }
}

/* ═══════════ HERO ═══════════ */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; display: flex; align-items: flex-end; }
.hero__media { position: absolute; inset: 0; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); filter: saturate(.75) contrast(1.05); }
.hero__media img { animation: kenburns 28s ease-in-out infinite alternate; }
/* Showreel: capas de video superpuestas con fundido cruzado */
.hero__media img, .hero__media video { position: absolute; inset: 0; }
.hero__media video { opacity: 0; transition: opacity 1.2s ease; }
.hero__media video.is-active { opacity: 1; }
.hero__media.has-video .hero__poster { animation: none; }
/* Fondo con link de YouTube/Vimeo: se agranda para cubrir toda la portada y ocultar los controles del reproductor */
.hero__embed { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero__embed iframe {
  position: absolute; top: 50%; left: 50%; width: max(100%, 177.78vh); height: max(100%, 56.25vw);
  border: 0; transform: translate(-50%, -50%) scale(1.3); opacity: 0; transition: opacity .6s ease;
}
.hero__embed iframe.is-ready { opacity: 1; transition-duration: 1.4s; }
@keyframes kenburns { from { transform: scale(1.15) translate(0, 0); } to { transform: scale(1.28) translate(-2%, -2%); } }
/* Sombra suave: arriba para que se lea el menú, abajo para el título */
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,9,8,.55) 0%, rgba(10,9,8,0) 22%, rgba(10,9,8,0) 50%, rgba(10,9,8,.75) 100%); }
.hero__content { position: relative; z-index: 3; padding: 0 var(--gutter) 96px; max-width: 1300px; }
.hero__kicker { color: var(--accent); margin: 0 0 22px; }
.hero__title { font: 400 clamp(46px, 9.2vw, 150px)/.92 var(--f-display); letter-spacing: -.02em; margin: 0 0 28px; }
/* Alturas de línea fijas: el cambio de fuente (respaldo → fuente real) no mueve el hero */
.hero__kicker { line-height: 18px; }
.hero__title *, .hero__slogan * { line-height: inherit; }
/* Espacio reservado antes de que llegue el texto del panel: así el hero no "salta" al cargar (CLS) */
.hero__kicker:empty { min-height: 18px; }
.hero__title:empty { min-height: 1.8em; }
.hero__slogan:empty { min-height: 1.35em; }
.hero__title em, .contact__title em {  color: var(--accent); }
.hero__slogan { font: 400 clamp(18px, 2vw, 26px)/1.35 var(--f-display); color: var(--ink-dim); margin: 0 0 36px; max-width: 34ch; }
.hero__hud { position: absolute; z-index: 3; right: var(--gutter); top: 110px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; color: var(--ink-dim); }
.rec { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__scroll { position: absolute; z-index: 3; right: var(--gutter); bottom: 96px; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--ink-dim); writing-mode: vertical-rl; }
.hero__scroll i { width: 1px; height: 60px; background: linear-gradient(var(--ink), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 760px) { .hero__hud, .hero__scroll { display: none; } .hero__content { padding-bottom: 72px; } }

/* Texto partido en palabras para el reveal */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-word > span { display: inline-block; will-change: transform; }

/* Botón */
.btn-ghost {
  display: inline-flex; align-items: center; gap: 14px; padding: 16px 26px;
  border: 1px solid var(--line); border-radius: 100px;
  font: 500 11px var(--f-mono); letter-spacing: .16em; text-transform: uppercase;
  position: relative; overflow: hidden; isolation: isolate; transition: color .5s var(--ease), border-color .5s;
}
.btn-ghost::before { content: ''; position: absolute; inset: 0; background: var(--ink); transform: translateY(101%); transition: transform .6s var(--ease); z-index: -1; border-radius: inherit; }
.btn-ghost:hover { color: var(--bg); border-color: var(--ink); }
.btn-ghost:hover::before { transform: translateY(0); }
.btn-ghost svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .5s var(--ease); }
.btn-ghost:hover svg { transform: translateX(4px); }

/* ═══════════ MARQUESINA ═══════════ */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; white-space: nowrap; }
.marquee__track { display: inline-flex; gap: 36px; animation: marquee 40s linear infinite; }
.marquee__track span { font: 400 clamp(20px, 2.8vw, 38px)/1 var(--f-display); color: var(--ink-faint); }
.marquee__track span b { font-style: normal; color: var(--ink); font-weight: 400; }
.marquee__track svg { width: .7em; height: .7em; align-self: center; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ═══════════ SECCIONES ═══════════ */
section { position: relative; }
.section-head { display: flex; align-items: baseline; gap: 22px; padding: 0 var(--gutter); margin-bottom: clamp(32px, 5vw, 64px); }
.section-head__num { color: var(--accent); }
.section-title { font: 400 clamp(34px, 5vw, 76px)/.95 var(--f-display); letter-spacing: -.02em; margin: 0; }

/* ── Destacados: scroll horizontal ── */
.featured { padding-top: clamp(80px, 12vw, 160px); }
.featured__pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.featured__track { display: flex; gap: clamp(20px, 3vw, 48px); padding: 0 var(--gutter); width: max-content; }
.feat {
  display: block; color: inherit; text-decoration: none;
  position: relative; width: clamp(280px, 52vw, 820px); aspect-ratio: 16/9; overflow: hidden;
  border-radius: 2px; flex: none; cursor: pointer; background: var(--bg-2);
}
.feat img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.4s var(--ease-out), filter 1s; filter: grayscale(.4) brightness(.75); }
.feat:hover img { transform: scale(1.02); filter: grayscale(0) brightness(.9); }
.feat__info { position: absolute; inset: auto 0 0 0; padding: clamp(18px, 2.5vw, 34px); background: linear-gradient(transparent, rgba(10,9,8,.92)); display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.feat__title { font: 400 clamp(26px, 3.4vw, 54px)/1 var(--f-display); margin: 6px 0 0; }
.feat__tag { color: var(--ink-dim); font: 400 16px var(--f-display); margin: 8px 0 0; }
.feat__idx { font: 400 clamp(60px, 8vw, 120px)/.8 var(--f-display); color: transparent; -webkit-text-stroke: 1px var(--line); }
@media (max-width: 760px) {
  .featured__pin { min-height: 0; }
  .featured__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .feat { width: 82vw; scroll-snap-align: start; }
}

/* ── On set: muro de videos del estudio (fondo negro, todos reproduciéndose, logo en cada cuadro) ── */
.onset { background: #000; color: #fff; padding-bottom: clamp(60px, 8vw, 120px); --wall: min(1225px, 66vw); --gap: clamp(10px, 1.3vw, 22px); }
.onset[hidden] { display: none; }
.onset__band[hidden] { display: none; }
.meter__txt { white-space: pre; }
.onset__band { background: #f3f1ec; color: #0a0a0a; text-align: center; padding: clamp(16px, 1.6vw, 24px) 0 clamp(10px, 1vw, 14px); overflow: hidden; }
.onset__title { margin: 0; font: 600 clamp(18px, 1.5vw, 24px)/1.1 var(--f-display); letter-spacing: .01em; text-transform: uppercase; }
.onset__chev { display: block; width: 18px; height: 11px; margin: 8px auto 0; fill: none; stroke: currentColor; stroke-width: 2.6; }

/* "Rollo" de cámara: escala de exposición tipo visor (se desliza con el scroll) */
.meter {
  width: var(--wall); margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: clamp(14px, 2vw, 34px);
  padding: clamp(26px, 3vw, 44px) 0 clamp(22px, 2.4vw, 34px); font: 500 clamp(10px, .82vw, 13px)/1 var(--f-mono); letter-spacing: .02em; color: rgba(255,255,255,.88);
}
.meter__side { white-space: nowrap; padding-bottom: 14px; }
.meter__scale { position: relative; overflow: hidden; padding: 20px 0 14px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.meter__mark { position: absolute; top: 0; left: 50%; width: 3px; height: 13px; margin-left: -1.5px; background: #fff; }
.meter__track { display: flex; width: max-content; white-space: nowrap; will-change: transform; }
.meter__track > div { flex: none; padding-right: .4em; }
.meter__track span { color: #fff; }
.meter__track b { font-weight: 400; color: rgba(255,255,255,.45); letter-spacing: .05em; }
.meter__ticks { position: absolute; left: 50%; bottom: 0; display: flex; gap: 4px; transform: translateX(-50%); }
.meter__ticks span { width: 1px; height: 8px; background: rgba(255,255,255,.7); }
.meter__ticks span:nth-child(4n+1) { height: 11px; background: #fff; }

/* Muro: filas de formato fijo; cada cuadro ocupa su parte del ancho de la fila */
.onset__wall { width: var(--wall); margin: 0 auto; display: flex; flex-direction: column; gap: var(--gap); }
.onset__row { display: flex; gap: var(--gap); aspect-ratio: var(--ar, 2); }
.onset__row[hidden] { display: none; }
.shot {
  position: relative; flex: 1 1 0; min-width: 0; height: 100%; padding: 0; border: 0; cursor: pointer; overflow: hidden;
  background: linear-gradient(110deg, #0e0e0e 30%, #1c1c1c 50%, #0e0e0e 70%) 0 0 / 300% 100%; animation: shotLoad 1.6s linear infinite;
  color: inherit; font: inherit; text-align: left;
}
.shot.is-loaded, .shot--embed, .shot:has(> img) { animation: none; background: #0e0e0e; }
@keyframes shotLoad { to { background-position: -150% 0; } }
.shot img, .shot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.4s var(--ease-out), opacity .8s; }
.shot video { opacity: 0; }
.shot.is-loaded video, .shot video[poster] { opacity: 1; }
.shot:hover img, .shot:hover video, .shot:focus-visible img, .shot:focus-visible video { transform: scale(1.035); }
.shot__preview { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .8s; }
.shot.is-previewing .shot__preview { opacity: 1; }
.shot__preview iframe {
  position: absolute; top: 50%; left: 50%; height: 100%; aspect-ratio: 16 / 9; width: auto; min-width: 100%;
  border: 0; opacity: 0; transition: opacity .8s; transform: translate(-50%, -50%) scale(1.15);
}
.shot__preview iframe.is-ready { opacity: 1; }
/* Logo de la marca arriba a la izquierda en cada cuadro */
.shot__logo {
  position: absolute; z-index: 2; top: clamp(8px, 4%, 22px); left: clamp(10px, 3.6%, 26px);
  width: clamp(64px, 11vw, 150px); aspect-ratio: 550 / 276; color: #fff; opacity: .92;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,.45)); pointer-events: none;
}
.onset__row:not(:only-child) .shot:not(:only-child) .shot__logo { width: clamp(56px, 8.5vw, 150px); }
.shot__logo svg, .shot__logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.shot__cap {
  position: absolute; z-index: 2; left: clamp(10px, 3.6%, 26px); right: 16px; bottom: clamp(10px, 4%, 20px);
  font: 500 clamp(13px, 1vw, 16px)/1.3 var(--f-display); color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .6s var(--ease-out);
}
.shot:hover .shot__cap, .shot:focus-visible .shot__cap { opacity: 1; transform: none; }
.shot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.onset__more { display: flex; margin: clamp(28px, 4vw, 48px) auto 0; color: #fff; border-color: rgba(255,255,255,.4); }
.onset__more::before { background: #fff; }
.onset__more:hover { color: #000; border-color: #fff; }
.onset__more[hidden] { display: none; }
@media (hover: none) { .shot__cap { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .onset { --wall: calc(100% - 2 * var(--gutter)); --gap: 8px; }
  .meter { grid-template-columns: 1fr; padding: 22px 0 18px; }
  .meter__side { display: none; }
}

/* ── Obras: filtros + grilla ── */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── Work: franjas de ancho completo por categoría ── */
.works { padding: 0; background: #000; color: #fff; }
.works[hidden] { display: none; }
.cat-block { position: relative; background: #000; }
.cat-band { position: relative; display: grid; place-items: center; height: clamp(380px, 82vh, 920px); overflow: hidden; transform-origin: 50% 40%; will-change: transform; color: #fff; text-decoration: none; isolation: isolate; }
.cat-band__media { position: absolute; inset: -14% 0; z-index: -2; will-change: transform; }
.cat-band__media img, .cat-band__media video { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter 1s var(--ease-out); }
.cat-band::before {   /* líneas de video muy suaves, como en un monitor */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.28) 0 1px, transparent 1px 3px);
}
.cat-band__shade { position: absolute; inset: 0; z-index: -1; background: #000; opacity: 0; pointer-events: none; }
.cat-band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(0,0,0,.15), rgba(0,0,0,.5)); pointer-events: none; }
.cat-band__body { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 0 var(--gutter); }
.cat-band__title {
  font: 800 clamp(46px, 8.6vw, 168px)/.9 var(--f-display); letter-spacing: .02em; text-transform: uppercase;
  text-shadow: 0 6px 40px rgba(0,0,0,.35); transition: letter-spacing 1s var(--ease-out);
}
.cat-band__more { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .6s var(--ease-out); color: #fff; }
.cat-band__more i { display: inline-block; font-style: normal; transition: transform .5s var(--ease-out); }
.cat-band:hover .cat-band__title, .cat-band:focus-visible .cat-band__title { letter-spacing: .05em; }
.cat-band:hover .cat-band__more, .cat-band:focus-visible .cat-band__more { opacity: 1; transform: none; }
.cat-band:hover .cat-band__more i { transform: translateX(6px); }
.cat-band:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
@media (hover: none) { .cat-band__more { opacity: .85; transform: none; } }
@media (max-width: 860px) {
  .cat-band { height: clamp(300px, 62vh, 560px); }
}

/* Rollo de cámara entre categorías: más alto y con números más grandes */
.meter--tall { --wall: min(1300px, 76vw); padding: clamp(34px, 4.4vw, 64px) 0 clamp(30px, 4vw, 56px); font-size: clamp(12px, 1.05vw, 17px); }
.meter--tall .meter__scale { padding: 30px 0 22px; }
.meter--tall .meter__mark { width: 4px; height: 20px; margin-left: -2px; }
.meter--tall .meter__ticks { gap: 6px; }
.meter--tall .meter__ticks span { height: 12px; }
.meter--tall .meter__ticks span:nth-child(4n+1) { height: 18px; }
.meter--tall .meter__side { padding-bottom: 22px; }
@media (max-width: 860px) { .meter--tall { --wall: calc(100% - 2 * var(--gutter)); padding: 26px 0 22px; } }

/* Página de una categoría (capa a pantalla completa, fondo negro) */
.catview { position: fixed; inset: 0; z-index: 990; background: #000; color: #fff; }
.catview[hidden] { display: none; }
.catview__scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
/* Efecto persiana: cada franja recorta (clip-path) un fondo FIJO a la pantalla; al hacer scroll la siguiente
   franja sube mostrando su propio video, como si se deslizara encima de la anterior */
.catview__hero { position: relative; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; clip-path: inset(0); }
.catview__media { position: fixed; inset: 0; z-index: -2; }
.catview__media img, .catview__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.catview__hero .cat-band__shade { opacity: .25; }
.catview__heading { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 0 var(--gutter); }
.catview__kicker { color: var(--accent); }
.catview__title { font: 800 clamp(52px, 10vw, 190px)/.9 var(--f-display); letter-spacing: .02em; text-transform: uppercase; text-shadow: 0 6px 40px rgba(0,0,0,.35); }
.catview__count { color: rgba(255,255,255,.85); }
.catview__down { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); display: grid; place-items: center; cursor: pointer; animation: cvBob 2s ease-in-out infinite; }
.catview__down svg { width: 16px; height: 10px; fill: none; stroke: #fff; stroke-width: 2.4; }
@keyframes cvBob { 50% { transform: translateY(6px); } }
.catview__close { position: absolute; z-index: 20; top: clamp(18px, 2.6vw, 32px); right: var(--gutter); width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255,255,255,.55); background: rgba(0,0,0,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 30px; line-height: 1; color: #fff; transition: background .3s, color .3s; }
.catview__close:hover { background: #fff; color: #000; }
/* Cada proyecto: franja de ancho completo con su video */
.catview__list { display: grid; }
.pband { position: relative; display: block; height: 100vh; height: 100svh; overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; background: #0b0b0b; clip-path: inset(0); }
.pband__media { position: fixed; inset: 0; z-index: -2; will-change: transform; }
.pband__media img, .pband__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pband__media video { opacity: 0; transition: opacity 1s; }
.pband.is-loaded .pband__media video, .pband__media video[poster] { opacity: 1; }
.pband__embed { position: absolute; inset: 0; overflow: hidden; }
.pband__embed iframe { position: absolute; top: 50%; left: 50%; height: 100%; aspect-ratio: 16 / 9; width: auto; min-width: 100%; border: 0; transform: translate(-50%, -50%) scale(1.15); opacity: 0; transition: opacity .8s; }
.pband__embed iframe.is-ready { opacity: 1; }
.pband__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.05) 55%), linear-gradient(to right, rgba(0,0,0,.35), transparent 60%); transition: opacity .6s; }
.pband__body { position: absolute; left: clamp(20px, 6vw, 110px); bottom: clamp(30px, 7vh, 90px); right: var(--gutter); display: grid; justify-items: start; gap: 10px; }
.pband__logo { width: clamp(60px, 6vw, 96px); aspect-ratio: 550 / 276; color: var(--accent); }
.pband__logo svg, .pband__logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pband__title { font: 800 clamp(36px, 5.6vw, 96px)/.92 var(--f-display); letter-spacing: -.01em; text-transform: uppercase; text-shadow: 0 4px 30px rgba(0,0,0,.4); transition: letter-spacing .9s var(--ease-out); }
.pband__line { font-size: clamp(13px, 1vw, 16px); color: rgba(255,255,255,.9); max-width: 60ch; }
.pband__year { position: absolute; top: clamp(20px, 3vw, 34px); left: clamp(20px, 6vw, 110px); color: rgba(255,255,255,.8); }
.pband:hover .pband__title { letter-spacing: .02em; }
.pband:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
/* Galería de fotos (categorías tipo Photography): mosaico tipo revista, las fotos conservan su formato */
.photowall { columns: 3 320px; column-gap: clamp(10px, 1.2vw, 18px); padding: clamp(30px, 5vw, 70px) clamp(12px, 3vw, 48px); }
.photowall__item { position: relative; margin: 0 0 clamp(10px, 1.2vw, 18px); break-inside: avoid; overflow: hidden; cursor: zoom-in; background: #111; }
.photowall__item img { display: block; width: 100%; height: auto; transition: transform 1.2s var(--ease-out), filter .8s; filter: grayscale(.15); }
.photowall__item:hover img { transform: scale(1.04); filter: none; }
.photowall__item figcaption { position: absolute; left: 14px; right: 14px; bottom: 12px; color: #fff; font-size: 14px; text-shadow: 0 1px 8px rgba(0,0,0,.6); opacity: 0; transform: translateY(8px); transition: .5s var(--ease-out); }
.photowall__item:hover figcaption { opacity: 1; transform: none; }
@media (max-width: 700px) { .photowall { columns: 2; column-gap: 8px; padding: 18px 8px; } .photowall__item { margin-bottom: 8px; } }
.catview__next { display: grid; justify-items: center; gap: 10px; padding: clamp(70px, 10vw, 140px) var(--gutter); color: #fff; text-decoration: none; text-align: center; }
.catview__next[hidden] { display: none; }
.catview__next .mono { color: var(--accent); }
.catview__next b { font: 800 clamp(40px, 7vw, 120px)/.9 var(--f-display); text-transform: uppercase; letter-spacing: .02em; transition: letter-spacing .8s var(--ease-out); }
.catview__next i { font-style: normal; font-size: 28px; transition: transform .5s var(--ease-out); }
.catview__next:hover b { letter-spacing: .06em; }
.catview__next:hover i { transform: translateX(10px); }
.filters { position: relative; display: flex; flex-wrap: wrap; gap: 6px; padding: 0 var(--gutter); margin-bottom: clamp(30px, 4vw, 54px); }
.filters button { position: relative; z-index: 1; padding: 10px 18px; font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); border-radius: 100px; transition: color .4s; }
.filters button[aria-selected="true"] { color: var(--bg); }
.filters__ink { position: absolute; z-index: 0; top: 0; left: 0; height: 36px; border-radius: 100px; background: var(--ink); transition: transform .6s var(--ease), width .6s var(--ease); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(18px, 2.4vw, 36px) clamp(14px, 2vw, 28px); padding: 0 var(--gutter); }
.card { display: block; cursor: pointer; color: inherit; text-decoration: none; }
.card__frame { position: relative; aspect-ratio: 2/3; overflow: hidden; background: var(--bg-2); border-radius: 2px; }
.card__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); filter: grayscale(.85) contrast(1.05) brightness(.85); transition: transform 1.2s var(--ease-out), filter .9s var(--ease-out); }
.card:hover .card__frame img, .card:focus-visible .card__frame img, .card.is-active .card__frame img { transform: scale(1); filter: grayscale(0) brightness(1); }
/* barrido de luz tipo "proyector" al hacer hover */
.card__frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255,240,210,.18) 50%, transparent 60%); transform: translateX(-120%); transition: transform 1.1s var(--ease); }
.card:hover .card__frame::after, .card.is-active .card__frame::after { transform: translateX(120%); }
/* Vista previa en movimiento al pasar el cursor (video de la galería o tráiler) */
.card__preview { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease-out); }
.card__preview.is-on { opacity: 1; }
.card__preview video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* YouTube/Vimeo vienen en 16:9: se agrandan para cubrir el póster vertical sin bandas negras */
.card__preview iframe {
  position: absolute; top: 50%; left: 50%; height: 100%; aspect-ratio: 16 / 9; width: auto; min-width: 100%;
  border: 0; transform: translate(-50%, -50%) scale(1.15); opacity: 0; transition: opacity .8s ease;
}
.card__preview iframe.is-ready { opacity: 1; }
.card__year, .card__play, .card__frame::after { z-index: 2; }
.card__year { position: absolute; top: 12px; left: 12px; padding: 4px 8px; background: rgba(10,9,8,.7); backdrop-filter: blur(6px); }
.card__play { position: absolute; right: 12px; bottom: 12px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(236,230,218,.5); display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: .5s var(--ease-out); }
.card__play svg { width: 14px; height: 14px; fill: var(--ink); margin-left: 3px; }
.card:hover .card__play, .card.is-active .card__play { opacity: 1; transform: scale(1); }
.card__meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; align-items: baseline; }
.card__title { font: 400 clamp(20px, 1.8vw, 26px)/1.15 var(--f-display); margin: 0; transition: color .3s; }
.card:hover .card__title, .card.is-active .card__title { color: var(--accent); }
.card__cat { color: var(--ink-faint); white-space: nowrap; }
.grid__empty { grid-column: 1/-1; color: var(--ink-dim);  font-family: var(--f-display); font-size: 22px; }

/* ── Estudio: escena con la foto vista a través de las letras ── */
.about { position: relative; background: var(--bg-2); padding: 0 0 clamp(80px, 10vw, 160px); }
.about__stage { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: #0a0908; }
.about__photo { position: absolute; inset: 0; overflow: hidden; }
.about__photo img { position: absolute; left: 0; top: 0; width: 100%; height: 130%; object-fit: cover; will-change: transform; }
/* Máscara: capa del color de la sección con el título encima. Con "multiply" (oscuro) o "screen" (claro)
   las letras dejan ver la foto y el resto queda tapado. Al hacer scroll esta capa crece y se desvanece. */
.about__mask {
  position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; padding: 0 3vw;
  background: var(--bg-2); mix-blend-mode: multiply; will-change: opacity;
}
.about__mask-text {
  display: block; max-width: 100%; text-align: center; text-transform: uppercase; color: #fff;
  font: 600 clamp(72px, min(19vw, 36vh), 380px)/.82 var(--f-display); letter-spacing: -.055em;
  will-change: transform;
}
html[data-theme="light"] .about__mask { mix-blend-mode: screen; }
html[data-theme="light"] .about__mask-text { color: #000; }
.about__shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background:
    linear-gradient(90deg, rgba(10,9,8,.86) 0%, rgba(10,9,8,.55) 45%, rgba(10,9,8,.1) 75%),
    linear-gradient(0deg, rgba(10,9,8,.85) 0%, transparent 55%);
}
.about__content {
  position: absolute; z-index: 3; left: var(--gutter); bottom: clamp(36px, 7vh, 80px); width: min(760px, 62vw);
  color: #fff; opacity: 0;
}
.about .section-head { padding: 0; margin-bottom: clamp(18px, 2.4vw, 30px); }
.about__title { font-size: clamp(34px, 4.2vw, 70px); color: #fff; }
.about__text { font: 400 clamp(16px, 1.25vw, 19px)/1.7 var(--f-text); color: rgba(255,255,255,.78); max-width: 58ch; }
.about__text p { margin: 0 0 1em; }
.about__text p:first-child { color: #fff; font: 400 clamp(20px, 1.8vw, 28px)/1.35 var(--f-display); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(24px, 3vw, 40px); border-top: 1px solid rgba(255,255,255,.22); padding-top: 24px; }
.stats b { display: block; font: 400 clamp(40px, 4.4vw, 72px)/1 var(--f-display); color: var(--accent); }
.stats span { font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.about .founder { margin-left: var(--gutter); margin-right: var(--gutter); }
/* Sin animaciones (o si GSAP no carga): foto completa con el texto encima, sin máscara */
.about.is-static .about__mask { display: none; }
.about.is-static .about__shade, .about.is-static .about__content { opacity: 1; }
/* Móvil: la escena de la máscara ocupa la parte de arriba (82svh) y el texto va debajo, en el flujo normal */
@media (max-width: 860px) {
  .about__stage { height: auto; min-height: 0; overflow: hidden; background: transparent; }   /* las letras crecen 4×: se recortan aquí */
  .about__photo, .about__mask { bottom: auto; height: 82svh; min-height: 460px; }
  .about__photo { background: #0a0908; }
  .about__mask-text { font-size: clamp(64px, 24vw, 160px); }
  .about__shade { display: none; }
  .about__content { position: static; width: auto; opacity: 1; color: var(--ink); padding: calc(max(82svh, 460px) + 50px) var(--gutter) 0; }
  .about__title { color: var(--ink); }
  .about__text { color: var(--ink-dim); }
  .about__text p:first-child { color: var(--ink); }
  .stats { border-top-color: var(--line); }
  .stats span { color: var(--ink-dim); }
}

/* ── News: premios con laurel, nota destacada y lista de prensa ── */
.news { padding: clamp(90px, 11vw, 170px) 0 clamp(60px, 8vw, 120px); position: relative; }
.news .section-head { flex-wrap: wrap; }
.news__kicker { margin: 0 0 0 auto; align-self: center; color: var(--ink-faint); letter-spacing: .2em; text-transform: uppercase; font-size: 11px; }
/* Laureles (como los de los pósters de festival) */
.news__laurels { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(18px, 3vw, 46px) clamp(14px, 3vw, 56px); padding: 0 var(--gutter); margin-bottom: clamp(60px, 8vw, 120px); }
.news__laurels:empty { display: none; }
.laurel { position: relative; display: grid; place-items: center; width: clamp(220px, 21vw, 300px); aspect-ratio: 1.38; color: var(--ink); text-align: center; text-decoration: none; }
.laurel svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.laurel svg path { fill: currentColor; }
.laurel svg .laurel__stem { fill: none; }
.laurel__txt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; max-width: 50%; }
.laurel__kind { font: 500 9px var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.laurel__title { font: 500 clamp(15px, 1.25vw, 19px)/1.1 var(--f-display); letter-spacing: -.02em; }
.laurel__by { font: 400 8.5px/1.35 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); }
a.laurel { transition: transform .5s var(--ease-out); }
a.laurel:hover { transform: translateY(-4px); }
a.laurel:hover .laurel__title { color: var(--accent); }
/* Nota destacada */
.news__lead { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(26px, 5vw, 80px); align-items: center; padding: 0 var(--gutter); margin-bottom: clamp(50px, 7vw, 100px); }
.news__lead[hidden] { display: none; }
.news__lead-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px; background: var(--bg-2); }
.news__lead-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); filter: grayscale(.35); transition: transform 1.2s var(--ease-out), filter .8s; }
.news__lead-media:hover img { transform: scale(1); filter: none; }
.news__play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; translate: -50% -50%; border-radius: 50%; display: grid; place-items: center; background: rgba(10,9,8,.55); border: 1px solid rgba(255,255,255,.6); backdrop-filter: blur(6px); transition: scale .5s var(--ease-out); }
.news__play svg { width: 20px; fill: #fff; margin-left: 4px; }
.news__lead-media:hover .news__play { scale: 1.1; }
.news__lead-meta { display: flex; gap: 14px; align-items: center; margin: 0 0 18px; color: var(--accent); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.news__lead-meta span { color: var(--ink-faint); }
.news__lead h3 { margin: 0; font: 500 clamp(28px, 3.4vw, 54px)/1.02 var(--f-display); letter-spacing: -.035em; }
.news__lead blockquote { margin: 22px 0 0; padding-left: 20px; border-left: 1px solid var(--accent); color: var(--ink-dim); font: 300 clamp(17px, 1.4vw, 21px)/1.5 var(--f-display); max-width: 46ch; }
.news__lead .news__go { margin-top: 28px; }
.news__go { display: inline-flex; align-items: center; gap: 12px; font: 500 11px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.news__go i { font-style: normal; transition: translate .5s var(--ease-out); }
.news__go:hover i { translate: 4px -4px; }
/* Lista de prensa */
.news__list { list-style: none; margin: 0; padding: 0 var(--gutter); }
.news__list li { position: relative; border-top: 1px solid var(--line); }
.news__list li:last-child { border-bottom: 1px solid var(--line); }
.news-row { display: grid; grid-template-columns: 110px 190px 1fr auto; gap: 24px; align-items: baseline; padding: clamp(18px, 2vw, 28px) 0; color: inherit; cursor: pointer; width: 100%; text-align: left; transition: padding .6s var(--ease-out); }
.news-row:hover { padding-left: clamp(8px, 1.2vw, 18px); }
.news-row__date, .news-row__outlet, .news-row__kind { font: 400 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.news-row__date { color: var(--ink-faint); }
.news-row__outlet { color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-row__title { font: 500 clamp(19px, 1.9vw, 30px)/1.15 var(--f-display); letter-spacing: -.025em; transition: color .4s; }
.news-row:hover .news-row__title { color: var(--accent); }
.news-row__kind { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-dim); white-space: nowrap; }
.news-row__kind i { font-style: normal; display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; transition: background .4s, color .4s, border-color .4s; }
.news-row:hover .news-row__kind i { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.news-row__thumb { display: none; }
.news__more { display: flex; margin: 34px auto 0; }
.news__more[hidden] { display: none; }
.news__preview { position: fixed; z-index: 50; top: 0; left: 0; width: 300px; aspect-ratio: 16 / 10; pointer-events: none; opacity: 0; translate: -50% -50%; overflow: hidden; border-radius: 2px; box-shadow: 0 30px 60px rgba(0,0,0,.4); }
.news__preview img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .news__kicker { margin: 8px 0 0; flex-basis: 100%; }
  .news__lead { grid-template-columns: 1fr; }
  .news-row { grid-template-columns: 76px 1fr; gap: 6px 16px; align-items: start; }
  .news-row__thumb { display: block; grid-row: span 3; width: 76px; aspect-ratio: 1; object-fit: cover; border-radius: 2px; background: var(--bg-2); }
  .news-row__date { order: 2; } .news-row__outlet { order: 1; } .news-row__title { order: 3; grid-column: 2; } .news-row__kind { display: none; }
  .news__preview { display: none; }
  .news__laurels { gap: 10px 4px; }
  .laurel { width: calc(50% - 4px); }
  .laurel__title { font-size: 13px; }
  .laurel__kind { font-size: 7.5px; letter-spacing: .16em; }
  .laurel__by { font-size: 7px; }
}

/* ── Fundador (dentro de "The studio") ── */
.founder {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(220px, .75fr) 1.25fr; gap: clamp(40px, 7vw, 120px);
  align-items: center; margin-top: clamp(60px, 8vw, 120px); padding-top: clamp(50px, 6vw, 100px); border-top: 1px solid var(--line);
}
.founder[hidden] { display: none; }
.founder__portrait { position: relative; display: block; width: 100%; max-width: 440px; aspect-ratio: 4 / 5; justify-self: end; }
.founder__portrait img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 2px;
  filter: grayscale(1) contrast(1.08) brightness(.92); transition: filter 1s var(--ease-out);
}
.founder__portrait:hover img { filter: grayscale(0) contrast(1) brightness(1); }
/* Visor de cámara sobre el retrato */
.founder__portrait { isolation: isolate; }
.founder__flash { position: absolute; inset: 0; z-index: 2; background: #fff; opacity: 0; pointer-events: none; mix-blend-mode: screen; }
.founder__vf { position: absolute; inset: 14px; z-index: 3; pointer-events: none; color: #fff; font-size: 10px; letter-spacing: .16em; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.vf-c { position: absolute; width: 26px; height: 26px; border: 0 solid rgba(255,255,255,.9); }
.vf-tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.vf-tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.vf-bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.vf-br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.vf-rec { position: absolute; top: 12px; left: 36px; display: inline-flex; align-items: center; gap: 7px; }
.vf-rec b { width: 8px; height: 8px; border-radius: 50%; background: #e2382b; animation: vf-blink 1.2s steps(1) infinite; }
@keyframes vf-blink { 50% { opacity: 0; } }
.vf-tc { position: absolute; top: 12px; right: 36px; font-variant-numeric: tabular-nums; }
.vf-meta { position: absolute; bottom: 12px; left: 36px; opacity: .8; }
.vf-cross { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; translate: -50% -50%; opacity: .55;
  background: linear-gradient(#fff, #fff) center / 1px 100% no-repeat, linear-gradient(#fff, #fff) center / 100% 1px no-repeat; }
.founder__portrait:hover .vf-cross { opacity: 0; transition: opacity .4s; }

/* Claqueta (de pizarra negra con tiza, como en el set) */
.founder__slate {
  position: absolute; z-index: 4; right: clamp(-86px, -6vw, -44px); bottom: clamp(-60px, -4.5vw, -34px);
  width: clamp(158px, 13.5vw, 214px); rotate: -6deg; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35));
}
.slate__stick { display: block; height: clamp(16px, 1.4vw, 22px); border-radius: 2px;
  background: repeating-linear-gradient(-55deg, #f3f0e9 0 13px, #121110 13px 26px); border: 1.5px solid #121110; }
.slate__stick--top { transform-origin: 3% 100%; rotate: 0deg; margin-bottom: 2px; }
.slate__board {
  display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 2px; border-radius: 0 0 3px 3px;
  background: #151413; color: #f3f0e9; border: 1.5px solid #121110; font-family: var(--f-mono);
}
.slate__row { display: flex; flex-direction: column; gap: 2px; padding: 5px 7px 6px; border-right: 1px solid rgba(243,240,233,.28); border-bottom: 1px solid rgba(243,240,233,.28); min-width: 0; }
.slate__row:nth-child(5), .slate__row--wide { border-right: 0; }
.slate__row--wide { grid-column: 1 / -1; }
.slate__row--foot { flex-direction: row; align-items: baseline; gap: 8px; border-bottom: 0; }
.slate__row--foot small:last-child { margin-left: auto; }
.slate__row small { font-size: 7px; letter-spacing: .18em; text-transform: uppercase; opacity: .6; }
.slate__row b { font: 600 clamp(10px, .85vw, 13px)/1.1 var(--f-display); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slate__row--wide b { font-size: clamp(11px, 1vw, 15px); }
.founder__kicker { display: flex; align-items: center; gap: 14px; margin: 0; color: var(--accent); letter-spacing: .2em; text-transform: uppercase; font-size: 11px; }
.founder__kicker i { width: 44px; height: 1px; background: currentColor; }
.founder__name { margin: 22px 0 0; font: 500 clamp(44px, 6.4vw, 110px)/.88 var(--f-display); letter-spacing: -.05em; color: var(--ink); }
.founder__name .w { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }   /* espacio para la 'g' */
.founder__name .w > span { display: inline-block; }
.founder__name .w:last-child { color: transparent; -webkit-text-stroke: 1px var(--ink); }
.founder__quote {
  margin: clamp(26px, 3vw, 40px) 0 0; padding-left: 24px; border-left: 1px solid var(--accent); max-width: 32ch;
  font: 300 clamp(19px, 1.7vw, 26px)/1.4 var(--f-display); letter-spacing: -.02em; color: var(--ink);
}
.founder__quote::before { content: '“'; } .founder__quote::after { content: '”'; }
.founder__teaser { margin: 22px 0 0; max-width: 54ch; color: var(--ink-dim); line-height: 1.75; }
.founder__link { display: inline-flex; align-items: center; gap: 18px; margin-top: clamp(28px, 3vw, 40px); color: var(--ink); font: 500 12px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; }
.founder__link-label { position: relative; padding: 8px 0; }
.founder__link-label::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(.3); transform-origin: left; transition: transform .7s var(--ease); }
.founder__link:hover .founder__link-label::after { transform: scaleX(1); }
.founder__link-arrow { width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .45s, border-color .45s, color .45s, rotate .7s var(--ease); }
.founder__link-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.founder__link:hover .founder__link-arrow { background: var(--accent); border-color: var(--accent); color: #0a0908; rotate: -45deg; }
@media (max-width: 860px) {
  .founder { grid-template-columns: 1fr; }
  .founder__portrait { justify-self: start; max-width: 320px; }
  .founder__slate { right: -8px; width: 150px; }
}

/* ── Página del fundador (/director/nombre) ── */
.f-hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; padding: 120px var(--gutter) clamp(36px, 5vw, 70px); }
.f-hero__portrait { position: absolute; top: 12svh; left: 50%; width: min(38vw, 520px); aspect-ratio: 4 / 5; translate: -50% 0; overflow: hidden; border-radius: 2px; }
.f-hero__portrait img { width: 100%; height: 118%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.85); }
.f-hero__portrait::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, var(--bg)); }
.f-hero__text { position: relative; z-index: 2; }
.f-hero__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0 0 clamp(18px, 2vw, 28px); color: var(--accent); letter-spacing: .2em; text-transform: uppercase; font-size: 11px; }
.f-hero__kicker i { width: 44px; height: 1px; background: currentColor; }
.f-hero__swap { position: relative; display: inline-grid; color: var(--ink); overflow: hidden; height: 1.4em; }
.f-hero__swap span { grid-area: 1 / 1; }
.f-name { margin: 0; font: 500 clamp(56px, 13vw, 240px)/.82 var(--f-display); letter-spacing: -.06em; color: var(--ink); }
.f-name .w { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.f-name .w:last-child { text-align: right; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.f-name .ch { display: inline-block; will-change: transform; }
.f-hero__scroll { position: absolute; z-index: 2; left: var(--gutter); top: 50%; writing-mode: vertical-rl; rotate: 180deg; color: var(--ink-faint); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; }

.f-marquee { border-block: 1px solid var(--line); overflow: hidden; padding: clamp(16px, 2vw, 26px) 0; white-space: nowrap; }
.f-marquee__track { display: inline-flex; gap: 40px; animation: marquee 30s linear infinite; }
.f-marquee__track span { font: 500 clamp(34px, 5vw, 80px)/1 var(--f-display); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px var(--ink-dim); }
.f-marquee__track span:nth-child(4n+1) { color: var(--ink); -webkit-text-stroke: 0; }
.f-marquee__track svg { width: .5em; align-self: center; color: var(--accent); }

.f-section { padding: clamp(80px, 11vw, 180px) var(--gutter) 0; }
.f-label { display: flex; align-items: center; gap: 14px; margin: 0 0 clamp(30px, 4vw, 56px); color: var(--accent); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.f-label b { color: var(--ink-faint); font-weight: 400; }
/* Cita: las palabras se "encienden" al hacer scroll */
.f-quote { margin: 0; max-width: 18ch; font: 500 clamp(34px, 5.6vw, 96px)/1.02 var(--f-display); letter-spacing: -.045em; color: var(--ink); }
.f-quote .qw { display: inline-block; margin-right: .22em; }
.f-bio { display: grid; grid-template-columns: minmax(200px, .8fr) 1.4fr; gap: clamp(30px, 6vw, 100px); align-items: start; }
.f-bio__aside { position: sticky; top: 100px; }
.f-bio__aside img { width: 100%; max-width: 320px; aspect-ratio: 3 / 4; object-fit: cover; filter: grayscale(1); border-radius: 2px; }
.f-bio__aside dl { margin: 26px 0 0; display: grid; gap: 14px; }
.f-bio__aside dt { color: var(--ink-faint); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.f-bio__aside dd { margin: 4px 0 0; color: var(--ink); }
.f-bio__text { font: 400 clamp(16px, 1.25vw, 19px)/1.8 var(--f-text); color: var(--ink-dim); max-width: 62ch; }
.f-bio__text p { margin: 0 0 1.2em; }
.f-bio__text p:first-child { font: 400 clamp(22px, 2.2vw, 34px)/1.35 var(--f-display); letter-spacing: -.02em; color: var(--ink); }
/* Trayectoria: línea que se dibuja con el scroll */
.f-timeline { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: clamp(20px, 3vw, 50px); padding-top: 34px; overflow-x: auto; scrollbar-width: none; }
.f-timeline::before { content: ''; position: absolute; top: 6px; left: 0; right: 0; height: 1px; background: var(--line); }
.f-timeline__line { position: absolute; top: 6px; left: 0; right: 0; height: 1px; background: var(--accent); transform-origin: left; }
.f-timeline li { list-style: none; position: relative; }
.f-timeline li::before { content: ''; position: absolute; top: -34px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 1px solid var(--accent); }
.f-timeline b { display: block; font: 500 clamp(22px, 2.2vw, 34px)/1.1 var(--f-display); letter-spacing: -.03em; color: var(--ink); }
.f-timeline p { margin: 12px 0 0; color: var(--ink-dim); line-height: 1.6; max-width: 34ch; }
.f-timeline ol { display: contents; }
/* Filmografía: filas; al pasar el cursor aparece el póster */
.f-films { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.f-films li { border-bottom: 1px solid var(--line); }
.f-films a { display: grid; grid-template-columns: 90px 1fr auto auto; gap: 24px; align-items: baseline; padding: clamp(18px, 2.2vw, 30px) 0; transition: padding .6s var(--ease-out); }
.f-films a:hover { padding-left: clamp(8px, 1.4vw, 22px); }
.f-films .y { color: var(--accent); }
.f-films h4 { margin: 0; font: 500 clamp(24px, 3.2vw, 52px)/1.05 var(--f-display); letter-spacing: -.035em; color: var(--ink); transition: color .4s; }
.f-films a:hover h4 { color: var(--accent); }
.f-films .c, .f-films .r { color: var(--ink-faint); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.f-films .r { color: var(--ink-dim); }
.f-films__note { margin: 18px 0 0; color: var(--ink-faint); font-size: 13px; }
.f-preview { position: fixed; z-index: 1001; top: 0; left: 0; width: 240px; aspect-ratio: 2 / 3; pointer-events: none; opacity: 0; translate: -50% -50%; overflow: hidden; border-radius: 2px; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.f-preview img { width: 100%; height: 100%; object-fit: cover; }
.f-cta { display: block; margin-top: clamp(100px, 12vw, 200px); padding: clamp(70px, 9vw, 150px) var(--gutter); border-top: 1px solid var(--line); text-align: center; }
.f-cta p { margin: 0 0 18px; color: var(--ink-dim); }
.f-cta a { display: inline-block; font: 500 clamp(40px, 7.5vw, 130px)/.9 var(--f-display); letter-spacing: -.05em; color: var(--ink); transition: color .4s; }
.f-cta a:hover { color: var(--accent); }
.f-cta a span { display: inline-block; transition: translate .6s var(--ease); }
.f-cta a:hover span { translate: 12px 0; }
@media (max-width: 860px) {
  .f-hero__portrait { width: 72vw; top: 14svh; }
  .f-hero__scroll { display: none; }
  .f-bio { grid-template-columns: 1fr; }
  .f-bio__aside { position: static; }
  .f-films a { grid-template-columns: 56px 1fr; }
  .f-films .c, .f-films .r { grid-column: 2; }
  .f-preview { display: none; }
}


/* ── Contacto ── */
.contact { padding: clamp(120px, 16vw, 240px) var(--gutter); text-align: center; }
.contact__kicker { color: var(--accent); margin: 0 0 24px; }
.contact__title { font: 400 clamp(44px, 9vw, 150px)/.92 var(--f-display); letter-spacing: -.02em; margin: 0 auto 26px; max-width: 14ch; }
.contact__text { color: var(--ink-dim); font-size: 18px; margin: 0 auto 40px; max-width: 46ch; }
.contact__mail { display: inline-block; font: 400 clamp(26px, 4vw, 60px)/1.1 var(--f-display); border-bottom: 1px solid var(--line); padding-bottom: 6px; transition: color .4s, border-color .4s; word-break: break-word; }
.contact__mail:hover { color: var(--accent); border-color: var(--accent); }
.contact__info { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; margin-top: 40px; color: var(--ink-dim); }

/* ═══════════ FOOTER ═══════════ */


/* ═══════════ FICHA DE PROYECTO ═══════════ */
.detail { position: fixed; inset: 0; z-index: 1000; background: var(--bg); }
.detail[hidden] { display: none; }
.detail__scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.detail__close { position: fixed; z-index: 5; top: 20px; right: var(--gutter); width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); background: rgba(10,9,8,.6); backdrop-filter: blur(8px); transition: transform .6s var(--ease), border-color .3s; }
.detail__close span { position: absolute; left: 16px; right: 16px; top: 50%; height: 1px; background: var(--ink); }
.detail__close span:first-child { transform: rotate(45deg); } .detail__close span:last-child { transform: rotate(-45deg); }
.detail__close:hover { transform: rotate(90deg); border-color: var(--accent); }

.d-hero { position: relative; height: 92svh; min-height: 520px; display: flex; align-items: flex-end; overflow: hidden; }
.d-hero__bg { position: absolute; inset: 0; }
.d-hero__bg img { width: 100%; height: 115%; object-fit: cover; filter: saturate(.8); }
.d-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,9,8,.25), rgba(10,9,8,.2) 40%, var(--bg)); }
.d-hero__content { position: relative; z-index: 2; padding: 0 var(--gutter) clamp(30px, 5vw, 70px); width: 100%; display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 60px); align-items: end; }
.d-poster { width: clamp(120px, 16vw, 250px); aspect-ratio: 2/3; overflow: hidden; border-radius: 2px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.d-poster img { width: 100%; height: 100%; object-fit: cover; }
.d-poster, .d-hero__bg { cursor: zoom-in; }
.d-poster img { transition: transform .8s var(--ease-out); }
.d-poster:hover img { transform: scale(1.04); }
.d-kicker { color: var(--accent); margin: 0 0 14px; }
.d-title { font: 400 clamp(44px, 8vw, 132px)/.92 var(--f-display); letter-spacing: -.02em; margin: 0; }
.d-tagline { font: 400 clamp(18px, 1.8vw, 26px)/1.3 var(--f-display); color: var(--ink-dim); margin: 16px 0 0; }
@media (max-width: 640px) { .d-hero__content { grid-template-columns: 1fr; } .d-poster { display: none; } }

.d-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-block: 1px solid var(--line); margin: 0 var(--gutter); }
.d-facts div { padding: 22px 0; }
.d-facts dt { color: var(--ink-faint); margin-bottom: 6px; }
.d-facts dd { margin: 0; font: 400 20px var(--f-display); }
.d-block { padding: clamp(60px, 8vw, 120px) var(--gutter) 0; }
.d-block__head { display: flex; gap: 18px; align-items: baseline; margin-bottom: 30px; }
.d-block__head h3 { font: 400 clamp(30px, 4vw, 56px)/1 var(--f-display); margin: 0; }
.d-synopsis { font: 400 clamp(22px, 2.4vw, 36px)/1.4 var(--f-display); max-width: 30ch; margin: 0; }
.d-synopsis::first-letter { font-size: 2.6em; float: left; line-height: .85; margin: .06em .1em 0 0; color: var(--accent);  }
.d-trailer { position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; border-radius: 2px; }
.d-trailer iframe, .d-trailer video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.d-trailer__poster { position: absolute; inset: 0; cursor: pointer; }
.d-trailer__poster img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.55); transition: filter .6s, transform 1.2s var(--ease-out); }
.d-trailer__poster:hover img { filter: brightness(.7); transform: scale(1.03); }
.d-trailer__btn { position: absolute; inset: 0; margin: auto; width: clamp(80px, 10vw, 130px); height: clamp(80px, 10vw, 130px); border-radius: 50%; background: var(--ink); display: grid; place-items: center; transition: transform .6s var(--ease-out), background .3s; }
.d-trailer__btn svg { width: 26%; fill: var(--bg); margin-left: 6%; }
.d-trailer__poster:hover .d-trailer__btn { transform: scale(1.1); background: var(--accent); }

.d-credits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(30px, 4vw, 60px); }
.d-credits h4 { color: var(--accent); margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.d-credits ul { list-style: none; margin: 0; padding: 0; }
.d-credits li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed rgba(236,230,218,.07); }
.d-credits li span:first-child { color: var(--ink-dim); font-size: 14px; }
.d-credits li span:last-child { font: 400 18px var(--f-display); text-align: right; }
.d-credits button.person { font: inherit; text-align: right; border-bottom: 1px solid var(--line); transition: color .3s, border-color .3s; }
.d-credits button.person:hover { color: var(--accent); border-color: var(--accent); }

.d-gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(10px, 1.4vw, 20px); }
.d-gallery figure { margin: 0; overflow: hidden; cursor: zoom-in; position: relative; background: var(--bg-2); border-radius: 2px; }
.d-gallery figure:nth-child(6n+1) { grid-column: span 8; aspect-ratio: 16/9; }
.d-gallery figure:nth-child(6n+2) { grid-column: span 4; }
.d-gallery figure:nth-child(6n+3), .d-gallery figure:nth-child(6n+4), .d-gallery figure:nth-child(6n+5) { grid-column: span 4; aspect-ratio: 4/3; }
.d-gallery figure:nth-child(6n) { grid-column: span 12; aspect-ratio: 21/9; }
.d-gallery img, .d-gallery video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.d-gallery figure:hover img, .d-gallery figure:hover video { transform: scale(1.05); }
/* Videos de la galería: aparecen con un fundido cuando el primer fotograma está listo y se reproducen solos */
.d-gallery figure.is-video { background: #0a0908; }
.d-gallery figure.is-video video { opacity: 0; transition: opacity .8s var(--ease-out), transform 1.2s var(--ease-out); }
.d-gallery figure.is-video.is-loaded video { opacity: 1; }
.d-gallery figure.is-video::before {   /* mientras carga: barrido suave tipo "revelando" */
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.05) 50%, transparent 70%) 0 0 / 250% 100%;
  animation: vid-shimmer 1.6s linear infinite;
}
.d-gallery figure.is-video.is-loaded::before, .d-gallery figure.is-video.is-error::before { display: none; }
@keyframes vid-shimmer { to { background-position: -250% 0; } }
.d-gallery .vid-badge {
  position: absolute; z-index: 2; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 9px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #fff;
  background: rgba(10,9,8,.55); backdrop-filter: blur(6px); opacity: 0; transform: translateY(-4px);
  transition: opacity .5s, transform .5s var(--ease-out);
}
.d-gallery .vid-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); animation: live-pulse 1.8s infinite; }
.d-gallery figure.is-playing .vid-badge { opacity: 1; transform: none; }
@media (max-width: 640px) { .d-gallery figure { grid-column: span 12 !important; aspect-ratio: 16/10 !important; } }

.d-next { display: block; margin-top: clamp(80px, 10vw, 160px); padding: clamp(60px, 8vw, 120px) var(--gutter); border-top: 1px solid var(--line); text-align: center; position: relative; overflow: hidden; cursor: pointer; }
.d-next__bg { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.d-next__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.35); transform: scale(1.1); transition: transform 1.6s var(--ease-out); }
.d-next:hover .d-next__bg { opacity: 1; }
.d-next:hover .d-next__bg img { transform: scale(1); }
.d-next > *:not(.d-next__bg) { position: relative; }
.d-next p { color: var(--ink-dim); margin: 0 0 14px; }
.d-next h3 { font: 400 clamp(40px, 7vw, 110px)/1 var(--f-display); margin: 0; }

/* ── Biografía ── */
.bio { position: fixed; inset: 0; z-index: 1060; background: rgba(5,5,4,.8); backdrop-filter: blur(6px); display: grid; place-items: center; padding: var(--gutter); }
.bio[hidden] { display: none; }
.bio__card { position: relative; display: grid; grid-template-columns: 200px 1fr; gap: 30px; max-width: 760px; width: 100%; background: var(--bg-2); border: 1px solid var(--line); padding: clamp(20px, 3vw, 40px); }
.bio__photo { width: 100%; aspect-ratio: 3/4; object-fit: cover; filter: grayscale(.4); }
.bio__kind { color: var(--accent); margin: 0 0 8px; }
.bio__name { font: 400 clamp(30px, 3.4vw, 46px)/1 var(--f-display); margin: 0 0 16px; }
.bio__text { color: var(--ink-dim); margin: 0; white-space: pre-line; }
.bio__close { position: absolute; top: 10px; right: 16px; font-size: 30px; line-height: 1; color: var(--ink-dim); }
@media (max-width: 600px) { .bio__card { grid-template-columns: 1fr; } .bio__photo { max-width: 180px; } }

/* ── Lightbox ── */
.lightbox { position: fixed; inset: 0; z-index: 1070; background: rgba(5,5,4,.96); display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; padding: 40px 10px; }
.lightbox[hidden] { display: none; }
.lightbox__stage { margin: 0; height: 100%; display: grid; place-items: center; overflow: hidden; }
.lightbox__stage img, .lightbox__stage video { max-height: 82vh; max-width: 100%; object-fit: contain; }
.lightbox__stage figcaption { margin-top: 14px; color: var(--ink-dim); font: 16px var(--f-display); text-align: center; }
.lightbox__nav { font: 300 54px/1 var(--f-display); color: var(--ink-dim); height: 100%; transition: color .3s; }
.lightbox__nav:hover { color: var(--accent); }
.lightbox__close { position: absolute; top: 14px; right: 24px; font-size: 40px; line-height: 1; color: var(--ink-dim); }
.lightbox__count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: var(--ink-faint); }

/* ═══════════ Accesibilidad: movimiento reducido ═══════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .grain { display: none; }
}

/* ═══════════ Tipografía grotesca (referencia: estudios tipo The Mill) ═══════════
   Titulares en Inter Tight: peso medio, interletrado muy cerrado, sin cursivas. */
i, em { font-style: normal; }
.hero__title, .contact__title, .d-title, .section-title, .d-next h3 {
  font-weight: 500; letter-spacing: -.045em; line-height: .9;
}
.hero__title { font-size: clamp(48px, 9.6vw, 164px); }
.feat__title, .d-block__head h3, .bio__name, .stats b {
  font-weight: 500; letter-spacing: -.04em;
}
.card__title, .d-facts dd, .d-credits li span:last-child { font-weight: 500; letter-spacing: -.02em; }
.hero__slogan, .d-tagline, .feat__tag, .contact__mail, .marquee__track span, .d-synopsis, .about__text p:first-child {
  font-weight: 300; letter-spacing: -.02em;
}
.d-synopsis::first-letter { font-size: inherit; float: none; margin: 0; color: inherit; line-height: inherit; }

.preloader__count { font-weight: 300; letter-spacing: -.05em; }

.nav a { letter-spacing: .12em; }

/* ═══════════ Ajustes de portada: blanco más puro, logo grande, botón abajo a la derecha ═══════════ */
:root {
  --ink: #ffffff;          /* texto principal: blanco puro */
  --ink-dim: #d9d6d0;      /* texto secundario más luminoso */
}
/* Logo del header: más grande y blanco total */
.header .logo-mark { height: 64px; color: #fff; }
.header .brand { filter: drop-shadow(0 2px 12px rgba(0,0,0,.35)); }  /* se lee sobre cualquier video */
.nav a { color: rgba(255,255,255,.88); }
.nav a:hover { color: #fff; }
@media (max-width: 760px) { .header .logo-mark { height: 46px; } }

/* Textos del hero en blanco */
.hero__slogan { color: #fff; }
.hero__title { color: #fff; }

/* Botón "Ver nuestras obras" en la esquina inferior derecha */
.hero .btn-ghost {
  position: absolute; z-index: 4; right: var(--gutter); bottom: 48px;
  color: #fff; border-color: rgba(255,255,255,.55);
  background: rgba(10,9,8,.18); backdrop-filter: blur(6px);
}
.hero .btn-ghost:hover { color: var(--bg); border-color: #fff; }
.hero__content { padding-bottom: 72px; }
.hero__scroll { display: none; }
@media (max-width: 760px) {
  .hero .btn-ghost { bottom: 28px; }
  .hero__content { padding-bottom: 104px; }   /* deja sitio al botón debajo del texto */
}

/* ═══════════ FOOTER: logo + copyright a la izquierda, redes a la derecha ═══════════ */
.footer { border-top: 1px solid var(--line); padding: clamp(32px, 4vw, 48px) var(--gutter) clamp(28px, 3vw, 40px); }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; flex-wrap: wrap; }
.footer__brand { display: flex; flex-direction: column; gap: 16px; }
.footer__logo .logo-mark { height: 52px; color: #fff; transition: opacity .3s; }
.footer__logo:hover .logo-mark { opacity: .75; }
.footer__copy { margin: 0; font-size: 14px; color: var(--ink-dim); }
.footer__social { display: flex; align-items: center; gap: 22px; padding-top: 10px; }
.footer__social a { display: grid; place-items: center; width: 26px; height: 26px; color: #8f8a83; transition: color .25s; }
.footer__social a:hover { color: #fff; }
/* El efecto de subir va en el dibujo (svg), no en el enlace: así no choca con la animación de entrada */
.footer__social a svg { transition: transform .35s var(--ease-out); }
.footer__social a:hover svg { transform: translateY(-3px); }
.footer__social a[hidden] { display: none; }
.footer__social svg { width: 100%; height: 100%; overflow: visible; display: block; }
/* Partes del ícono: relleno con el color del enlace, "cut" = calado con el color de fondo */
.footer__social .fill { fill: currentColor; }
.footer__social .cut { fill: var(--bg); }
.footer__social .cut-stroke { fill: none; stroke: var(--bg); stroke-width: 1.8; stroke-linecap: round; }
.footer__social .stroke, .footer__social svg.stroke * { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer__social svg.stroke .fill { fill: currentColor; stroke: none; }
@media (max-width: 600px) {
  .footer__inner { flex-direction: column; }
  .footer__social { padding-top: 0; }
}


/* ═══════════════════════════════════════════════════════════════
   MODO CLARO / OSCURO
   - El tema se marca en <html data-theme="light|dark"> (public/js/theme.js).
   - Portada, pantalla de carga y visor de galería son SIEMPRE oscuros:
     van sobre video/imagen y ahí el texto blanco es el que mejor se lee.
   ═══════════════════════════════════════════════════════════════ */
html[data-theme="light"] {
  --bg: #f4f1ea;          /* papel */
  --bg-2: #ebe6dc;
  --bg-3: #e0dacd;
  --ink: #121110;         /* tinta */
  --ink-dim: #4d4943;
  --ink-faint: #66615a;   /* contraste ≥ 4.5:1 sobre el papel */
  --line: rgba(18, 17, 16, .14);
  --accent: #86600f;      /* ámbar profundo: contraste ≥ 4.5:1 sobre el papel (textos pequeños dorados) */
  --accent-2: #b8432f;
  --glass: rgba(244, 241, 234, .78);
  color-scheme: light;
}
:root { --glass: rgba(10, 9, 8, .6); }

/* Zonas que se quedan oscuras en ambos modos */
html[data-theme="light"] .hero,
html[data-theme="light"] .preloader,
html[data-theme="light"] .lightbox,
html[data-theme="light"] .feat {
  --bg: #0a0908; --bg-2: #131110; --bg-3: #1c1a18;
  --ink: #ffffff; --ink-dim: #d9d6d0; --ink-faint: #5e5952;
  --line: rgba(236, 230, 218, .14); --accent: #d9a441;
  color: var(--ink);
  color-scheme: dark;
}

/* Grano y viñeta más suaves sobre fondo claro */
html[data-theme="light"] .grain { mix-blend-mode: multiply; opacity: .06; }
html[data-theme="light"] .vignette { opacity: 0; }

/* Header: blanco sobre el video; en modo claro, al pasar la portada, fondo claro y logo oscuro */
.header { --header-fg: #fff; }
.header .logo-mark, .header .nav a { color: var(--header-fg); }
.menu-btn span { background: var(--header-fg); }
html[data-theme="light"] .header.is-past-hero,
html[data-theme="light"] .header:has(.nav.is-open) { --header-fg: var(--ink); }
html[data-theme="light"] .header.is-past-hero { background: rgba(244, 241, 234, .88); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
html[data-theme="light"] .header.is-past-hero .brand { filter: none; }
@media (max-width: 760px) {
  html[data-theme="light"] .nav a { color: var(--ink); }
  .nav a { letter-spacing: -.02em; }   /* enlaces grandes del menú móvil: sin interletrado amplio */
}

/* Botón de tema */
.theme-toggle {
  position: relative; width: 38px; height: 38px; margin-left: clamp(18px, 2.4vw, 36px); flex: none;
  display: grid; place-items: center; border-radius: 50%;
  color: var(--header-fg); border: 1px solid color-mix(in srgb, var(--header-fg) 35%, transparent);
  transition: border-color .3s;   /* sin transición de transform: la anima GSAP en la entrada */
}
.theme-toggle:hover { border-color: var(--header-fg); }
.theme-toggle:hover svg { rotate: -20deg; }
.theme-toggle svg { position: absolute; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: opacity .4s, transform .6s var(--ease-out), rotate .5s var(--ease-out); }
/* En oscuro se ve el sol (pasar a claro); en claro, la luna */
.theme-toggle__moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
html[data-theme="light"] .theme-toggle__sun { opacity: 0; transform: rotate(90deg) scale(.5); }
html[data-theme="light"] .theme-toggle__moon { opacity: 1; transform: none; }
.nav { margin-left: auto; }
@media (max-width: 760px) { .theme-toggle { margin-left: auto; margin-right: 14px; z-index: 2; } }

/* Ajustes de piezas que tenían colores fijos */
.card__year { color: #fff; }
.detail__close { background: var(--glass); }
.footer__logo .logo-mark { color: var(--ink); }
.footer__social a:hover { color: var(--ink); }

/* Fundido simple para navegadores sin View Transitions */
html.theme-fade, html.theme-fade * { transition: background-color .45s ease, color .45s ease, border-color .45s ease !important; }
/* La transición "iris" no debe mezclar las dos capas */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ═══════════════════════════════════════════════════════════════
   ESTRENO DESTACADO (proyecto más reciente) — justo después de la portada
   Siempre oscuro (va sobre imagen), igual que la portada.
   ═══════════════════════════════════════════════════════════════ */
html[data-theme="light"] .spotlight {
  --bg: #0a0908; --ink: #ffffff; --ink-dim: #d9d6d0; --ink-faint: #8a857d;
  --line: rgba(236, 230, 218, .18); --accent: #d9a441; color: var(--ink); color-scheme: dark;
}
.spotlight { position: relative; background: #000; color: var(--ink); }
.spotlight__intro {
  display: grid; justify-items: center; align-content: center; gap: clamp(16px, 2vw, 26px); text-align: center;
  min-height: 70vh; padding: clamp(80px, 12vh, 160px) var(--gutter) clamp(40px, 6vh, 80px); background: #000; color: #fff;
}
.spotlight__intro[hidden] { display: none; }
.spotlight__intro-kicker { margin: 0; color: var(--accent); letter-spacing: .3em; }
.spotlight__intro-text { margin: 0; max-width: 26ch; font: 500 clamp(28px, 3.6vw, 60px)/1.12 var(--f-display); letter-spacing: -.02em; }
.spotlight__intro-text .split-word { display: inline-block; overflow: hidden; vertical-align: top; }
.spotlight__intro-text .split-word > span { display: inline-block; }
.spotlight__stage {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: center;
}

/* Cuadro con el tráiler/imagen: en escritorio arranca pequeño y se expande (ver site.js) */
.spotlight__frame { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #0a0908; }
.spotlight__media { position: absolute; inset: 0; }
.spotlight__media img, .spotlight__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.05); }
/* Video de YouTube/Vimeo de fondo: se escala para cubrir como un "object-fit: cover" */
.spotlight__media iframe {
  position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none;
  width: max(100%, 177.78vh); height: max(100%, 56.25vw); transform: translate(-50%, -50%) scale(1.04);
  opacity: 0; transition: opacity 1.2s ease;
}
.spotlight__media iframe.is-ready { opacity: 1; }
.spotlight__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.62) 36%, rgba(0,0,0,.1) 68%, rgba(0,0,0,.35) 100%),
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, transparent 22%, transparent 62%, rgba(0,0,0,.92) 100%);
}

/* "DayOff Studios presents" — apertura de película */
.spotlight__presents {
  position: absolute; z-index: 1; inset: 0; margin: 0; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: #fff; text-align: center; letter-spacing: .5em; font-size: clamp(11px, 1.1vw, 14px);
  text-shadow: 0 2px 18px rgba(0,0,0,.85), 0 0 2px rgba(0,0,0,.6);
}
.spotlight__presents b { font: italic 300 clamp(26px, 3vw, 44px)/1 var(--f-display); letter-spacing: -.01em; text-transform: none; color: #fff; }
.spotlight__presents-kind { color: var(--accent); }

/* Texto gigante "NEW RELEASE" en contorno al fondo */
.spotlight__ghost {
  position: absolute; z-index: -1; left: 0; bottom: 18%; display: flex; gap: 6vw; white-space: nowrap;
  font: 700 clamp(90px, 16vw, 260px)/.85 var(--f-display); letter-spacing: -.05em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.08); pointer-events: none;
  animation: ghost-drift 40s linear infinite;
}
@keyframes ghost-drift { to { transform: translateX(-50%); } }

.spotlight__inner {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(30px, 5vw, 90px);
  align-items: center; padding: clamp(100px, 11vw, 150px) var(--gutter) clamp(24px, 3vw, 40px);
}
.spotlight__badge { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 24px; color: var(--accent); letter-spacing: .22em; }
.spotlight__badge i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); animation: live-pulse 1.8s infinite; }
.spotlight__badge b { font-weight: 500; color: var(--ink-dim); padding-left: 12px; border-left: 1px solid var(--line); }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(184,67,47,.7); } 70% { box-shadow: 0 0 0 12px rgba(184,67,47,0); } 100% { box-shadow: 0 0 0 0 rgba(184,67,47,0); } }
.spotlight__title { margin: 0; font: 500 clamp(64px, 12.5vw, 220px)/.84 var(--f-display); letter-spacing: -.06em; color: #fff; }
.spotlight__title.is-long { font-size: clamp(50px, 8vw, 140px); line-height: .88; }
.spotlight__tagline { margin: 22px 0 0; font: 300 clamp(20px, 2vw, 30px)/1.3 var(--f-display); letter-spacing: -.02em; color: #fff; }
.spotlight__meta { margin: 24px 0 0; color: var(--ink-dim); line-height: 2; }
.spotlight__meta span + span::before { content: '·'; margin: 0 12px; color: var(--ink-faint); }
.spotlight__synopsis { margin: 18px 0 0; max-width: 54ch; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.7; color: var(--ink-dim); }
.spotlight__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.spotlight .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }

/* Botón principal sólido */
.btn-solid {
  display: inline-flex; align-items: center; gap: 12px; padding: 18px 30px; border-radius: 100px;
  background: #fff; color: #0a0908; font: 500 11px var(--f-mono); letter-spacing: .16em; text-transform: uppercase;
  transition: background .4s var(--ease), color .4s, translate .4s var(--ease-out);
}
.btn-solid svg { width: 14px; height: 14px; fill: currentColor; }
.btn-solid:hover { background: var(--accent); color: #0a0908; translate: 0 -2px; }

/* Póster inclinado con brillo */
.spotlight__poster {
  margin: 0; justify-self: end; width: min(100%, 380px); aspect-ratio: 2/3; position: relative;
  border-radius: 4px; overflow: hidden; rotate: 3deg;
  box-shadow: 0 50px 120px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.1);
}
.spotlight__poster img { width: 100%; height: 100%; object-fit: cover; }
.spotlight__poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.18) 50%, transparent 65%); transform: translateX(-100%); animation: poster-shine 6s ease-in-out 2s infinite; }
@keyframes poster-shine { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* Bloque de créditos estilo póster de cine */
.spotlight__billing {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 26px;
  margin: 0 var(--gutter) clamp(26px, 3vw, 40px); padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14);
  font: 500 clamp(10px, .85vw, 12px)/1.6 var(--f-display); text-transform: uppercase; letter-spacing: .08em; color: #fff;
  text-align: center;
}
.spotlight__billing span { white-space: nowrap; }
.spotlight__billing small { font-size: .78em; font-weight: 400; letter-spacing: .18em; color: var(--ink-faint); margin-right: 8px; }
.spotlight__billing:empty { display: none; }

@media (max-width: 860px) {
  .spotlight__inner { grid-template-columns: 1fr; padding-top: 90px; }
  .spotlight__poster { order: -1; justify-self: start; width: min(46vw, 220px); rotate: -3deg; }
  .spotlight__shade { background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.8) 45%, #000 100%); }
  .spotlight__presents { display: none; }
  .spotlight__billing { justify-content: flex-start; text-align: left; }
  .spotlight__billing span { white-space: normal; }
}

/* Enlace "Latest release" en el menú */
.nav .nav__latest { display: inline-flex; align-items: center; gap: 8px; color: var(--header-fg); }
.nav__latest i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); animation: blink 1.2s steps(2) infinite; }
.nav__latest[hidden] { display: none !important; }

/* Acceso directo al estreno dentro de la portada */
.hero__release {
  display: inline-flex; align-items: center; gap: 14px; margin-top: -10px; padding: 8px 16px 8px 8px;
  border-radius: 100px; background: rgba(10,9,8,.35); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px);
  color: #fff; max-width: 100%; transition: border-color .3s, background .3s;
}
/* Mientras llega el estreno, el chip ocupa su lugar (invisible) para que el hero no salte al aparecer (CLS) */
.hero__release[hidden] { display: inline-flex; visibility: hidden; }
.hero__release:hover { border-color: #fff; background: rgba(10,9,8,.55); }
.hero__release-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 100px; background: #fff; color: #0a0908; font-size: 10px; }
.hero__release-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); animation: blink 1.2s steps(2) infinite; }
.hero__release-title { font: 500 15px var(--f-display); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__release svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .4s var(--ease-out); }
.hero__release:hover svg { transform: translateX(4px); }

/* Visor de tráiler a pantalla completa */
.lightbox.is-trailer { grid-template-columns: 1fr; padding: clamp(16px, 4vw, 60px); }
.lightbox.is-trailer .lightbox__nav, .lightbox.is-trailer .lightbox__count { display: none; }
.lightbox__trailer { width: min(100%, calc((100vh - 120px) * 16 / 9)); aspect-ratio: 16/9; position: relative; background: #000; }
.lightbox__trailer iframe, .lightbox__trailer video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── Menú de correo (computador): Gmail · Outlook · App · Copiar ── */
.mailmenu {
  position: fixed; z-index: 1200; min-width: 230px; padding: 8px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5); animation: mailmenu-in .22s var(--ease);
}
@keyframes mailmenu-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.mailmenu__to { margin: 6px 10px 8px; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mailmenu a, .mailmenu button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; border-radius: 9px;
  background: none; color: var(--ink); font: 500 15px/1 var(--f-text); text-align: left; cursor: pointer; text-decoration: none;
  transition: background .2s, color .2s;
}
.mailmenu a:hover, .mailmenu button:hover, .mailmenu a:focus-visible, .mailmenu button:focus-visible { background: var(--bg-3); color: var(--accent); outline: none; }
.mailmenu svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.mailmenu a:first-of-type svg { fill: currentColor; stroke: none; }