/* ==========================================================================
   CIFRE MEDIA — Home como experiencia audiovisual.
   Sistema Nocturne con el amarillo de marca como acento dominante.
   El scroll controla la narrativa: cada escena nace de la anterior.
   ========================================================================== */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url('/assets/fonts/inter-var.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                   U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC,
                   U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Grounds */
    --ground:  #0d0e16;   /* secciones de contenido */
    --deep:    #08080c;   /* intro, montaje, máscara, servicios, marcas, brief */
    --surface: #232532;

    /* Texto */
    --tx:    #e9e9ed;
    --tx-78: rgba(233, 233, 237, .78);
    --tx-72: rgba(233, 233, 237, .72);
    --tx-55: rgba(233, 233, 237, .55);
    --tx-45: rgba(233, 233, 237, .45);
    --tx-34: rgba(233, 233, 237, .34);
    --tx-22: rgba(233, 233, 237, .22);
    --tx-14: rgba(233, 233, 237, .14);
    --tx-07: rgba(233, 233, 237, .07);

    /* Acento: el amarillo del logotipo */
    --y:    #ffd500;
    --y-60: rgba(255, 213, 0, .60);
    --y-40: rgba(255, 213, 0, .40);
    --y-28: rgba(255, 213, 0, .28);

    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --r-sm: 4px;
    --r-md: 8px;
    --r-lg: 14px;

    --pad: 40px;

    --in:    cubic-bezier(.16, 1, .3, 1);   /* entradas */
    --drape: cubic-bezier(.76, 0, .24, 1);  /* cortinas y máscaras */

    --z-scene: 1;  --z-rail: 60;  --z-panel: 75;  --z-nav: 78; /* el menú móvil no puede tapar su propio botón de cierre */
    --z-intro: 80; --z-cursor: 90; --z-over: 85;
}

@media (max-width: 900px) { :root { --pad: 20px; } }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--ground); -webkit-text-size-adjust: 100%; }

body {
    background: var(--ground);
    color: var(--tx);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--y-28); }

h1, h2, h3, h4 { font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }

/* Utilidades tipográficas ------------------------------------------------ */
.k {                       /* kicker / label */
    font-size: 10px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--tx-45);
}
.k--y { color: var(--y); }
.num { font-variant-numeric: tabular-nums; }
/* Utilitario: fuera de la vista pero presente para lectores y bots.
   El !important es necesario porque los formularios estiran sus inputs al 100 %
   y un campo trampa de 1378 px ensancha la capa que lo contiene. */
.vh {
    position: absolute !important; width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important; border: 0 !important;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
    position: absolute; left: -9999px; top: 0; z-index: 999;
    background: var(--y); color: var(--deep); padding: 12px 20px;
    font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
}
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--y); outline-offset: 3px; }

/* ==========================================================================
   00 — INTRO
   ========================================================================== */
.intro { display: none; }
.intro-on .intro {
    position: fixed; inset: 0; z-index: var(--z-intro);
    display: grid; place-items: center;
    background: var(--deep); overflow: hidden;
}
/* Salida: no es un fade a negro, es una cortina que revela el hero en marcha */
.intro.is-out {
    clip-path: inset(0 0 100% 0);
    transform: scale(1.04);
    opacity: 0;
    transition: clip-path 1.15s var(--drape), transform 1.15s var(--drape), opacity 1.15s var(--drape);
}
.intro__vline {
    position: absolute; left: 50%; top: 0; width: 1px; height: 100%;
    background: linear-gradient(to bottom, transparent, var(--y-28), transparent);
    transform-origin: top;
    animation: cf-line 1.1s .1s cubic-bezier(.2, .8, .2, 1) both;
}
.intro__hline {
    position: absolute; left: 0; top: 50%; width: 100%; height: 1px;
    background: linear-gradient(to right, transparent, rgba(233,233,237,.16) 20%, rgba(233,233,237,.16) 80%, transparent);
    transform-origin: left;
    animation: cf-line 1.4s .25s cubic-bezier(.2, .8, .2, 1) both;
}
.intro__stack { position: relative; display: grid; place-items: center; gap: 26px; }
.intro__mark {
    width: 132px; height: 132px; object-fit: contain;
    animation: cf-mark 1.6s .35s var(--in) both;
}
.intro__words { overflow: hidden; }
.intro__words > div {
    display: flex; gap: 14px;
    font-size: 11px; letter-spacing: .42em; color: rgba(233,233,237,.62);
    animation: cf-word 1s 1.5s var(--in) both;
}
.intro__words i { color: var(--y); font-style: normal; }
.intro__count {
    position: absolute; left: var(--pad); bottom: 36px;
    display: flex; align-items: baseline; gap: 12px;
    font-size: 10px; letter-spacing: .2em; color: rgba(233,233,237,.5);
}
.intro__count b {
    font-size: 34px; font-weight: 500; letter-spacing: -.02em; color: var(--y);
    font-variant-numeric: tabular-nums;
}
.intro__where {
    position: absolute; right: var(--pad); bottom: 40px;
    font-size: 10px; letter-spacing: .2em; color: var(--tx-34);
    animation: cf-blink 1.6s infinite;
}
.intro__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--y); }
.intro__skip {
    position: absolute; right: var(--pad); top: 34px;
    font-size: 10px; letter-spacing: .2em; color: var(--tx-45);
    padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center;
    border: 1px solid var(--tx-22); border-radius: var(--r-sm);
}
.intro__skip:hover { color: var(--y); border-color: var(--y-40); }

@keyframes cf-mark { 0% { opacity: 0; transform: scale(1.18) } 55%, 100% { opacity: 1; transform: scale(1) } }
@keyframes cf-line { from { transform: scaleX(0) } to { transform: scaleX(1) } }
@keyframes cf-word { from { opacity: 0; transform: translateY(120%) } to { opacity: 1; transform: translateY(0) } }
@keyframes cf-blink { 0%, 100% { opacity: 1 } 50% { opacity: .15 } }
@keyframes cf-marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes cf-hint { from { transform: translateY(-100%) } to { transform: translateY(100%) } }

/* ==========================================================================
   Chrome permanente: nav, rail, cursor, shortlist
   ========================================================================== */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; padding: 22px var(--pad);
    pointer-events: none;
}
/* Debajo pasan fotos claras y oscuras: un degradé mínimo sostiene el menú
   sin convertirlo en una barra sólida. */
.nav::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 128px; z-index: -1;
    background: linear-gradient(to bottom, rgba(8,8,12,.72), transparent);
    opacity: 0; transition: opacity .4s var(--in);
}
body.is-home.scrolled .nav::before, body:not(.is-home) .nav::before { opacity: 1; }
body.menu-on .nav::before { opacity: 0; }
.nav > * { pointer-events: auto; }
.nav__logo img { width: 104px; height: 34px; object-fit: contain; object-position: left; }
.nav__map { display: flex; align-items: center; gap: 26px; }
.nav__link {
    display: flex; align-items: center; gap: 7px;
    font-size: 10px; letter-spacing: .18em; color: var(--tx-55);
    transition: color .3s var(--in);
}
.nav__link.is-on { color: var(--y); }
.nav__lang {
    margin-left: 10px; padding: 7px 12px; min-height: 32px;
    font-size: 10px; letter-spacing: .14em; color: var(--y);
    border: 1px solid var(--y-40); border-radius: var(--r-sm);
}
.nav__burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav__burger i { display: block; width: 20px; height: 1px; background: var(--tx); position: relative; }
.nav__burger i::before, .nav__burger i::after {
    content: ""; position: absolute; left: 0; width: 100%; height: 1px; background: var(--tx);
    transition: transform .4s var(--in);
}
.nav__burger i::before { top: -6px; }
.nav__burger i::after { top: 6px; }
body.menu-on .nav__burger i { background: transparent; }
body.menu-on .nav__burger i::before { transform: translateY(6px) rotate(45deg); }
body.menu-on .nav__burger i::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
    .nav__map { display: none; }
    .nav__burger { display: flex; }
    .nav__mob { display: flex; align-items: center; gap: 8px; }
}
@media (min-width: 901px) { .nav__mob { display: none; } }

/* Menú móvil */
.menu {
    position: fixed; inset: 0; z-index: var(--z-panel);
    background: var(--deep);
    display: flex; flex-direction: column; justify-content: center; gap: 4px;
    padding: 0 var(--pad);
    clip-path: inset(0 0 100% 0);
    transition: clip-path .7s var(--drape);
}
body.menu-on .menu { clip-path: inset(0 0 0 0); }
.menu a {
    display: flex; align-items: baseline; gap: 16px;
    padding: 14px 0; border-bottom: 1px solid var(--tx-14);
    font-size: clamp(30px, 8vw, 56px); font-weight: 500; letter-spacing: -.04em;
    color: var(--tx-72);
    opacity: 0; transform: translateY(20px);
    transition: opacity .5s var(--in), transform .5s var(--in), color .3s var(--in);
}
body.menu-on .menu a { opacity: 1; transform: none; transition-delay: calc(var(--i) * 55ms); }
.menu a span:first-child { font-size: 11px; letter-spacing: .2em; color: var(--y); }

/* Rail de progreso */
.rail {
    position: fixed; right: var(--pad); top: 50%; z-index: var(--z-rail);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    transform: translateY(-50%); pointer-events: none;
}
.rail__num { font-size: 11px; font-weight: 500; letter-spacing: .1em; color: var(--y); font-variant-numeric: tabular-nums; }
.rail__track {
    position: relative; width: 1px; height: 150px;
    background: linear-gradient(to bottom, transparent, var(--tx-22) 20%, var(--tx-22) 80%, transparent);
}
.rail__fill { position: absolute; left: 0; top: 0; width: 1px; height: 0; background: var(--y); }
.rail__end { font-size: 9px; letter-spacing: .1em; color: var(--tx-34); }
@media (max-width: 900px) { .rail { display: none; } }

/* Cursor propio */
.cur-dot, .cur-ring { display: none; }
@media (hover: hover) and (pointer: fine) {
    body.cursor-on, body.cursor-on a, body.cursor-on button { cursor: none; }
    /* La posición y la escala las escribe el JS en cada frame. Acá no puede
       haber transiciones de transform: sumarían un segundo suavizado encima
       del que ya hace el script y el cursor se sentiría pesado. */
    .cur-dot, .cur-ring {
        position: fixed; left: 0; top: 0; z-index: var(--z-cursor);
        pointer-events: none; border-radius: 50%;
        will-change: transform; backface-visibility: hidden;
    }
    .cur-dot {
        /* El display base es none; sin revertirlo acá el punto no existe y,
           con el cursor del sistema oculto, no queda ningún puntero a la vista. */
        display: block;
        width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--y);
        transition: opacity .22s var(--in);
    }
    .cur-ring {
        width: 74px; height: 74px; margin: -37px 0 0 -37px;
        display: grid; place-items: center;
        border: 1px solid var(--y-60);
        opacity: 0; transition: opacity .22s var(--in);
    }
    .cur-ring span {
        font-size: 10px; letter-spacing: .18em; color: var(--y);
        opacity: 0; transition: opacity .18s var(--in);
    }
    body.cur-hot .cur-ring, body.cur-hot .cur-ring span { opacity: 1; }
    body.cur-out .cur-dot, body.cur-out .cur-ring { opacity: 0; }
}

/* Shortlist */
.shortlist {
    position: fixed; left: var(--pad); bottom: 28px; z-index: var(--z-rail);
    display: none; align-items: center; gap: 14px;
    padding: 12px 16px;
    background: rgba(8, 8, 12, .72); border: 1px solid var(--tx-22);
    border-radius: var(--r-md); backdrop-filter: blur(8px);
}
.shortlist.is-on { display: flex; }
.shortlist__n { font-size: 20px; font-weight: 500; color: var(--y); font-variant-numeric: tabular-nums; }
.shortlist__t { font-size: 9px; letter-spacing: .2em; color: var(--tx-55); }
.shortlist__go {
    font-size: 10px; letter-spacing: .18em; color: var(--y);
    padding: 9px 13px; min-height: 36px; display: inline-flex; align-items: center;
    border: 1px solid var(--y-40); border-radius: var(--r-sm);
}
.shortlist__go:hover { background: var(--y-28); }

/* ==========================================================================
   01 — HERO (300vh, sticky)
   ========================================================================== */
.hero { position: relative; height: 300vh; }
.hero__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hero__media { position: absolute; inset: 0; will-change: transform; overflow: hidden; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to bottom, rgba(8,8,12,.72) 0%, rgba(8,8,12,.15) 38%, rgba(8,8,12,.8) 100%);
}
.hero__copy { position: absolute; left: var(--pad); right: var(--pad); bottom: 96px; pointer-events: none; }
.hero__kicker {
    display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
    font-size: 10px; letter-spacing: .3em; color: var(--y);
}
.hero__kicker i { width: 34px; height: 1px; background: var(--y); }
.hero h1 {
    font-size: clamp(56px, 9.4vw, 168px); line-height: .88; letter-spacing: -.045em;
}
.hero h1 > span { display: block; overflow: hidden; }
.hero h1 b { display: block; font-weight: 500; }
.hero__l2 { color: var(--y); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 34px; opacity: 0; }
.hero__meta div { display: grid; gap: 5px; }
.hero__meta span:first-child { font-size: 9px; letter-spacing: .22em; color: var(--tx-45); }
.hero__meta span:last-child { font-size: 14px; }
.hero__hint {
    position: absolute; left: 50%; bottom: 34px;
    display: grid; place-items: center; gap: 10px; transform: translateX(-50%);
}
.hero__hint span { font-size: 9px; letter-spacing: .24em; color: var(--tx-45); }
.hero__hint div { position: relative; width: 1px; height: 46px; overflow: hidden; background: var(--tx-14); }
.hero__hint div i { position: absolute; inset: 0; background: var(--y); animation: cf-hint 1.8s infinite cubic-bezier(.6,0,.4,1); }

@media (max-width: 900px) {
    .hero__copy { bottom: 120px; }
    .hero__meta { gap: 18px; }
}

/* ==========================================================================
   02 — TRABAJOS (460vh, pin + horizontal)
   ========================================================================== */
.works { position: relative; height: 460vh; background: var(--ground); }
.works__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.works__head {
    position: absolute; left: var(--pad); top: 96px; z-index: 3;
    display: flex; align-items: flex-end; gap: 18px; pointer-events: none;
}
.works__head h2 { font-size: clamp(40px, 6vw, 92px); line-height: .9; letter-spacing: -.04em; }
.works__count { padding-bottom: 12px; font-size: 11px; letter-spacing: .16em; color: var(--y); font-variant-numeric: tabular-nums; }
.works__foot {
    position: absolute; left: var(--pad); bottom: 40px; z-index: 4;
    display: flex; align-items: center; gap: 22px;
}
.works__dots { display: flex; gap: 10px; }
.works__dots button { width: 42px; height: 2px; background: var(--tx-22); transition: background .3s var(--in); }
.works__dots button.is-on { background: var(--y); }
.works__hint { font-size: 9px; letter-spacing: .2em; color: var(--tx-45); }
/* En móvil la barra de referencias vive en la misma esquina: el pie de la
   escena sube para no quedar debajo. */
@media (max-width: 900px) {
    body.has-shortlist .works__foot { bottom: 112px; }
}
.works__track {
    position: absolute; top: 0; left: 0;
    display: flex; align-items: center; gap: 3vw;
    height: 100vh; padding: 0 var(--pad);
    will-change: transform;
}
.work {
    position: relative; flex: 0 0 auto;
    overflow: hidden; border-radius: var(--r-md);
    background: var(--surface);
    transition: transform .5s var(--in);
}
.work:hover { transform: scale(1.015); }
.work__media { position: absolute; inset: -6%; }
.work__media img { width: 100%; height: 100%; object-fit: cover; }
.work__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,12,.85), transparent 62%); pointer-events: none; }
.work__save {
    position: absolute; right: 18px; top: 18px;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 14px; min-height: 36px;
    font-size: 10px; letter-spacing: .18em; color: var(--tx-78);
    background: rgba(8,8,12,.5); border: 1px solid var(--tx-22);
    border-radius: var(--r-md); backdrop-filter: blur(6px);
    transition: border-color .3s var(--in), color .3s var(--in);
}
.work__save:hover { border-color: var(--y-40); color: var(--y); }
.work__save.is-saved { border-color: var(--y); color: var(--y); }
.work__foot {
    position: absolute; left: 26px; right: 26px; bottom: 24px;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
    pointer-events: none;
}
.work__idx { margin-bottom: 8px; font-size: 10px; letter-spacing: .22em; color: var(--y); }
.work__title { font-size: clamp(24px, 2.6vw, 44px); letter-spacing: -.03em; }
.work__when { font-size: 11px; letter-spacing: .14em; color: var(--tx-55); }

/* Anchos desiguales, como pide el guion */
.work--a { width: 62vw; height: 66vh; margin-top: 6vh; }
.work--b { width: 42vw; height: 54vh; }
.work--c { width: 52vw; height: 72vh; margin-top: -4vh; }
.work--d { width: 44vw; height: 58vh; margin-top: 8vh; }
.work--all {
    display: grid; place-items: center; gap: 14px;
    width: 34vw; height: 48vh;
    border: 1px solid var(--tx-22); border-radius: var(--r-md);
    background: transparent; text-align: center;
}
.work--all strong { font-size: clamp(20px, 2.2vw, 34px); font-weight: 500; letter-spacing: -.03em; }

@media (max-width: 900px) {
    .work--a { width: 82vw; height: 54vh; margin-top: 0; }
    .work--b { width: 72vw; height: 46vh; }
    .work--c { width: 78vw; height: 58vh; margin-top: 0; }
    .work--d { width: 70vw; height: 48vh; margin-top: 0; }
    .work--all { width: 62vw; height: 40vh; }
    .works__head { top: 84px; }
}

/* ==========================================================================
   03 — PROYECTO (420vh, pin editorial)
   ========================================================================== */
.pj { position: relative; height: 420vh; background: var(--ground); }
.pj__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.pj__a { position: absolute; inset: 0; will-change: transform; }
.pj__a img { width: 100%; height: 100%; object-fit: cover; }
.pj__veil { position: absolute; inset: 0; background: rgba(8,8,12,.42); pointer-events: none; }
.pj__b {
    position: absolute; right: var(--pad); bottom: 14vh;
    width: 34vw; height: 46vh; overflow: hidden; border-radius: var(--r-md);
    opacity: 0; will-change: transform;
}
.pj__b img { width: 100%; height: 100%; object-fit: cover; }
.pj__copy { position: absolute; left: var(--pad); top: 50%; transform: translateY(-50%); max-width: 42vw; }
.pj__copy h2 { font-size: clamp(34px, 4.6vw, 84px); line-height: .92; letter-spacing: -.04em; }
.pj__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-top: 34px; max-width: 420px; }
.pj__grid span { display: block; font-size: 9px; letter-spacing: .22em; color: var(--tx-45); margin-bottom: 5px; }
.pj__grid b { font-weight: 400; font-size: 14px; }
.pj__cta { display: inline-block; margin-top: 30px; font-size: 11px; letter-spacing: .2em; color: var(--y); opacity: 0; }
.pj__strip {
    position: absolute; left: var(--pad); bottom: 5vh;
    display: flex; gap: 14px; opacity: 0; will-change: transform;
}
.pj__strip figure { width: 18vw; height: 12vh; overflow: hidden; border-radius: var(--r-sm); background: var(--surface); }
.pj__strip img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
    .pj__copy { max-width: none; right: var(--pad); top: auto; bottom: 22vh; transform: none; }
    .pj__b { width: 52vw; height: 28vh; bottom: 8vh; }
    .pj__strip { display: none; }
}

/* ==========================================================================
   04 — MONTAJE (400vh, el scroll es el montaje)
   ========================================================================== */
.mt { position: relative; height: 400vh; background: var(--deep); }
.mt__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.mt__frames { position: absolute; inset: 0; }
.mt__frames figure { position: absolute; inset: 0; opacity: 0; will-change: transform, opacity; }
.mt__frames img { width: 100%; height: 100%; object-fit: cover; }
.mt__scrim { position: absolute; inset: 0; background: rgba(8,8,12,.45); pointer-events: none; }
.mt__copy { position: absolute; left: var(--pad); top: 22vh; max-width: 30ch; }
.mt__copy h2 { font-size: clamp(30px, 4vw, 68px); line-height: .95; letter-spacing: -.04em; }
.mt__copy p { margin-top: 14px; color: var(--tx-72); }
.mt__hud { position: absolute; left: var(--pad); right: var(--pad); bottom: 44px; }
.mt__tc { font-size: 28px; font-weight: 500; color: var(--y); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.mt__barwrap { position: relative; height: 2px; margin-top: 16px; background: var(--tx-14); cursor: ew-resize; touch-action: none; }
.mt__bar { position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--y); }
.mt__head { position: absolute; left: 0; top: -5px; width: 2px; height: 12px; background: var(--y); }
.mt__ticks { display: flex; gap: 6px; margin-top: 14px; }
.mt__ticks i { flex: 1; height: 2px; background: var(--tx-07); transition: background .3s var(--in); }
.mt__scrub { margin-top: 10px; font-size: 9px; letter-spacing: .2em; color: var(--tx-34); }

/* ==========================================================================
   05 — CAMBIO DE ESCENA (360vh, máscara)
   ========================================================================== */
.mask { position: relative; height: 360vh; background: var(--deep); }
.mask__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.mask__layer { position: absolute; inset: 0; will-change: transform, clip-path; }
.mask__layer img { width: 100%; height: 100%; object-fit: cover; }
.mask__under { opacity: .35; }
.mask__vig { position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(120% 80% at 50% 50%, transparent 30%, rgba(8,8,12,.75)); }
.mask__copy {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    text-align: center; opacity: 0; width: min(90vw, 22ch);
}
/* La frase cruza la máscara: de un lado hay silueta, del otro un auto blanco.
   Un halo bajo el texto la sostiene sin ensuciar la foto. */
.mask__copy::before {
    content: ''; position: absolute; inset: -18% -26%; z-index: -1; border-radius: 50%;
    background: radial-gradient(60% 60% at 50% 50%, rgba(8,8,12,.62), transparent 72%);
}
.mask__copy h2 { font-size: clamp(30px, 4.4vw, 76px); line-height: .95; letter-spacing: -.04em; }

/* ==========================================================================
   06 — CIFRE (pausa)
   ========================================================================== */
.about { background: var(--ground); padding: 18vh var(--pad); }
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 6vw; align-items: center; max-width: 1500px; margin-inline: auto; }
.about__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-md); background: var(--surface); }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__line { height: 1px; width: 0; background: var(--y); margin-bottom: 26px; }
.about h2 { font-size: clamp(34px, 4.6vw, 84px); line-height: .92; letter-spacing: -.04em; }
.about__role { margin-top: 10px; font-size: 11px; letter-spacing: .24em; color: var(--y); }
.about__txt { margin-top: 26px; color: var(--tx-72); max-width: 52ch; }
.about__txt p + p { margin-top: 16px; }
.about__stats { display: flex; flex-wrap: wrap; gap: 44px; margin-top: 44px; }
.about__stats div { display: grid; gap: 4px; }
.about__stats b { font-size: 40px; font-weight: 500; color: var(--y); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.about__stats span { font-size: 9px; letter-spacing: .22em; color: var(--tx-45); }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; gap: 40px; } }

/* ==========================================================================
   07 — SERVICIOS (140vh, pin)
   ========================================================================== */
.sv { position: relative; height: 140vh; background: var(--deep); }
.sv__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; align-content: center; }
.sv__bgs { position: absolute; inset: 0; }
/* La foto del servicio activo entra detrás de los títulos: sin este velo
   las palabras en gris se pierden contra un auto al sol. */
.sv__bgs::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(100deg, rgba(8,8,12,.9) 0%, rgba(8,8,12,.6) 46%, rgba(8,8,12,.84) 100%);
}
.sv__bgs figure { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--in), transform .6s var(--in); transform: scale(1.04); }
.sv__bgs figure.is-on { opacity: .26; transform: scale(1); }
.sv__bgs img { width: 100%; height: 100%; object-fit: cover; }
.sv__inner { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; gap: 6vw; align-items: center;
    padding: 0 calc(var(--pad) + 36px) 0 var(--pad); } /* el margen extra deja libre el riel de progreso */
.sv__list { display: grid; gap: 4px; }
.sv__item {
    display: block; text-align: left; width: 100%;
    font-size: clamp(38px, 6.4vw, 108px); font-weight: 500; line-height: 1; letter-spacing: -.045em;
    color: rgba(233,233,237,.42);
    transition: color .4s var(--in), transform .4s var(--in);
}
.sv__item.is-on { color: var(--tx); transform: translateX(14px); }
.sv__side p { color: var(--tx-72); max-width: 34ch; transition: opacity .18s var(--in); }
.sv__side .k { display: block; margin-bottom: 12px; }
@media (max-width: 900px) { .sv { height: auto; padding: 14vh 0; } .sv__pin { position: static; height: auto; } .sv__inner { grid-template-columns: 1fr; gap: 28px; } }

/* Panel lateral de servicio */
.svp {
    position: fixed; right: 0; top: 0; bottom: 0; z-index: var(--z-panel);
    width: min(420px, 42vw);
    background: var(--deep); border-left: 1px solid var(--tx-22);
    padding: 90px 34px 34px;
    transform: translateX(100%);
    transition: transform .7s var(--drape);
    overflow-y: auto;
}
.svp.is-on { transform: translateX(0); }
.svp h3 { font-size: 34px; letter-spacing: -.03em; margin-top: 10px; }
.svp ul { margin-top: 28px; display: grid; gap: 14px; }
.svp li { padding-bottom: 14px; border-bottom: 1px solid var(--tx-14); color: var(--tx-78); font-size: 14px; }
.svp__x { position: absolute; right: 26px; top: 30px; font-size: 10px; letter-spacing: .2em; color: var(--tx-55); }
.svp__cta {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 30px;
    padding: 14px 20px; min-height: 46px;
    font-size: 10px; letter-spacing: .2em; color: var(--deep); background: var(--y);
    border-radius: var(--r-sm);
}
@media (max-width: 900px) { .svp { width: 100%; } }

/* ==========================================================================
   08 — JOURNAL
   ========================================================================== */
.jr { background: var(--ground); padding: 14vh var(--pad); }
.jr__head { max-width: 1500px; margin: 0 auto 8vh; }
.jr__head h2 { font-size: clamp(34px, 4.6vw, 84px); line-height: .92; letter-spacing: -.04em; }
.jr__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; max-width: 1500px; margin-inline: auto; }
.jr__fig { overflow: hidden; will-change: transform; }
.jr__fig > div { overflow: hidden; border-radius: var(--r-md); background: var(--surface); }
.jr__fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--in); }
.jr__fig:hover img { transform: scale(1.04); }
.jr__fig figcaption { margin-top: 12px; font-size: 10px; letter-spacing: .2em; color: var(--tx-45); }
.jr__fig--1 { grid-column: 1 / span 5; }
.jr__fig--1 > div { aspect-ratio: 3 / 4; }
.jr__fig--2 { grid-column: 7 / span 6; margin-top: 14vh; }
.jr__fig--2 > div { aspect-ratio: 16 / 10; }
.jr__fig--3 { grid-column: 3 / span 4; }
.jr__fig--3 > div { aspect-ratio: 1 / 1; }
.jr__fig--4 { grid-column: 8 / span 4; margin-top: -6vh; }
.jr__fig--4 > div { aspect-ratio: 4 / 5; }
@media (max-width: 900px) {
    .jr__grid { grid-template-columns: 1fr; gap: 32px; }
    .jr__fig { grid-column: 1 / -1 !important; margin-top: 0 !important; transform: none !important; }
}

/* Lightbox */
.lb {
    position: fixed; inset: 0; z-index: var(--z-over);
    display: grid; place-items: center; padding: var(--pad);
    background: var(--deep);
    opacity: 0; pointer-events: none; transition: opacity .45s var(--in);
}
.lb.is-on { opacity: 1; pointer-events: auto; }
.lb__media { max-width: 100%; max-height: calc(100vh - 150px); }
.lb__media img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; border-radius: var(--r-md); }
.lb__cap { position: absolute; left: var(--pad); bottom: 40px; font-size: 10px; letter-spacing: .2em; color: var(--tx-55); }
.lb__x { position: absolute; right: var(--pad); top: 34px; font-size: 10px; letter-spacing: .2em; color: var(--tx-55); }
.lb__nav { position: absolute; right: var(--pad); bottom: 36px; display: flex; gap: 10px; }
.lb__nav button {
    width: 44px; height: 44px; display: grid; place-items: center;
    border: 1px solid var(--tx-22); border-radius: 50%; color: var(--tx-72);
}
.lb__nav button:hover { border-color: var(--y); color: var(--y); }

/* ==========================================================================
   09 — MARCAS
   ========================================================================== */
.brands { background: var(--deep); padding: 10vh 0; overflow: hidden; }
.brands__row { display: flex; align-items: center; gap: 64px; width: max-content; animation: cf-marquee 26s linear infinite; }
.brands__row img { height: 30px; width: auto; opacity: .34; transition: opacity .4s var(--in); }
.brands__row img:hover { opacity: 1; }
.brands:hover .brands__row { animation-play-state: paused; }

/* ==========================================================================
   10 — CONTACTO
   ========================================================================== */
.ct { position: relative; height: 220vh; background: var(--deep); }
.ct__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; }
.ct__bg { position: absolute; inset: 0; opacity: .5; will-change: transform; }
.ct__bg img { width: 100%; height: 100%; object-fit: cover; }
.ct__copy { position: relative; text-align: center; padding: 0 var(--pad); opacity: 0; }
.ct__copy h2 { font-size: clamp(34px, 5.4vw, 96px); line-height: .92; letter-spacing: -.045em; }
.ct__copy h2 b { display: block; font-weight: 500; color: var(--y); }
.ct__cta {
    display: inline-flex; align-items: center; gap: 12px; margin-top: 40px;
    padding: 20px 32px; min-height: 56px;
    font-size: 11px; letter-spacing: .2em; color: var(--deep); background: var(--y);
    border-radius: var(--r-sm);
    transition: filter .3s var(--in), transform .3s var(--in);
}
.ct__cta:hover { filter: brightness(1.08); }
.ct__cta:active { transform: scale(.98); }
.ct__ways { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; margin-top: 34px; }
.ct__ways a { font-size: 10px; letter-spacing: .2em; color: var(--tx-55); }
.ct__ways a:hover { color: var(--y); }
.ct__foot {
    position: absolute; left: var(--pad); right: var(--pad); bottom: 34px;
    display: flex; justify-content: space-between; gap: 20px;
    font-size: 9px; letter-spacing: .2em; color: var(--tx-34);
}

/* ==========================================================================
   11 — PROJECT / 001 (brief)
   ========================================================================== */
.brief {
    position: fixed; inset: 0; z-index: var(--z-over);
    background: var(--deep); overflow-y: auto;
    clip-path: circle(0% at 50% 88%);
    pointer-events: none;
    transition: clip-path 1.1s var(--drape);
}
.brief.is-on { clip-path: circle(150% at 50% 88%); pointer-events: auto; }
.brief__in { max-width: 900px; margin-inline: auto; padding: 90px var(--pad) 80px; }
.brief__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 8vh; }
.brief__head h2 { font-size: clamp(24px, 3vw, 44px); letter-spacing: -.03em; }
.brief__x { font-size: 10px; letter-spacing: .2em; color: var(--tx-55); }
.brief__q { margin-bottom: 6vh; opacity: .18; transition: opacity .5s var(--in); }
.brief__q.is-on { opacity: 1; }
.brief__q > .k { display: block; margin-bottom: 18px; }
.brief__opts { display: flex; flex-wrap: wrap; gap: 10px; }
.brief__opts button {
    padding: 13px 20px; min-height: 46px;
    font-size: 11px; letter-spacing: .16em; color: var(--tx-78);
    border: 1px solid var(--tx-22); border-radius: var(--r-sm);
    transition: border-color .3s var(--in), color .3s var(--in), background .3s var(--in);
}
.brief__opts button:hover { border-color: var(--y-40); }
.brief__opts button.is-on { border-color: var(--y); color: var(--y); background: var(--y-28); }
.brief__field { display: grid; gap: 8px; margin-bottom: 22px; }
.brief__field label { font-size: 9px; letter-spacing: .22em; color: var(--tx-45); }
.brief input, .brief textarea {
    width: 100%; padding: 12px 0;
    font: inherit; font-size: 16px; color: var(--tx);
    background: transparent; border: 0; border-bottom: 1px solid var(--tx-22);
    transition: border-color .3s var(--in);
}
.brief textarea { min-height: 110px; resize: vertical; }
.brief input:focus, .brief textarea:focus { outline: none; border-bottom-color: var(--y); }
.brief__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.brief__chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 12px; font-size: 10px; letter-spacing: .14em;
    color: var(--tx-72); border: 1px solid var(--tx-22); border-radius: 999px;
}
.brief__chip b { color: var(--y); font-weight: 400; cursor: pointer; }
.brief__send {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 34px;
    padding: 18px 28px; min-height: 52px;
    font-size: 11px; letter-spacing: .2em; color: var(--deep); background: var(--y);
    border-radius: var(--r-sm);
}
.brief__send[disabled] { opacity: .5; }
.brief__note { margin-top: 20px; font-size: 13px; color: var(--tx-55); }
.brief__note.ok { color: var(--y); }
.brief__note.err { color: #ff6b6b; }

/* ==========================================================================
   Ficha de proyecto (overlay desde una card)
   ========================================================================== */
.sheet {
    position: fixed; inset: 0; z-index: var(--z-over);
    background: var(--deep); overflow-y: auto;
    opacity: 0; pointer-events: none; transform: translateY(6%);
    transition: opacity .55s var(--in), transform .8s var(--in);
}
.sheet.is-on { opacity: 1; pointer-events: auto; transform: none; }
.sheet__in { max-width: 1200px; margin-inline: auto; padding: 90px var(--pad) 70px; }
.sheet__x { position: absolute; right: var(--pad); top: 34px; font-size: 10px; letter-spacing: .2em; color: var(--tx-55); }
.sheet h2 { font-size: clamp(30px, 4.4vw, 76px); line-height: .94; letter-spacing: -.04em; margin: 10px 0 20px; }
.sheet__meta { display: flex; flex-wrap: wrap; gap: 34px; margin-bottom: 40px; }
.sheet__meta div { display: grid; gap: 5px; }
.sheet__meta span { font-size: 9px; letter-spacing: .22em; color: var(--tx-45); }
.sheet__meta b { font-weight: 400; font-size: 14px; }
.sheet__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sheet__grid figure { overflow: hidden; border-radius: var(--r-md); aspect-ratio: 3 / 2; background: var(--surface); }
.sheet__grid img { width: 100%; height: 100%; object-fit: cover; }
.sheet__foot { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.sheet__btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 22px; min-height: 48px;
    font-size: 10px; letter-spacing: .2em;
    border: 1px solid var(--tx-22); border-radius: var(--r-sm); color: var(--tx-78);
}
.sheet__btn--y { background: var(--y); color: var(--deep); border-color: var(--y); }
@media (max-width: 900px) { .sheet__grid { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Carga diferida de imágenes
   ========================================================================== */
img[data-src] { opacity: 0; }
img.ready { opacity: 1; transition: opacity .6s var(--in); }

/* ==========================================================================
   Movimiento reducido: se apaga el pin/scrub y quedan apariciones simples.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .intro { display: none !important; }
    .hero, .works, .pj, .mt, .mask, .sv, .ct { height: auto !important; }
    .hero__pin, .works__pin, .pj__pin, .mt__pin, .mask__pin, .sv__pin, .ct__pin {
        position: static !important; height: auto !important; min-height: 70vh;
    }
    .works__track { position: static; flex-wrap: wrap; height: auto; padding: 40px var(--pad); transform: none !important; }
    /* Sin pin, el título y el pie flotaban encima de las tarjetas. */
    .works__head, .works__foot { position: static !important; padding: 0 var(--pad); transform: none !important; opacity: 1 !important; }
    .works__head { padding-top: 12vh; }
    .works__foot { padding-bottom: 6vh; }
    .work { width: 100% !important; height: auto !important; aspect-ratio: 3/2; margin: 0 0 20px !important; }
    .work__media { position: absolute; inset: 0; }
    .mt__frames figure { position: relative; opacity: 1 !important; transform: none !important; height: 40vh; }
    .mask__layer { position: relative; clip-path: none !important; transform: none !important; opacity: 1 !important; }
    .hero__media, .pj__a, .pj__b, .pj__strip, .ct__bg, .jr__fig { transform: none !important; opacity: 1 !important; }
    .hero__meta, .pj__cta, .mask__copy, .ct__copy { opacity: 1 !important; }
    .fl__loop { display: none; }
    .cur-dot, .cur-ring { display: none !important; }
    body.cursor-on, body.cursor-on a, body.cursor-on button { cursor: auto; }
}

/* ==========================================================================
   Página de evento (la galería completa) y 404
   ========================================================================== */
.ev { position: relative; padding-bottom: 14vh; }
.ev__cover { position: relative; height: 68vh; overflow: hidden; }
.ev__cover img { width: 100%; height: 100%; object-fit: cover; }
.ev__scrim {
    position: absolute; inset: 0;
    background: linear-gradient(to top, var(--ground) 2%, rgba(13,14,22,.35) 55%, rgba(13,14,22,.6));
}
.ev__head { position: relative; margin-top: -16vh; padding: 0 var(--pad); max-width: 1500px; margin-inline: auto; }
.ev__back { display: inline-block; font-size: 10px; letter-spacing: .2em; color: var(--tx-55); margin-bottom: 26px; }
.ev__back:hover { color: var(--y); }
.ev__head h1 { font-size: clamp(38px, 6vw, 104px); line-height: .9; letter-spacing: -.045em; }
.ev__meta { display: flex; flex-wrap: wrap; gap: 14px 46px; margin-top: 30px; }
.ev__meta span { display: block; font-size: 9px; letter-spacing: .22em; color: var(--tx-45); margin-bottom: 5px; }
.ev__meta b { font-weight: 400; font-size: 14px; }

/* Columnas y no grilla: las fotos tienen alturas distintas y una grilla
   alinea filas dejando huecos negros entre medio. */
.ev__grid { margin: 9vh auto 0; padding: 0 var(--pad); max-width: 1500px; columns: 4; column-gap: 14px; }
@media (max-width: 1280px) { .ev__grid { columns: 3; } }
@media (max-width: 900px)  { .ev__grid { columns: 2; } }
@media (max-width: 560px)  { .ev__grid { columns: 1; } }
.ev__fig { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--surface);
    cursor: pointer; break-inside: avoid; margin-bottom: 14px; }
.ev__fig img { width: 100%; height: auto; display: block; transition: transform .8s var(--in), filter .5s var(--in); }
.ev__fig:hover img { transform: scale(1.03); filter: brightness(1.06); }
.ev__fig figcaption {
    position: absolute; left: 14px; bottom: 12px; font-size: 9px; letter-spacing: .2em;
    color: var(--tx-72); opacity: 0; transition: opacity .3s var(--in);
}
.ev__fig:hover figcaption { opacity: 1; }
.ev__foot { display: grid; place-items: center; margin-top: 12vh; }
.ev__cta {
    padding: 16px 30px; border: 1px solid var(--y-40); border-radius: var(--r-sm);
    font-size: 11px; letter-spacing: .2em; color: var(--y);
    transition: background .3s var(--in), color .3s var(--in);
}
.ev__cta:hover { background: var(--y); color: var(--deep); }

.nf { min-height: 80vh; display: grid; place-content: center; justify-items: center; gap: 20px; text-align: center; padding: 0 var(--pad); }
.nf h1 { font-size: clamp(28px, 4vw, 60px); letter-spacing: -.03em; }
.nf__cta { font-size: 11px; letter-spacing: .2em; color: var(--y); }

/* ==========================================================================
   06 — FILMS (las piezas enteras)
   ========================================================================== */
.fl { position: relative; background: var(--deep); padding: 16vh 0 14vh; }
.fl__head { padding: 0 var(--pad); max-width: 1500px; margin: 0 auto 7vh; }
.fl__head h2 { margin-top: 14px; font-size: clamp(30px, 4.2vw, 72px); line-height: .95; letter-spacing: -.04em; }
.fl__list { display: grid; gap: 4vh; padding: 0 var(--pad); max-width: 1500px; margin-inline: auto; }
.fl__item { cursor: pointer; }
.fl__media {
    position: relative; aspect-ratio: 21 / 9; overflow: hidden;
    border-radius: var(--r-md); background: var(--surface);
}
.fl__media img, .fl__loop { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--in), filter .6s var(--in); }
.fl__item:hover .fl__media img, .fl__item:hover .fl__loop { transform: scale(1.03); filter: brightness(1.05); }
.fl__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,12,.55), transparent 62%); pointer-events: none; }
.fl__play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 74px; height: 74px; display: grid; place-items: center; border-radius: 50%;
    border: 1px solid var(--y-40); background: rgba(8,8,12,.42); color: var(--y);
    transition: background .35s var(--in), color .35s var(--in), transform .5s var(--in);
}
.fl__item:hover .fl__play { background: var(--y); color: var(--deep); transform: translate(-50%, -50%) scale(1.06); }
.fl__foot { display: flex; align-items: baseline; gap: 20px; margin-top: 18px; flex-wrap: wrap; }
.fl__idx { font-size: 10px; letter-spacing: .2em; color: var(--y); }
.fl__foot h3 { font-size: clamp(20px, 2.2vw, 34px); letter-spacing: -.03em; }
.fl__meta { margin-left: auto; font-size: 11px; letter-spacing: .14em; color: var(--tx-55); }
@media (max-width: 900px) { .fl__media { aspect-ratio: 16 / 10; } .fl__play { width: 56px; height: 56px; } .fl__meta { margin-left: 0; width: 100%; } }

/* Visor del film: el iframe recién se crea al hacer click, nunca antes. */
.player {
    position: fixed; inset: 0; z-index: var(--z-over); background: var(--deep);
    display: grid; place-items: center; padding: var(--pad);
    opacity: 0; pointer-events: none; transition: opacity .45s var(--in);
}
.player.is-on { opacity: 1; pointer-events: auto; }
.player__frame { width: min(1400px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: var(--r-md); overflow: hidden; }
.player__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player__x { position: absolute; right: var(--pad); top: 34px; font-size: 10px; letter-spacing: .2em; color: var(--tx-55); }
.player__x:hover { color: var(--y); }
.player__t { position: absolute; left: var(--pad); top: 34px; font-size: 10px; letter-spacing: .2em; color: var(--tx-55); }
