/* ============================================================
   VARIABLES
   ============================================================ */
:root {
    --periwinkle:  #C8D4E0;
    --periwinkle2: #B8C8D8;
    --slate:       #3A4B5C;
    --slate-dark:  #2C3848;
    --forest:      #5B7056;
    --forest-dark: #384535;
    --copper:      #A87850;
    --ink:         #1C2B38;
    --moon-mid:    #9AAEC4;

    --script: 'Monsieur La Doulaise', cursive;
    --serif:  'adobe-caslon-pro', serif;
    --sc:     'adobe-caslon-pro', serif;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--periwinkle);
    color: var(--ink);
    font-family: var(--serif);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   MOON LOADER
   ============================================================ */
#loader {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--slate-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease;
}
#loader.fade-out {
    opacity: 0;
    pointer-events: none;
}
#loader.hidden { display: none; }

.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.loader-count { margin-top: 48px; }
.loader-label { margin-top: 8px; }

#moonCanvas {
    display: block;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
}

.loader-count {
    font-family: var(--sc);
    font-size: 48px;
    font-weight: 400;
    color: var(--periwinkle);
    letter-spacing: 0.05em;
    line-height: 1;
    min-height: 1.2em;
}

.loader-label {
    font-family: var(--sc);
    font-size: 13px;
    letter-spacing: 0.26em;
    color: rgba(200, 212, 224, 0.45);
    text-transform: lowercase;
}

/* ============================================================
   GUEST GATE
   ============================================================ */
#gate {
    position: fixed;
    inset: 0;
    z-index: 998;
    background: var(--slate-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}
#gate.visible {
    opacity: 1;
    pointer-events: auto;
}
#gate.fade-out {
    opacity: 0;
    pointer-events: none;
}
#gate.hidden { display: none; }

.gate-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    width: min(420px, 88vw);
}
.gate-mono {
    width: clamp(80px, 14vw, 120px);
    height: auto;
    opacity: 0.8;
}
.gate-prompt {
    font-family: var(--sc);
    font-size: 13px;
    letter-spacing: 0.24em;
    color: rgba(200, 212, 224, 0.55);
    text-align: center;
}
.gate-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
}
#gateName {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(200,212,224,0.2);
    border-radius: 2px;
    padding: 14px 20px;
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 400;
    color: white;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
#gateName::placeholder { color: rgba(200,212,224,0.25); }
#gateName:focus { border-color: rgba(200,212,224,0.5); }
#gateSubmit {
    font-family: var(--sc);
    font-size: 11px;
    letter-spacing: 0.28em;
    color: var(--periwinkle);
    background: transparent;
    border: 1px solid rgba(200,212,224,0.35);
    border-radius: 2px;
    padding: 12px 40px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
#gateSubmit:hover {
    border-color: var(--periwinkle);
    color: white;
}
.gate-error {
    font-family: var(--serif);
    font-size: 14px;
    color: rgba(200, 212, 224, 0.5);
    text-align: center;
    min-height: 1.4em;
}
@keyframes gateShake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-10px); }
    40%       { transform: translateX(10px); }
    60%       { transform: translateX(-7px); }
    80%       { transform: translateX(7px); }
}
#gate.shake .gate-inner { animation: gateShake 0.5s ease; }

/* ============================================================
   NAV
   ============================================================ */
#nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    padding: 24px 48px;
    transition: background 0.5s, padding 0.4s;
}
#nav.scrolled {
    background: rgba(44, 56, 72, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 48px;
}
.nav-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    opacity: 0.85;
    transition: opacity 0.3s;
}
.nav-logo:hover { opacity: 1; }
.nav-logo-img {
    height: 40px;
    width: auto;
    display: block;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    align-items: center;
}
.nav-links a {
    font-family: var(--sc);
    font-size: 13px;
    letter-spacing: 0.22em;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.3s;
}
.nav-links a:hover  { color: white; }
.nav-links a.nav-active { color: white; }

/* Story page — nav always visible, body has no hero/gate */
.story-page { background: var(--ink); }
.story-page .story-section { padding-top: 0; }
.nav-rsvp {
    background: var(--slate);
    color: rgba(200,212,224,0.9) !important;
    padding: 9px 20px;
    letter-spacing: 0.22em !important;
    transition: background 0.3s, color 0.3s !important;
}
.nav-rsvp:hover {
    background: var(--ink);
    color: white !important;
}

/* ============================================================
   GATE FOLD
   ============================================================ */
.gate-section {
    height: 175vh;
    position: relative;
}
.gate-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.gate-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 1;
}
.gate-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}
.gate-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(44,56,72,0.25) 0%,
        rgba(44,56,72,0.05) 40%,
        rgba(44,56,72,0.5) 100%
    );
}

.gate-card {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
    padding: 0 24px;
}
.gate-mono {
    width: clamp(100px, 15vw, 160px);
    height: auto;
    margin-bottom: 24px;
    filter: drop-shadow(0 2px 12px rgba(44,56,72,0.4));
}
.gate-pre {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(18px, 2.2vw, 26px);
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}
.gate-names {
    font-family: 'Monsieur La Doulaise', cursive;
    font-size: clamp(56px, 8.5vw, 110px);
    font-weight: 400;
    color: white;
    line-height: 1;
    text-shadow: 0 2px 20px rgba(44,56,72,0.4);
}
.gate-amp {
    font-family: 'Monsieur La Doulaise', cursive;
    font-size: 0.7em;
    color: rgba(255,255,255,0.7);
    margin: 0 0.08em;
}
.gate-post {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(18px, 2.2vw, 26px);
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.06em;
    margin-top: 4px;
}
.scroll-cue {
    font-family: var(--sc);
    font-size: 15px;
    letter-spacing: 0.28em;
    color: rgba(255,255,255,0.5);
    margin-top: 36px;
    animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob {
    0%, 100% { opacity: 0.35; transform: translateY(0); }
    50%       { opacity: 0.7;  transform: translateY(5px); }
}

.gate-panel {
    position: absolute;
    top: 0; bottom: 0;
    /* no background — painting shows through transparent leaf gaps */
    will-change: transform;
    z-index: 3;
    pointer-events: none;
}
.gate-l {
    left: 0;
    width: 80vw;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}
.gate-r {
    right: 0;
    width: 80vw;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}
.gate-l img {
    height: 100vh;
    width: auto;
    flex-shrink: 0;
    margin-bottom: 0;
    display: block;
    transform: scaleX(-1);
    margin-left: -6vh;
}
.gate-r img {
    height: 100vh;
    width: auto;
    flex-shrink: 0;
    margin-bottom: 0;
    display: block;
    transform: scaleX(-1);
    margin-right: -6vh;
}

/* ============================================================
   INFO SECTION
   ============================================================ */
.info-section {
    background: var(--periwinkle);
    padding: 100px 24px 110px;
    text-align: left;
}
.info-inner {
    max-width: 700px;
    margin: 0 auto;
    padding-left: 48px;
}
.info-venue {
    font-family: var(--script);
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 400;
    color: var(--ink);
    line-height: 1.2;
}
.info-location {
    font-family: var(--script);
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 400;
    color: var(--slate);
    line-height: 1.2;
}
.info-rule {
    width: 48px;
    height: 1px;
    background: var(--slate);
    opacity: 0.35;
    margin: 28px 0;
}
.info-date {
    font-family: var(--sc);
    font-size: clamp(14px, 1.6vw, 18px);
    letter-spacing: 0.22em;
    color: var(--slate);
    font-weight: 400;
}
.info-attire {
    font-family: var(--sc);
    font-size: clamp(11px, 1.2vw, 14px);
    letter-spacing: 0.22em;
    color: var(--slate);
    font-weight: 400;
    margin-top: 10px;
    opacity: 0.7;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-section {
    background: var(--slate);
    padding: 0;
    overflow: hidden;
    height: 420px;
    display: flex;
    align-items: center;
}
.gallery-track {
    display: flex;
    gap: 12px;
    animation: marquee 32s linear infinite;
    width: max-content;
    padding: 28px 0;
}
.gallery-track:hover { animation-play-state: paused; }
.gallery-item {
    flex-shrink: 0;
    width: 340px;
    height: 380px;
    overflow: hidden;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   DETAILS
   ============================================================ */
.details-section {
    background: var(--periwinkle);
    padding: 96px 48px;
    border-top: 1px solid rgba(58,75,92,0.12);
}
.details-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 0;
}
.det-block {
    flex: 1;
    padding: 0 40px;
}
.det-block:first-child { padding-left: 0; }
.det-block:last-child  { padding-right: 0; }
.det-divider {
    width: 1px;
    min-height: 120px;
    align-self: stretch;
    background: rgba(58,75,92,0.2);
    flex-shrink: 0;
    margin-top: 6px;
}
.det-kicker {
    font-family: var(--sc);
    font-size: 12px;
    letter-spacing: 0.22em;
    color: var(--moon-mid);
    margin-bottom: 10px;
}
.det-time {
    font-family: var(--serif);
    font-size: clamp(22px, 2.8vw, 34px);
    font-weight: 400;
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: 12px;
}
.det-time span {
    font-size: 0.7em;
    font-weight: 400;
}
.det-body {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.8;
    color: var(--slate);
}

/* ============================================================
   SCHEDULE
   ============================================================ */
.schedule-section {
    background: var(--slate);
    padding: 96px 48px;
}
.schedule-inner {
    max-width: 860px;
    margin: 0 auto;
}
.section-heading {
    font-family: 'Monsieur La Doulaise', cursive;
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 400;
    color: var(--periwinkle);
    margin-bottom: 56px;
    line-height: 1;
    padding-top: 0.3em;
    overflow: visible;
}
.schedule-days {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
}
.sched-date {
    font-family: var(--sc);
    font-size: 13px;
    letter-spacing: 0.2em;
    color: var(--moon-mid);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(200,212,224,0.15);
}
.sched-event {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}
.sched-time {
    font-family: var(--sc);
    font-size: 12px;
    letter-spacing: 0.18em;
    color: var(--periwinkle2);
    flex-shrink: 0;
    width: 72px;
    padding-top: 2px;
}
.sched-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sched-name {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 400;
    color: var(--periwinkle);
    line-height: 1.2;
}
.sched-note {
    font-family: var(--serif);
    font-size: 13px;
    font-weight: 400;
    color: rgba(200,212,224,0.5);
}

/* ============================================================
   STAY
   ============================================================ */
.stay-section {
    background: var(--periwinkle);
    padding: 96px 48px;
}
.stay-inner {
    max-width: 1060px;
    margin: 0 auto;
}
.stay-section .section-heading { color: var(--ink); }
.stay-intro {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 400;
    color: var(--slate);
    margin-bottom: 52px;
    margin-top: -32px;
    line-height: 1.6;
}
.hotels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.maps-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(58,75,92,0.35);
}
.maps-link:hover { text-decoration-color: currentColor; }
.info-venue .maps-link { text-decoration: none; }

.hotel-card {
    background: rgba(44,56,72,0.06);
    border: 1px solid rgba(58,75,92,0.15);
    padding: 32px 28px;
}
.hotel-name {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 4px;
}
.hotel-location {
    font-family: var(--sc);
    font-size: 12px;
    letter-spacing: 0.18em;
    color: var(--moon-mid);
    margin-bottom: 16px;
}
.hotel-note {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 14px;
    color: var(--slate);
    line-height: 1.6;
    margin-bottom: 20px;
}
.hotel-contacts {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 14px;
}
.hotel-contact {
    font-family: var(--sc);
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--slate);
    text-decoration: none;
    transition: color 0.3s;
}
.hotel-contact:hover { color: var(--ink); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
    background: var(--slate);
    padding: 96px 48px 48px;
}
.faq-inner {
    max-width: 720px;
    margin: 0 auto;
}
.faq-section .section-heading { color: var(--periwinkle); }
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
    border-bottom: 1px solid rgba(200,212,224,0.12);
}
.faq-item:first-of-type { border-top: 1px solid rgba(200,212,224,0.12); }
.faq-item summary {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 400;
    color: var(--periwinkle);
    padding: 20px 0;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--moon-mid);
    flex-shrink: 0;
    transition: transform 0.3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: white; }
.faq-item p {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(200,212,224,0.6);
    padding: 0 0 24px 0;
}
.faq-item p a {
    color: var(--periwinkle2);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.faq-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 24px;
}
.faq-input {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(200,212,224,0.18);
    border-radius: 2px;
    padding: 12px 16px;
    font-family: var(--serif);
    font-size: 15px;
    color: white;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.faq-input::placeholder { color: rgba(200,212,224,0.3); }
.faq-input:focus { border-color: rgba(200,212,224,0.45); }
.faq-textarea { resize: vertical; }
.faq-submit {
    align-self: flex-start;
    font-family: var(--sc);
    font-size: 10px;
    letter-spacing: 0.24em;
    color: var(--periwinkle);
    background: transparent;
    border: 1px solid rgba(200,212,224,0.35);
    border-radius: 2px;
    padding: 10px 28px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.faq-submit:hover { border-color: var(--periwinkle); color: white; }
.faq-sent { font-size: 13px; color: rgba(200,212,224,0.45); margin-top: 4px; }

/* ============================================================
   REGISTRY
   ============================================================ */
.registry-section {
    background: var(--periwinkle);
    padding: 96px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.registry-inner {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.registry-bouquet {
    width: clamp(120px, 18vw, 180px);
    height: auto;
    margin: 0 auto 32px;
}
.registry-section .section-heading { color: var(--ink); }
.registry-body {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.9;
    color: var(--slate);
    margin-top: -28px;
    margin-bottom: 40px;
}
.registry-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.registry-btn {
    font-family: var(--sc);
    font-size: 10px;
    letter-spacing: 0.26em;
    color: var(--ink);
    border: 1px solid rgba(58,75,92,0.35);
    padding: 14px 32px;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}
.registry-btn:hover {
    background: var(--ink);
    color: var(--periwinkle);
}

/* ============================================================
   RSVP
   ============================================================ */
.rsvp-section {
    background: var(--slate);
    padding: 60px 48px 120px;
    text-align: center;
}
.rsvp-inner {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.rsvp-bouquet {
    width: clamp(120px, 18vw, 180px);
    height: auto;
}
.rsvp-mono {
    width: clamp(120px, 18vw, 180px);
    height: auto;
}
.rsvp-deadline {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 17px;
    color: rgba(200,212,224,0.65);
    letter-spacing: 0.02em;
}
.rsvp-btn {
    font-family: var(--sc);
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--slate-dark);
    background: var(--periwinkle);
    text-decoration: none;
    padding: 16px 48px;
    transition: background 0.3s, transform 0.2s;
    display: inline-block;
    margin-top: 8px;
}
.rsvp-btn:hover {
    background: white;
    transform: translateY(-2px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--slate-dark);
    padding: 56px 24px;
    text-align: center;
    border-top: 1px solid rgba(200,212,224,0.08);
}
.footer-mono {
    width: clamp(80px, 10vw, 110px);
    height: auto;
    margin: 0 auto 16px;
    opacity: 0.5;
}
.footer-date {
    font-family: var(--sc);
    font-size: 11px;
    letter-spacing: 0.26em;
    color: rgba(200,212,224,0.4);
    margin-bottom: 6px;
}
.footer-venue {
    font-family: var(--sc);
    font-size: 9px;
    letter-spacing: 0.2em;
    color: rgba(200,212,224,0.22);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .details-inner {
        flex-wrap: wrap;
        gap: 40px;
    }
    .det-block { min-width: calc(50% - 24px); }
    .det-divider { display: none; }
    .schedule-days { grid-template-columns: 1fr; gap: 40px; }
    .hotels-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    #nav { padding: 16px 20px; }
    #nav.scrolled { padding: 12px 20px; }
    .nav-links { gap: 16px; }
    .nav-links li:not(:first-child):not(:last-child):not(:nth-last-child(2)) { display: none; }
    .story-progress-bar { top: 64px; } /* fallback; JS overrides */
    .nav-links li:last-child { margin-left: -8px; }

    .gate-l img {
        position: absolute; left: -40vw; bottom: 0;
        height: 100vh; width: auto; max-width: none; margin: 0; transform: scaleX(-1);
    }
    .gate-r img {
        position: absolute; right: -40vw; bottom: 0;
        height: 100vh; width: auto; max-width: none; margin: 0; transform: scaleX(-1);
    }

    .info-inner { padding-left: 0; text-align: center; }
    .info-rule { margin: 28px auto; }

    .gallery-item { width: 260px; height: 300px; }

    .details-section,
    .schedule-section,
    .stay-section,
    .faq-section,
    .registry-section,
    .rsvp-section { padding: 72px 24px; }

    .det-block { padding: 0 !important; min-width: 100%; }

    .gate-card {
        background: radial-gradient(ellipse 100% 90% at 50% 50%,
            rgba(44,56,72,0.6) 20%, transparent 100%);
    }
}

/* ============================================================
   OUR STORY -- timeline  (light theme, single-column)
   ============================================================ */

@keyframes moonPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(192,138,88,0.4); }
    50%       { box-shadow: 0 0 0 5px rgba(192,138,88,0); }
}

/* ── Page shell ── */
body.story-page { background: #dde4ee; }
.story-page #nav.scrolled { background: rgba(44, 56, 72, 1); }
.story-page .site-footer { background: #dde4ee; border-top: 1px solid rgba(51,57,74,0.12); }
.story-page .footer-date,
.story-page .footer-venue { color: rgba(51,57,74,0.5); }
.story-page .footer-mono { opacity: 0.25; filter: invert(1); }

.story-section {
    background: #dde4ee;
    padding: 0 0 100px;
    min-height: 100vh;
}

/* Fixed progress bar */
.story-progress-bar {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 999;
    background: #dde4ee;
    text-align: center;
    padding: 10px 20px;
    font-family: 'adobe-caslon-pro', serif;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #33394a;
    border-bottom: 1px solid rgba(51,57,74,0.12);
}

/* ── Inner wrap ── */
.story-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 20px 60px;
}

/* ── Intro header ── */
.story-intro {
    text-align: center;
    margin-bottom: 52px;
}

.story-kicker {
    display: block;
    font-family: 'adobe-caslon-pro', serif;
    font-size: 11px;
    letter-spacing: 0.28em;
    color: #c08a58;
    margin-bottom: 6px;
}

.story-title {
    font-family: 'adobe-caslon-pro', serif;
    font-size: clamp(28px, 5vw, 40px);
    color: #33394a;
    font-weight: 400;
    line-height: 1.2;
}

.story-subtitle {
    font-family: 'adobe-caslon-pro', serif;
    font-size: 18px;
    color: rgba(44,48,59,0.7);
    margin-top: 12px;
    line-height: 1.5;
}

/* ── Reveal animation ── */
.story-reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.story-reveal.visible { opacity: 1; transform: none; }

/* ── Stop (year block) ── */
.timeline-stop {
    display: grid;
    grid-template-columns: 14px 1fr;
    gap: 0 20px;
}

/* Spine column */
.stop-spine {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stop-moon {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
    position: sticky;
    top: 108px; /* JS overrides */
    z-index: 10;
}

.stop-moon.neutral  { background: #33394a; }
.stop-moon.unsolved { border: 1.5px solid #c08a58; background: #dde4ee; }
.stop-moon.solved   { background: #33394a; box-shadow: 0 0 0 3px rgba(192,138,88,0.22); }

.stop-line {
    position: absolute;
    top: 23px; /* moon (13) + moon margin-top (4) + gap (6) */
    bottom: 52px; /* matches stop-body padding-bottom */
    left: calc(50% - 0.75px);
    width: 1.5px;
    background: rgba(51,57,74,0.28);
}
.stop-line.dashed {
    background: repeating-linear-gradient(
        to bottom,
        rgba(167,176,191,0.65) 0,
        rgba(167,176,191,0.65) 4px,
        transparent 4px,
        transparent 8px
    );
}

/* Body column */
.stop-body {
    padding-bottom: 52px;
    min-width: 0;
}

.stop-header {
    position: sticky;
    top: 108px; /* JS overrides with exact nav+bar height */
    z-index: 10;
    background: #dde4ee;
    padding-top: 13px;
    padding-bottom: 6px;
    margin-bottom: 8px;
}

.stop-eyebrow {
    font-family: 'adobe-caslon-pro', serif;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #c08a58;
    margin-bottom: 2px;
}

.stop-year {
    font-family: 'adobe-caslon-pro', serif;
    font-weight: 400;
    font-size: 30px;
    color: #33394a;
    margin-bottom: 4px;
    line-height: 1.1;
}

/* ── Text blocks ── */
.story-text-block { margin-top: 12px; }

.story-para {
    font-family: 'adobe-caslon-pro', serif;
    font-size: 17px;
    line-height: 1.65;
    color: #2c303b;
    margin: 0 0 10px;
}
.story-para:last-child { margin-bottom: 0; }

/* ── Video ── */
.story-video-wrap {
    margin: 20px 0 6px;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}
.story-video {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: contain;
}

/* ── Photo tiles ── */
.story-photos {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 20px 0 6px;
    overflow: hidden;
    user-select: none;
}

.story-photo {
    flex-shrink: 0;
    height: 225px;
    width: auto;
    display: block;
    background: rgba(51,57,74,0.1);
}

/* Single photo: 100% larger */
.story-photos.single-photo .story-photo { height: 300px; }

/* Photos revealed inside trivia card */
.trivia-reveal-photos {
    margin: 14px -22px 0;
    gap: 4px;
}
.trivia-reveal-photos .story-photo { height: 200px; }

/* ── Trivia card ── */
.story-trivia {
    background: #f8efe0;
    border-radius: 14px;
    overflow: hidden;
    padding: 22px 22px 20px;
    margin-top: 22px;
}

.trivia-label {
    font-family: 'adobe-caslon-pro', serif;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(51,57,74,0.5);
    margin-bottom: 8px;
}

.trivia-question {
    font-family: 'adobe-caslon-pro', serif;
    font-size: 20px;
    font-weight: 400;
    color: #33394a;
    margin-bottom: 14px;
    line-height: 1.35;
}

.trivia-opts { display: block; }

.story-opt {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    margin-bottom: 8px;
    border: 1px solid rgba(51,57,74,0.22);
    border-radius: 9px;
    background: #ffffff;
    color: #2c303b;
    font-family: 'adobe-caslon-pro', serif;
    font-size: 16px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.story-opt:last-child { margin-bottom: 0; }
.story-opt:hover:not(:disabled) { border-color: rgba(51,57,74,0.5); background: #fdf7ee; }
.story-opt:disabled { cursor: default; }

.story-opt.correct { border-color: #33394a; background: #33394a; color: #f8efe0; }
.story-opt.wrong   { border-color: rgba(161,92,76,0.6); background: rgba(161,92,76,0.08); color: #a15c4c; }
.story-opt.muted   { border-color: rgba(51,57,74,0.1); background: transparent; color: #a7b0bf; }

.trivia-punchline {
    font-family: 'adobe-caslon-pro', serif;
    font-size: 18px;
    line-height: 1.55;
    color: rgba(63,74,58,0.85);
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(51,57,74,0.12);
    display: none;
}
.trivia-punchline.visible { display: block; }

/* ── Score reveal ── */
.story-score-reveal {
    text-align: center;
    margin-top: 16px;
    padding-top: 44px;
    border-top: 1px solid rgba(51,57,74,0.16);
}

.score-title {
    font-family: 'adobe-caslon-pro', serif;
    font-size: 26px;
    color: #33394a;
    margin-bottom: 16px;
}

.score-btn {
    padding: 12px 28px;
    border-radius: 24px;
    border: none;
    background: #33394a;
    color: #f8efe0;
    font-family: 'adobe-caslon-pro', serif;
    font-size: 16px;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: opacity 0.2s;
}
.score-btn:hover { opacity: 0.85; }

.score-result { display: none; margin-top: 24px; }
.score-result.visible { display: block; }

.score-result .score-fraction {
    font-family: 'adobe-caslon-pro', serif;
    font-weight: 400;
    font-size: 44px;
    color: #33394a;
}

.score-message {
    font-family: 'adobe-caslon-pro', serif;
    font-size: 17px;
    color: rgba(44,48,59,0.7);
    margin-top: 8px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
}

/* ── Mobile ── */
@media (max-width: 600px) {
    .story-inner { padding: 36px 16px 48px; }
    .story-photo { height: 170px; }
    .story-photos.single-photo .story-photo { height: 220px; }
    .trivia-reveal-photos .story-photo { height: 150px; }
    .story-trivia { padding: 18px 16px; }
    .trivia-question { font-size: 18px; }
}
