/* ═══════════════════════════════════════════════════════════════════
   OUR STORY — CINEMA SCREEN
   
   Full-screen cinema. Frames crossfade as you scroll.
   Dark, warm, intimate. Like a personal film.
   
   v3: Big reels, full-width content, animated backgrounds.
   ═══════════════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    background: #0a0908;
    color: #ede6db;
    overflow-x: hidden;
}

::selection {
    background: rgba(196, 124, 115, 0.4);
    color: #ede6db;
}

/* ═══════════════════════════════════════════════════════════════
   THE CINEMA CONTAINER
   ═══════════════════════════════════════════════════════════════ */
.cinema {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #0a0908;
}

/* ─── Film Grain ──────────────────────────────────────────────── */
.film-grain {
    position: absolute;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 128px 128px;
    animation: grainShift 0.5s steps(5) infinite;
}

@keyframes grainShift {

    0%,
    100% {
        transform: translate(0, 0);
    }

    20% {
        transform: translate(-5%, -5%);
    }

    40% {
        transform: translate(3%, 2%);
    }

    60% {
        transform: translate(-2%, 4%);
    }

    80% {
        transform: translate(4%, -3%);
    }
}

/* ─── Scanlines — horizontal lines like a CRT/projector ───────── */
.scanlines {
    position: absolute;
    inset: 0;
    z-index: 101;
    pointer-events: none;
    background: repeating-linear-gradient(to bottom,
            transparent 0px,
            transparent 2px,
            rgba(0, 0, 0, 0.15) 2px,
            rgba(0, 0, 0, 0.15) 4px);
    opacity: 0.5;
}

/* ─── Film Flicker — subtle brightness/opacity jitter ─────────── */
.film-flicker {
    position: absolute;
    inset: 0;
    z-index: 99;
    pointer-events: none;
    background: transparent;
    animation: flicker 0.15s steps(2) infinite;
}

@keyframes flicker {
    0% {
        opacity: 0;
        background: rgba(237, 230, 219, 0.008);
    }

    25% {
        opacity: 1;
        background: rgba(0, 0, 0, 0.03);
    }

    50% {
        opacity: 0;
        background: transparent;
    }

    75% {
        opacity: 1;
        background: rgba(237, 230, 219, 0.012);
    }

    100% {
        opacity: 0;
        background: rgba(0, 0, 0, 0.02);
    }
}

/* ─── Film Scratches — vertical white lines that appear randomly ─ */
.film-scratches {
    position: absolute;
    inset: 0;
    z-index: 102;
    pointer-events: none;
    overflow: hidden;
}

.scratch {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(237, 230, 219, 0.15) 20%,
            rgba(237, 230, 219, 0.25) 50%,
            rgba(237, 230, 219, 0.15) 80%,
            transparent 100%);
    opacity: 0;
}

.scratch--1 {
    left: 30%;
    animation: scratchAppear 4s 0.5s infinite;
}

.scratch--2 {
    left: 65%;
    width: 2px;
    animation: scratchAppear 6s 2s infinite;
}

.scratch--3 {
    left: 45%;
    animation: scratchAppear 5s 3.5s infinite;
}

@keyframes scratchAppear {

    0%,
    92% {
        opacity: 0;
    }

    93% {
        opacity: 0.6;
        transform: translateX(0);
    }

    95% {
        opacity: 0.3;
        transform: translateX(2px);
    }

    97% {
        opacity: 0.5;
        transform: translateX(-1px);
    }

    100% {
        opacity: 0;
    }
}

/* ─── Film Dust — floating particles / spots ──────────────────── */
.film-dust {
    position: absolute;
    inset: 0;
    z-index: 101;
    pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 10% 15%, rgba(237, 230, 219, 0.25), transparent),
        radial-gradient(1.5px 1.5px at 80% 25%, rgba(237, 230, 219, 0.2), transparent),
        radial-gradient(1px 1px at 45% 65%, rgba(237, 230, 219, 0.18), transparent),
        radial-gradient(2px 2px at 70% 80%, rgba(237, 230, 219, 0.15), transparent),
        radial-gradient(1px 1px at 25% 45%, rgba(237, 230, 219, 0.2), transparent),
        radial-gradient(1.5px 1.5px at 55% 35%, rgba(237, 230, 219, 0.12), transparent),
        radial-gradient(1px 1px at 90% 55%, rgba(237, 230, 219, 0.18), transparent),
        radial-gradient(2px 2px at 35% 90%, rgba(237, 230, 219, 0.1), transparent),
        radial-gradient(1px 1px at 15% 75%, rgba(237, 230, 219, 0.15), transparent),
        radial-gradient(1.5px 1.5px at 60% 10%, rgba(237, 230, 219, 0.12), transparent);
    animation: dustFloat 3s steps(3) infinite;
}

@keyframes dustFloat {
    0% {
        transform: translate(0, 0);
        opacity: 0.6;
    }

    33% {
        transform: translate(-3px, 2px);
        opacity: 0.4;
    }

    66% {
        transform: translate(2px, -1px);
        opacity: 0.7;
    }

    100% {
        transform: translate(0, 0);
        opacity: 0.6;
    }
}

/* ─── Heavy Vignette — dark edges like an old projector ────────── */
.film-vignette {
    position: absolute;
    inset: 0;
    z-index: 98;
    pointer-events: none;
    background: radial-gradient(ellipse at center,
            transparent 40%,
            rgba(0, 0, 0, 0.25) 70%,
            rgba(0, 0, 0, 0.6) 100%);
}

/* ─── Warm sepia tint on the cinema container ─────────────────── */
.cinema {
    filter: sepia(0.08) saturate(1.1);
}

/* ─── Letterbox ───────────────────────────────────────────────── */
.letterbox {
    position: absolute;
    left: 0;
    right: 0;
    height: 4vh;
    background: #000;
    z-index: 90;
    pointer-events: none;
}

.letterbox--top {
    top: 0;
}

.letterbox--bottom {
    bottom: 0;
}

/* ═══════════════════════════════════════════════════════════════
   FILM REEL SPROCKET STRIPS — BIG & BOLD
   100px wide with large sprocket holes.
   ═══════════════════════════════════════════════════════════════ */
.film-reel {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 80;
    pointer-events: none;
    overflow: hidden;
    background: #111;
}

.film-reel--left {
    left: 0;
    border-right: 2px solid rgba(255, 255, 255, 0.08);
}

.film-reel--right {
    right: 0;
    border-left: 2px solid rgba(255, 255, 255, 0.08);
}

/* The moving strip with sprocket holes */
.film-reel__strip {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 600vh;
    will-change: transform;
}

/* Sprocket holes — big repeating rounded rectangles */
.film-reel__strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(to bottom,
            transparent 0px,
            transparent 14px,
            #1c1a18 14px,
            #1c1a18 56px,
            transparent 56px,
            transparent 70px);
}

/* Inner dark cutout — the actual "hole" */
.film-reel__strip::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 600vh;
    background:
        repeating-linear-gradient(to bottom,
            transparent 0px,
            transparent 18px,
            #080706 18px,
            #080706 52px,
            transparent 52px,
            transparent 70px);
    border-radius: 5px;
}

/* ─── Film Progress ───────────────────────────────────────────── */
.film-progress {
    position: absolute;
    bottom: 4vh;
    left: 110px;
    right: 110px;
    height: 2px;
    background: rgba(237, 230, 219, 0.08);
    z-index: 95;
    border-radius: 1px;
    pointer-events: none;
}

.film-progress__fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #c47c73, #d4956a);
    border-radius: 1px;
    transition: width 0.1s linear;
}

/* ═══════════════════════════════════════════════════════════════
   FRAMES — Base
   ═══════════════════════════════════════════════════════════════ */
.frame {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    padding-left: 115px;
    padding-right: 115px;
    padding-top: 5vh;
    padding-bottom: 5vh;
}

.frame.active {
    opacity: 1;
    visibility: visible;
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATED BACKGROUNDS — Floating particles & bokeh
   Applied to text, question, and dyk frames
   ═══════════════════════════════════════════════════════════════ */

/* Soft radial glow behind text content */
.frame--text::before,
.frame--question::before,
.frame--didyouknow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 50%,
            rgba(196, 124, 115, 0.04) 0%,
            rgba(180, 120, 60, 0.02) 40%,
            transparent 70%);
    animation: bgPulse 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes bgPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Floating bokeh dots */
.frame--text::after,
.frame--question::after,
.frame--didyouknow::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(2px 2px at 15% 25%, rgba(196, 124, 115, 0.15), transparent),
        radial-gradient(3px 3px at 75% 15%, rgba(212, 165, 116, 0.1), transparent),
        radial-gradient(2px 2px at 85% 70%, rgba(196, 124, 115, 0.12), transparent),
        radial-gradient(2.5px 2.5px at 25% 80%, rgba(212, 165, 116, 0.08), transparent),
        radial-gradient(1.5px 1.5px at 50% 50%, rgba(237, 230, 219, 0.06), transparent),
        radial-gradient(2px 2px at 35% 45%, rgba(196, 124, 115, 0.1), transparent),
        radial-gradient(3px 3px at 65% 85%, rgba(212, 165, 116, 0.07), transparent),
        radial-gradient(1.5px 1.5px at 90% 35%, rgba(237, 230, 219, 0.05), transparent);
    background-size: 100% 100%;
    animation: bokehDrift 12s ease-in-out infinite alternate;
}

@keyframes bokehDrift {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.7;
    }

    33% {
        transform: translate(8px, -5px) scale(1.02);
        opacity: 1;
    }

    66% {
        transform: translate(-5px, 8px) scale(0.98);
        opacity: 0.8;
    }

    100% {
        transform: translate(3px, 3px) scale(1.01);
        opacity: 0.9;
    }
}

/* ═══════════════════════════════════════════════════════════════
   TEXT FRAME — Uses the full width between reels.
   Glass panel that breathes with the screen.
   ═══════════════════════════════════════════════════════════════ */
.frame__inner {
    max-width: 100%;
    width: 100%;
    padding: 4rem 5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Glass-like subtle panel behind text */
.frame--text .frame__inner {
    background: rgba(237, 230, 219, 0.03);
    border: 1px solid rgba(237, 230, 219, 0.07);
    border-radius: 18px;
    backdrop-filter: blur(3px);
    padding: 4rem 5rem;
}

/* Decorative accent line above text */
.frame--text .frame__inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(196, 124, 115, 0.5), transparent);
    border-radius: 1px;
}

.frame--text p {
    font-size: 1.6rem;
    line-height: 2.2;
    color: rgba(237, 230, 219, 0.88);
    margin-bottom: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.frame--text p:last-child {
    margin-bottom: 0;
}

.frame--text .quiet {
    font-style: italic;
    color: rgba(237, 230, 219, 0.45);
    font-size: 1.3rem;
    margin-top: 0.8rem;
}

/* ═══════════════════════════════════════════════════════════════
   HEADING FRAMES — Chapter titles
   ═══════════════════════════════════════════════════════════════ */
.frame--heading .frame__inner {
    background: none;
    border: none;
    backdrop-filter: none;
}

.frame--heading .frame__inner::before {
    display: none;
}

.frame--heading .frame__label {
    display: block;
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: #c47c73;
    letter-spacing: 0.12em;
    margin-bottom: 1.2rem;
}

.frame--heading .frame__heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 300;
    color: #ede6db;
    line-height: 1.2;
}

/* Subtle decorative line under heading */
.frame--heading .frame__heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: rgba(196, 124, 115, 0.4);
    margin: 1.5rem auto 0;
}

/* ═══════════════════════════════════════════════════════════════
   TITLE FRAME
   ═══════════════════════════════════════════════════════════════ */
.frame__prelude {
    font-family: 'Caveat', cursive;
    font-size: 1.6rem;
    color: #c47c73;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.frame__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(5rem, 14vw, 10rem);
    font-weight: 300;
    color: #ede6db;
    letter-spacing: 0.06em;
    line-height: 1;
}

/* ═══════════════════════════════════════════════════════════════
   EMPHASIS FRAMES — Key emotional lines
   ═══════════════════════════════════════════════════════════════ */
.frame--emphasis {
    z-index: 2;
}

.frame--emphasis .frame__inner {
    background: none;
    border: none;
    backdrop-filter: none;
}

.frame--emphasis .frame__inner::before {
    display: none;
}

.emphasis-line {
    font-family: 'Caveat', cursive;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #c47c73;
    font-weight: 500;
    line-height: 1.5;
}

.emphasis-line.big {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Alone lines */
.alone-line {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
    color: rgba(237, 230, 219, 0.85);
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.alone-line.emphasis-accent {
    font-family: 'Caveat', cursive;
    font-size: clamp(3rem, 6vw, 5rem);
    color: #c47c73;
    font-weight: 600;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════════
   QUESTION FRAMES — Wide, rose-tinted, filling screen
   ═══════════════════════════════════════════════════════════════ */
.frame--question {
    z-index: 2;
}

.frame--question .frame__inner {
    background: radial-gradient(ellipse at center,
            rgba(196, 124, 115, 0.06) 0%,
            transparent 70%);
    border: 1px solid rgba(196, 124, 115, 0.14);
    border-radius: 22px;
    padding: 4rem 5rem;
    max-width: 100%;
    width: 100%;
}

.frame--question .frame__inner::before {
    content: '?';
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(196, 124, 115, 0.15);
    border: 1px solid rgba(196, 124, 115, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    color: #c47c73;
    line-height: 1;
    padding-top: 3px;
}

.question-text {
    font-family: 'Caveat', cursive;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: rgba(196, 124, 115, 0.9);
    font-weight: 500;
    line-height: 1.6;
    font-style: normal;
}

.question-text.sacred-tint {
    color: rgba(212, 165, 116, 0.9);
}

/* ═══════════════════════════════════════════════════════════════
   DID YOU KNOW FRAMES — Full width, warm panel
   ═══════════════════════════════════════════════════════════════ */
.frame--didyouknow {
    z-index: 2;
}

.frame--didyouknow .frame__inner {
    background: rgba(237, 230, 219, 0.025);
    border: 1px solid rgba(237, 230, 219, 0.08);
    border-radius: 18px;
    padding: 4rem 5rem;
    max-width: 100%;
    width: 100%;
    text-align: center;
}

.frame--didyouknow .frame__inner::before {
    display: none;
}

.dyk-label {
    display: inline-block;
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
    color: rgba(237, 230, 219, 0.5);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding: 0.4rem 1.2rem;
    border: 1px solid rgba(237, 230, 219, 0.12);
    border-radius: 20px;
}

.dyk-label.sacred {
    color: rgba(212, 165, 116, 0.6);
    border-color: rgba(212, 165, 116, 0.15);
}

.dyk-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    line-height: 2.1;
    color: rgba(237, 230, 219, 0.75);
    font-weight: 300;
    font-style: italic;
}

.dyk-text.sacred-tint {
    color: rgba(212, 165, 116, 0.75);
}

/* ═══════════════════════════════════════════════════════════════
   SACRED FRAMES (Tirumala)
   ═══════════════════════════════════════════════════════════════ */
.frame--sacred {
    background: radial-gradient(ellipse at center,
            rgba(180, 120, 60, 0.06) 0%,
            transparent 70%);
}

.frame__label.sacred,
.frame__heading.sacred {
    color: #d4a574;
}

.frame__heading.sacred::after {
    background: rgba(212, 165, 116, 0.4);
}

.sacred-glow {
    color: #d4a574 !important;
    text-shadow: 0 0 60px rgba(212, 165, 116, 0.3),
        0 0 120px rgba(212, 165, 116, 0.1);
}

/* ═══════════════════════════════════════════════════════════════
   VOWS FRAME
   ═══════════════════════════════════════════════════════════════ */
.frame--vows .frame__inner {
    border: none;
    background: none;
    backdrop-filter: none;
    border-left: 3px solid rgba(196, 124, 115, 0.3);
    border-radius: 0;
    text-align: left;
    padding-left: 4rem;
}

.frame--vows .frame__inner::before {
    display: none;
}

.vow-line {
    font-family: 'Caveat', cursive;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: #c47c73;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 0.3rem;
}

/* ═══════════════════════════════════════════════════════════════
   IMAGE FRAMES
   ═══════════════════════════════════════════════════════════════ */
.frame--image {
    align-items: stretch;
    justify-content: stretch;
    padding-left: 100px;
    padding-right: 100px;
}

.frame--image::before,
.frame--image::after {
    display: none;
}

/* Re-add proper vignette */
.frame--image .frame-vignette {
    display: none;
}

.frame--image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    padding: 5vh 3vw;
}

/* Vignette overlay for images */
.frame--image {
    position: absolute;
}

.frame--image>.frame-vig {
    display: none;
}

/* Image vignette - separate element approach */
.frame--image {
    background: radial-gradient(ellipse at center,
            transparent 30%,
            rgba(10, 9, 8, 0.5) 100%);
}

/* ═══════════════════════════════════════════════════════════════
   VIDEO FRAME
   ═══════════════════════════════════════════════════════════════ */
.frame--video {
    align-items: center;
    justify-content: center;
    padding: 8vh 120px;
}

.frame--video::before,
.frame--video::after {
    display: none;
}

.frame--video video {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
}

/* ═══════════════════════════════════════════════════════════════
   CREDIT FRAME
   ═══════════════════════════════════════════════════════════════ */
.frame--credit .frame__inner {
    background: none;
    border: none;
    backdrop-filter: none;
}

.frame--credit .frame__inner::before {
    display: none;
}

.frame--credit .credit-text {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    color: rgba(237, 230, 219, 0.6);
    letter-spacing: 0.05em;
    line-height: 1.8;
}

.credit-heart {
    font-size: 2.5rem;
    margin-top: 1.5rem;
    color: #c47c73;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.2);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.15);
    }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    .film-reel {
        width: 60px;
    }

    .frame {
        padding-left: 72px;
        padding-right: 72px;
    }

    .frame__inner {
        padding: 2.5rem 2.5rem;
    }

    .frame--text .frame__inner {
        padding: 2.5rem 2.5rem;
        border-radius: 14px;
    }

    .frame--question .frame__inner,
    .frame--didyouknow .frame__inner {
        padding: 2.5rem 2.5rem;
    }

    .letterbox {
        height: 3vh;
    }

    .frame--image {
        padding-left: 60px;
        padding-right: 60px;
    }

    .frame--video {
        padding: 8vh 70px;
    }

    .frame--vows .frame__inner {
        padding-left: 2rem;
    }

    .film-progress {
        left: 70px;
        right: 70px;
        bottom: 3vh;
    }

    /* Smaller sprocket pattern for tablets */
    .film-reel__strip::before {
        background:
            repeating-linear-gradient(to bottom,
                transparent 0px,
                transparent 10px,
                #1c1a18 10px,
                #1c1a18 40px,
                transparent 40px,
                transparent 50px);
    }

    .film-reel__strip::after {
        width: 28px;
        background:
            repeating-linear-gradient(to bottom,
                transparent 0px,
                transparent 14px,
                #080706 14px,
                #080706 36px,
                transparent 36px,
                transparent 50px);
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .film-reel {
        width: 42px;
    }

    .frame {
        padding-left: 52px;
        padding-right: 52px;
    }

    .frame__inner {
        padding: 2rem 1.5rem;
    }

    .frame--text .frame__inner {
        padding: 2rem 1.5rem;
    }

    .frame--image {
        padding-left: 42px;
        padding-right: 42px;
    }

    .frame--image img {
        padding: 4vh 1vw;
    }

    .letterbox {
        height: 2vh;
    }

    .film-progress {
        left: 50px;
        right: 50px;
    }

    /* Even smaller sprocket for phones */
    .film-reel__strip::before {
        background:
            repeating-linear-gradient(to bottom,
                transparent 0px,
                transparent 7px,
                #1c1a18 7px,
                #1c1a18 28px,
                transparent 28px,
                transparent 35px);
    }

    .film-reel__strip::after {
        width: 20px;
        background:
            repeating-linear-gradient(to bottom,
                transparent 0px,
                transparent 10px,
                #080706 10px,
                #080706 25px,
                transparent 25px,
                transparent 35px);
    }
}

/* ─── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .film-grain {
        animation: none;
    }

    .credit-heart {
        animation: none;
    }

    .frame--text::before,
    .frame--question::before,
    .frame--didyouknow::before {
        animation: none;
    }

    .frame--text::after,
    .frame--question::after,
    .frame--didyouknow::after {
        animation: none;
    }

    .scroll-hint {
        animation: none;
    }

    .production-star {
        animation: none;
    }

    .music-toggle {
        animation: none;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MUSIC TOGGLE BUTTON
   Fixed in the top-right corner, cinema-style.
   ═══════════════════════════════════════════════════════════════ */
.music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 200;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(196, 124, 115, 0.3);
    background: rgba(10, 9, 8, 0.8);
    backdrop-filter: blur(8px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: musicPulse 3s ease-in-out infinite;
}

.music-toggle:hover {
    border-color: rgba(196, 124, 115, 0.6);
    background: rgba(196, 124, 115, 0.15);
    transform: scale(1.1);
}

.music-icon {
    font-size: 1.3rem;
    color: #c47c73;
    transition: opacity 0.3s;
}

.music-icon--on {
    display: none;
}

.music-toggle.playing .music-icon--off {
    display: none;
}

.music-toggle.playing .music-icon--on {
    display: inline;
}

.music-toggle.playing {
    border-color: rgba(196, 124, 115, 0.5);
    box-shadow: 0 0 20px rgba(196, 124, 115, 0.15);
}

@keyframes musicPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(196, 124, 115, 0);
    }

    50% {
        box-shadow: 0 0 15px 3px rgba(196, 124, 115, 0.12);
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOVIE OPENING FRAMES
   ═══════════════════════════════════════════════════════════════ */

/* Pure black opening — the cinema is dark */
.frame--black {
    background: #000;
    z-index: 3;
}

.frame--black .frame__inner {
    background: none;
    border: none;
    backdrop-filter: none;
}

.frame--black .frame__inner::before {
    display: none;
}

.scroll-hint {
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
    color: rgba(237, 230, 219, 0.25);
    letter-spacing: 0.15em;
    animation: hintPulse 2.5s ease-in-out infinite;
}

@keyframes hintPulse {

    0%,
    100% {
        opacity: 0.2;
        transform: translateY(0);
    }

    50% {
        opacity: 0.5;
        transform: translateY(-5px);
    }
}

/* ─── Film Countdown (3, 2, 1) ────────────────────────────────── */
.frame--countdown {
    background: #0a0908;
    z-index: 3;
}

.frame--countdown .frame__inner {
    background: none;
    border: none;
    backdrop-filter: none;
    position: relative;
}

.frame--countdown .frame__inner::before {
    display: none;
}

/* Countdown crosshair circle */
.frame--countdown .frame__inner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border: 2px solid rgba(237, 230, 219, 0.15);
    border-radius: 50%;
    pointer-events: none;
}

.countdown-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(8rem, 20vw, 14rem);
    font-weight: 300;
    color: rgba(237, 230, 219, 0.7);
    line-height: 1;
    text-shadow: 0 0 40px rgba(237, 230, 219, 0.1);
}

/* ─── Production House Logo ───────────────────────────────────── */
.frame--production {
    z-index: 3;
}

.frame--production .frame__inner {
    background: none;
    border: none;
    backdrop-filter: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.frame--production .frame__inner::before {
    display: none;
}

.production-star {
    font-size: 3.5rem;
    color: #c47c73;
    margin-bottom: 1.5rem;
    animation: starGlow 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(196, 124, 115, 0.4);
}

@keyframes starGlow {

    0%,
    100% {
        text-shadow: 0 0 30px rgba(196, 124, 115, 0.3);
        transform: scale(1);
    }

    50% {
        text-shadow: 0 0 50px rgba(196, 124, 115, 0.6), 0 0 80px rgba(196, 124, 115, 0.2);
        transform: scale(1.05);
    }
}

.production-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
    color: rgba(237, 230, 219, 0.85);
    letter-spacing: 0.12em;
    margin-bottom: 0.8rem;
}

.production-tagline {
    font-family: 'Caveat', cursive;
    font-size: 1.3rem;
    color: rgba(237, 230, 219, 0.35);
    letter-spacing: 0.2em;
    text-transform: lowercase;
}

/* ─── Title Reveal ────────────────────────────────────────────── */
.frame--title-reveal .frame__inner {
    background: none;
    border: none;
    backdrop-filter: none;
}

.frame--title-reveal .frame__inner::before {
    display: none;
}