/* ═════════════════════════════════════════════════════════════
   UDRUX.COM — estilos
   ═════════════════════════════════════════════════════════════ */

@font-face { font-family: 'Anton'; src: url('../fonts/anton.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('../fonts/instrument-serif.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('../fonts/instrument-serif-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('../fonts/instrument-sans.woff2') format('woff2'); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }

:root {
  --black: #0b0b0b;
  --ink: #111111;
  --paper: #efe9df;
  --paper-2: #e4ddd1;
  --white: #f6f3ee;
  --red: #e44138;
  --lime: #c9f24d;
  --font-display: 'Anton', 'Impact', 'Haettenschweiler', 'Arial Narrow Bold', sans-serif;
  --font-serif: 'Instrument Serif', 'Times New Roman', serif;
  --font-ui: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-sans: var(--font-ui);
  --pad: clamp(16px, 2.2vw, 40px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --nav-fg: #f6f3ee;
  --vh: 1vh;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--black); scrollbar-width: none; }
html::-webkit-scrollbar { width: 0; height: 0; display: none; }   /* sin barra nativa: el progreso lo marca .progress */
.progress { position: fixed; right: 0; top: 0; z-index: 850; width: 3px; height: 100vh; background: var(--nav-fg); transform: scaleY(0); transform-origin: 50% 0; pointer-events: none; transition: background .45s; }
.archive, .sheet__info { scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, .35) transparent; }
body { margin: 0; background: var(--black); color: var(--white); font-family: var(--font-sans); font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
body.is-loading, body.is-locked { overflow: hidden; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
img, video, canvas, svg { display: block; }
img, video { max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
p, h1, h2, h3, ul { margin: 0; padding: 0; }
ul { list-style: none; }
em { font-style: italic; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 5000; background: var(--red); color: #fff; padding: 10px 14px; font: 600 12px var(--font-ui); border-radius: 6px; }
.skip:focus { top: 12px; }

.kicker, .mono-h { font: 600 11px/1.3 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; display: inline-block; }
.mono-h { opacity: .6; margin-bottom: 14px; }

.pill { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 34%, transparent); font: 600 11px/1 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; transition: background .3s, color .3s, border-color .3s; white-space: nowrap; }
.pill i { font-style: normal; font-size: 12px; }
.pill:hover { background: var(--red); border-color: var(--red); color: #fff; }

.btn { --b-fg: currentColor; position: relative; display: inline-flex; align-items: center; gap: 14px; padding: 17px 26px; border-radius: 999px; font: 600 12px/1 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; will-change: transform; transition: background .35s, color .35s, border-color .35s; }
.btn i { font-style: normal; display: inline-block; transition: transform .4s var(--ease-out); }
.btn:hover i { transform: translate(3px, -3px); }
.btn--line { border: 1px solid currentColor; }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--xl { font-size: clamp(13px, 1.5vw, 22px); padding: clamp(18px, 1.8vw, 28px) clamp(24px, 2.6vw, 44px); letter-spacing: .04em; text-transform: none; }

.lang { display: inline-flex; gap: 2px; font: 600 11px/1 var(--font-ui); letter-spacing: .08em; }
.lang button { padding: 8px 6px; opacity: .45; transition: opacity .3s; }
.lang button:hover, .lang button.is-on { opacity: 1; }
.lang button.is-on { text-decoration: underline; text-underline-offset: 4px; }

/* ── cursor ───────────────────────────────────────────────── */
.cursor-dot, .cursor-bubble { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 4000; will-change: transform; opacity: 0; }
.cursor-dot { width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; mix-blend-mode: difference; transition: opacity .3s, width .3s, height .3s, margin .3s; }
.cursor-dot.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.cursor-bubble { width: 104px; height: 104px; margin: -52px 0 0 -52px; }
.cursor-bubble span { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: var(--cursor-bg, var(--red)); color: var(--cursor-fg, #fff); font: 600 11px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; transform: scale(0); transition: transform .45s var(--ease-out), background .3s; }
.cursor-bubble.is-on span { transform: scale(1); }
.has-cursor .cursor-dot, .has-cursor .cursor-bubble { opacity: 1; }
.has-cursor .cursor-dot.is-hidden { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-bubble { display: none; } }
@media (hover: hover) and (pointer: fine) {
  html, html *, html *::before, html *::after { cursor: none !important; }
  /* a pantalla completa el cursor propio queda fuera: ahí vuelve el normal (salvo cuando se esconde la interfaz) */
  .player:fullscreen:not(.is-idle), .player:fullscreen:not(.is-idle) * { cursor: auto !important; }
}

/* ── loader ───────────────────────────────────────────────── */
.loader { position: fixed; inset: 0; z-index: 3000; color: var(--white); }
.loader__half { position: absolute; left: 0; right: 0; height: 50.2%; background: var(--black); will-change: transform; }
.loader__half--t { top: 0; }
.loader__half--b { bottom: 0; }
.loader__body { position: absolute; inset: 0; display: grid; place-items: center; }
.loader__ring { position: absolute; width: min(62vh, 78vw); height: min(62vh, 78vw); fill: none; stroke: rgba(246, 243, 238, .16); stroke-width: .4; overflow: visible; }
.loader__arc { stroke: var(--red); stroke-width: 1.4; stroke-dasharray: 100; stroke-dashoffset: 100; transform: rotate(-90deg); transform-origin: 50% 50%; }
.loader__num { position: relative; font: 400 clamp(130px, 27vw, 460px)/.8 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.loader__meta { position: absolute; bottom: var(--pad); font: 600 11px/1 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.loader__meta--l { left: var(--pad); }
.loader__meta--r { right: var(--pad); }
.loader__meta i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── nav ──────────────────────────────────────────────────── */
.nav { position: fixed; z-index: 800; top: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 18px var(--pad); color: var(--nav-fg); transition: color .45s, transform .6s var(--ease-out); pointer-events: none; }
.nav > * { pointer-events: auto; }
.nav.is-hidden { transform: translateY(-110%); }
.nav__links { grid-column: 2; display: flex; gap: clamp(16px, 2.2vw, 36px); font: 600 12px/1 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; }
.nav__links a { position: relative; display: block; overflow: hidden; padding: 6px 0; }
.nav__links a > span { display: block; transition: transform .5s var(--ease-out); }
.nav__links a::after { content: attr(data-text); position: absolute; left: 0; top: 100%; padding: 6px 0; transition: transform .5s var(--ease-out); color: var(--red); }
.nav__links a:hover > span, .nav__links a:hover::after { transform: translateY(-100%); }
.nav__links a.is-active::before { content: ''; position: absolute; left: 0; right: 0; bottom: 1px; height: 1px; background: currentColor; }
.nav__right { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 14px; }
.nav__burger { display: none; align-items: center; gap: 10px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 40%, transparent); font: 600 11px/1 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; }
.nav__burger i { width: 14px; height: 8px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transition: height .3s; }
.nav__burger[aria-expanded="true"] i { height: 0; border-bottom: 0; }

.menu { position: fixed; inset: 0; z-index: 790; background: var(--red); color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; padding: 92px var(--pad) calc(var(--pad) + env(safe-area-inset-bottom)); visibility: hidden; clip-path: inset(0 0 100% 0); }
.menu__links a { display: flex; align-items: flex-start; gap: 10px; overflow: hidden; padding: .3em 0 .1em; margin: -.22em 0 -.1em; font: 400 clamp(60px, 17vw, 150px)/.9 var(--font-display); text-transform: uppercase; }
.menu__links a span { display: block; }
.menu__links sup { font: 600 12px/1 var(--font-ui); margin-top: 1.4em; }
.menu__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; font: 600 12px/1 var(--font-ui); letter-spacing: .04em; }

/* ═══ HERO ═══ */
.hero { position: relative; height: 275vh; background: #000; }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #000; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; will-change: transform; }
.hero__mask { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__hi, .hero__role { position: absolute; z-index: 2; font: 400 clamp(22px, 3.3vw, 62px)/1 var(--font-serif); color: var(--white); white-space: nowrap; will-change: transform, opacity; }
.hero__role { font-size: clamp(16px, 1.9vw, 34px); text-align: right; }
/* ── el disparador (shutter.js): visor, destello y el montón de fotos ── */
.finder { position: fixed; left: 0; top: 0; z-index: 3990; pointer-events: none; opacity: 0; transition: opacity .3s; will-change: transform; }
.finder.is-on { opacity: 1; }
.finder i { position: absolute; width: 18px; height: 18px; border: 0 solid #fff; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .55)); transition: transform .35s var(--ease-out); }
.finder i:nth-child(1) { left: 0; top: 0; border-width: 2px 0 0 2px; }
.finder i:nth-child(2) { right: 0; top: 0; border-width: 2px 2px 0 0; }
.finder i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 2px 2px; }
.finder i:nth-child(4) { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
.finder b { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .55)); }
.finder b::before, .finder b::after { content: ''; position: absolute; background: #fff; }
.finder b::before { left: 6px; top: 0; width: 2px; height: 14px; }
.finder b::after { left: 0; top: 6px; width: 14px; height: 2px; }
.finder span { position: absolute; left: 0; right: 0; top: calc(100% + 10px); text-align: center; font: 600 10px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: #fff; text-shadow: 0 0 6px rgba(0, 0, 0, .6); white-space: nowrap; }
.finder.is-snap i:nth-child(1) { animation: snap1 .32s var(--ease-out); }
.finder.is-snap i:nth-child(2) { animation: snap2 .32s var(--ease-out); }
.finder.is-snap i:nth-child(3) { animation: snap3 .32s var(--ease-out); }
.finder.is-snap i:nth-child(4) { animation: snap4 .32s var(--ease-out); }
@keyframes snap1 { 40% { transform: translate(8px, 8px); } }
@keyframes snap2 { 40% { transform: translate(-8px, 8px); } }
@keyframes snap3 { 40% { transform: translate(8px, -8px); } }
@keyframes snap4 { 40% { transform: translate(-8px, -8px); } }
html.is-finder .cursor-dot, html.is-finder .cursor-bubble { opacity: 0 !important; }
.shutter-flash { position: absolute; inset: 0; z-index: 5; background: #fff; opacity: 0; pointer-events: none; }
.prints { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.print { position: absolute; margin: 0; padding: 7px 7px 0; background: #f6f3ee; box-shadow: 0 14px 34px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .35); transform-origin: 50% 50%; will-change: transform; }
.print canvas { display: block; width: 100%; height: auto; }
.print__cap { padding: .55em 0 .6em; font: 600 8.5px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shutter-hint { position: absolute; left: 50%; bottom: calc(var(--pad) + 64px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 4; font: 600 11px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: #fff; opacity: 0; pointer-events: none; display: none; }
@media (hover: none), (pointer: coarse) { .finder span { display: none; } .shutter-hint { display: block; } }
.hero__hud { position: absolute; inset: 0; z-index: 4; pointer-events: none; will-change: opacity; }
.hud { position: absolute; display: flex; flex-direction: column; gap: 5px; font: 600 11px/1.25 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; font-variant-numeric: tabular-nums; color: rgba(246, 243, 238, .82); }
.hud--tl { top: 74px; left: calc(var(--pad) + 14px); }
.hud--tr { top: 74px; right: calc(var(--pad) + 14px); text-align: right; }
.hud--bl { bottom: calc(var(--pad) + 12px); left: calc(var(--pad) + 14px); flex-direction: row; align-items: center; gap: 18px; }
.hud--br { bottom: calc(var(--pad) + 12px); right: calc(var(--pad) + 14px); flex-direction: row; align-items: center; gap: 12px; }
.rec { display: inline-flex; align-items: center; gap: 7px; color: var(--red); }
.rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.2s steps(2) infinite; }
.hud__arrow { width: 1px; height: 34px; background: currentColor; position: relative; overflow: hidden; }
.hud__arrow::after { content: ''; position: absolute; inset: 0; background: var(--red); animation: drip 1.8s var(--ease-io) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
.corner { position: absolute; width: 16px; height: 16px; border: 0 solid rgba(246, 243, 238, .55); }
.corner--tl { top: 62px; left: var(--pad); border-width: 1px 0 0 1px; }
.corner--tr { top: 62px; right: var(--pad); border-width: 1px 1px 0 0; }
.corner--bl { bottom: var(--pad); left: var(--pad); border-width: 0 0 1px 1px; }
.corner--br { bottom: var(--pad); right: var(--pad); border-width: 0 1px 1px 0; }

/* ═══ INTRO ═══ */
.intro { position: relative; z-index: 2; background: var(--paper); color: var(--ink); padding: 24vh var(--pad) 22vh; }
.intro__in { max-width: 1560px; margin: 0 auto; }
.intro__text { font: 400 clamp(34px, 6.1vw, 118px)/1.03 var(--font-serif); letter-spacing: -.018em; margin-top: .45em; }
@property --f { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --kc { syntax: '<color>'; inherits: true; initial-value: #111111; }
.intro__text .w { opacity: calc(.14 + .86 * var(--f, 0)); transition: --f .15s linear, --kc .5s ease; }
/* las palabras grandes se rellenan de izquierda a derecha según --f */
.intro__text .w.k { opacity: 1; color: transparent; -webkit-background-clip: text; background-clip: text; background-image: linear-gradient(90deg, var(--kc, var(--ink)) calc(var(--f, 0) * 114% - 14%), rgba(17, 17, 17, .14) calc(var(--f, 0) * 114%)); }
.intro__text .nb { white-space: nowrap; cursor: pointer; }
/* al pasar el ratón por una palabra: la frase entera se ve nítida (nada gris) y esa palabra en rojo */
.intro__text.has-hot .w { --f: 1 !important; transition: --f .6s ease, --kc .5s ease; }
.intro__text.has-hot .chip { opacity: 1; filter: none; }
.intro__text .nb.is-hot .k { --kc: var(--red); }
.intro__text .k { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0; font-size: .9em; }
.chip { position: relative; display: inline-block; width: 1.55em; height: .74em; margin: 0 .1em 0 .14em; border-radius: 999px; overflow: hidden; vertical-align: -.035em; background: #000; transform: scale(.8); opacity: .16; filter: grayscale(1); transition: transform .8s var(--ease-out), opacity .45s, filter .45s; }
.chip.on { transform: scale(1); opacity: 1; filter: none; }
.chip img, .chip canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chip i { position: absolute; inset: 0; background: #111 center / cover no-repeat; opacity: 0; }
/* al señalar la palabra o la pastilla, se abre en grande */
.chip { z-index: 1; transform-origin: 6% 50%; transition: transform .8s var(--ease-out), opacity .45s, filter .45s, border-radius .6s var(--ease-out), box-shadow .6s; }
.nb.is-hot .chip { transform: scale(2.6) rotate(-4deg); border-radius: .14em; z-index: 6; box-shadow: 0 .1em .34em rgba(0, 0, 0, .32); }
.nb[data-go="films"].is-hot .chip { transform: scale(2.6) rotate(3deg); }

/* ── cabeceras de sección ─────────────────────────────────── */
.sec-head { padding: 22vh var(--pad) 9vh; display: grid; gap: 2.4vh; }
.sec-title { display: flex; align-items: flex-start; font: 400 clamp(92px, 22vw, 420px)/.8 var(--font-display); text-transform: uppercase; letter-spacing: -.012em; }
.sec-title__t { display: block; overflow: hidden; padding: .26em .03em .12em 0; margin: -.21em -.03em -.04em 0; }
.sec-title__t .ch { display: inline-block; will-change: transform; }
.sec-title sup { font: 500 clamp(13px, 1.5vw, 24px)/1 var(--font-ui); letter-spacing: .06em; margin: .9em 0 0 .7em; color: var(--red); }
.sec-sub { font: italic 400 clamp(20px, 2.4vw, 42px)/1.14 var(--font-serif); max-width: 21em; }

/* ═══ FILMS ═══ */
.films { position: relative; z-index: 1; background: var(--black); color: var(--white); }
.films__stack { position: relative; }
.film { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; background: var(--black); }
.film__inner { position: absolute; inset: 0; overflow: hidden; transform-origin: 50% 0; will-change: transform; background: #000; }
.film__media { position: absolute; inset: -1.5% 0; will-change: transform; }
.film__poster, .film__loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__loop { opacity: 0; transition: opacity .8s; }
.film__loop.is-ready { opacity: 1; }
/* la sombra justa para poder leer: el centro de la imagen se queda limpio */
.film__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, 0) 18%), linear-gradient(0deg, rgba(0, 0, 0, .76) 0%, rgba(0, 0, 0, .38) 25%, rgba(0, 0, 0, 0) 55%), linear-gradient(80deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, 0) 42%); }
.film__dim { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 6; }
.film__top { position: absolute; top: 76px; left: var(--pad); right: var(--pad); display: flex; flex-wrap: wrap; gap: 8px 30px; align-items: baseline; font: 600 11px/1.2 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.film__idx { color: var(--accent); font-size: 13px; }
.film__idx i { font-style: normal; opacity: .55; color: var(--white); }
.film__top .sp { flex: 1; }
.film__body { position: absolute; left: var(--pad); right: var(--pad); bottom: calc(var(--pad) + 8px); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0 4vw; }
/* el título es el de la portada de cada vídeo, pasado a vector (assets/data/titles.js) */
.film__title { grid-column: 1 / -1; width: min(var(--tw, 60vw), calc(34vh * var(--ar, 4)), 100%); margin-bottom: clamp(16px, 3vh, 34px); color: var(--logo, #fff); filter: drop-shadow(0 3px 22px rgba(0, 0, 0, .4)); }
.film__title svg { width: 100%; height: auto; fill: currentColor; overflow: visible; clip-path: inset(-15% 103% -15% -3%); transform: translate3d(-2%, 0, 0); transition: clip-path 1.2s var(--ease-out), transform 1.5s var(--ease-out); }
.film.is-in .film__title svg { clip-path: inset(-15% -3% -15% -3%); transform: none; }
.film__title--text { width: auto; font: 400 clamp(60px, 13vw, 240px)/.86 var(--font-display); text-transform: uppercase; filter: none; }
.film__left { max-width: 35em; }
.film__blurb { font: italic 400 clamp(18px, 1.75vw, 30px)/1.2 var(--font-serif); margin-bottom: 22px; text-wrap: balance; text-shadow: 0 1px 16px rgba(0, 0, 0, .35); }
.film__actions { display: flex; align-items: center; gap: 18px; }
.film__cta { display: inline-flex; align-items: center; gap: 11px; height: 50px; padding: 0 26px 0 20px; border-radius: 6px; background: #fff; color: #0b0b0b; font: 600 16px/1 var(--font-ui); letter-spacing: -.005em; white-space: nowrap; transition: background .25s, transform .4s var(--ease-out); }
.film__cta svg { width: 19px; height: 19px; fill: currentColor; flex: none; }
.film__cta:hover { background: var(--accent); }
.film__cta:active { transform: scale(.97); }
.film__meta { display: inline-flex; align-items: center; gap: 10px; font: 500 14px/1 var(--font-ui); letter-spacing: .01em; font-variant-numeric: tabular-nums; text-shadow: 0 1px 12px rgba(0, 0, 0, .4); }
.film__meta i { font-style: normal; padding: 4px 6px 3px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 3px; font-size: 10px; font-weight: 600; letter-spacing: .06em; }
.film__scenes { display: flex; align-items: flex-end; gap: 8px; }
.film__scenes > span { font: 600 10px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; opacity: .7; writing-mode: vertical-rl; transform: rotate(180deg); margin-right: 4px; }
.film__scenes button { position: relative; width: clamp(80px, 8.4vw, 156px); aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; opacity: .78; transition: opacity .3s, transform .5s var(--ease-out); background: #111; }
.film__scenes button img { width: 100%; height: 100%; object-fit: cover; }
.film__scenes button::after { content: attr(data-tc); position: absolute; left: 6px; bottom: 5px; font: 600 9px/1 var(--font-ui); letter-spacing: .08em; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 1px 6px #000; }
.film__scenes button:hover { opacity: 1; transform: translateY(-8px); }

/* ═══ PLAYER ═══ */
.player { position: fixed; inset: 0; z-index: 1500; background: #000; color: #fff; visibility: hidden; clip-path: circle(0% at 50% 50%); }
.player.is-open { visibility: visible; }
.player__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.player__ui { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; }
/* quieto mientras se ve el film: se esconde todo menos el botón de YouTube (queda discreto) */
.player__ui::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0) 72%, rgba(0, 0, 0, .75)); transition: opacity .45s; }
.player__bottom, .player__title, .player__hd, #playerClose { transition: opacity .45s, background .3s, color .3s, border-color .3s; }
.player.is-idle .player__ui::before, .player.is-idle .player__bottom, .player.is-idle .player__title, .player.is-idle .player__hd, .player.is-idle #playerClose { opacity: 0; pointer-events: none; }
.player__yt { transition: opacity .45s, background .3s, color .3s, border-color .3s; }
.player.is-idle .player__yt { opacity: .62; }
.player__yt svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.player__yt:hover { opacity: 1; }
.player.is-idle { cursor: none; }
.player__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px var(--pad); }
.player__title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.player__title > span { font: 600 11px/1 var(--font-ui); letter-spacing: .07em; font-variant-numeric: tabular-nums; color: var(--accent, var(--red)); }
.player__logo { display: block; width: calc(var(--k, 110) * clamp(.8px, .084vw, 1.35px)); color: var(--logo, #fff); font: 400 clamp(22px, 2.6vw, 40px)/1 var(--font-display); text-transform: uppercase; white-space: nowrap; }
.player__logo svg { width: 100%; height: auto; fill: currentColor; }
.player__hd.is-on { background: #fff; border-color: #fff; color: #000; }
.player__title em { font: italic 400 clamp(15px, 1.4vw, 22px)/1 var(--font-serif); opacity: .8; }
.player__topr { display: flex; gap: 8px; }
.player__big { position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; margin: -55px 0 0 -55px; border-radius: 50%; background: var(--accent, var(--red)); display: grid; place-items: center; transform: scale(0); transition: transform .45s var(--ease-out); }
.player__big svg { width: 34px; height: 34px; fill: #111; margin-left: 5px; }
.player.is-paused:not(.is-ended) .player__big { transform: scale(1); }
.player__end { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none; gap: 12px; flex-wrap: wrap; justify-content: center; }
.player.is-ended .player__end { display: flex; }
.player__end .btn--solid { background: var(--accent, var(--red)); color: #111; }
.player__bottom { display: flex; align-items: center; gap: 14px; padding: 16px var(--pad) calc(20px + env(safe-area-inset-bottom)); }
.player__btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; transition: background .3s; flex: none; }
.player__btn:hover { background: rgba(255, 255, 255, .14); }
.player__btn svg { width: 20px; height: 20px; fill: currentColor; }
/* volumen: al pasar por el altavoz sale una barra vertical encima */
.player__vol { position: relative; flex: none; }
.player__volpop { position: absolute; left: 50%; bottom: 100%; width: 40px; height: 136px; padding: 16px 0 14px; display: flex; justify-content: center; border-radius: 20px; background: rgba(18, 18, 18, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: opacity .25s, transform .3s var(--ease-out), visibility .25s; }
.player__volpop::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 16px; }
.player__vol:hover .player__volpop, .player__vol.is-drag .player__volpop, .player__vol:has(:focus-visible) .player__volpop { opacity: 1; visibility: visible; transform: translate(-50%, -6px); }
.player__vtrack { position: relative; width: 4px; height: 100%; border-radius: 2px; background: rgba(255, 255, 255, .25); cursor: pointer; touch-action: none; outline: none; }
.player__vtrack::before { content: ''; position: absolute; inset: -6px -16px; }
.player__vfill { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--v, 1) * 100%); border-radius: 2px; background: #fff; }
.player__vknob { position: absolute; left: 50%; bottom: calc(var(--v, 1) * 100%); width: 12px; height: 12px; margin: 0 0 -6px -6px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); transition: transform .2s; }
.player__vol.is-drag .player__vknob, .player__vtrack:focus-visible .player__vknob { transform: scale(1.25); }
@media (hover: none), (pointer: coarse) { .player__volpop { display: none; } }
.player .ic-pause { display: none; }
.player:not(.is-paused) .ic-pause { display: block; }
.player:not(.is-paused) .ic-play { display: none; }
.player.is-muted .wave { display: none; }
.player__time { font: 600 12px/1 var(--font-ui); letter-spacing: .06em; font-variant-numeric: tabular-nums; min-width: 44px; text-align: center; }
.player__bar { position: relative; flex: 1; height: 28px; cursor: pointer; touch-action: none; }
.player__bar::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: rgba(255, 255, 255, .22); }
.player__buffer, .player__fill { position: absolute; left: 0; top: 50%; height: 2px; margin-top: -1px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); }
.player__buffer { background: rgba(255, 255, 255, .35); }
.player__fill { background: var(--accent, var(--red)); height: 4px; margin-top: -2px; }
.player__marks i { position: absolute; top: 50%; width: 2px; height: 10px; margin: -5px 0 0 -1px; background: rgba(255, 255, 255, .6); }
.player__thumb { position: absolute; bottom: 30px; left: 0; width: 160px; transform: translateX(-50%); opacity: 0; transition: opacity .2s; pointer-events: none; }
.player__thumb i { display: block; width: 160px; height: 90px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .5); background-repeat: no-repeat; background-color: #111; }
.player__thumb span { display: block; margin-top: 6px; text-align: center; font: 600 11px/1 var(--font-ui); letter-spacing: .06em; }
.player__bar:hover .player__thumb, .player__bar.is-drag .player__thumb { opacity: 1; }

/* ═══ SHOTS ═══ */
.shots { position: relative; z-index: 1; height: 1000vh; background: var(--black); }
.shots__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background-color: var(--s-bg, #0b0b0b); color: var(--s-fg, #f6f3ee); }
.shots__scene { position: absolute; inset: 0; perspective: 1100px; perspective-origin: 50% 50%; }
.shots__world { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.shot { position: absolute; left: 0; top: 0; display: block; overflow: hidden; border-radius: 3px; background: var(--c, #1a1a1a); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .45); will-change: transform, opacity; visibility: hidden; backface-visibility: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.shot::after { content: attr(data-n); position: absolute; left: 8px; bottom: 7px; font: 600 9px/1 var(--font-ui); letter-spacing: .07em; color: #fff; mix-blend-mode: difference; opacity: .9; }
.splane { position: absolute; left: 0; top: 0; text-align: center; white-space: nowrap; pointer-events: none; visibility: hidden; will-change: transform, opacity; }
.splane__n { font: 500 clamp(11px, 1vw, 14px)/1 var(--font-ui); letter-spacing: .09em; text-transform: uppercase; color: var(--s-accent, var(--red)); }
.splane__t { font: 400 clamp(84px, 19vw, 330px)/.82 var(--font-display); text-transform: uppercase; letter-spacing: -.01em; margin: .08em 0 .1em; }
.splane__s { font: italic 400 clamp(17px, 2vw, 34px)/1.15 var(--font-serif); white-space: normal; max-width: 22em; margin: 0 auto; }
.splane--intro .splane__t { font-size: clamp(110px, 27vw, 500px); }
.shots__hud { position: absolute; left: var(--pad); right: var(--pad); bottom: var(--pad); z-index: 5; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; font: 600 11px/1 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.shots__serie { display: flex; flex-direction: column; gap: 8px; min-width: 9em; }
.shots__serie span { color: var(--s-accent, var(--red)); }
.shots__serie strong { font: 400 clamp(22px, 2.4vw, 38px)/1 var(--font-display); letter-spacing: .02em; }
.shots__ticks { flex: 1; max-width: 46vw; height: 22px; display: flex; align-items: flex-end; gap: 3px; }
.shots__ticks i { flex: 1; height: 6px; background: currentColor; opacity: .22; transition: height .35s var(--ease-out), opacity .3s; }
.shots__ticks i.maj { height: 12px; }
.shots__ticks i.on { opacity: 1; }
.shots__ticks i.cur { height: 22px; background: var(--s-accent, var(--red)); opacity: 1; }
.shots__right { display: flex; align-items: center; gap: 16px; }
.shots__frame b { font-weight: 500; }

/* ═══ LIGHTBOX ═══ */
.lightbox { position: fixed; inset: 0; z-index: 1700; visibility: hidden; color: #fff; }
.lightbox.is-open { visibility: visible; }
.lightbox__bg { position: absolute; inset: 0; background: #070707; opacity: 0; }
.lightbox__stage { position: absolute; inset: 68px 84px 62px; }
.lightbox__stage img { position: absolute; left: 0; top: 0; border-radius: 2px; will-change: transform; background: #111; cursor: zoom-out; user-select: none; -webkit-user-drag: none; }
.lightbox__cap { position: absolute; left: var(--pad); bottom: 22px; display: flex; gap: 18px; font: 600 11px/1 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; }
.lightbox__cap span:last-child { opacity: .55; }
.lightbox__nav { position: absolute; top: 50%; width: 54px; height: 54px; margin-top: -27px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28); font-size: 18px; transition: background .3s, border-color .3s; }
.lightbox__nav:hover { background: var(--red); border-color: var(--red); }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
.lightbox__close { position: absolute; top: 18px; right: var(--pad); }
.lightbox__cap, .lightbox__nav, .lightbox__close { opacity: 0; transition: opacity .4s .15s; }
.lightbox.is-shown .lightbox__cap, .lightbox.is-shown .lightbox__nav, .lightbox.is-shown .lightbox__close { opacity: 1; }

/* ═══ ARCHIVE ═══ */
.archive { position: fixed; inset: 0; z-index: 1600; background: var(--paper); color: var(--ink); overflow-y: auto; visibility: hidden; clip-path: inset(100% 0 0 0); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.archive__head { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 1fr auto; gap: 14px 24px; align-items: center; padding: 18px var(--pad) 16px; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.archive__title { font: 400 clamp(34px, 5vw, 84px)/.9 var(--font-display); text-transform: uppercase; display: flex; align-items: flex-start; }
.archive__title sup { font: 600 12px/1 var(--font-ui); margin: .6em 0 0 .6em; color: var(--red); }
.archive__filters { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.archive__filters .pill.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.archive__head > .pill { grid-column: 2; grid-row: 1; justify-self: end; }
.archive__grid { display: flex; align-items: flex-start; gap: 12px; padding: 12px var(--pad) 12vh; }
.archive__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.archive__grid button { position: relative; display: block; width: 100%; overflow: hidden; border-radius: 3px; background: var(--c, #ccc); aspect-ratio: var(--ar); }
.archive__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out), opacity .5s; opacity: 0; }
.archive__grid img.is-in { opacity: 1; }
.archive__grid button:hover img { transform: scale(1.05); }

/* ═══ DESIGN ═══ */
.design { position: relative; z-index: 1; background: var(--paper); color: var(--ink); }
.design__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.design__track { position: absolute; left: 0; top: 0; height: 100%; display: flex; align-items: stretch; will-change: transform; }
.design__head { flex: none; width: min(96vw, 1180px); padding: 0 var(--pad); display: flex; flex-direction: column; justify-content: center; gap: 2.2vh; }
.design__head .sec-title { font-size: clamp(92px, 21vw, 380px); transition: color .5s ease; }
.design__head .sec-title:hover { color: var(--red); }
.design__hint { display: inline-flex; align-items: center; gap: 12px; margin-top: 2vh; font: 600 11px/1 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; }
.design__hint i { width: 56px; height: 1px; background: currentColor; position: relative; }
.design__hint i::after { content: ''; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid; border-right: 1px solid; transform: rotate(45deg); }
.design__line { position: relative; flex: none; display: flex; align-items: flex-start; gap: clamp(40px, 6.5vw, 130px); padding: 0 14vw 0 6vw; }
/* tendedero: cuerda trenzada (svg que dibuja design.js), pinzas de madera y pósters que se mueven con el viento */
.design__rope { position: absolute; left: 0; top: 0; height: 100%; z-index: 2; overflow: visible; pointer-events: none; }
.design__rope path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rope__shadow { stroke: rgba(20, 14, 8, .1); stroke-width: 4; }
.rope__base { stroke: #1f1b17; stroke-width: 2.6; }
/* volumen: un brillo fino arriba y las vueltas del trenzado a lo ancho de la cuerda */
.rope__twist { stroke: rgba(255, 255, 255, .2); stroke-width: .8; transform: translateY(-.7px); }
.design__rope .rope__twist2 { stroke: rgba(0, 0, 0, .55); stroke-width: 2.6; stroke-linecap: butt; stroke-dasharray: 1.1 2.3; }
.design__pegs { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.design__pegs svg { position: absolute; left: 0; top: 0; width: var(--pw, 18px); height: var(--ph, 62px); overflow: visible; filter: drop-shadow(1px 4px 3px rgba(0, 0, 0, .32)); will-change: transform; transform-origin: 50% 79%; }
.ditem { position: relative; flex: none; margin-top: 13vh; will-change: transform; }
.ditem__shadow { position: absolute; left: 0; top: 0; width: var(--sw, 100%); height: 60vh; z-index: 0; background: rgba(28, 20, 12, .32); filter: blur(26px); border-radius: 10px; transform-origin: 50% 0; will-change: transform, opacity; pointer-events: none; }
.ditem__paper { position: relative; z-index: 1; display: block; height: 60vh; aspect-ratio: var(--ar); background: var(--c, #ddd); box-shadow: 0 0 0 1px rgba(0, 0, 0, .05); transform-origin: 50% 0; will-change: transform; }
.ditem__paper > img { width: 100%; height: 100%; object-fit: cover; }
/* el papel flexible (WebGL): un lienzo más grande que el póster para que quepa al doblarse */
.ditem__gl { position: absolute; left: -25%; top: -6%; width: 150%; height: 126%; pointer-events: none; z-index: 2; }
.ditem--vinyl .ditem__gl { left: -25%; width: 150%; }
.ditem.is-gl .ditem__paper { background: none; box-shadow: none; }
.ditem.is-gl .ditem__paper > img, .ditem.is-gl .vinyl__sleeve > img, .ditem.is-gl .vinyl__sleeve > .ditem__shade { visibility: hidden; }
.ditem.is-gl .vinyl__sleeve { background: none; box-shadow: none; }
.ditem__paper > img { width: 100%; height: 100%; object-fit: cover; }
/* luz sobre la funda del vinilo al moverse */
.ditem__shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, var(--sheen, 0)) 0%, rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, var(--shadeb, 0)) 100%); }
.ditem__cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; margin-top: 18px; font: 600 11px/1.3 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; }
.ditem__cap b { font-weight: 500; }
.ditem__cap span:last-child { opacity: .6; text-align: right; }
.ditem--vinyl .ditem__paper { height: 46vh; background: none; box-shadow: none; }
.ditem--vinyl .ditem__shadow { height: 46vh; }
.vinyl__disc { position: absolute; left: 34%; top: 3%; width: 94%; aspect-ratio: 1; border-radius: 50%; z-index: 0; background: repeating-radial-gradient(circle at 50% 50%, #0c0c0c 0 1.5px, #1a1a1a 1.5px 3px); box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .55); transition: left .9s var(--ease-out); }
.vinyl__disc::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 20deg, rgba(255, 255, 255, 0) 0 12%, rgba(255, 255, 255, .22) 18%, rgba(255, 255, 255, 0) 26% 60%, rgba(255, 255, 255, .16) 68%, rgba(255, 255, 255, 0) 76%); }
.vinyl__spin { position: absolute; inset: 33%; border-radius: 50%; background: var(--red); animation: spin 3.2s linear infinite; display: grid; place-items: center; }
.vinyl__spin::before { content: 'DO FOR LOVE · 2PAC · '; position: absolute; font: 600 6px/1 var(--font-ui); letter-spacing: .08em; color: #111; top: 16%; }
.vinyl__spin::after { content: ''; width: 12%; height: 12%; border-radius: 50%; background: var(--paper); }
.vinyl__sleeve { position: relative; z-index: 1; display: block; width: 100%; height: 100%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 2px 3px rgba(0, 0, 0, .12); background: #fff; }
.vinyl__sleeve img { width: 100%; height: 100%; object-fit: cover; }
.ditem--vinyl:hover .vinyl__disc { left: 58%; }
.ditem--vinyl { margin-right: 14vh; }

/* ═══ SHEET (detalle diseño) ═══ */
.sheet { position: fixed; inset: 0; z-index: 1650; background: var(--paper); color: var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) min(36vw, 480px); visibility: hidden; clip-path: inset(0 0 100% 0); }
.sheet__stage { position: relative; overflow: hidden; background: var(--paper-2); cursor: zoom-in; }
.sheet__stage.is-zoom { cursor: zoom-out; }
.sheet__stage img { position: absolute; left: 50%; top: 50%; max-width: 84%; max-height: 86%; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .55); will-change: transform; user-select: none; -webkit-user-drag: none; }
.sheet__info { display: flex; flex-direction: column; gap: 14px; padding: 92px var(--pad) var(--pad); overflow-y: auto; border-left: 1px solid rgba(0, 0, 0, .14); }
.sheet__title { font: 400 clamp(52px, 6.4vw, 118px)/.84 var(--font-display); text-transform: uppercase; }
.sheet__kind { font: 600 11px/1.3 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--red); }
.sheet__line { font: italic 400 clamp(22px, 2.2vw, 34px)/1.1 var(--font-serif); }
.sheet__desc { font-size: 15px; line-height: 1.55; max-width: 34em; opacity: .82; }
.sheet__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.sheet__thumbs button { width: 72px; height: 72px; overflow: hidden; border-radius: 3px; opacity: .5; outline: 1px solid transparent; transition: opacity .3s; background: #fff; }
.sheet__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.sheet__thumbs button.is-on, .sheet__thumbs button:hover { opacity: 1; }
.sheet__thumbs button.is-on { outline-color: var(--ink); }
.sheet__nav { margin-top: auto; padding-top: 24px; display: flex; gap: 8px; }
.sheet__nav .pill:last-child { margin-left: auto; }

/* ═══ WEB (Rubik) ═══
   El título es el logo de Rubik en vector y en el marco se ve un vídeo en bucle de su web
   usándose sola (lo graba tools/record-rubik.mjs). */
.webwork { position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: center; padding: clamp(96px, 16vh, 190px) var(--pad); background-color: #f8f6f1; color: var(--ink); overflow: clip; }
.webwork__in { width: 100%; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 0 4.5vw; padding-right: 1.4vw; }
.webwork__info { position: relative; z-index: 2; }
.webwork__logo { width: min(100%, 78vh, 620px); margin: 2.6vh 0 3vh; }
.webwork__logo svg { display: block; width: 100%; height: auto; overflow: visible; }
.webwork__fallback { display: block; font: 400 clamp(54px, 8vw, 150px)/.86 var(--font-display); text-transform: uppercase; }
.webwork__kind { font: 600 11px/1.4 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; color: rgba(17, 17, 17, .62); }
.webwork__desc { font: italic 400 clamp(20px, 1.9vw, 32px)/1.2 var(--font-serif); margin: 12px 0 28px; max-width: 19em; text-wrap: balance; }
.webwork__row { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; }
.webwork__cube { display: flex; gap: 7px; }
.webwork__cube button { width: 22px; height: 22px; border-radius: 6px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(17, 17, 17, .16); transform: scale(.8); opacity: .45; transition: transform .6s var(--ease-out), opacity .3s; }
.webwork__cube button:hover { opacity: 1; transform: scale(1); }
.webwork__cube button.is-on { opacity: 1; transform: scale(1.22) rotate(90deg); }
.webwork__stage { position: relative; z-index: 1; display: grid; place-items: center; perspective: 1600px; }
/* la "pegatina" del cubo: gira un cuarto de vuelta y cambia de color con cada sección que sale en el vídeo */
.webwork__tile { position: absolute; left: 50%; top: 50%; width: min(84%, 66vh); aspect-ratio: 1; border-radius: 15%; background: var(--tile, #273A7F); transition: background .8s var(--ease-io); will-change: transform; }
.browser { position: relative; width: min(100%, calc((100vh - 200px) * 1.6)); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(17, 17, 17, .1), 0 60px 110px -46px rgba(17, 17, 17, .6), 0 20px 44px -24px rgba(17, 17, 17, .4); transform-origin: 50% 50%; will-change: transform; }
.browser__bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #edebe6; border-bottom: 1px solid rgba(17, 17, 17, .08); }
.browser__bar > i { width: 10px; height: 10px; border-radius: 50%; background: #D62F27; }
.browser__bar > i:nth-child(2) { background: #FFCC06; }
.browser__bar > i:nth-child(3) { background: #2DAE4A; }
.browser__url { margin: 0 auto; padding: 6px 46px; border-radius: 999px; background: #fff; font: 500 11px/1 var(--font-ui); letter-spacing: .01em; color: rgba(17, 17, 17, .72); transform: translateX(-22px); }
.browser__view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; cursor: pointer; }
.browser__view video, .browser__view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ═══ ABOUT ═══
   Todo va sobre la foto favorita, oscura y desenfocada, que se queda fija de fondo.
   Entrada (.about--scene, la pone el JS): sobre negro, la misma foto nítida como una copia en papel
   torcida; con el scroll se endereza y crece hasta cubrir la pantalla y se funde con la versión oscura. */
.about { position: relative; z-index: 1; background: var(--black); color: var(--white); }
.about__bg { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #181818; }
.about__bg::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
#aboutSoft { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.about__print, .about__tag, .about__lead { display: none; }
.about--scene .about__bg { background: var(--black); }
.about--scene .about__lead { display: block; height: 170vh; height: 170svh; }
.about--scene .about__print { display: block; position: absolute; left: 0; top: 0; max-width: none; border-radius: 14px; background: #151515; box-shadow: 0 60px 120px -30px rgba(0, 0, 0, .8); transform-origin: 50% 50%; }
.about--scene .about__tag { display: block; position: absolute; left: 0; top: 0; z-index: 2; white-space: nowrap; }
.about--scene #aboutSoft { opacity: 0; }
.about--scene .about__bg::after { opacity: 0; transition: opacity .9s; }
.about--scene .is-soft #aboutSoft, .about--scene .is-soft::after { opacity: 1; }
.about--scene .about__side { opacity: 0; transform: translateY(70px); transition: opacity 1s .1s, transform 1.2s var(--ease-out) .1s; }
.about--scene .about__side.is-in { opacity: 1; transform: none; }
.about__in { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; }
.about__copy .kicker { display: block; margin-bottom: 4vh; }
.about__body { position: relative; min-height: 100vh; min-height: 100svh; padding: 13vh var(--pad) 15vh; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 5vw; align-items: center; }
.about__copy { max-width: 1060px; }
.about__p { font: 400 clamp(27px, 3.2vw, 60px)/1.08 var(--font-serif); letter-spacing: -.012em; text-shadow: 0 1px 34px rgba(0, 0, 0, .4); }
.about__p + .about__p { margin-top: 3.4vh; }
.about__p .wd { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .14em 0; margin: 0 -.06em -.14em 0; }
.about__p .wd > span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease-out); }
.about__p.is-in .wd > span { transform: none; }
.about__p--2 { opacity: 0; transform: translateY(30px); transition: opacity .9s .1s, transform .9s var(--ease-out) .1s; }
.about__p--2.is-in { opacity: 1; transform: none; }
.about__p--2 em { color: var(--red); }
/* panel de cristal */
.about__side { padding: clamp(18px, 2vw, 34px); border-radius: 24px; background: linear-gradient(160deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .05)); border: 1px solid rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 34px 70px -34px rgba(0, 0, 0, .7); }
.svc { border-top: 1px solid rgba(255, 255, 255, .22); }
.svc li { display: flex; align-items: center; gap: 14px; padding: .2em 0 .12em; border-bottom: 1px solid rgba(255, 255, 255, .22); font: 400 clamp(30px, 3.4vw, 62px)/1.08 var(--font-display); text-transform: uppercase; cursor: default; transition: color .3s, padding .5s var(--ease-out); }
.svc li sup { align-self: flex-start; margin-top: 1em; font: 600 11px/1 var(--font-ui); letter-spacing: .08em; opacity: .6; }
.svc li b { flex: none; margin-left: auto; width: 1.5em; height: .7em; border-radius: 999px; background: #1a1a1a center / cover no-repeat; transform: scale(.82); filter: grayscale(1); transition: transform .6s var(--ease-out), filter .4s; }
.svc li:hover { color: var(--red); padding-left: 12px; }
.svc li:hover b { transform: scale(1); filter: none; }
/* al pasar el ratón por un servicio, una muestra de ese trabajo aparece al lado y sigue al cursor */
.svc-preview { --pw: clamp(210px, 19vw, 330px); position: fixed; left: 0; top: 0; z-index: 8; width: var(--pw); aspect-ratio: 4 / 5; margin: calc(var(--pw) * -.62) 0 0 calc(var(--pw) * -.5); border-radius: 10px; overflow: hidden; pointer-events: none; opacity: 0; background: #111; box-shadow: 0 34px 70px -28px rgba(0, 0, 0, .7); will-change: transform; transition: opacity .3s; }
.svc-preview.is-on { opacity: 1; }
.svc-preview > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity .35s, transform .9s var(--ease-out); }
.svc-preview > .is-on { opacity: 1; transform: none; }
.about__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; margin-top: 5vh; }
.about__fact { font: 400 clamp(20px, 1.9vw, 30px)/1.2 var(--font-serif); }
.about__clock b { font: 400 clamp(44px, 4.6vw, 84px)/.9 var(--font-display); color: var(--red); }
@media (hover: none), (pointer: coarse) { .svc-preview { display: none; } }

/* ═══ CONTACT ═══ */
.contact { position: relative; z-index: 1; background: var(--red); color: var(--ink); overflow: clip; padding: 20vh var(--pad) 0; }
.contact__in { position: relative; z-index: 2; }
.contact__h { font: 400 clamp(76px, 18vw, 360px)/.9 var(--font-display); text-transform: uppercase; letter-spacing: -.012em; margin-top: 3vh; }
.contact__h > span { display: block; overflow: hidden; padding: .2em .03em .12em 0; margin: -.14em -.03em -.12em 0; white-space: nowrap; }
.contact__h b { display: block; font-weight: 400; transform: translateY(110%); transition: transform 1.1s var(--ease-out); }
.contact__h > span:nth-child(2) b { transition-delay: .08s; }
.contact.is-in .contact__h b { transform: none; }
.contact__sub { font: 400 clamp(30px, 4.6vw, 90px)/1 var(--font-serif); margin: 2.4vh 0 5.5vh; }
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.contact__actions .btn--xl i { font: 600 11px/1 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; opacity: .6; }
.contact__actions .btn--xl:hover i { transform: none; }
.contact__actions .btn--line:hover { background: var(--ink); color: var(--red); }
.contact__note { margin-top: 26px; max-width: 30em; font-size: 15px; line-height: 1.5; opacity: .78; }
.contact__foot { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; padding: 12vh 0 26px; font: 600 11px/1.3 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; }
.contact__foot b { font-weight: 500; }
.contact__foot a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(0, 0, 0, .35); }
.contact__foot a:hover { text-decoration-color: currentColor; }
.contact__social { display: inline-flex; gap: 18px; }
.contact__logo { position: relative; z-index: 1; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); height: 22vw; overflow: hidden; }
.contact__logo svg { width: 100%; height: auto; fill: var(--ink); }

/* ── grano: textura fija y solo en los fondos lisos (encima de las fotos y los vídeos no hay nada) ── */
.intro, .films, .shots__sticky, .design, .webwork, .about__bg::after, .contact, .menu, .archive, .sheet { background-image: url('../img/grain.png'); background-size: 180px 180px; }
/* en pantallas de mucha densidad el grano se dibuja píxel a píxel (si no, se vería gordo) */
@media (min-resolution: 1.5dppx) { .intro, .films, .shots__sticky, .design, .webwork, .about__bg::after, .contact, .menu, .archive, .sheet { background-size: 90px 90px; } }
@media (min-resolution: 2.5dppx) { .intro, .films, .shots__sticky, .design, .webwork, .about__bg::after, .contact, .menu, .archive, .sheet { background-size: 60px 60px; } }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .nav__links, .nav__right > .lang { display: none; }
  .nav__burger { display: inline-flex; }
  .hero { height: 238vh; }
  .hud--tl span:last-child, .hud--tr span:last-child, .hud--bl span:last-child { display: none; }
  .hud--tl { top: 70px; }
  .hud--tr { top: 70px; }
  .intro { padding: 16vh var(--pad) 16vh; }
  .sec-head { padding: 16vh var(--pad) 7vh; }
  .film__top { top: 70px; gap: 6px 16px; font-size: 10px; }
  .film__top span:last-child { display: none; }
  .film__scenes { display: none; }
  .film__body { grid-template-columns: 1fr; bottom: calc(var(--pad) + 14px + env(safe-area-inset-bottom)); }
  .film__title { width: min(var(--twm, 80vw), calc(34vh * var(--ar, 4)), 100%); margin-bottom: 16px; }
  .film__blurb { font-size: 18px; margin-bottom: 18px; }
  .film__cta { height: 48px; font-size: 15px; }
  .player__title em, .player__yt span, .player__yt i { display: none; }
  .player__yt { padding: 0 11px; }
  .player__bottom { gap: 8px; }
  .player__time { min-width: 40px; font-size: 11px; }
  .player__big { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
  .shots__ticks { display: none; }
  .lightbox__stage { inset: 62px 14px 70px; }
  .lightbox__nav { top: auto; bottom: 14px; margin: 0; width: 44px; height: 44px; }
  .lightbox__nav--prev { left: auto; right: 68px; }
  .lightbox__nav--next { right: 14px; }
  .archive__grid, .archive__col { gap: 8px; }
  .ditem__paper, .ditem__shadow { height: 52vh; }
  .ditem--vinyl .ditem__paper, .ditem--vinyl .ditem__shadow { height: 36vh; }
  .ditem--vinyl { margin-right: 10vh; }
  .design__head { width: 100vw; }
  .sheet { grid-template-columns: 1fr; grid-template-rows: 56vh auto; overflow-y: auto; }
  .sheet__info { padding: 22px var(--pad) calc(var(--pad) + 20px); border-left: 0; overflow: visible; }
  .sheet__nav { position: fixed; right: var(--pad); top: 14px; margin: 0; padding: 0; z-index: 3; }
  .sheet__nav .pill { background: var(--paper); }
  .webwork__desc { font-size: 18px; margin-bottom: 20px; }
  .browser__url { padding: 6px 18px; }
  .webwork { padding: 14vh var(--pad); }
  .webwork__in { grid-template-columns: 1fr; gap: 7vh 0; padding-right: 0; }
  .webwork__logo { width: min(74vw, 420px); }
  .browser { width: 100%; }
  .webwork__tile { width: min(78%, 46vh); }
  .about__body { grid-template-columns: 1fr; gap: 7vh 0; padding: 14vh var(--pad) 14vh; }
  .svc li { font-size: clamp(26px, 7.6vw, 60px); }
  .about__facts { gap: 8vw; }
  .contact { padding-top: 15vh; }
  .contact__foot { padding-top: 9vh; flex-direction: column; }
  .contact__logo { height: 24vw; }
  .btn--xl { width: 100%; justify-content: space-between; }
}
@media (max-width: 900px) and (orientation: landscape) {
  .film__blurb { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .vinyl__spin { animation: none; }
  .intro__text .w { opacity: 1; --f: 1 !important; }
  .chip { transform: none; }
  .film__title svg { transition: none; }
}
