/* ==========================================================================
   SMALL HOURS — Director's Treatment · site.css
   Sistema: ver Recursos/Small-Hours/DESIGN.md
   ========================================================================== */

:root {
  /* Paleta: oscura, un solo acento (luz de sodio) */
  --ink: #070605;
  --ink-2: #0e0c0a;
  --bone: #ece6da;
  --bone-2: rgba(236, 230, 218, .72);
  --bone-3: rgba(236, 230, 218, .42);
  --line: rgba(236, 230, 218, .18);
  --accent: #ffc93c;

  /* Grades por mundo (color que se aplica en modo `color` sobre la imagen) */
  --amber: #c9731d;
  --teal: #1b8a8c;
  --red: #c3131c;

  --disp: 'Big Shoulders Display', 'Oswald', Impact, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --gut: clamp(44px, 5.2vw, 84px);      /* margen lateral: deja sitio a las etiquetas giradas */
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ink); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.mono { font-family: var(--mono); }
.disp { font-family: var(--disp); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--ink); }

/* Frase destacada: mayúsculas bold de la mono en el acento */
.hl { font-family: var(--mono); font-weight: 700; color: var(--accent); letter-spacing: .02em; }

/* ==========================================================================
   Páginas
   ========================================================================== */
.pg {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;   /* móvil: alto visible real, sin la barra del navegador */
  min-height: 560px;
}
main { overflow-x: clip; }   /* escalados y parallax no ensanchan el viewport */
/* Páginas ancladas: el contenedor da recorrido de scroll, la página se queda fija */
.pin { position: relative; }
.pin > .pg { position: sticky; top: 0; }
.pin-manifesto { height: 280vh; }
.pin-cover { height: 220vh; }

.content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 96px var(--gut) 88px;
}

/* ---- Imagen a sangre + grade + oscurecido + viñeta ---------------------- */
.shot {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
  will-change: transform, opacity;
}
.shot .fill, .inset-img .fill {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.shot .fill { transform: scale(var(--kb, 1.04)); animation: breathe 7s ease-in-out infinite; }
.shot i, .inset-img i { position: absolute; inset: 0; pointer-events: none; }

/* 1) la imagen pierde saturación y contraste sube: base "manejada", sucia */
.g-amber .fill { filter: saturate(.6) contrast(1.18) brightness(1.02) sepia(.2); }
.g-teal  .fill { filter: saturate(.5) contrast(1.2) brightness(1); }
.g-red   .fill { filter: saturate(.55) contrast(1.28) brightness(.98); }
.g-night .fill { filter: saturate(.45) contrast(1.3) brightness(.9) sepia(.3); }

/* 2) tint: colorea la imagen con el color del mundo */
.tint { mix-blend-mode: color; }
.g-amber .tint { background: var(--amber); opacity: .78; }
.g-teal  .tint { background: var(--teal); opacity: .8; }
.g-red   .tint { background: var(--red); opacity: .9; }
.g-night .tint { background: #a4561a; opacity: .7; }

/* 3) crush: aplasta sombras hacia el color del mundo (multiply) */
.crush { mix-blend-mode: multiply; }
.g-amber .crush { background: linear-gradient(180deg, #8a5e34 0%, #f1d2a6 45%, #6b4424 100%); }
.g-teal  .crush { background: linear-gradient(180deg, #2c6468 0%, #b9e0dc 50%, #1d4a4d 100%); }
.g-red   .crush { background: linear-gradient(180deg, #7a1a1a 0%, #f2a191 50%, #4f0a0a 100%); }
.g-night .crush { background: radial-gradient(ellipse at 40% 35%, #f3cf9a 0%, #8a5a30 50%, #2a170a 100%); }

/* 4) viñeta + oscurecido de lectura */
.vig {
  background:
    radial-gradient(ellipse 80% 75% at 50% 45%, transparent 35%, rgba(4,3,2,.45) 72%, rgba(2,1,1,.9) 100%),
    linear-gradient(180deg, rgba(3,2,2,.45) 0%, transparent 20%, transparent 68%, rgba(3,2,2,.72) 100%);
}
/* 5) dim: lo controla el scroll (salida de página) */
.dim { background: #000; opacity: var(--dim, 0); }

@keyframes breathe {           /* luz práctica que "respira" apenas */
  0%, 100% { opacity: 1; }
  47% { opacity: .93; }
  50% { opacity: .98; }
  52% { opacity: .9; }
}

/* ---- Grano de película (sobre todo) ------------------------------------- */
.grain {
  z-index: 60;
  opacity: .42;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}
/* segunda capa: grano que "respira" en las sombras (overlay no toca el negro) */
.grain-b { mix-blend-mode: normal; opacity: .075; animation-duration: .7s; animation-direction: reverse; }
body::after {                  /* polvo + bajo nivel de "flicker" del proyector */
  content: ''; position: fixed; inset: 0; z-index: 61; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0,0,0,.35) 100%);
  animation: flicker 5s steps(1) infinite;
}
@keyframes flicker {
  0%, 100% { opacity: 1; }
  31% { opacity: .82; }
  32% { opacity: 1; }
  74% { opacity: .9; }
  75% { opacity: 1; }
}

/* ==========================================================================
   Marco de UI fijo
   ========================================================================== */
.frame {
  position: fixed; inset: 0; z-index: 70; pointer-events: none;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--bone-2);
}
.frame > * { pointer-events: auto; }
.fr-progress { position: absolute; top: 0; left: 0; height: 2px; background: var(--accent); }

.crop { position: absolute; width: 12px; height: 12px; border-color: var(--bone-3); border-style: solid; border-width: 0; pointer-events: none; }
.crop.tl { top: 20px; left: 20px; border-top-width: 1px; border-left-width: 1px; }
.crop.tr { top: 20px; right: 20px; border-top-width: 1px; border-right-width: 1px; }
.crop.bl { bottom: 20px; left: 20px; border-bottom-width: 1px; border-left-width: 1px; }
.crop.br { bottom: 20px; right: 20px; border-bottom-width: 1px; border-right-width: 1px; }

.vl, .vr { position: absolute; white-space: nowrap; writing-mode: vertical-rl; }
.vl { left: 24px; transform: rotate(180deg); }
.vl-top { top: 48px; }
.vl-mid { top: 50%; transform: translateY(-50%) rotate(180deg); color: var(--bone); font-weight: 700; }
.vl-bot { bottom: 48px; }
.vr { right: 24px; top: 50%; transform: translateY(-50%); color: var(--bone); }
.vr::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-bottom: 12px; }

.fr-sound {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--bone-2);
}
.fr-sound .eq { display: flex; align-items: flex-end; gap: 2px; height: 10px; }
.fr-sound .eq i { width: 2px; height: 2px; background: currentColor; transition: height .3s; }
.fr-sound[aria-pressed="true"] { color: var(--accent); }
.fr-sound[aria-pressed="true"] .eq i { animation: eq .9s ease-in-out infinite; }
.fr-sound[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: -.3s; }
.fr-sound[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: -.6s; }
.fr-sound[aria-pressed="true"] .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 2px; } 50% { height: 10px; } }

.fr-menu {
  position: absolute; top: 18px; right: 42px; padding: 8px 0 8px 12px;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--bone);
}
.fr-menu::after { content: ''; display: inline-block; width: 18px; height: 1px; background: currentColor; margin-left: 10px; vertical-align: 3px; transition: width .4s var(--ease); }
.fr-menu:hover::after { width: 30px; background: var(--accent); }

.fr-tc { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); color: var(--bone-3); display: flex; align-items: center; gap: 8px; }
.rec { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.fr-page { position: absolute; right: 42px; bottom: 22px; color: var(--bone); font-size: 11px; letter-spacing: .12em; }
.fr-page span { color: var(--accent); }

/* ---- Menú --------------------------------------------------------------- */
.menu {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(6, 5, 4, .96);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}
.menu.open { visibility: visible; }
.menu-in { height: 100%; padding: 22px var(--gut) 40px; display: flex; flex-direction: column; }
.menu-head { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--bone-3); padding-top: 4px; }
.menu-close { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--bone); }
.menu-close:hover { color: var(--accent); }
.menu-list { list-style: none; margin-top: auto; }
.menu-list li > * { display: grid; grid-template-columns: 60px 1fr auto; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); }
.menu-list .mt { font-family: var(--disp); font-weight: 300; font-size: clamp(30px, 4.4vh, 52px); line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; transition: color .3s, transform .5s var(--ease); }
.menu-list .mn, .menu-list .mp { font-size: 11px; color: var(--bone-3); letter-spacing: .12em; }
.menu-list a:hover .mt { color: var(--accent); transform: translateX(14px); }
.menu-list .off { opacity: .28; }

/* ==========================================================================
   01 · TITLE
   ========================================================================== */
.p-title .content { display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 14vh; }
.wordmark {
  font-family: var(--disp);
  font-weight: 800;
  font-size: min(calc((100vw - 2 * var(--gut)) / 4.9), 34vh);
  font-size: min(calc(100cqw / 4.9), 34vh);
  line-height: .78;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--bone);
  white-space: nowrap;
  margin-left: -.04em;
}
.wordmark .ch-w { display: inline-block; will-change: transform, filter, opacity; }
.wd { display: inline-block; white-space: nowrap; }   /* una palabra nunca se parte */
/* el tamaño del wordmark se mide sobre el ancho real del contenedor (sin barra de scroll) */
.p-title .content, .p-outro .content { container-type: inline-size; }
.byline {
  display: flex; justify-content: space-between; gap: 24px;
  margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--bone-2);
}
.scrollcue {
  position: absolute; z-index: 2; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: 52px;   /* sin transform: lo usa el scrub */
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scrollcue i { width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ==========================================================================
   02 · INDEX
   ========================================================================== */
.p-index .content { display: flex; align-items: center; justify-content: flex-end; }
.idx { width: min(620px, 52vw); }
.idx-head { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--bone-3); padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.idx-head span:first-child { color: var(--accent); }
.idx-list { list-style: none; }
.idx-row {
  display: grid; grid-template-columns: 38px auto 1fr auto; align-items: baseline; gap: 14px;
  padding: 7px 0;
}
.idx-row .in { font-size: 10px; color: var(--bone-3); letter-spacing: .1em; }
.idx-row .it { font-family: var(--disp); font-weight: 300; font-size: clamp(28px, 3.6vw, 50px); line-height: 1; text-transform: uppercase; transition: color .35s, letter-spacing .6s var(--ease); }
.idx-row .dots { height: 1px; align-self: end; margin-bottom: .55em; background-image: radial-gradient(circle, var(--bone-3) 1px, transparent 1.4px); background-size: 7px 3px; background-repeat: repeat-x; transform-origin: left; }
.idx-row .ip { font-size: 11px; letter-spacing: .14em; color: var(--bone-2); }
a.idx-row:hover .it, a.idx-row:hover .ip { color: var(--accent); }
a.idx-row:hover .it { letter-spacing: .04em; }
span.idx-row .it { color: var(--bone-2); }

/* ==========================================================================
   03 · MANIFESTO
   ========================================================================== */
.p-manifesto .content {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto auto;
  column-gap: 6vw;
}
.mf-head {
  grid-column: 1; grid-row: 1 / 3; align-self: center;
  font-weight: 700; font-size: clamp(54px, 7.6vw, 132px); line-height: .86;
  text-transform: uppercase; letter-spacing: -.005em; max-width: 9.5ch;
}
.mf-inset { grid-column: 2; grid-row: 1; align-self: end; justify-self: end; width: min(260px, 20vw); margin-bottom: 36px; }
.mf-body { grid-column: 2; grid-row: 2; font-size: clamp(13px, 1.05vw, 15px); line-height: 1.75; color: var(--bone); }
.mf-body p + p { margin-top: 1.4em; }
.mf-meter { grid-column: 2; grid-row: 3; display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 10px; letter-spacing: .16em; color: var(--bone-3); }
.mf-meter .bar { flex: 1; height: 1px; background: var(--line); position: relative; }
.mf-meter .bar i { position: absolute; left: 0; top: 0; height: 1px; background: var(--accent); }

.word { display: inline-block; white-space: nowrap; }
/* la máscara deja sitio arriba para las tildes de las mayúsculas (Á, É) */
[data-words] .w-mask { display: inline-block; overflow: hidden; vertical-align: top; padding: .16em 0 .06em; margin: -.16em 0 -.06em; }
[data-words] .w-in { display: inline-block; will-change: transform; }

/* ---- Insets (imágenes apiladas) ---------------------------------------- */
.inset { position: relative; }
.inset-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #000; outline: 1px solid var(--line); outline-offset: 5px; }
.inset figcaption { display: flex; justify-content: space-between; margin-top: 12px; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--bone-3); }
.inset figcaption span:first-child { color: var(--accent); }

/* ==========================================================================
   04 · SECTION COVER
   ========================================================================== */
.p-cover .content { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.cv-num { position: relative; font-weight: 800; font-size: min(46vw, 64vh); line-height: .78; letter-spacing: -.02em; }
.cv-num span { display: block; }
.cv-o { color: transparent; -webkit-text-stroke: 1px rgba(236,230,218,.55); }
.cv-f { position: absolute; inset: 0; color: var(--bone); clip-path: inset(125% -10% -25% -10%); }
.cv-name { margin-top: 3vh; font-weight: 300; font-size: clamp(26px, 3.2vw, 48px); text-transform: uppercase; letter-spacing: .5em; margin-right: -.5em; line-height: 1; }
.cv-name .ch-w { display: inline-block; }

/* ==========================================================================
   05 · 1.1 SYNOPSIS
   ========================================================================== */
.p-story .content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); column-gap: 6vw; align-items: center; }
.st-stack { position: relative; align-self: end; height: 62%; max-width: 480px; }
.st-a { position: absolute; left: 0; top: 0; width: 72%; }
.st-b { position: absolute; left: 34%; bottom: 0; width: 56%; }
.st-b .inset-img { aspect-ratio: 5 / 4; }
.st-col { align-self: center; }
.kicker { display: flex; gap: 18px; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--bone-3); padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.kicker span:first-child { color: var(--accent); }
.st-text { font-size: clamp(13px, 1vw, 15px); line-height: 1.75; }
.st-text p + p { margin-top: 1.15em; }
.st-last { margin-top: 34px; font-weight: 700; font-size: clamp(40px, 4.4vw, 72px); line-height: .9; text-transform: uppercase; }

/* ==========================================================================
   09 · 1.5 THE GYM
   ========================================================================== */
.p-gym .content { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 5vw; align-items: stretch; padding-top: 80px; padding-bottom: 80px; }
.gym-panel { position: relative; display: flex; flex-direction: column; }
.gym-panel .inset-img { flex: 1; aspect-ratio: auto; }
.gym-col { display: flex; flex-direction: column; justify-content: center; }
.gym-no { font-weight: 800; font-size: clamp(90px, 13vw, 220px); line-height: .78; color: transparent; -webkit-text-stroke: 1px rgba(255, 90, 90, .6); margin-bottom: 30px; margin-left: -.04em; }
.gym-lead { font-weight: 700; font-size: clamp(40px, 4.6vw, 80px); line-height: .9; text-transform: uppercase; margin-bottom: 30px; }
.gym-text { font-size: clamp(13px, 1.05vw, 15px); line-height: 1.75; max-width: 44ch; }
.gym-flash { position: absolute; inset: 0; z-index: 1; background: #ff2a1a; mix-blend-mode: screen; opacity: 0; pointer-events: none; }

/* ==========================================================================
   Estados de entrada (Motion los anima; sin JS quedan visibles)
   ========================================================================== */
.js .wordmark .ch-w,
.js .byline span,
.js .scrollcue { opacity: 0; }
.js .ln { opacity: 0; }
.js .inset-img { clip-path: inset(0 0 100% 0); }
.js .inset figcaption { opacity: 0; }
.js .idx-row, .js .idx-head { opacity: 0; }
.js .kicker, .js .gym-no { opacity: 0; }
.js [data-words] .w-in { transform: translateY(105%); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  :root { --gut: 22px; }
  .vl, .vr, .crop, .fr-tc { display: none; }
  .fr-menu { right: 18px; }
  .fr-page { right: 18px; bottom: 16px; }
  .content { padding: 70px var(--gut) 56px; }
  .byline { flex-direction: column; gap: 4px; }
  .idx { width: 100%; }
  .p-manifesto .content { grid-template-columns: 1fr; grid-template-rows: auto auto auto; align-content: center; row-gap: 22px; }
  .mf-head, .mf-body, .mf-meter { grid-column: 1; grid-row: auto; }
  .mf-inset { display: none; }
  .p-story .content { grid-template-columns: 1fr; }
  .st-stack { display: none; }
  .st-last { margin-top: 20px; }
  .p-gym .content { grid-template-columns: 1fr; grid-template-rows: 30vh auto; row-gap: 22px; padding-top: 64px; }
  .gym-no { font-size: 64px; margin-bottom: 12px; }
  .gym-lead { margin-bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .shot .fill, body::after, .scrollcue i { animation: none !important; }
}

/* ---- Scrims de lectura por layout (detrás de columnas de texto) --------- */
.scrim-r .vig, .scrim-l .vig { background: var(--side), radial-gradient(ellipse 80% 75% at 50% 45%, transparent 35%, rgba(4,3,2,.45) 72%, rgba(2,1,1,.9) 100%), linear-gradient(180deg, rgba(3,2,2,.45) 0%, transparent 20%, transparent 68%, rgba(3,2,2,.72) 100%); }
.scrim-r { --side: linear-gradient(90deg, rgba(3,2,2,.1) 0%, rgba(3,2,2,.35) 38%, rgba(3,2,2,.86) 62%, rgba(3,2,2,.94) 100%); }
.scrim-l { --side: linear-gradient(270deg, rgba(3,2,2,.1) 0%, rgba(3,2,2,.35) 38%, rgba(3,2,2,.86) 62%, rgba(3,2,2,.94) 100%); }

/* ==========================================================================
   Grades adicionales (01 The Film)
   ========================================================================== */
/* rojo con piel cálida (Tomás) */
.g-redskin .fill { filter: saturate(.7) contrast(1.2) brightness(1) sepia(.25); }
.g-redskin .tint { background: #b8321c; opacity: .6; }
.g-redskin .crush { background: linear-gradient(180deg, #6a1e14 0%, #f6c0a0 50%, #3e0c08 100%); }
/* rojo duro con blancos (la pelea) */
.g-harsh .fill { filter: saturate(.4) contrast(1.55) brightness(1.05); }
.g-harsh .tint { background: #d0101a; opacity: .82; }
.g-harsh .crush { background: linear-gradient(180deg, #5a0a0a 0%, #ffd6cc 50%, #2a0202 100%); }
/* variante oscurecida (portada Act III) */
.g-harsh.darken .fill { filter: saturate(.4) contrast(1.45) brightness(.48); }
/* teal sobreexpuesto (la báscula: mareo) */
.g-over .fill { filter: saturate(.3) contrast(.8) brightness(2.1); }
.g-over .tint { background: var(--teal); opacity: .7; }
.g-over .crush { background: linear-gradient(180deg, #8cc4c4 0%, #ffffff 50%, #7ab0b2 100%); }
/* luz de día (Sunday: la única) */
.g-day .fill { filter: saturate(.75) contrast(1.05) brightness(1.08) sepia(.15); }
.g-day .tint { background: #e0a060; opacity: .35; }
.g-day .crush { background: linear-gradient(180deg, #c9a27a 0%, #fff3e0 50%, #b08a64 100%); }
/* primera luz azul del amanecer */
.g-dawn .fill { filter: saturate(.4) contrast(1.1) brightness(1.05); }
.g-dawn .tint { background: #5b7fa6; opacity: .6; }
.g-dawn .crush { background: linear-gradient(180deg, #3a5068 0%, #d8e2ee 50%, #2a3a4c 100%); }
/* amanecer: la niebla es clara, se oscurece solo la zona del titular */
.g-dawn .vig { background: radial-gradient(ellipse 55% 50% at 14% 32%, rgba(6,10,18,.62), transparent 72%), radial-gradient(ellipse 80% 75% at 50% 45%, transparent 35%, rgba(4,3,2,.45) 72%, rgba(2,1,1,.9) 100%), linear-gradient(180deg, rgba(3,2,2,.45) 0%, transparent 20%, transparent 68%, rgba(3,2,2,.72) 100%); }
/* segundo tint que entra con el scroll (Act II: teal → red) */
.shot .tint.tint-2 { background: var(--red); mix-blend-mode: color; opacity: 0; }   /* gana a .g-teal .tint */

/* El grano se suaviza en el amanecer (pág. 18) */
.grain { transition: opacity 1.6s ease; }
body.dawn .grain { opacity: .22; }
body.dawn .grain-b { opacity: .04; }

/* ==========================================================================
   L4b · Portada de acto
   ========================================================================== */
.cv-act .cv-num { font-size: min(24vw, 44vh); letter-spacing: .01em; white-space: nowrap; }
.cv-sub { margin-top: 2.6vh; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--bone-2); }
.js .cv-sub { opacity: 0; }

/* ==========================================================================
   L5 · espejo (texto a la izquierda, insets a la derecha)
   ========================================================================== */
.p-story.mirror .content { grid-template-columns: minmax(0, 470px) minmax(0, 1fr); }
.p-story.mirror .st-col { order: -1; }
.p-story.mirror .st-stack { justify-self: end; width: 100%; }
.p-story.mirror .st-a { left: auto; right: 0; }
.p-story.mirror .st-b { left: auto; right: 34%; }

/* ==========================================================================
   L6 · espejo (panel a la derecha)
   ========================================================================== */
.p-gym.mirror .content { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.p-gym.mirror .gym-panel { order: 2; }
.gym-text p + p { margin-top: 1.15em; }
.gym-flash.white { background: #fff; mix-blend-mode: soft-light; }

/* ==========================================================================
   L7 · Titular enorme junto a la imagen
   ========================================================================== */
.p-big .content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; }
.big-panel { grid-column: 2; grid-row: 1; height: 100%; display: flex; flex-direction: column; }
.big-panel .inset-img { flex: 1; aspect-ratio: auto; }
.big-col { grid-column: 1; grid-row: 1; position: relative; z-index: 1; padding-right: 3vw; }
.big-lead {
  width: 142%;
  font-weight: 800; font-size: clamp(60px, 7.8vw, 144px); line-height: .84;
  text-transform: uppercase; letter-spacing: -.005em;
  text-shadow: 0 0 60px rgba(0,0,0,.45);
  margin-bottom: 30px;
}
.big-text { max-width: 42ch; font-size: clamp(13px, 1vw, 15px); line-height: 1.75; }
.big-text p + p { margin-top: 1.15em; }
.p-big.mirror .content { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.p-big.mirror .big-panel { grid-column: 1; }
.p-big.mirror .big-col { grid-column: 2; padding: 0 0 0 3vw; }
.p-big.mirror .big-lead { margin-left: -42%; }

/* ==========================================================================
   L8 · Apiladas (3 imágenes en cascada + columna estrecha)
   ========================================================================== */
.p-stack .content { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 390px); column-gap: 5vw; align-items: center; }
.sk { position: relative; height: 100%; }
.sk .inset { position: absolute; }
.sk-a { left: 0; top: 0; width: 56%; }
.sk-b { right: 2%; top: 22%; width: 40%; }
.sk-b .inset-img { aspect-ratio: 4 / 5; }
.sk-c { left: 16%; bottom: 0; width: 34%; }
.sk-lead { font-weight: 700; font-size: clamp(44px, 4.8vw, 84px); line-height: .88; text-transform: uppercase; margin-bottom: 26px; }

/* placeholder de medios pendientes */
.slate { display: grid; place-items: center; background: repeating-linear-gradient(135deg, rgba(236,230,218,.05) 0 1px, transparent 1px 12px), #1a140e; }
.slate span { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--bone-3); }
.slate-bg { background: radial-gradient(ellipse at 30% 40%, #3a2a1a 0%, #120d08 60%, #070605 100%); }

/* ==========================================================================
   L9 · Díptico (cada panel en su grade)
   ========================================================================== */
.p-dip .content { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 420px); column-gap: 5vw; align-items: center; }
.dip { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; height: 100%; }
.dip .inset { display: flex; flex-direction: column; }
.dip .inset-img { flex: 1; aspect-ratio: auto; }
.dp-a { margin-bottom: 9vh; }
.dp-b { margin-top: 9vh; }

/* ==========================================================================
   L3 · Titular + columna (sin anclar)
   ========================================================================== */
.p-thesis .content { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 420px); grid-template-rows: auto 1fr auto; column-gap: 6vw; }
.th-kicker { grid-column: 1; grid-row: 1; max-width: 420px; }
.th-head { grid-column: 1; grid-row: 2; align-self: center; font-weight: 700; font-size: clamp(50px, 6.2vw, 112px); line-height: .88; text-transform: uppercase; max-width: 12ch; }
.th-body { grid-column: 2; grid-row: 3; align-self: end; }

/* estados iniciales */
.js .sk-lead .w-in, .js .big-lead .w-in, .js .th-head .w-in { transform: translateY(105%); }

@media (max-width: 900px) {
  .p-stack .content, .p-dip .content, .p-big .content, .p-thesis .content,
  .p-big.mirror .content, .p-gym.mirror .content, .p-story.mirror .content { grid-template-columns: 1fr; }
  .sk { display: none; }
  .p-dip .content { grid-template-rows: 30vh auto; row-gap: 22px; align-content: center; }
  .dp-a, .dp-b, .dp-c { margin: 0; transform: none !important; }   /* sin parallax en móvil */
  .p-big .content { grid-template-rows: 30vh auto; row-gap: 22px; align-content: center; }
  .big-panel, .p-big.mirror .big-panel { grid-column: 1; grid-row: 1; }
  .big-col, .p-big.mirror .big-col { grid-column: 1; grid-row: 2; padding: 0; }
  .big-lead { width: 100%; margin-left: 0 !important; font-size: 52px; margin-bottom: 16px; }
  .p-gym.mirror .gym-panel { order: 0; }
  .p-thesis .content { grid-template-rows: auto auto auto; align-content: center; row-gap: 22px; }
  .th-kicker, .th-head, .th-body { grid-column: 1; grid-row: auto; }
  .cv-act .cv-num { font-size: 26vw; }
}

/* ==========================================================================
   Grades de las secciones 02–06
   ========================================================================== */
/* split rojo / teal (portada Look & Feel) */
.g-split .fill { filter: saturate(.8) contrast(1.25) brightness(.95); }
.g-split .tint { background: linear-gradient(90deg, var(--red) 0%, var(--red) 40%, var(--teal) 60%, var(--teal) 100%); opacity: .75; }
.g-split .crush { background: linear-gradient(180deg, #5a2a2a 0%, #f0d8d0 50%, #1e3436 100%); }
/* luz práctica mezclada, sombras teal (The world) */
.g-mixed .fill { filter: saturate(.75) contrast(1.2) brightness(1); }
.g-mixed .tint { background: var(--teal); opacity: .28; }
.g-mixed .crush { background: linear-gradient(180deg, #20464a 0%, #f4e6d4 50%, #10282a 100%); }
/* desaturado cálido (Texture) */
.g-desatwarm .fill { filter: saturate(.3) contrast(1.25) sepia(.35) brightness(1); }
.g-desatwarm .tint { background: #a07040; opacity: .35; }
.g-desatwarm .crush { background: linear-gradient(180deg, #5a4632 0%, #f2e2cc 50%, #2e2418 100%); }
/* teal con piel cálida (Close, not closer) */
.g-tealskin .fill { filter: saturate(.6) contrast(1.2) sepia(.2) brightness(1); }
.g-tealskin .tint { background: var(--teal); opacity: .55; }
.g-tealskin .crush { background: linear-gradient(180deg, #2c5a5c 0%, #f2d8c4 50%, #1a3a3c 100%); }
/* monocromo cálido (Camera) y casi monocromo (Tomás) */
.g-mono .fill { filter: grayscale(1) contrast(1.25) brightness(1); }
.g-mono .tint { background: #b07a3e; opacity: .35; }
.g-mono .crush { background: linear-gradient(180deg, #6e5a44 0%, #efe6d8 50%, #4a3c2c 100%); }
/* desaturado, casi blanco y negro (Casting) */
.g-desat .fill { filter: saturate(.2) contrast(1.25) brightness(1); }
.g-desat .tint { background: #9a7a5e; opacity: .25; }
.g-desat .crush { background: linear-gradient(180deg, #555 0%, #eee 50%, #333 100%); }
/* desaturado con piel cálida (Rubén) */
.g-desatskin .fill { filter: saturate(.35) contrast(1.2) sepia(.25) brightness(1.05); }
.g-desatskin .tint { background: #b07a58; opacity: .3; }
.g-desatskin .crush { background: linear-gradient(180deg, #5a4a40 0%, #f4e4d8 50%, #2c221c 100%); }
/* cálido y suave: el único de Casting (Lucía) */
.g-soft .fill { filter: saturate(.7) contrast(1.05) brightness(1.1) sepia(.2); }
.g-soft .tint { background: #d8905c; opacity: .35; }
.g-soft .crush { background: linear-gradient(180deg, #a07a60 0%, #fff0e2 50%, #6a4c3a 100%); }
/* azul profundo (Sound & Music) */
.g-blue .fill { filter: saturate(.4) contrast(1.25) brightness(.95); }
.g-blue .tint { background: #1f3f8c; opacity: .85; }
.g-blue .crush { background: linear-gradient(180deg, #1a2a55 0%, #9fb2e0 50%, #0c1430 100%); }

/* grano intenso en Texture (pág. 22) */
body.grainy .grain { opacity: .62; }
body.grainy .grain-b { opacity: .12; }

/* Colour (pág. 21): la ÚNICA excepción al acento único — cada color nombra su mundo */
.hl.c-amber { color: #f0a040; }
.hl.c-teal  { color: #4fc9c9; }
.hl.c-red   { color: #ff4d4d; }

/* titular de apertura en columnas L5/L9 (misma escala que .sk-lead) */
.st-lead { font-weight: 700; font-size: clamp(40px, 4.4vw, 76px); line-height: .88; text-transform: uppercase; margin-bottom: 26px; }
.dp-col .st-last { margin-top: 30px; }
/* remate secundario cuando la columna ya abre con titular */
.sk-col .st-last, .dp-col .st-lead ~ .st-last { font-size: clamp(28px, 2.6vw, 46px); margin-top: 26px; }
.st-text .hl { font-size: inherit; }

/* L9 tríptico y pies con línea de COPY */
.p-dip.wide .content { grid-template-columns: minmax(0, 1.7fr) minmax(0, 360px); }
.dip.tri { grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dip.tri .dp-c { margin-bottom: 4vh; margin-top: 4vh; }
.inset .dp-line { display: block; margin-top: 14px; font-size: 12px; letter-spacing: .02em; text-transform: none; line-height: 1.5; color: var(--bone); }
.inset .dp-line span:first-child { color: inherit; }
.inset .dp-line .hl.c-amber { color: #f0a040; } .inset .dp-line .hl.c-teal { color: #4fc9c9; } .inset .dp-line .hl.c-red { color: #ff4d4d; }

/* ==========================================================================
   L10 · Retrato (Casting)
   ========================================================================== */
.p-portrait .content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); column-gap: 6vw; align-items: center; }
.pt-col { grid-column: 2; grid-row: 1; }
.pt-name { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; font-weight: 400; }
.pt-name .disp { font-weight: 800; font-size: clamp(56px, 6.6vw, 124px); line-height: .84; text-transform: uppercase; }
.pt-name .hl { font-size: clamp(16px, 1.4vw, 22px); letter-spacing: .24em; }
.pt-inset { grid-column: 1; grid-row: 1; align-self: end; width: min(300px, 22vw); }
.p-portrait.mirror .content { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); }
.p-portrait.mirror .pt-col { grid-column: 1; }
.p-portrait.mirror .pt-inset { grid-column: 2; justify-self: end; }
.js .pt-name .hl { opacity: 0; }

/* ==========================================================================
   L1 · Outro (anclado; el ámbar se funde a negro)
   ========================================================================== */
.pin-outro { height: 200vh; }
.p-outro .content { display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 12vh; }
.ot-thanks { font-weight: 300; font-size: clamp(26px, 2.8vw, 46px); text-transform: uppercase; letter-spacing: .34em; margin-bottom: 3.2vh; }
.ot-credit { margin-top: 16px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--bone-3); }
.js .ot-credit { opacity: 0; }

@media (max-width: 900px) {
  .p-portrait .content, .p-portrait.mirror .content, .p-dip.wide .content { grid-template-columns: 1fr; }
  .pt-col, .p-portrait.mirror .pt-col { grid-column: 1; }
  .pt-inset { display: none; }
  .dip.tri { gap: 8px; }
  .dip.tri .dp-c { margin: 0; }
  .inset .dp-line { font-size: 10px; }
  .p-dip.wide .content { grid-template-rows: 34vh auto; }
}

/* ---- Título en móvil ---------------------------------------------------- */
/* Vertical: SMALL / HOURS en dos líneas, limitado por el alto para pantallas bajas */
@media (max-width: 900px) and (orientation: portrait) {
  .wordmark { white-space: normal; font-size: min(calc((100vw - 2 * var(--gut)) / 2.55), 26svh); font-size: min(calc(100cqw / 2.42), 26svh); line-height: .94;   /* aire entre SMALL y HOURS */ }
}
/* Móvil: el byline y el cue no se pisan; el cue baja y pierde la línea */
@media (max-width: 900px) {
  .p-title .content { padding-bottom: 86px; }
  .byline { margin-top: 20px; }
  .scrollcue { bottom: 30px; }
  .scrollcue i { display: none; }
}
/* Horizontal bajo (móvil girado): una línea, limitada por el alto */
@media (max-height: 520px) and (orientation: landscape) {
  .p-title { min-height: 0; }
  .p-title .content { padding-top: 56px; padding-bottom: 64px; }
  .wordmark { font-size: min(calc((100vw - 2 * var(--gut)) / 4.9), 40svh); font-size: min(calc(100cqw / 4.9), 40svh); }
  .byline { flex-direction: row; margin-top: 14px; padding-top: 10px; }
  .scrollcue { bottom: 18px; }
}

/* ---- Móvil: ajustes finales (revisión antes de publicar) ----------------- */
@media (max-width: 900px) {
  /* L7: sin deriva horizontal del titular (en 375px lo sacaba de pantalla) */
  .big-lead { transform: none !important; }
  /* L6: panel más bajo y tipografía más compacta para que el texto quepa en pantallas de 667px */
  .p-gym .content { grid-template-rows: 22vh auto; row-gap: 16px; padding-top: 60px; padding-bottom: 40px; }
  .gym-no { font-size: 46px; margin-bottom: 6px; }
  .gym-lead { font-size: 32px; margin-bottom: 12px; }
  .gym-text { font-size: 12.5px; line-height: 1.6; }
  .gym-text p + p { margin-top: .8em; }
}

/* ---- Móvil bajo (≤620px de alto, p. ej. 320×568): modo compacto --------- */
@media (max-width: 900px) and (max-height: 620px) {
  .content { padding-top: 54px; padding-bottom: 38px; row-gap: 14px; }
  .st-text, .big-text, .gym-text, .th-body, .mf-body { font-size: 11.5px; line-height: 1.5; }
  .st-text p + p, .big-text p + p, .gym-text p + p, .mf-body p + p { margin-top: .7em; }
  .kicker { margin-bottom: 14px; padding-bottom: 8px; }
  .st-last, .st-lead, .sk-lead, .big-lead, .th-head, .gym-lead { font-size: 27px; margin-bottom: 10px; }
  .st-last { margin-top: 12px; }
  .mf-head { font-size: 38px; }
  .gym-no { font-size: 34px; }
  .pt-name .disp { font-size: 42px; }
  .pt-name { margin-bottom: 14px; }
  .p-gym .content { grid-template-rows: 16vh auto; padding-top: 52px; }
  .p-big .content, .p-dip .content { grid-template-rows: 20vh auto; row-gap: 12px; }
  .p-dip.wide .content { grid-template-rows: 26vh auto; }
  /* Outro: que "Thank you." no suba hasta la fila de Menu / Sound */
  .p-outro .content { padding-bottom: 26px; }
  .ot-thanks { font-size: 20px; margin-bottom: 12px; }
  .p-outro .byline { margin-top: 12px; padding-top: 10px; }
  .ot-credit { margin-top: 8px; }
}

/* ---- Outro: autores de Pexels como créditos que desfilan ---------------- */
.ot-authors {
  margin-top: 12px; overflow: hidden; flex-shrink: 0;   /* en columna flex llena no debe encogerse a 0 */
  font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-3);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.ot-track { display: flex; width: max-content; animation: crawl 150s linear infinite; }
.ot-track span { white-space: nowrap; padding-right: 1.2em; }
@keyframes crawl { to { transform: translateX(-50%); } }
.js .ot-authors { opacity: 0; }
@media (prefers-reduced-motion: reduce) {        /* sin movimiento: lista estática, en varias líneas */
  .ot-authors { -webkit-mask-image: none; mask-image: none; }
  .ot-track { animation: none; width: auto; }
  .ot-track span { white-space: normal; }
  .ot-track span[aria-hidden] { display: none; }
}

/* ---- Convivencia con el chrome del portfolio (/work/_chrome) ------------ */
/* la barra de navegación ocupa el centro inferior: el timecode cede su sitio */
.fr-tc { transition: opacity .4s; }
body:has(.jx-bar.jx-in) .fr-tc { opacity: 0; }
/* con el menú propio abierto, la barra del portfolio se aparta */
body:has(.menu.open) .jx-bar { opacity: 0 !important; pointer-events: none; }
