/* Isomer Oil — cinematic factory entrance (homepage) */

:root {
    --cine-void: #0b121c;
    --cine-ink: #ffffff;
    --cine-ink-soft: rgba(255, 255, 255, 0.82);
    --cine-steel: #2a3648;
    --cine-amber: #f0b44a;
    --cine-flare: #ff7a28;
    --cine-heat: #e05a20;
    --cine-fog: rgba(180, 190, 210, 0.28);
    --cine-display: 'Oswald', 'Manrope', sans-serif;
    --pipe-bg: #121a26;
    --pipe-panel: #1a2433;
}

body.cine-locked {
    overflow: hidden;
}

/* Hide chrome until entrance finishes (or cine-ready from skip/cache) */
body.cine-home:not(.cine-ready) .navbar {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
}

body.cine-locked .navbar {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
}

body.cine-ready .navbar {
    transition: opacity 0.8s ease 0.1s, transform 0.8s ease 0.1s, background-color 0.35s ease, box-shadow 0.35s ease;
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

/* Full-bleed stage — overrides main mobile padding on home */
main:has(.cinematic-hero) {
    padding-top: 0;
}

.cinematic-hero {
    position: relative;
    min-height: 100svh;
    width: 100%;
    background: #0b121c;
    color: #fff;
    isolation: isolate;
}

.cine-stage {
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #0b121c;
}

/* —— Full-bleed night refinery (visible, not crushed, not washed) —— */
.cine-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    transform: scale(1.12);
    opacity: 1;
    filter: brightness(1.05) saturate(1.2) contrast(1.04);
    transition:
        transform 4.8s cubic-bezier(0.22, 1, 0.36, 1),
        filter 3.2s ease;
}

.cinematic-hero.shot-approach .cine-bg {
    transform: scale(1.08);
    filter: brightness(1.12) saturate(1.22) contrast(1.05);
}

.cinematic-hero.shot-gates .cine-bg,
.cinematic-hero.shot-clear .cine-bg {
    transform: scale(1.04);
    filter: brightness(1.2) saturate(1.25) contrast(1.05);
}

.cinematic-hero.shot-brand .cine-bg,
.cinematic-hero.is-entered .cine-bg {
    transform: scale(1.02);
    filter: brightness(1.28) saturate(1.28) contrast(1.04);
}

.cine-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
    border-radius: 0;
    display: block;
    mix-blend-mode: normal;
}

.cine-grade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 170, 90, 0.18) 0%, transparent 32%, transparent 48%, rgba(40, 18, 28, 0.45) 100%),
        linear-gradient(90deg, rgba(90, 40, 20, 0.12) 0%, transparent 40%, transparent 60%, rgba(60, 30, 50, 0.12) 100%),
        radial-gradient(ellipse 80% 55% at 70% 28%, rgba(255, 140, 60, 0.22) 0%, transparent 55%);
    pointer-events: none;
}

.cine-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 95% 90% at 50% 40%, transparent 55%, rgba(28, 14, 20, 0.28) 100%);
    pointer-events: none;
}

/* Sunset hero: golden hour, warm, premium */
.cinematic-hero--sunset .cine-heat,
.cinematic-hero--sunset .cine-grain,
.cinematic-hero--sunset .cine-atmosphere {
    display: none !important;
}

.cinematic-hero--sunset .cine-bg-img {
    filter: saturate(1.08) contrast(1.04);
    object-position: center 42%;
}

.cinematic-hero--sunset .cine-content::before {
    inset: 6% -8% 2%;
    background: radial-gradient(ellipse at center, rgba(20, 12, 18, 0.42) 0%, rgba(20, 12, 18, 0.16) 48%, transparent 78%);
}

.cinematic-hero--sunset .cine-brand {
    color: #fff8f0;
    text-shadow:
        0 2px 0 rgba(40, 16, 12, 0.25),
        0 14px 48px rgba(40, 12, 8, 0.45);
}

.cinematic-hero--sunset .cine-brand-line--accent {
    color: #ffd27a;
}

.cinematic-hero--sunset .cine-tagline {
    color: rgba(255, 246, 236, 0.92);
    text-shadow: 0 6px 24px rgba(30, 10, 8, 0.45);
}

.cinematic-hero--sunset .btn-outline-day {
    color: #fff8f0;
    border: 1.5px solid rgba(255, 236, 210, 0.55);
    background: rgba(40, 18, 16, 0.28);
    backdrop-filter: blur(8px);
}

.cinematic-hero--sunset .btn-outline-day:hover {
    background: rgba(40, 18, 16, 0.48);
    border-color: rgba(255, 210, 140, 0.85);
    color: #fff;
}

.cinematic-hero--sunset .cine-scroll-label,
.cinematic-hero--sunset .cine-scroll-dot,
.cinematic-hero--sunset .cine-scroll {
    color: rgba(255, 240, 220, 0.85);
}

.cinematic-hero--sunset .cine-scroll-line {
    background: rgba(255, 210, 140, 0.55);
}

.cinematic-hero--sunset .cine-skip {
    color: rgba(255, 240, 220, 0.9);
    border-color: rgba(255, 220, 180, 0.35);
    background: rgba(40, 18, 16, 0.35);
}

.cinematic-hero--sunset .cine-fog {
    background: linear-gradient(180deg, rgba(255, 170, 100, 0.22) 0%, transparent 55%);
}

.cinematic-hero--sunset .cine-blackout {
    background: #3a1820;
}

.cine-heat {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 55% 45% at 68% 36%, rgba(255, 130, 40, 0.28) 0%, transparent 62%);
    opacity: 0;
    animation: cineHeat 3.6s ease-in-out infinite;
    pointer-events: none;
}

.cinematic-hero.shot-clear .cine-heat,
.cinematic-hero.is-entered .cine-heat {
    opacity: 1;
}

.cine-grain {
    position: absolute;
    inset: -20%;
    opacity: 0.05;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: cineGrain 0.45s steps(2) infinite;
}

/* —— Flares & smoke —— */
.cine-atmosphere {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.cinematic-hero.shot-clear .cine-atmosphere,
.cinematic-hero.is-entered .cine-atmosphere {
    opacity: 1;
}

.cine-flare {
    position: absolute;
    width: clamp(28px, 3.2vw, 48px);
    height: clamp(70px, 9vw, 130px);
    border-radius: 50% 50% 40% 40%;
    background: radial-gradient(ellipse at 50% 80%, #fff6c8 0%, var(--cine-amber) 22%, var(--cine-flare) 48%, transparent 72%);
    filter: blur(1px);
    opacity: 0.85;
    transform-origin: 50% 100%;
    animation: cineFlare 1.1s ease-in-out infinite;
    box-shadow: 0 0 40px 10px rgba(255, 107, 26, 0.35);
}

.cine-flare--a { top: 22%; left: 58%; animation-delay: 0s; }
.cine-flare--b { top: 28%; left: 71%; height: clamp(50px, 7vw, 100px); animation-delay: -0.35s; opacity: 0.7; }
.cine-flare--c { top: 18%; left: 64%; width: clamp(18px, 2vw, 28px); height: clamp(40px, 5vw, 70px); animation-delay: -0.7s; }

.cine-ember {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--cine-amber);
    box-shadow: 0 0 8px 2px rgba(255, 140, 40, 0.8);
    top: 35%;
    left: 62%;
    opacity: 0;
    animation: cineEmber 4.5s ease-in-out infinite;
}

.cine-ember--2 { left: 68%; animation-delay: -1.4s; }
.cine-ember--3 { left: 74%; top: 40%; animation-delay: -2.6s; }

.cinematic-hero.shot-clear .cine-ember,
.cinematic-hero.is-entered .cine-ember {
    opacity: 1;
}

.cine-smoke-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.cine-smoke {
    position: absolute;
    bottom: 8%;
    width: 42vw;
    height: 38vh;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(160, 170, 190, 0.35) 0%, transparent 68%);
    filter: blur(28px);
    opacity: 0.55;
    animation: cineSmoke 9s ease-in-out infinite;
}

.cine-smoke--1 { left: -5%; }
.cine-smoke--2 { left: 30%; width: 50vw; animation-delay: -3s; opacity: 0.4; }
.cine-smoke--3 { right: -8%; left: auto; width: 38vw; animation-delay: -5.5s; }

/* —— Gates —— */
.cine-gates {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    display: flex;
}

.cine-gate-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: clamp(48px, 7vh, 72px);
    z-index: 6;
    background: linear-gradient(180deg, #0e1218 0%, #1c2430 60%, #121820 100%);
    border-bottom: 2px solid rgba(232, 168, 56, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
    transform: translateY(0);
    transition: transform 1.6s cubic-bezier(0.65, 0, 0.35, 1) 0.15s;
}

.cinematic-hero.shot-gates .cine-gate-bar,
.cinematic-hero.is-entered .cine-gate-bar {
    transform: translateY(-110%);
}

.cine-gate {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 52%;
    overflow: hidden;
    transition: transform 2.1s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.7);
}

.cine-gate--left {
    left: 0;
    transform-origin: left center;
}

.cine-gate--right {
    right: 0;
    transform-origin: right center;
}

.cine-gate-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.cinematic-hero.shot-gates .cine-gate--left,
.cinematic-hero.is-entered .cine-gate--left {
    transform: translateX(-102%);
}

.cinematic-hero.shot-gates .cine-gate--right,
.cinematic-hero.is-entered .cine-gate--right {
    transform: translateX(102%);
}

/* —— Fog / blackout —— */
.cine-fog {
    position: absolute;
    inset: -10%;
    z-index: 4;
    background:
        radial-gradient(ellipse 90% 70% at 50% 70%, rgba(190, 200, 220, 0.35) 0%, transparent 60%),
        linear-gradient(180deg, rgba(12, 18, 28, 0.4) 0%, rgba(30, 40, 55, 0.28) 50%, rgba(12, 18, 28, 0.45) 100%);
    opacity: 0.75;
    filter: blur(8px);
    transition: opacity 2.4s ease, transform 2.8s ease;
    pointer-events: none;
}

.cinematic-hero.shot-clear .cine-fog,
.cinematic-hero.is-entered .cine-fog {
    opacity: 0;
    transform: translateY(-18%) scale(1.15);
}

.cine-blackout {
    position: absolute;
    inset: 0;
    z-index: 6;
    background: #060a12;
    opacity: 1;
    transition: opacity 1.1s ease;
    pointer-events: none;
}

.cinematic-hero.shot-approach .cine-blackout,
.cinematic-hero.is-entered .cine-blackout {
    opacity: 0;
}

/* —— Content —— */
.cine-content {
    position: relative;
    z-index: 7;
    text-align: center;
    padding: 6rem 1.5rem 5rem;
    max-width: 920px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(28px) scale(0.96);
    filter: blur(6px);
    transition:
        opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
        filter 1.1s ease;
}

.cine-content::before {
    content: '';
    position: absolute;
    inset: 10% -8% 6%;
    z-index: -1;
    background: radial-gradient(ellipse at center, rgba(6, 10, 18, 0.55) 0%, rgba(6, 10, 18, 0.2) 55%, transparent 78%);
    pointer-events: none;
}

.cinematic-hero.shot-brand .cine-content,
.cinematic-hero.is-entered .cine-content {
    opacity: 1;
    transform: none;
    filter: none;
}

.cine-brand {
    font-family: var(--cine-display);
    font-weight: 700;
    font-size: clamp(3.4rem, 12vw, 7.5rem);
    line-height: 0.92;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 1.25rem;
    text-shadow:
        0 2px 0 rgba(0, 0, 0, 0.25),
        0 16px 50px rgba(0, 0, 0, 0.45);
}

.cine-brand-line {
    display: block;
}

.cine-brand-line--accent {
    color: var(--cine-amber);
    letter-spacing: 0.28em;
    font-weight: 500;
    font-size: 0.72em;
    margin-top: 0.12em;
}

.cine-tagline {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1rem, 2.1vw, 1.25rem);
    font-weight: 400;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    max-width: 34rem;
    margin: 0 auto 2rem;
    letter-spacing: 0.02em;
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.9s ease 0.25s, transform 0.9s ease 0.25s;
}

.cinematic-hero.shot-cta .cine-tagline,
.cinematic-hero.is-entered .cine-tagline {
    opacity: 1;
    transform: none;
}

.cine-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.85s ease 0.35s, transform 0.85s ease 0.35s;
}

.cinematic-hero.shot-cta .cine-cta,
.cinematic-hero.is-entered .cine-cta {
    opacity: 1;
    transform: none;
}

.btn-cine {
    min-width: 10.5rem;
    padding: 0.85rem 1.6rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.btn-cine.btn-primary {
    background: linear-gradient(135deg, var(--cine-amber) 0%, #d4841a 100%);
    border-color: transparent;
    color: #121010;
    box-shadow: 0 12px 36px rgba(232, 168, 56, 0.35);
}

.btn-cine.btn-primary:hover {
    background: linear-gradient(135deg, #f0b84a 0%, var(--cine-amber) 100%);
    color: #0a0a0a;
}

.btn-cine.btn-outline-light {
    border-width: 1px;
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(8, 12, 20, 0.35);
    color: #fff;
    backdrop-filter: blur(8px);
}

.btn-cine.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.9);
    color: #fff;
}

/* Skip */
.cine-skip {
    position: absolute;
    top: max(1rem, env(safe-area-inset-top));
    right: 1.25rem;
    z-index: 20;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(8, 10, 16, 0.5);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.45rem 0.85rem;
    border-radius: 2px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.cine-skip:hover {
    color: #fff;
    border-color: var(--cine-amber);
}

/* Scroll cue */
.cine-scroll {
    position: absolute;
    bottom: clamp(1.4rem, 4vw, 2.6rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    opacity: 0;
    transition: opacity 0.9s ease 0.5s;
    pointer-events: none;
    text-decoration: none;
    color: inherit;
}

.cinematic-hero.shot-cta .cine-scroll,
.cinematic-hero.is-entered .cine-scroll {
    opacity: 1;
    pointer-events: auto;
}

.cine-scroll-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cine-amber);
    box-shadow: 0 0 12px rgba(232, 168, 56, 0.45);
    animation: cinePulse 2.2s ease-in-out infinite;
}

.cine-scroll-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg, var(--cine-amber), transparent);
    animation: cineLine 2s ease-in-out infinite;
}

.cine-scroll-label {
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

/* —— Keyframes —— */
@keyframes cineFlare {
    0%, 100% { transform: scaleY(1) scaleX(1); opacity: 0.75; filter: blur(1px) brightness(1); }
    40% { transform: scaleY(1.18) scaleX(0.92); opacity: 1; filter: blur(0.5px) brightness(1.25); }
    70% { transform: scaleY(0.92) scaleX(1.08); opacity: 0.85; }
}

@keyframes cineEmber {
    0% { transform: translate(0, 0) scale(1); opacity: 0; }
    15% { opacity: 1; }
    100% { transform: translate(-40px, -120px) scale(0.3); opacity: 0; }
}

@keyframes cineSmoke {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(4%, -6%, 0) scale(1.08); }
}

@keyframes cineHeat {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 0.9; }
}

@keyframes cineGrain {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-2%, 1%); }
}

@keyframes cinePulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.25); }
}

@keyframes cineLine {
    0% { transform: scaleY(0.4); opacity: 0.3; transform-origin: top; }
    50% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(0.4); opacity: 0.3; }
}

/* —— Reduced motion —— */
@media (prefers-reduced-motion: reduce) {
    .cine-bg,
    .cine-fog,
    .cine-blackout,
    .cine-gate,
    .cine-gate-bar,
    .cine-content,
    .cine-tagline,
    .cine-cta,
    .cine-scroll,
    .cine-atmosphere {
        transition: none !important;
        animation: none !important;
    }

    .cine-flare,
    .cine-ember,
    .cine-smoke,
    .cine-heat,
    .cine-grain,
    .cine-scroll-dot,
    .cine-scroll-line {
        animation: none !important;
    }

    .cine-bg {
        transform: scale(1.02);
        opacity: 1;
        filter: brightness(1.08) saturate(1.2);
    }

    .cine-gate--left { transform: translateX(-102%); }
    .cine-gate--right { transform: translateX(102%); }
    .cine-gate-bar { transform: translateY(-110%); }
    .cine-fog,
    .cine-blackout { opacity: 0; }
    .cine-content,
    .cine-tagline,
    .cine-cta,
    .cine-scroll,
    .cine-atmosphere { opacity: 1; transform: none; filter: none; }
}

/* —— Mobile —— */
@media (max-width: 767.98px) {
    .cine-content {
        padding: 5.5rem 1.2rem 4.5rem;
    }

    .cine-brand {
        letter-spacing: 0.08em;
    }

    .cine-brand-line--accent {
        letter-spacing: 0.16em;
    }

    .btn-cine {
        width: 100%;
        max-width: 280px;
    }

    .cine-flare--a { left: 52%; }
    .cine-flare--b { left: 66%; }
    .cine-flare--c { left: 58%; }

    .cine-scroll-label {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .cine-gate {
        width: 56%;
    }
}


/* ============================================================
   Oil film — immersive POV scroll cinema
   ============================================================ */

.oil-film {
    --film-progress: 0;
    --film-shot-local: 0;
    position: relative;
    background: #101820;
    color: #fff;
}

.oil-film-pin {
    position: sticky;
    top: 0;
    height: 100svh;
    overflow: hidden;
    z-index: 2;
}

.oil-film-stage {
    position: relative;
    height: 100%;
    width: 100%;
}

.oil-film-focus {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    box-shadow: inset 0 0 120px rgba(8, 16, 28, 0.28);
}

.oil-film-shots {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.oil-film-shot {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), visibility 1s ease;
    will-change: opacity;
}

.oil-film-shot.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.oil-film-shot.is-leaving {
    opacity: 0;
    visibility: visible;
    z-index: 1;
}

.oil-film-plate {
    position: absolute;
    inset: -2%;
    overflow: hidden;
    transform-origin: center center;
}

.oil-film-plate img,
.oil-film-plate .oil-film-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.04);
    filter: saturate(1.02) contrast(1.04);
    will-change: transform;
}

.oil-film-plate .oil-film-video {
    position: absolute;
    inset: 0;
    background: #101820;
}

/* Soft extra dolly on top of scrubbed video */
.oil-film-shot.is-active .oil-film-plate[data-kenburns="dolly"] .oil-film-video {
    transform: scale(calc(1.02 + var(--film-shot-local) * 0.08));
}

.oil-film-shot.is-active .oil-film-plate[data-kenburns="rise"] .oil-film-video {
    transform: scale(calc(1.02 + var(--film-shot-local) * 0.07))
        translate3d(0, calc(var(--film-shot-local) * -1.5%), 0);
}

.oil-film-shot.is-active .oil-film-plate[data-kenburns="lean"] .oil-film-video {
    transform: scale(calc(1.03 + var(--film-shot-local) * 0.06))
        translate3d(calc(var(--film-shot-local) * 1%), 0, 0);
}

.oil-film-shot.is-active .oil-film-plate[data-kenburns="rush"] .oil-film-video {
    transform: scale(calc(1.04 + var(--film-shot-local) * 0.05))
        translate3d(calc(var(--film-shot-local) * -1.5%), 0, 0);
}

.oil-film-shot.is-active .oil-film-plate[data-kenburns="arrive"] .oil-film-video {
    transform: scale(calc(1.02 + var(--film-shot-local) * 0.06));
}

.oil-film-hud-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.oil-film-sound {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(8, 18, 32, 0.35);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.oil-film-sound:hover {
    background: rgba(8, 18, 32, 0.55);
    border-color: rgba(240, 193, 74, 0.55);
}

.oil-film-sound[aria-pressed="true"] {
    border-color: rgba(240, 193, 74, 0.8);
    color: #f0c14a;
}

.oil-film-sound-icon {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 0 0 rgba(240, 193, 74, 0.0);
}

.oil-film-sound[aria-pressed="true"] .oil-film-sound-icon {
    background: #f0c14a;
    box-shadow: 0 0 10px rgba(240, 193, 74, 0.55);
    animation: oilFilmPulse 1.6s ease-in-out infinite;
}

@keyframes oilFilmPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.75; }
}

.oil-film-grade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 150, 70, 0.16) 0%, transparent 26%, transparent 42%, rgba(28, 12, 18, 0.58) 100%),
        linear-gradient(90deg, rgba(60, 24, 18, 0.2) 0%, transparent 32%, transparent 68%, rgba(50, 20, 40, 0.16) 100%),
        radial-gradient(ellipse 70% 55% at 65% 30%, rgba(255, 130, 50, 0.18) 0%, transparent 60%);
    pointer-events: none;
    opacity: 1;
    mix-blend-mode: normal;
}

.oil-film-plate .oil-film-video {
    filter: saturate(1.06) contrast(1.04) sepia(0.12);
}

.oil-film-vignette {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: radial-gradient(ellipse 85% 75% at 50% 42%, transparent 45%, rgba(8, 16, 28, 0.45) 100%);
}

.oil-film--immerse .oil-film-titlecard {
    transform: translate3d(0, calc(var(--film-shot-local) * -10px), 0);
}

.oil-film-hud {
    position: absolute;
    top: clamp(1.4rem, 4vh, 2.4rem);
    left: clamp(1.2rem, 4vw, 3rem);
    right: clamp(1.2rem, 4vw, 3rem);
    z-index: 7;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    pointer-events: none;
}

.oil-film-reel {
    margin: 0;
    font-family: var(--cine-display);
    font-size: 0.8rem;
    letter-spacing: 0.28em;
    color: #c48912;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.oil-film-phase {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.oil-film-process {
    position: absolute;
    top: clamp(3.4rem, 8vh, 4.8rem);
    left: clamp(1.2rem, 4vw, 3rem);
    right: clamp(1.2rem, 4vw, 3rem);
    z-index: 7;
    pointer-events: none;
}

.oil-film-beats {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin: 0;
    padding: 0.55rem 0.75rem;
    max-width: max-content;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.oil-film-beats li {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.4s ease;
}

.oil-film-beats li span {
    font-family: var(--cine-display);
    color: rgba(196, 137, 18, 0.45);
    transition: color 0.4s ease;
}

.oil-film-beats li.is-active {
    color: #fff;
}

.oil-film-beats li.is-active span,
.oil-film-beats li.is-done span {
    color: #f0c14a;
}

.oil-film-beats li.is-done {
    color: rgba(255, 255, 255, 0.65);
}

.oil-film-titlecard {
    position: absolute;
    left: clamp(1.2rem, 4vw, 3.2rem);
    right: clamp(1.2rem, 4vw, 3.2rem);
    bottom: clamp(2.4rem, 7vh, 4rem);
    z-index: 7;
    max-width: 40rem;
    padding: 1.15rem 1.25rem 1.2rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(12, 28, 48, 0.42));
    backdrop-filter: blur(16px) saturate(1.1);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 20px 50px rgba(8, 16, 28, 0.25);
    transition: opacity 0.4s ease, transform 0.45s ease;
}

.oil-film-titlecard.is-updating {
    opacity: 0;
    transform: translateY(18px);
}

.oil-film-eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(240, 193, 74, 0.95);
}

.oil-film-title {
    margin: 0 0 0.5rem;
    font-family: var(--cine-display);
    font-size: clamp(1.7rem, 4vw, 2.7rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.08;
    color: #fff;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.oil-film-line {
    margin: 0 0 0.85rem;
    font-size: clamp(0.95rem, 1.5vw, 1.08rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    max-width: 36rem;
}

.oil-film-facts {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
}

.oil-film-facts li {
    padding: 0.32rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(8, 18, 32, 0.28);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.oil-film-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    z-index: 7;
    background: rgba(255, 255, 255, 0.18);
}

.oil-film-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #b88420, #f0c14a);
    box-shadow: 0 0 12px rgba(240, 193, 74, 0.4);
}

.oil-film-scrub {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.oil-film-scrub-slot {
    height: 110svh;
}

.section-separator--story {
    background: transparent;
    line-height: 0;
}

.section-separator--story path {
    fill: #f6f8fc;
}

@media (prefers-reduced-motion: reduce) {
    .oil-film-pin {
        position: relative;
        height: auto;
        min-height: 100svh;
    }

    .oil-film-scrub-slot {
        height: 0;
    }

    .oil-film-plate img {
        transform: none !important;
    }

    .oil-film-shots {
        position: relative;
        display: grid;
    }

    .oil-film-shot {
        position: relative;
        opacity: 1;
        visibility: visible;
        min-height: 70svh;
    }
}

@media (max-width: 767.98px) {
    .oil-film-beats {
        max-width: 100%;
        border-radius: 14px;
    }

    .oil-film-beats li {
        font-size: 0.55rem;
    }

    .oil-film-title {
        font-size: clamp(1.35rem, 6.5vw, 1.85rem);
    }

    .oil-film-titlecard {
        padding: 0.95rem 1rem;
        border-radius: 14px;
    }

    .oil-film-scrub-slot {
        height: 95svh;
    }
}
