:root {
    --ink: #0c0c11;
    --ink-2: #131319;
    --surface: #181820;
    --hairline: rgba(245, 243, 238, 0.10);
    --cream: #f4f1e9;
    --cream-dim: rgba(244, 241, 233, 0.62);
    --gold: #d9a84e;
    --gold-soft: rgba(217, 168, 78, 0.16);
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    box-sizing: inherit;
}

html {
    scroll-padding-top: env(safe-area-inset-top, 0px);
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden; /* some mobile browsers scroll the document, not body — guard both */
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--cream);
    font-family: var(--font-body), serif;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* ---------- film-strip frame ---------- */
.reel-rail {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 22px;
    background: var(--ink-2);
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    border-color: rgba(245, 243, 238, 0.08);
}

.reel-rail.left {
    left: 0;
    border-right: 1px solid var(--hairline);
}

.reel-rail.right {
    right: 0;
    border-left: 1px solid var(--hairline);
}

.reel-rail span {
    width: 9px;
    height: 13px;
    border-radius: 2px;
    background: var(--ink);
    box-shadow: inset 0 0 0 1px rgba(245, 243, 238, 0.10);
    flex: none;
}

@media (max-width: 640px) {
    .reel-rail {
        width: 14px;
    }

    .reel-rail span {
        width: 6px;
        height: 9px;
    }
}

/* ---------- layout shell ---------- */
.stage {
    min-height: 100%;
    padding: 0 34px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 640px) {
    .stage {
        padding: 0 22px;
    }
}

.stage-header {
    padding-top: calc(28px + env(safe-area-inset-top, 0px));
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mark {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display), serif;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    color: var(--cream);
    text-decoration: none;
    background: transparent !important;
}

.mark i {
    font-size: 1.15rem;
    color: var(--gold);
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--cream-dim);
    border: 1px solid var(--hairline);
    border-radius: 100px;
    padding: 6px 14px 6px 10px;
}

.status-chip .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
}

/* ---------- hero ---------- */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; /* keep the glow from ever forcing a wider scroll area */
    padding: 64px 0 48px;
}

.spotlight {
    position: absolute;
    top: -10%;
    left: 50%;
    width: 900px;
    max-width: 100vw;
    height: 640px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(217, 168, 78, 0.16), rgba(217, 168, 78, 0) 70%);
    pointer-events: none;
    animation: sweep 9s ease-in-out infinite alternate;
}

@keyframes sweep {
    0% {
        transform: translateX(-58%) translateY(0);
        opacity: 0.75;
    }
    100% {
        transform: translateX(-42%) translateY(18px);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .spotlight {
        animation: none;
    }
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    text-align: center;
    margin: 0 auto;
}

.kicker {
    font-family: var(--font-body), serif;
    font-size: 0.92rem;
    color: var(--gold);
    margin-bottom: 22px;
}

.headline {
    font-family: var(--font-display), serif;
    font-weight: 600;
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    line-height: 1.04;
    letter-spacing: -0.01em;
    margin: 0 0 22px;
    color: var(--cream);
}

.headline em {
    font-style: italic;
    color: var(--gold);
}

.sub {
    font-size: 1.08rem;
    line-height: 1.6;
    color: var(--cream-dim);
    max-width: 520px;
    margin: 0 auto 40px;
}

/* ---------- notify form ---------- */
.notify {
    max-width: 440px;
    margin: 0 auto 18px;
}

.notify .input-group {
    flex-wrap: nowrap;
}

.notify .form-control {
    background: var(--surface);
    border: 1px solid var(--hairline);
    color: var(--cream);
    height: 52px;
    border-radius: 8px 0 0 8px;
    font-family: var(--font-body), serif;
    font-size: 0.95rem;
    padding-left: 18px;
    min-width: 0; /* let it shrink inside the flex row instead of forcing a wrap */
}

.notify .form-control:focus {
    background: var(--surface);
    color: var(--cream);
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
}

.notify .form-control::placeholder {
    color: rgba(244, 241, 233, 0.38);
}

.notify .btn-notify {
    height: 52px;
    padding: 0 24px;
    border-radius: 0 8px 8px 0;
    border: 1px solid var(--gold);
    background: var(--gold);
    color: #1a1408;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.notify .btn-notify:hover {
    background: #e6b562;
    border-color: #e6b562;
}

.notify .btn-notify:focus-visible,
.mark:focus-visible,
.icon-link:focus-visible,
.notify .form-control:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.form-note {
    font-size: 0.82rem;
    color: rgba(244, 241, 233, 0.4);
}

.form-ok {
    display: none;
    font-size: 0.9rem;
    color: var(--gold);
    margin-top: 14px;
}

.form-ok.show {
    display: block;
}

/* ---------- credits strip (thematic device: an actor's own screen credit) ---------- */
.credits {
    border-top: 1px solid var(--hairline);
    padding: 26px 0 calc(30px + env(safe-area-inset-bottom, 0px));
}

.credits-row {
    /*display:flex;*/
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}

.credits-list {
    /*display:flex;*/
    flex-wrap: wrap;
    gap: 22px;
    font-size: 0.84rem;
    color: rgba(244, 241, 233, 0.45);
}

.credits-list span b {
    color: var(--cream-dim);
    font-weight: 500;
}

.icon-links {
    display: flex;
    gap: 14px;
}

.icon-link {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--hairline);
    border-radius: 50%;
    color: var(--cream-dim);
    text-decoration: none;
    transition: border-color .15s ease, color .15s ease;
}

.icon-link:hover {
    border-color: var(--gold);
    color: var(--gold);
}

@media (max-width: 420px) {
    .notify .form-control {
        height: 48px;
        font-size: 0.86rem;
        padding-left: 14px;
    }

    .notify .btn-notify {
        height: 48px;
        padding: 0 16px;
        font-size: 0.86rem;
    }
}

@media (max-width: 576px) {
    .credits-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* dark scheme is native; keep an explicit light override off since brand is intentionally dark */
:root[data-theme="light"] body {
    background: var(--ink);
    color: var(--cream);
}