/* The mobile opening is an independent composition; desktop keeps its stage. */
.mobile-opening, .mobile-story { display: none; }

@media (max-width: 900px) {
    .cinema > .scene-hero { display: none; }
    .mobile-opening ~ .journey-pin-host { margin-top: -80px; }
    .mobile-opening {
        display: block;
        position: relative;
        height: 145svh;
        isolation: isolate;
        overflow-anchor: none;
        background: #07070d;
    }
    .mobile-opening-stage {
        position: sticky;
        top: 0;
        min-height: 720px;
        height: 100svh;
        overflow: hidden;
        isolation: isolate;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 100px 26px max(22px, env(safe-area-inset-bottom));
        background: #07070d;
    }
    .mobile-film, .mobile-film picture, .mobile-film img, .mobile-signal {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }
    .mobile-film { z-index: -3; overflow: hidden; }
    .mobile-film img {
        object-fit: cover;
        object-position: 66% 30%;
        opacity: 0;
        filter: saturate(.68) brightness(.8);
        transform: scale(var(--film-scale, 1.035));
        transition: opacity 850ms var(--ease-out-quart);
    }
    .mobile-film picture:first-child img { opacity: 1; object-position: 54% 38%; }
    .mobile-film picture:nth-child(2) img { object-position: 52% 32%; }
    .mobile-film picture:nth-child(3) img { object-position: 52% 35%; }
    .mobile-opening-stage::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -2;
        pointer-events: none;
        background: linear-gradient(180deg, #07070d77 0%, #07070d08 24%, #07070d44 40%, #07070de6 66%, #07070d 96%);
    }
    .mobile-opening-stage::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 2;
        background: #07070d;
        opacity: calc(var(--cinema-progress, 0) * .5);
    }
    .mobile-signal { z-index: -1; pointer-events: none; }
    .mobile-opening-eyebrow {
        margin: 0;
        color: #fff2e7;
        font: 500 10px/1.5 var(--font-mono);
        letter-spacing: .2em;
        text-transform: uppercase;
        text-shadow: 0 1px 12px #000;
    }
    .mobile-opening-copy { position: relative; z-index: 3; translate: 0 calc(var(--cinema-progress, 0) * -24px); }
    .mobile-film-caption {
        margin: 0 0 14px;
        color: #c9b8ac;
        font: 400 11px/1.5 var(--font-mono);
        letter-spacing: .035em;
    }
    .mobile-opening h1 { margin: 0; font-family: var(--font-display); }
    .mobile-opening h1:focus-visible { outline: 2px solid #ffaf78; outline-offset: 8px; }
    .mobile-opening-name {
        display: block;
        color: #ece9e5;
        font-size: 16px;
        font-weight: 500;
        letter-spacing: .015em;
        margin-bottom: 12px;
    }
    .mobile-opening-headline {
        display: block;
        font-size: clamp(40px, 12.8vw, 76px);
        font-weight: 500;
        letter-spacing: -.055em;
        line-height: 1.04;
        color: #faf4ed;
    }
    .mobile-opening-headline em { font-style: normal; color: #ffaf78; }
    .mobile-film-selector { display: flex; gap: 14px; margin-top: 26px; }
    .mobile-opening button {
        min-height: 44px;
        min-width: 44px;
        font: 500 12px/1.4 var(--font-body);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .mobile-film-selector button {
        flex: 1 1 auto;
        padding: 10px 0;
        text-align: left;
        white-space: nowrap;
        border: 0;
        border-bottom: 1px solid #ffffff28;
        border-radius: 0;
        background: transparent;
        color: #bab4b1;
        transition: color 200ms, border-color 200ms;
    }
    .mobile-film-selector button span { margin-right: 8px; font-size: 10px; color: #918b87; }
    .mobile-film-selector button[aria-pressed="true"] { color: #fff0e4; border-color: #ffaf78; }
    .mobile-film-selector button[aria-pressed="true"] span { color: #ffaf78; }
    .mobile-opening-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; }
    .mobile-opening-tools button { border: 0; border-radius: 4px; background: transparent; color: #dccabb; padding: 10px 0; }
    .mobile-opening-tools i { margin-right: 7px; color: #ffaf78; font-size: 11px; }
    .mobile-opening button:focus-visible, .mobile-story a:focus-visible { outline: 2px solid #ffaf78; outline-offset: 5px; }
    .mobile-opening button:active { color: #fff; }
    .mobile-opening button:disabled { opacity: .5; cursor: default; }
    .mobile-opening[data-signal-state="active"] .mobile-signal-trigger { color: #fff4df; text-shadow: 0 0 12px #ffaf78; }
    .mobile-scroll-prompt {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 22px 0 0;
        font: 400 10px/1.5 var(--font-mono);
        letter-spacing: .11em;
        text-transform: uppercase;
        color: #aaa2a0;
    }
    .mobile-scroll-prompt i { color: #ffaf78; }
    .mobile-story { display: block; padding: 76px 26px 30px; max-width: 640px; margin: 0 auto; }
    .mobile-story-kicker { color: #ffaf78; text-transform: uppercase; font: 500 11px/1.5 var(--font-mono); letter-spacing: .17em; }
    .mobile-story h2 { font: 500 clamp(30px, 8vw, 46px)/1.13 var(--font-display); letter-spacing: -.04em; margin: 20px 0 24px; }
    .mobile-story > p:not(.mobile-story-kicker) { font-size: 16px; line-height: 1.8; color: var(--fg-soft); }
    .mobile-story-links { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 24px; }
    .mobile-story-links a { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; font-size: 14px; color: #ffd0af; }
    .mobile-opening[data-motion="reduced"] * { transition: none !important; animation: none !important; }
}

/* Short windows and enlarged type retain an ordinary, fully readable opening. */
@media (max-width: 900px) and (max-height: 719px), (max-width: 900px) and (orientation: landscape) {
    .mobile-opening { height: auto; }
    .mobile-opening ~ .journey-pin-host { margin-top: 0; }
    .mobile-opening-stage { position: relative; height: auto; min-height: 700px; }
    .mobile-opening-copy { margin-top: 180px; translate: none; }
}
@media (max-width: 359px) {
    .mobile-opening-stage { padding-inline: 20px; }
    .mobile-opening-headline { font-size: 40px; }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
    .mobile-opening { height: auto; }
    .mobile-opening ~ .journey-pin-host { margin-top: 0; }
    .mobile-opening-stage { position: relative; }
    .mobile-opening-copy { translate: none; }
    .mobile-film img { transform: none; transition: none; }
    .mobile-opening-stage::after { display: none; }
    .mobile-signal { display: none; }
}
