:root {
    --bg: #fcfbfa;
    --bg-rgb: 252, 251, 250;
    --panel: rgba(255, 255, 255, 0.96);
    --accent: #e38a7a;
    --accent-dark: #c56f61;
    --accent-deep: #b35c4e;
    --accent-lilac: #c5b2d7;
    --accent-sage: #cad7cd;
    --text-main: #2b2622;
    --text-muted: #7a706a;
    --border-soft: #e7d8d4;
    /* ROUNDED FRAME (not an oval) */
    --frame-radius: 125px;
    --frame-inset: 30px;
    --frame-feather: 75px;
}

/* responsive overrides go RIGHT HERE */
@media (max-width: 1100px) {
    :root {
        --frame-inset: clamp(10px, 2.8vw, 18px);
        --frame-radius: clamp(70px, 8vw, 110px);
        --frame-feather: clamp(50px, 7vw, 70px);
    }
}

@media (max-width: 780px) {
    :root {
        --frame-inset: clamp(8px, 3.6vw, 14px);
        --frame-radius: clamp(46px, 9vw, 78px);
        --frame-feather: clamp(40px, 10vw, 58px);
    }
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text-main);
    overflow: hidden;
    /* fixed slideshow, no page scroll */
}

a {
    color: var(--accent-dark);
    text-decoration: none;
}

/* Shell = fixed viewport; scenes are stacked and blended */

.shell {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: var(--bg);
}

.scene {
    position: absolute;
    inset: 0;
    padding: 1.75rem 1.25rem 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    /* controlled in JS */
    transform: translateY(0);
    /* controlled in JS */
    pointer-events: none;
    /* enabled in JS for active scene */
}

/* Ceremony: full-bleed map on the left, text on the right */
.scene--ceremony {
    /* no top / left / bottom padding; a little right padding for the text */
    padding: 0 1.8rem 0 0;

    /* kill the vertical centring and horizontal centring */
    align-items: stretch;
    justify-content: flex-start;
}

/* West Village: mirror of ceremony – full-bleed map on the right, text on the left */
.scene--west {
    padding: 0 0 0 3.2rem;
    /* mirror the ceremony padding */
    align-items: stretch;
    /* let the map fill the height */
    justify-content: flex-end;
    /* bias content towards the right edge */
}

.scene--west .scene-inner {
    max-width: none;
    width: 100%;
    height: 100vh;
    /* match ceremony */
    grid-template-rows: 1fr;
    /* single full-height row */
    row-gap: 0;
    /* no gap above/below the map row */
}

/* West: we’ll use an inline header in the text column instead,
   so the old top header + footer rows aren’t needed */
.scene--west .scene-header,
.scene--west .scene-footer {
    display: none;
}

.scene--ceremony .scene-inner {
    max-width: none;
    width: 100%;
    height: 100vh;
    /* fill the viewport height */
    grid-template-rows: 1fr;
    /* just the map/text row (we’ll hide the footer) */
    row-gap: 0;
}

.scene--ceremony .map-layout {
    height: 100%;
}

.scene--ceremony .map-visual {
    height: 100%;
}

/* hide the separate footer row – we can fold that text into the body later */
.scene--ceremony .scene-footer {
    display: none;
}

.scene-inner {
    width: 100%;
    max-width: 1180px;
    height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    /* middle row can shrink/grow */
    gap: 1.5rem;
}

.scene-header {
    text-align: center;
}

.scene-kicker {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.scene-title {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-main);
}

.scene-subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* === Ceremony layout: map + title inline on the right, no top header === */
.scene--ceremony .scene-header {
    display: none;
}

/* keep it as a single full-height row */
.scene--ceremony .scene-inner {
    grid-template-rows: 1fr;
    row-gap: 0;
}

/* Intro scene */

.scene--intro {
    position: relative;
    overflow: hidden;
    padding: 0;
    background:
        radial-gradient(circle at 18% 16%,
            rgba(195, 163, 207, 0.12) 0%,
            rgba(195, 163, 207, 0) 28%),
        radial-gradient(circle at 84% 14%,
            rgba(227, 138, 122, 0.10) 0%,
            rgba(227, 138, 122, 0) 24%),
        radial-gradient(ellipse at center,
            rgba(255, 252, 247, 0.98) 0%,
            rgba(248, 243, 237, 0.98) 56%,
            rgba(239, 231, 223, 1) 100%);
    align-items: stretch;
    justify-content: center;
    min-height: 100vh;
    isolation: isolate;
}

.scene--intro .scene-header {
    display: none;
}

.intro-skyline-art {
    display: none;
}

.scene--intro .scene-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1180px;
    height: 100vh;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto minmax(0, 1fr);
    justify-items: center;
    align-items: start;
    gap: 1.2rem;
    padding: 2.5rem 1.25rem 2.2rem;
}

.scene--intro .scene-inner::before,
.scene--intro .scene-inner::after {
    content: none;
}

.scene--overview .scene-inner,
.scene--rsvp .scene-inner {
    position: relative;
    isolation: isolate;
}

.scene--overview .scene-inner::before,
.scene--rsvp .scene-inner::before {
    content: none;
}

.scene--overview .scene-inner>*,
.scene--rsvp .scene-inner>* {
    position: relative;
    z-index: 1;
}

.scene--intro .scene-inner>* {
    position: relative;
    z-index: 1;
}

.intro-hero {
    grid-row: 2;
    align-self: end;
}

.intro-copy {
    grid-row: 3;
    margin: 1.75rem 0 0;
    transform: none;
    width: 100%;
    max-width: 50rem;
    text-align: left;
    color: #564b44;
    font-size: 1rem;
    line-height: 1.78;
    text-shadow: none;
}

.intro-copy p {
    margin: 0 0 1.15rem;
}

.intro-copy p:last-child {
    margin-bottom: 0;
}

.intro-support {
    grid-row: 4;
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    align-self: end;
    margin: 0 0 1.3rem;
    width: max-content;
    max-width: calc(100vw - 2rem);
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.intro-top {
    display: grid;
    grid-template-columns: auto 148px;
    column-gap: 1.3rem;
    align-items: end;
}

.intro-names {
    text-align: left;
}

.intro-names h1 {
    margin: 0;
    font-size: clamp(2.9rem, 6.1vw, 3.9rem);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(255, 252, 247, 0.72);
}

.intro-subtitle {
    margin: 0.65rem 0 0;
    max-width: 34rem;
    color: #5f544d;
    font-size: 1.03rem;
    font-weight: 500;
    line-height: 1.48;
    letter-spacing: 0.01em;
    text-shadow: 0 0 10px rgba(255, 252, 247, 0.82);
}

.intro-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.32rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(228, 210, 195, 0.9);
    background: rgba(255, 255, 255, 0.96);
    font-size: 0.82rem;
    color: #746962;
    margin-bottom: 0.8rem;
}

.intro-dog {
    position: relative;
    width: 148px;
    aspect-ratio: 1 / 1;
    transform: translate(-8px, -52px);
}

.intro-dog--river {
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.18));
}

@media (min-width: 900px) {
    .scene--intro .intro-top {
        grid-template-columns: auto 160px;
        column-gap: 1.45rem;
    }

    .scene--intro .intro-names h1 {
        font-size: clamp(3.15rem, 6.6vw, 4.25rem);
    }

    .scene--intro .intro-subtitle {
        font-size: 1.05rem;
    }

    .scene--intro .intro-dog {
        width: 160px;
        transform: translate(-12px, -60px);
    }
}

.intro-dog-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

.intro-dog-tail {
    transform-origin: 15% 55%;
    animation: river-tail-wag 1.5s ease-in-out infinite;
}

.intro-dog-head {
    transform-origin: 50% 80%;
    animation: river-head-bob 1.8s ease-in-out infinite;
}

.intro-dog-tongue {
    transform-origin: 50% 20%;
    animation: river-tongue-wiggle 1.6s ease-in-out infinite;
}

.intro-dog-tail,
.intro-dog-head,
.intro-dog-tongue {
    will-change: transform;
}

@keyframes dog-bounce {

    0%,
    100% {
        transform: translateY(-4px);
    }

    50% {
        transform: translateY(4px);
    }
}

@keyframes river-tongue-wiggle {

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

    50% {
        transform: translate(0.7px, 1.2px);
    }
}

@keyframes river-tail-wag {

    0%,
    100% {
        transform: rotate(0deg) translateX(0);
    }

    50% {
        transform: rotate(-4deg) translateX(-8px);
    }
}

@keyframes river-head-bob {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(1.2px) rotate(0.2deg);
    }
}

@keyframes ceremony-subtitle-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-footnote {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.intro-greeting {
    margin-top: 0.1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #504741;
    text-shadow: none;
}

.intro-greeting-name {
    font-weight: 700;
    color: #2f2925;
}

.intro-jump {
    margin-top: 0.95rem;
    text-align: center;
    font-size: 0.84rem;
    color: #5b514b;
    text-shadow: none;
}

.intro-jump-label {
    margin-right: 0.4rem;
}

.intro-jump-buttons {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.4rem;
}

.jump-chip {
    border-radius: 999px;
    border: 1px solid rgba(228, 210, 195, 0.92);
    background: rgba(255, 255, 255, 0.98);
    padding: 0.22rem 0.72rem;
    font-size: 0.8rem;
    cursor: pointer;
    color: #6a5f58;
    box-shadow: 0 2px 8px rgba(44, 39, 35, 0.04);
}

.jump-chip:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
}

.intro-reset {
    margin-top: 0.65rem;
    text-align: center;
    font-size: 0.82rem;
    color: #5b514b;
    text-shadow: 0 0 16px rgba(255, 252, 247, 0.96);
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.82rem;
    color: #a95448;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.14em;
    text-shadow: 0 0 10px rgba(255, 252, 247, 0.92);
}

.map-text-footer {
    margin-top: 0.8rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.venue-link {
    color: var(--accent-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 140ms ease;
}

.venue-link:hover,
.venue-link:focus-visible {
    color: var(--accent-deep);
    outline: none;
}

.subway-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.05rem;
    height: 1.05rem;
    margin: 0 0.05rem;
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    vertical-align: middle;
    position: relative;
    top: -0.2em;
}

.subway-badge-group {
    display: inline-flex;
    align-items: center;
    gap: 0.08rem;
    vertical-align: middle;
    position: relative;
    top: -0.08em;
}

.subway-badge {
    width: 0.96rem;
    height: 0.96rem;
    margin: 0;
    font-size: 0.56rem;
    top: 0;
}

.subway-badge--1 {
    background: #ee352e;
}

.subway-badge--a,
.subway-badge--c,
.subway-badge--e {
    background: #2850ad;
}

.subway-badge--b,
.subway-badge--d,
.subway-badge--f,
.subway-badge--m {
    background: #f58220;
}

/* Ceremony footer now sits at the bottom of the text column
   and holds a small circular replay icon */
.map-text-footer--ceremony {
    margin-top: auto;
    /* stick to bottom of text column */
    padding-top: 1.3rem;
    margin-bottom: 0.7rem;
    display: flex;
    justify-content: flex-end;
    /* icon on the right */
    gap: 0.4rem;
    /* space between buttons */
}

/* Replay icon button for the ceremony scene */
.ceremony-replay-btn,
.ceremony-skip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    color: #5b4f47;
    transition: transform 120ms ease, opacity 120ms ease, color 120ms ease;
}

.ceremony-replay-btn:hover,
.ceremony-replay-btn:focus-visible,
.ceremony-skip-btn:hover,
.ceremony-skip-btn:focus-visible {
    transform: translateY(-1px);
    opacity: 0.85;
    outline: none;
    color: var(--text-main);
}

/* Make sure SVG icons inside are sized nicely */
.ceremony-replay-btn svg,
.ceremony-skip-btn svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* Map scenes */

.scene--subway {
    background:
        radial-gradient(circle at bottom, rgba(227, 138, 122, 0.028) 0, rgba(227, 138, 122, 0.012) 24%, rgba(255, 255, 255, 0) 58%),
        var(--bg);
}

.scene--overview {
    background:
        radial-gradient(circle at 18% 14%,
            rgba(197, 178, 215, 0.10) 0%,
            rgba(197, 178, 215, 0) 26%),
        radial-gradient(circle at 84% 82%,
            rgba(202, 215, 205, 0.08) 0%,
            rgba(202, 215, 205, 0) 22%),
        transparent;
}

.scene--details {
    background:
        radial-gradient(circle at 82% 16%,
            rgba(227, 138, 122, 0.08) 0%,
            rgba(227, 138, 122, 0) 24%),
        radial-gradient(circle at 14% 84%,
            rgba(202, 215, 205, 0.06) 0%,
            rgba(202, 215, 205, 0) 22%),
        transparent;
}

.scene--rsvp {
    background:
        radial-gradient(circle at 50% 12%,
            rgba(227, 138, 122, 0.06) 0%,
            rgba(227, 138, 122, 0) 22%),
        radial-gradient(circle at 16% 18%,
            rgba(197, 178, 215, 0.05) 0%,
            rgba(197, 178, 215, 0) 20%),
        transparent;
}

.map-layout {
    display: grid;
    gap: 1.5rem;
    align-items: stretch;
    height: 100%;
    min-height: 0;
}

/* Ceremony: base layout; we'll lock the exact widths on wide screens */
.scene--ceremony .map-layout {
    column-gap: 1.6rem;
    /* space between map and text */
    align-items: stretch;
}

/* Put the map in the right-hand column, text in the left, regardless of DOM order */
.scene--west .map-text {
    grid-column: 1;
}

.scene--west .map-visual {
    grid-column: 2;
}

/* Softer, warmer frame + less “grey slab” feel */
.map-visual {
    position: relative;
    height: 100%;
    min-height: 320px;
    border-radius: 1.8rem;
    /* softer, more “pill” than box */
    overflow: hidden;
    border: none;
    /* lose the hard frame line */
    background: var(--bg);
    /* exactly the page colour */
    box-shadow:
        0 18px 50px rgba(164, 129, 92, 0.10),
        0 0 0 1px rgba(164, 129, 92, 0.03);
    /* soft, papery drop shadow */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ceremony: clean full-bleed map panel, no “paper” shape */
.scene--ceremony .map-visual {
    overflow: hidden;
    /* clip the image cleanly to the column */
    border-radius: 0;
    /* rectangular edge, feels printed on the page */
    box-shadow: none;
    /* no card shadow */
    background: none;
}

/* West Village: same full-bleed feel as ceremony, but on the right */
.scene--west .map-visual {
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    background: none;
    height: 100%;
}

/* West Village map image – let JS handle scaling like ceremony */
.scene--west .map-visual img.map-image {
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: contain;
    /* doesn’t really matter once we’re transforming */
}

/* Hide the little “West Village map placeholder” pill for now */
.scene--west .map-placeholder-label {
    display: none;
}

.scene--ceremony .map-visual--interactive,
.scene--west .map-visual--interactive {
    position: relative;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* kill the old paper effect */
.scene--ceremony .map-visual--interactive::before,
.scene--west .map-visual--interactive::before {
    content: none;
}

/* make sure the map + dog sit on top of the paper */
.scene--ceremony .map-visual--interactive .map-image {
    position: relative;
    z-index: 1;
}

.scene--ceremony .map-visual--interactive .map-zoom-controls,
.scene--ceremony .map-visual--interactive .map-dog {
    position: absolute;
    z-index: 2;
}

/* Make the interactive wrapper fill the map column */
.scene--ceremony .map-visual--interactive,
.scene--west .map-visual--interactive {
    height: 100%;
}

/* =========================
   WEST VILLAGE SCENE (Scene 3)
   Mirror of ceremony: text left, map full-bleed right
   ========================= */

.scene--west {
    background: var(--bg);
}

/* Layout: left = text, right = map (map gets ~2/3) */
.scene--west .map-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
    column-gap: 1.6rem;
    align-items: stretch;
}

/* Put the text in the left column, map in the right column */
.scene--west .map-text {
    order: 1;
}

.scene--west .map-visual {
    order: 2;
}

/* Make the West text feel like notes on the page, not a card */
/* West text: mirrored version of ceremony text */
.scene--west .map-text {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;

    max-width: 540px;
    margin-left: 0;
    margin-right: auto;
    margin-top: 0;

    font-size: 1rem;
    line-height: 1.65;
    color: #5b4f47;

    padding: 0 0 0.4rem 0;

    display: flex;
    flex-direction: column;
    height: 100%;
}

.scene--west .map-text-header {
    padding-top: 0.4rem;
    margin-bottom: 1.4rem;
}

.scene--west .map-text-header .scene-title--inline {
    margin: 0;
    font-size: clamp(1.7rem, 2.5vw, 2.1rem);
    letter-spacing: 0.11em;
    text-transform: uppercase;
    line-height: 1.08;
}

.scene--west .map-text-header .scene-subtitle--inline {
    margin-top: 1.25rem;
    margin-bottom: 0.8rem;
    font-size: 0.98rem;
    font-weight: 500;
    color: #5b4f47;

    opacity: 0;
    transform: translateY(8px);
    transition: opacity 1500ms ease-out, transform 1500ms ease-out;
}

.scene--west .map-text-header .scene-subtitle--inline.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.scene--west .map-text p {
    margin: 0.3rem 0;
}

.scene--west .map-text ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0.95rem;
}

.scene--west .map-text li {
    position: relative;
    padding-left: 1.1rem;
    padding-right: 0.3rem;
    margin-bottom: 0.32rem;
    line-height: 1.7;
}

.scene--west .map-text li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: var(--accent-dark);
    font-size: 0.9rem;
}

.map-text-footer--west {
    margin-top: auto;
    padding-top: 1.3rem;
    margin-bottom: 0.7rem;
    display: flex;
    justify-content: flex-start;
    gap: 0.4rem;
}

/* Mobile West = same layout + sizing rhythm as Ceremony */
@media (max-width: 780px) {
    .scene--west {
        padding:
            0.68rem 0.72rem calc(env(safe-area-inset-bottom, 0px) + 2.2rem);
        align-items: flex-start;
        justify-content: center;
    }

    .scene--west .scene-inner {
        height: 100%;
        grid-template-rows: auto 1fr;
        gap: 0.34rem;
    }

    .scene--west .map-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.34rem;
        align-content: start;
        height: auto;
    }

    .scene--west .map-visual,
    .scene--west .map-text {
        order: 0;
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .scene--west .map-visual {
        height: clamp(270px, 41svh, 348px);
        min-height: 270px;
    }

    .scene--west .map-text {
        width: 100%;
        max-width: none;
        min-width: 0;
        min-height: 0;
        margin: 0;
        padding: 0.14rem 0 0;
        font-size: clamp(0.79rem, 2.95vw, 0.88rem);
        line-height: 1.46;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        height: auto;
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
    }

    .scene--west .map-text-header {
        width: 100%;
        margin-bottom: 0.42rem;
        padding-top: 0;
    }

    .scene--west .map-text-header .scene-title--inline {
        margin: 0;
        font-size: clamp(1.02rem, 5vw, 1.22rem);
        line-height: 1.04;
        letter-spacing: 0.05em;
    }

    .scene--west .map-text-header .scene-subtitle--inline {
        display: block;
        width: 100%;
        max-width: none;
        margin-top: 0.36rem;
        margin-bottom: 0.34rem;
        font-size: clamp(0.76rem, 2.9vw, 0.88rem);
        font-weight: 400;
        line-height: 1.2;
        white-space: normal;
        word-break: normal;
        overflow-wrap: normal;
        opacity: 1;
        transform: none;
        transition: none;
        animation: none;
    }

    .scene--west .map-text-body {
        opacity: 0;
        transform: translateY(4px);
        max-height: 0;
        overflow: hidden;
        pointer-events: none;
        transition:
            opacity 320ms ease,
            transform 320ms ease,
            max-height 320ms ease;
    }

    .scene--west .map-text-body.is-visible {
        opacity: 1;
        transform: translateY(0);
        max-height: 48rem;
        pointer-events: auto;
    }

    .scene--west .map-text p {
        margin: 0 0 0.38rem;
    }

    .scene--west .map-text ul {
        list-style: none;
        padding-left: 0;
        margin: 0.12rem 0 0;
    }

    .scene--west .map-text li {
        position: relative;
        padding-left: 0.78rem;
        margin-bottom: 0.34rem;
        line-height: 1.46;
    }

    .scene--west .map-text li::before {
        content: "•";
        position: absolute;
        left: 0;
        top: 0.03rem;
        color: var(--accent-dark);
        font-size: 0.68rem;
    }

    .scene--west .subway-badge-group {
        gap: 0.04rem;
    }

    .scene--west .subway-badge {
        width: 0.84rem;
        height: 0.84rem;
        font-size: 0.48rem;
    }

    .scene--west .map-text-footer--west,
    .scene--west .scene-footer {
        display: none;
    }
}

.map-visual img {
    display: block;
    max-width: none;
    max-height: none;
    width: auto;
    height: auto;
    user-select: none;
    cursor: grab;
    transform-origin: center center;
    transition: transform 0.08s linear;
}

/* Slightly warm/soft paper to match the page */
.map-visual img.map-image {
    filter:
        brightness(1.03) contrast(0.98) sepia(0.08) saturate(1.02);
}

.map-visual.is-dragging img {
    cursor: grabbing;
    transition: none;
}

.map-zoom-controls {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 4;
}

.map-zoom-btn {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    color: var(--text-main);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.map-zoom-btn:hover {
    background: #fff;
}

.map-dog {
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
    transform: translate(-50%, -50%);
    animation: dog-bounce 1.3s ease-in-out infinite;
    z-index: 3;
}

.map-dog--ceremony {
    top: 0;
    left: 0;
    opacity: 0;
    /* hidden until we start her run */
    animation: none;
    /* no idle bounce on the ceremony map */
    transition: opacity 350ms ease-out;
}

.map-dog--west {
    top: 62%;
    left: 38%;
}

.map-dog--overview {
    top: 32%;
    left: 45%;
}

.map-text {
    background: rgba(255, 253, 248, 0.96);
    /* slightly lighter, more paper-y */
    border-radius: 1.4rem;
    /* rounder corners */
    border: 1px solid rgba(199, 174, 148, 0.35);
    /* softer, less UI-ish */
    padding: 1.1rem 1.2rem 1.1rem;
    font-size: 0.93rem;
    color: var(--text-muted);
    box-shadow: 0 14px 34px rgba(164, 129, 92, 0.06);
}

/* Ceremony text: no card, just ink on the page */
.scene--ceremony .map-text {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0.35rem 0 0.4rem 0;
}

.map-text-header {
    margin-bottom: 1.1rem;
    /* more space before the beat text */
}

.map-text-header .scene-kicker {
    margin-bottom: 0.3rem;
    text-align: left;
}

.map-text-header .scene-title--inline {
    margin: 0;
    font-size: clamp(1.3rem, 2.0vw, 1.7rem);
    letter-spacing: 0.11em;
    text-transform: uppercase;
    line-height: 1.3;
    color: var(--text-main);
}

.map-text-header .scene-subtitle--inline {
    margin-top: 1.8rem;
    /* more space under title */
    margin-bottom: 0.85rem;
    /* slight gap before beat text */
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* Desktop-only: beef up ceremony title + breathing room */
@media (min-width: 900px) {
    .scene--ceremony .map-text-header {
        padding-top: 0.4rem;
        /* a touch more space above */
        margin-bottom: 1.4rem;
        /* a bit more gap before the bullets */
    }

    /* Ceremony title – a bit stronger on desktop */
    .scene--ceremony .map-text-header .scene-title--inline {
        margin: 0;
        font-size: clamp(1.7rem, 2.5vw, 2.1rem);
        /* slightly larger overall */
        letter-spacing: 0.11em;
        text-transform: uppercase;
        line-height: 1.08;
        /* tighter gap between the two lines */
    }

    .map-text p {
        margin: 0.3rem 0;
    }

    .map-text ul {
        padding-left: 1.2rem;
        margin: 0.6rem 0 0;
    }

    .map-text li {
        margin-bottom: 0.25rem;
    }

    /* Ceremony text: softer, more note-like, less card-y */
    .scene--ceremony .map-text {
        background: transparent;
        /* no card background */
        border-radius: 0;
        border: none;
        box-shadow: none;

        max-width: 540px;
        /* keep the nice readable width */
        margin-left: 0;
        /* was: auto */
        margin-right: 0;
        /* ensure no extra gap on the right */
        margin-top: 1.6rem;
        /* if you already changed this, keep your value */

        font-size: 1rem;
        /* keep your newer size if you set it */
        line-height: 1.65;
        color: #5b4f47;

        /* NEW: make this a full-height column so the footer can sit at the bottom */
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    /* Shared fade-in for any map text body (ceremony, subway, etc.) */
    .map-text-body {
        opacity: 0;
        transform: translateY(4px);
        max-height: 0;
        overflow: hidden;
        pointer-events: none;
        transition:
            opacity 1600ms ease,
            transform 1600ms ease,
            max-height 1200ms ease;
    }

    .map-text-body.is-visible {
        opacity: 1;
        transform: translateY(0);
        max-height: 1000px;
        pointer-events: auto;
    }

    /* Ceremony subtitle: sizing + animation */
    .scene--ceremony .map-text-header .scene-subtitle--inline {
        margin-top: 1.25rem;
        /* small gap under title */
        margin-bottom: 0.8rem;
        /* space before bullets/body */
        font-size: 0.98rem;
        /* a touch above body size */
        font-weight: 500;
        /* semi-bold so it feels like a subheading */
        color: #5b4f47;
        /* slightly darker than text-muted */

        /* keep the existing animation */
        opacity: 0;
        transform: translateY(8px);
        animation: ceremony-subtitle-in 1500ms ease-out forwards;
        animation-delay: 2.7s;
    }

    /* bullets that feel more scribbled / inline */
    .scene--ceremony .map-text ul {
        list-style: none;
        padding-left: 0;
        margin-top: 0.95rem;
    }

    .scene--ceremony .map-text li {
        position: relative;
        padding-left: 1.1rem;
        padding-right: 0.3rem;
        /* new: keeps long lines off the very edge */
        margin-bottom: 0.32rem;
        line-height: 1.7;
    }

    .scene--ceremony .map-text li::before {
        content: "•";
        position: absolute;
        left: 0;
        top: 0.1rem;
        color: var(--accent-dark);
        font-size: 0.9rem;
    }

    .map-buttons {
        margin-top: 0.7rem;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.45rem 0.95rem;
        border-radius: 999px;
        border: none;
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
        background: var(--accent);
        color: #fff;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    }

    .btn.secondary {
        background: #fff;
        color: var(--accent-dark);
        border: 1px solid var(--border-soft);
        box-shadow: none;
    }
}

/* River markers:
   keep old SVG sprite support for West,
   add new HTML marker system for Ceremony */
.map-river-carrier {
    overflow: visible;
}

.map-river-frame {
    overflow: visible;
    pointer-events: none;
    filter: none;
}

/* Hidden SVG geometry used only for path math in Ceremony */
.map-route-geometry {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 0;
}

.map-route-geometry path {
    fill: none;
    stroke: none;
}

/* Ceremony route progressive reveal groups (real PNG segments, no clip-path guessing) */
.map-route-group {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 1;
    pointer-events: none;
    z-index: 2;
}

.map-route-segment {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    opacity: 0;
    pointer-events: none;
}

/* Base fade for each segment */
.map-route-group.map-overlay--on .map-route-segment {
    animation: route-segment-fade 220ms ease-out forwards;
}

/* Stagger timing for all ceremony route groups */
.map-route-group.map-overlay--on .map-route-segment:nth-child(1) {
    animation-delay: 0ms;
}

.map-route-group.map-overlay--on .map-route-segment:nth-child(2) {
    animation-delay: 260ms;
}

.map-route-group.map-overlay--on .map-route-segment:nth-child(3) {
    animation-delay: 520ms;
}

.map-route-group.map-overlay--on .map-route-segment:nth-child(4) {
    animation-delay: 780ms;
}

.map-route-group.map-overlay--on .map-route-segment:nth-child(5) {
    animation-delay: 1040ms;
}

.map-route-group.map-overlay--on .map-route-segment:nth-child(6) {
    animation-delay: 1300ms;
}

.map-route-group.map-overlay--on .map-route-segment:nth-child(7) {
    animation-delay: 1560ms;
}

.map-route-group.map-overlay--on .map-route-segment:nth-child(8) {
    animation-delay: 1820ms;
}

.map-route-group.map-overlay--on .map-route-segment:nth-child(9) {
    animation-delay: 2080ms;
}

.map-route-group.map-overlay--on .map-route-segment:nth-child(10) {
    animation-delay: 2340ms;
}

.map-route-group.map-overlay--on .map-route-segment:nth-child(11) {
    animation-delay: 2600ms;
}

.map-route-group.map-overlay--on .map-route-segment:nth-child(12) {
    animation-delay: 2860ms;
}

.map-route-group.map-overlay--on .map-route-segment:nth-child(13) {
    animation-delay: 3120ms;
}

.map-route-group.map-overlay--on .map-route-segment:nth-child(14) {
    animation-delay: 3380ms;
}

@keyframes route-segment-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.88;
    }
}

/* New HTML River markers for Ceremony */
.map-river-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 45px;
    height: 45px;
    opacity: 0;
    pointer-events: none;
    z-index: 8;
    transform: translate3d(-9999px, -9999px, 0);
    transform-origin: 50% 50%;
    will-change: transform, opacity;
    transition: opacity 520ms ease-in-out;
    backface-visibility: hidden;
}

.map-river-marker.is-left-facing .js-river-frame {
    transform: scaleX(-1);
    transform-origin: 50% 50%;
}

.map-river-marker.is-visible {
    opacity: 1;
}

.map-river-marker .js-river-frame {
    display: block;
    width: 100%;
    height: 100%;
}

/* Keep the old placeholder R hidden */
.map-dog {
    display: none;
}

/* =========================
   SUBWAY SCENE – TRAIN ONLY
   ========================= */

/* Pin subway content towards the top instead of vertical-centre */
.scene--subway {
    align-items: flex-start;
    justify-content: center;
    padding-top: 1.4rem;
    padding-bottom: 2rem;
}

.scene--subway .scene-header {
    margin-bottom: 0.9rem;
    text-align: center;
}

.scene--subway .scene-title {
    margin: 0;
    font-size: clamp(1.7rem, 2.5vw, 2.1rem);
    letter-spacing: 0.11em;
    text-transform: uppercase;
    line-height: 1.08;
    color: #2c2723;
}

.scene--subway .scene-subtitle {
    margin-top: 1.25rem;
    margin-bottom: 0;
    font-size: 0.98rem;
    font-weight: 500;
    color: #5b4f47;
}

.scene--subway .scene-inner {
    width: 100%;
    max-width: min(1600px, 100vw - 40px);
    grid-template-rows: auto auto auto;
    gap: 0.2rem 0;
}

/* Layout wrapper for the strip + text */
.subway-layout {
    margin-top: -1rem;
    display: grid;
    grid-template-rows: auto minmax(190px, auto);
    row-gap: 1rem;
    align-content: start;
}

/* Train-only strip – no big black card */
.subway-strip {
    position: relative;
    width: 100%;
    min-height: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
}

.subway-strip-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* train centred */
    padding: 0;
    gap: 0;
}

/* Hide the station walls entirely */
.scene--subway .subway-station {
    display: none;
}

/* Track area that the train sits in */
.subway-track {
    position: relative;
    flex: 0 1 auto;
    max-width: min(1100px, calc(100vw - 4rem));
    padding: 0.8rem 0 1.2rem;
    background: transparent;
    overflow: visible;
    border-radius: 0;
}

/* Kill the diagonal “TV static” background */
.subway-track-bg {
    display: none;
}

/* Train container – JS handles the motion now */
.subway-train-car {
    position: relative;
    inset: auto;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

/* Size the train nicely within the strip */
.subway-train-car__image {
    max-width: min(86%, 960px);
    height: auto;
    display: block;
}

/* TEXT UNDERNEATH – reuse map-text, just tweak margins */

.subway-text {
    font-size: 0.93rem;
    line-height: 1.62;
    margin-top: 0.2rem;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.4rem 0;
    color: #5b4f47;
}

/* Make the subway text card a bit narrower + centred */
.scene--subway .map-text,
.scene--subway .subway-text {
    max-width: 980px;
    width: min(980px, 92vw);
    min-height: 190px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.subway-text ul {
    margin-top: 0.6rem;
}

.subway-text li {
    margin-bottom: 0.3rem;
}

/* Keep the subway text area stable so nothing jumps upward */
.scene--subway .subway-text {
    min-height: 210px;
}

/* Bottom bullet block should not collapse/grow like the normal map-text-body blocks */
.scene--subway .subway-text-body--bottom {
    opacity: 1;
    transform: none;
    max-height: none;
    overflow: visible;
    pointer-events: auto;
    margin-top: 0.8rem;
}

/* Bullet list spacing */
.scene--subway .subway-bullet-list {
    margin: 0.6rem 0 0;
    padding-left: 1.2rem;
}

/* Each bullet is hidden visually at first, but still keeps its layout space */
.scene--subway .subway-bullet {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 900ms ease, transform 900ms ease;
}

/* Fade each bullet in independently */
.scene--subway .subway-bullet.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Simple mobile tweak so the strip doesn’t feel cramped */
@media (max-width: 780px) {
    .subway-strip-inner {
        flex-direction: column;
        align-items: center;
    }

    .subway-track {
        width: 100%;
        padding: 1.1rem 0;
    }

    .subway-train-car__image {
        max-width: 95%;
    }

    .scene--subway .scene-subtitle {
        margin-top: 1.1rem;
        font-size: 0.94rem;
    }

    .scene--subway .subway-text {
        font-size: 0.91rem;
        line-height: 1.6;
    }

    .scene--subway .scene-footer {
        padding-top: 0.35rem;
    }
}

/* =========================
   STATIC PAGE SCENES + OVERVIEW
   ========================= */

:root {
    --page-card-width: min(1080px, calc(100vw - 3rem));
    --page-card-height: 660px;
    --page-card-radius: 28px;
    --page-card-bg: rgba(255, 255, 255, 0.975);
    --page-card-border: rgba(229, 223, 219, 0.94);
    --page-card-shadow: 0 12px 34px rgba(44, 39, 35, 0.045);
}

.overview-background-art,
.details-background-art,
.rsvp-background-art {
    display: none;
}

.static-pages-background-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    mix-blend-mode: multiply;
    transition: opacity 260ms ease;
}

.shell.shell--static-pages .static-pages-background-art {
    opacity: 0.56;
}

.scene--overview,
.scene--details,
.scene--rsvp {
    align-items: flex-start;
    justify-content: center;
    padding-top: 1.4rem;
    padding-bottom: 2rem;
    overflow: hidden;
}

.scene--overview .scene-inner,
.scene--details .scene-inner,
.scene--rsvp .scene-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    height: auto;
    grid-template-rows: auto auto auto;
    justify-items: center;
    gap: 0;
    isolation: isolate;
}

.scene--overview .scene-inner::before,
.scene--details .scene-inner::before,
.scene--rsvp .scene-inner::before,
.scene--rsvp .scene-inner::after,
.overview-layout::before,
.rsvp-form::before {
    content: none;
}

.scene--overview .scene-inner>*,
.scene--details .scene-inner>*,
.scene--rsvp .scene-inner>* {
    position: relative;
    z-index: 1;
}

.scene--overview .scene-header,
.scene--details .scene-header,
.scene--rsvp .scene-header {
    width: var(--page-card-width);
    max-width: calc(100vw - 3rem);
    margin: 0 auto 1rem;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.scene--overview .scene-kicker,
.scene--details .scene-kicker,
.scene--rsvp .scene-kicker {
    margin: 0 0 0.45rem;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.scene--overview .scene-kicker {
    color: #8a8078;
}

.scene--details .scene-kicker {
    color: var(--accent-dark);
}

.scene--rsvp .scene-kicker {
    color: #8a8078;
}

.scene--overview .scene-title,
.scene--details .scene-title,
.scene--rsvp .scene-title {
    margin: 0;
    font-size: clamp(1.7rem, 2.5vw, 2.1rem);
    letter-spacing: 0.11em;
    text-transform: uppercase;
    line-height: 1.08;
    color: #2c2723;
}

.scene--overview .scene-subtitle,
.scene--details .scene-subtitle,
.scene--rsvp .scene-subtitle {
    margin: 1.05rem 0 0;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.55;
    color: #5b4f47;
    max-width: 44rem;
}

.overview-layout,
.details-body,
.rsvp-body {
    width: var(--page-card-width);
    height: var(--page-card-height);
    margin: 0 auto;
    box-sizing: border-box;
    background: var(--page-card-bg);
    border: 1px solid var(--page-card-border);
    border-radius: var(--page-card-radius);
    box-shadow: var(--page-card-shadow);
    overflow: hidden;
}

@media (min-width: 901px) {

    .scene--overview .scene-header,
    .scene--details .scene-header,
    .scene--rsvp .scene-header {
        min-height: 126px;
    }
}

/* =========================
   OVERVIEW SCENE
   ========================= */

.overview-layout {
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    column-gap: 2rem;
    align-items: center;
    padding: 2rem 2.2rem 1.8rem;
}

.overview-map-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.overview-map-frame {
    position: relative;
    width: min(100%, 420px);
    aspect-ratio: 3 / 4;
    border-radius: 2rem;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(223, 216, 210, 0.94);
    box-shadow:
        0 8px 20px rgba(44, 39, 35, 0.04),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.overview-map-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(1.02) contrast(0.94) sepia(0.10) saturate(0.88);
}

.overview-park-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.overview-text {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.2rem 0 0;
    max-width: 540px;
    color: #5b4f47;
    font-size: 0.98rem;
    line-height: 1.75;
    align-self: center;
}

.overview-text p {
    margin: 0 0 1rem;
}

.overview-notes {
    margin-top: 1rem;
}

.overview-map-legend {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.8rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.overview-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
}

.overview-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    display: inline-block;
}

.overview-legend-dot--ceremony {
    background: #c3a3cf;
}

.overview-legend-dot--dinner {
    background: #e38a7a;
}

.overview-intro {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    :root {
        --page-card-width: min(1080px, calc(100vw - 2rem));
        --page-card-radius: 22px;
    }

    .scene--overview .scene-header,
    .scene--details .scene-header,
    .scene--rsvp .scene-header {
        width: var(--page-card-width);
    }

    .overview-layout {
        grid-template-columns: 1fr;
        row-gap: 1.4rem;
        column-gap: 0;
        padding: 1.2rem 1rem 1rem;
    }

    .overview-layout,
    .details-body,
    .rsvp-body {
        height: auto;
    }

    .overview-map-frame {
        width: min(100%, 420px);
        aspect-ratio: 4 / 5;
    }

    .overview-text {
        max-width: none;
        text-align: center;
    }

    .timeline {
        max-width: 540px;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }
}

/* Overview timeline */

.timeline {
    list-style: none;
    padding: 0;
    margin: 0.8rem 0 0;
    border-left: 2px solid rgba(227, 138, 122, 0.28);
}

.timeline li {
    padding-left: 1rem;
    margin-bottom: 0.7rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.65;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 0.42rem;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(227, 138, 122, 0.62);
}

.scene-footer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Fixed bottom nav */

.scene-nav-fixed {
    position: fixed;
    bottom: 1.8rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    display: inline-flex;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
}

.scene-nav-fixed.is-hidden-on-intro {
    opacity: 0;
    pointer-events: none;
}

.nav-chip {
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    padding: 0.15rem 0.65rem;
    font-size: 0.78rem;
    cursor: pointer;
    color: var(--text-muted);
    white-space: nowrap;
}

.nav-chip:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
    background: rgba(255, 255, 255, 0.9);
}

.nav-chip.is-current {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

@media (max-width: 780px) {
    .scene {
        padding: 1.25rem 1rem 1.75rem;
    }

    /* Ceremony: don’t use the full-bleed desktop padding on phones */
    .scene--ceremony {
        padding: 1.25rem 1rem 1.75rem;
        align-items: flex-start;
        justify-content: center;
    }

    .ceremony-replay-btn {
        bottom: 4.6rem;
        /* a hair higher to clear the nav chips on phones */
        right: 1.1rem;
        /* matches mobile side padding */
    }

    .scene-inner {
        grid-template-rows: auto 1fr auto;
    }

    .scene--intro .scene-inner {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        min-height: 100%;
        padding: clamp(1.1rem, 4.4vw, 1.45rem) 1rem clamp(1.25rem, 4.6vw, 1.65rem);
        gap: 0;
    }

    .intro-top {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: clamp(0.55rem, 2vw, 0.75rem);
        width: 100%;
    }

    .intro-names {
        text-align: center;
    }

    .intro-names h1 {
        font-size: clamp(2.2rem, 11.2vw, 3rem);
        letter-spacing: clamp(0.11em, 0.5vw, 0.14em);
        line-height: 0.97;
    }

    .intro-chip {
        margin-bottom: clamp(0.45rem, 1.8vw, 0.65rem);
        padding: 0.26rem 0.78rem;
        font-size: clamp(0.72rem, 3vw, 0.78rem);
    }

    .intro-subtitle {
        max-width: min(21.5rem, 92vw);
        margin: clamp(0.35rem, 1.5vw, 0.5rem) auto 0;
        font-size: clamp(0.92rem, 3.8vw, 0.98rem);
        line-height: 1.42;
    }

    .intro-hero {
        align-self: auto;
        margin-top: clamp(0.2rem, 1vh, 0.4rem);
        margin-bottom: clamp(0.75rem, 3.2vh, 1.2rem);
    }

    .intro-dog {
        width: clamp(88px, 24vw, 104px);
        transform: none;
    }

    .intro-copy {
        width: 100%;
        max-width: min(23rem, 92vw);
        text-align: center;
        margin: clamp(1.5rem, 4.2vh, 1.8rem) auto 0;
        transform: none;
        font-size: clamp(0.91rem, 3.7vw, 0.97rem);
        line-height: 1.62;
    }

    .intro-copy p {
        margin: 0 0 clamp(0.9rem, 3vw, 1.15rem);
    }

    .intro-copy p:last-child {
        margin-bottom: 0;
    }

    .intro-support {
        position: static;
        transform: none;
        width: 100%;
        max-width: min(23rem, 92vw);
        margin: auto auto clamp(0.9rem, 3.5vh, 1.4rem);
        align-self: auto;
        padding-top: clamp(0.95rem, 4vh, 1.5rem);
    }

    .intro-greeting {
        margin-top: 0;
        font-size: clamp(0.84rem, 3.3vw, 0.9rem);
        line-height: 1.34;
    }

    .intro-jump {
        margin-top: clamp(0.8rem, 3vw, 1rem);
        font-size: clamp(0.77rem, 3vw, 0.82rem);
    }

    .intro-jump-label {
        display: block;
        margin: 0 0 0.38rem;
    }

    .intro-jump-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(0.38rem, 1.8vw, 0.5rem) clamp(0.45rem, 2vw, 0.65rem);
        width: min(100%, clamp(16.5rem, 82vw, 19rem));
        margin: 0.6rem auto 0;
        justify-items: stretch;
    }

    .jump-chip {
        width: 100%;
        min-width: 0;
        padding: 0.34rem 0.45rem;
        font-size: clamp(0.71rem, 2.9vw, 0.76rem);
        line-height: 1.15;
        box-shadow: none;
    }

    .intro-reset {
        margin-top: clamp(0.65rem, 2.8vw, 0.9rem);
        font-size: clamp(0.74rem, 2.9vw, 0.79rem);
    }

    /* default map layout = one column on mobile */
    .map-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    /* Ceremony: still one column, but we give the map a bit less height */
    .scene--ceremony .map-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Map gets ~50–55% of the viewport height on phones */
    .map-visual {
        height: 50vh;
    }

    .scene--ceremony .map-visual {
        height: 52vh;
        /* ≈ 50–50 split map:text */
    }

    /* Let the text take the full width below the map */
    .scene--ceremony .map-text {
        max-width: none;
    }

    .map-text {
        font-size: 0.9rem;
    }

    .scene-nav-fixed {
        bottom: 2.1rem;
        font-size: 0.76rem;
    }

    .map-text-footer--ceremony {
        justify-content: center;
        /* center the icon on phones */
        /* keep margin-top: auto from the main rule so it stays at the bottom */
        padding-top: 1.1rem;
    }

    .map-text-footer--west {
        justify-content: center;
        padding-top: 1.1rem;
    }
}

@media (max-width: 780px) {

    .scene--ceremony {
        padding:
            0.68rem 0.72rem calc(env(safe-area-inset-bottom, 0px) + 2.2rem);
        align-items: flex-start;
        justify-content: center;
    }

    .scene--ceremony .scene-inner {
        height: 100%;
        grid-template-rows: auto 1fr;
        gap: 0.34rem;
    }

    .scene--ceremony .map-layout {
        gap: 0.34rem;
        align-content: start;
    }

    .scene--ceremony .map-visual {
        height: clamp(270px, 41svh, 348px);
        min-height: 270px;
    }

    .scene--ceremony .map-text {
        max-width: none;
        min-height: 0;
        padding: 0.14rem 0 0;
        font-size: clamp(0.79rem, 2.95vw, 0.88rem);
        line-height: 1.46;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .scene--ceremony .map-text-header {
        margin-bottom: 0.42rem;
    }

    .scene--ceremony .map-text-header .scene-title--inline {
        font-size: clamp(1.02rem, 5vw, 1.22rem);
        line-height: 1.04;
        letter-spacing: 0.05em;
    }

    .scene--ceremony .map-text-header .scene-subtitle--inline {
        margin-top: 0.36rem;
        margin-bottom: 0.34rem;
        font-size: clamp(0.76rem, 2.9vw, 0.88rem);
        line-height: 1.2;
    }

    .scene--ceremony .map-text-body {
        opacity: 0;
        transform: translateY(4px);
        max-height: 0;
        overflow: hidden;
        pointer-events: none;
        transition:
            opacity 320ms ease,
            transform 320ms ease,
            max-height 320ms ease;
    }

    .scene--ceremony .map-text-body.is-visible {
        opacity: 1;
        transform: translateY(0);
        max-height: 48rem;
        pointer-events: auto;
    }

    .scene--ceremony .map-text p {
        margin: 0 0 0.38rem;
    }

    .scene--ceremony .map-text ul {
        list-style: none;
        padding-left: 0;
        margin: 0.12rem 0 0;
    }

    .scene--ceremony .map-text li {
        position: relative;
        padding-left: 0.78rem;
        margin-bottom: 0.34rem;
        line-height: 1.46;
    }

    .scene--ceremony .map-text li::before {
        content: "•";
        position: absolute;
        left: 0;
        top: 0.03rem;
        color: var(--accent-dark);
        font-size: 0.68rem;
    }

    .scene--ceremony .subway-badge-group {
        gap: 0.04rem;
    }

    .scene--ceremony .subway-badge {
        width: 0.84rem;
        height: 0.84rem;
        font-size: 0.48rem;
    }

    /* Hide replay / skip on mobile only */
    .map-text-footer--ceremony {
        display: none;
    }

    /* Mobile nav */
    .scene-nav-fixed {
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        transform: none;
        justify-content: center;
        gap: 0.16rem;
        padding:
            0.24rem 0.32rem calc(0.24rem + env(safe-area-inset-bottom, 0px));
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        overflow: hidden;
    }

    .nav-chip {
        flex: 0 0 auto;
        min-width: 3.8rem;
        padding: 0.13rem 0.38rem;
        font-size: clamp(0.64rem, 2.2vw, 0.72rem);
        line-height: 1.18;
    }

    .nav-chip.is-mobile-nav-hidden {
        display: none;
    }
}

@media (max-width: 360px) {
    .nav-chip {
        min-width: 3.3rem;
        padding: 0.12rem 0.3rem;
        font-size: 0.64rem;
    }
}

@media (max-width: 780px) and (max-height: 860px) {
    .scene--intro {
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        align-items: flex-start;
    }

    .scene--intro .scene-inner {
        height: auto;
        min-height: 100svh;
        justify-content: flex-start;
        padding-top: clamp(1rem, 4vh, 1.8rem);
        padding-bottom: calc(6.4rem + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 780px) and (max-height: 760px) {
    .intro-names h1 {
        font-size: clamp(2rem, 10.4vw, 2.7rem);
    }

    .intro-dog {
        width: clamp(78px, 21vw, 92px);
    }

    .intro-copy {
        font-size: 0.88rem;
        line-height: 1.56;
    }

    .intro-copy p {
        margin-bottom: 0.82rem;
    }

    .intro-support {
        margin-top: 0.75rem;
    }

    .intro-jump-buttons {
        width: min(100%, 17rem);
    }
}

/* CEREMONY DESKTOP LAYOUT – map full-bleed left, fixed text width on right */
@media (min-width: 900px) {

    /* 1) No outer padding at all on the ceremony scene */
    .scene--ceremony {
        padding: 2.4rem 1.1rem 1.4rem 0;
        /* top | right | bottom | left  */
        align-items: stretch;
        justify-content: flex-start;
    }

    .scene--ceremony .scene-inner {
        max-width: none;
        width: 100%;
        height: 100vh;
        grid-template-rows: 1fr;
        row-gap: 0;
    }

    /* 2) Map + text columns:
       - map takes the remaining space (1fr)
       - text column can shrink on smaller windows, but never wider than 540px
     */
    .scene--ceremony .map-layout {
        grid-template-columns: minmax(0, 1fr) clamp(320px, 38vw, 540px);
        column-gap: 3.5rem;
        align-items: stretch;
        height: 100%;
        padding-right: 3.7rem;
        /* margin around text column only */
    }

    .scene--ceremony .map-visual {
        height: 100%;
        max-height: none;
    }

    .scene--ceremony .map-text {
        max-width: none;
        width: clamp(320px, 38vw, 540px);
        height: 100%;
        display: flex;
        flex-direction: column;
        margin: 0;
        padding: 2.4rem 0 1.4rem 0;
    }
}

/* WEST DESKTOP LAYOUT – mirrored ceremony: text left, full-bleed map right */
@media (min-width: 900px) {
    .scene--west {
        padding: 0 0 1.4rem 1.1rem;
        align-items: stretch;
        justify-content: flex-end;
    }

    .scene--west .scene-inner {
        max-width: none;
        width: 100%;
        height: 100vh;
        grid-template-rows: 1fr;
        row-gap: 0;
    }

    .scene--west .map-layout {
        grid-template-columns: clamp(320px, 38vw, 540px) minmax(0, 1fr);
        column-gap: 3.5rem;
        align-items: stretch;
        height: 100%;
        padding-left: 3.7rem;
    }

    .scene--west .map-text {
        width: clamp(320px, 38vw, 540px);
        max-width: none;
        height: 100%;
        display: flex;
        flex-direction: column;
        margin: 0;
        padding: 2.4rem 0 1.4rem 0;
    }

    .scene--west .map-visual {
        height: 100%;
        max-height: none;
    }
}

footer.global-footer {
    position: fixed;
    bottom: 0.4rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.76rem;
    color: var(--text-muted);
    pointer-events: none;
    text-align: center;
}

/* Guest gate */

.gate-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    overflow: hidden;
}

.gate-overlay__card {
    position: relative;
    width: 100vw;
    max-width: none;
    height: 100vh;
    padding: 0;
    text-align: center;
    background: transparent;
    border: none;
    box-shadow: none;
    display: block;
}

.gate-scene {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100vh;
    min-height: 0;
    margin: 0;
    overflow: hidden;
}

.gate-art {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.gate-art-bg,
.gate-pops,
.gate-art-mask,
.gate-pop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.gate-art-bg,
.gate-art-mask,
.gate-pop {
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
    user-select: none;
}

.gate-art-bg {
    z-index: 1;
    opacity: 0;
    transition: opacity 700ms ease-out;
}

.gate-pops {
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

.gate-pop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
    user-select: none;
    opacity: 1;
    transform-origin: center center;
    will-change: transform;
}

/* Base hidden positions */
.gate-pop--up {
    transform: translateY(24px);
}

.gate-pop--left {
    transform: translateX(22px);
}

.gate-pop--right {
    transform: translateX(-22px);
}

.gate-pop--diag-up-right {
    transform: translate(-16px, 16px);
}

.gate-pop--diag-up-left {
    transform: translate(16px, 16px);
}

.gate-pop.is-active {
    animation-duration: 1800ms;
    animation-timing-function: ease-in-out;
    animation-fill-mode: both;
}

.gate-pop--up.is-active {
    animation-name: gate-pop-up;
}

.gate-pop--left.is-active {
    animation-name: gate-pop-left;
}

.gate-pop--right.is-active {
    animation-name: gate-pop-right;
}

.gate-pop--diag-up-right.is-active {
    animation-name: gate-pop-diag-up-right;
}

.gate-pop--diag-up-left.is-active {
    animation-name: gate-pop-diag-up-left;
}

@keyframes gate-pop-up {
    0% {
        transform: translateY(24px);
    }

    22% {
        transform: translateY(0);
    }

    68% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(24px);
    }
}

@keyframes gate-pop-left {
    0% {
        transform: translateX(22px);
    }

    22% {
        transform: translateX(0);
    }

    68% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(22px);
    }
}

@keyframes gate-pop-right {
    0% {
        transform: translateX(-22px);
    }

    22% {
        transform: translateX(0);
    }

    68% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-22px);
    }
}

@keyframes gate-pop-diag-up-right {
    0% {
        transform: translate(-16px, 16px);
    }

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

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

    100% {
        transform: translate(-16px, 16px);
    }
}

@keyframes gate-pop-diag-up-left {
    0% {
        transform: translate(16px, 16px);
    }

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

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

    100% {
        transform: translate(16px, 16px);
    }
}

.gate-art-mask {
    z-index: 3;
    opacity: 0;
    visibility: hidden;
}

.gate-title-art {
    position: absolute;
    top: clamp(22px, 3.2vw, 52px);
    left: clamp(42px, 5vw, 88px);
    width: clamp(210px, 29vw, 500px);
    height: auto;
    display: block;
    z-index: 4;
    pointer-events: none;
    user-select: none;
    opacity: 0;
    visibility: hidden;
}

@keyframes gate-title-fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gate-title-float {

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

    50% {
        transform: translateY(-4px);
    }
}

.gate-overlay.gate-overlay--bg-ready .gate-pops[hidden],
.gate-overlay.gate-overlay--bg-ready .gate-art-mask[hidden],
.gate-overlay.gate-overlay--bg-ready .gate-title-art[hidden] {
    display: block;
}

.gate-overlay.gate-overlay--bg-ready .gate-art-bg {
    opacity: 1;
}

.gate-overlay.gate-overlay--bg-ready .gate-pops,
.gate-overlay.gate-overlay--bg-ready .gate-art-mask {
    opacity: 1;
    visibility: visible;
}

.gate-overlay.gate-overlay--bg-ready .gate-title-art {
    visibility: visible;
    animation:
        gate-title-fade-in 900ms ease-out forwards,
        gate-title-float 3.8s ease-in-out infinite;
    animation-delay: 700ms, 1.5s;
}

.gate-envelope {
    --gate-env-width: 292px;
    --gate-env-height: 164px;
    --gate-heart-color: #d9979d;

    position: absolute;
    left: 50%;
    top: 22%;
    width: var(--gate-env-width);
    height: var(--gate-env-height);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 20px);
    z-index: 5;
    perspective: 1200px;
    overflow: hidden;
}

.gate-envelope.is-open {
    overflow: visible;
}

.gate-envelope.is-visible {
    opacity: 1;
    pointer-events: auto;
    animation: gate-envelope-arrive 1600ms cubic-bezier(0.2, 0.82, 0.22, 1) forwards;
}

@keyframes gate-envelope-arrive {
    0% {
        opacity: 0;
        transform: translate(calc(-50% + 22px), -120px) rotate(-7deg) scale(0.9);
    }

    60% {
        opacity: 1;
        transform: translate(calc(-50% - 5px), -8px) rotate(1.6deg) scale(1.01);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, 0) rotate(0deg) scale(1);
    }
}

.gate-envelope-shell {
    position: relative;
    width: 100%;
    height: 100%;
    isolation: isolate;
}

/* =========================
   ENVELOPE BACK + FRONT POCKET (SVG)
   ========================= */

.gate-envelope-back {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.gate-envelope-back-art {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
}

.gate-envelope-front-pocket {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.gate-envelope-front-pocket-art {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
}

/* =========================
   LETTER / INVITATION CARD
   ========================= */

.gate-envelope-letter {
    position: absolute;
    width: 95.5%;
    height: 99.5%;
    left: 2.25%;
    top: 0.5%;
    z-index: 1;
    transform: translateY(0);
    overflow: visible;
}

.gate-envelope:not(.is-open) .gate-envelope-letter {
    transform: translateY(0);
    transition: transform .8s ease, z-index 1s;
    z-index: 1;
    clip-path: inset(5px 0 3px 0);
    -webkit-clip-path: inset(5px 0 3px 0);
}

.gate-envelope.is-open .gate-envelope-letter {
    transform: translateY(calc(var(--gate-env-height) * -0.66));
    transition: transform .8s 1.15s ease, z-index .9s;
    z-index: 3;
    clip-path: none;
    -webkit-clip-path: none;
}

.gate-envelope-letter-card {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
}

.gate-envelope-letter-art {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    user-select: none;
    pointer-events: none;
    display: block;
}

.gate-invite-art {
    position: relative;
    z-index: 1;
    display: block;
    width: min(124px, 48%);
    height: auto;
    margin: 14px auto 8px;
    pointer-events: none;
    user-select: none;
}

.gate-envelope-form {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.46rem;
    padding: 0 16px 14px;
}

.gate-envelope .gate-overlay__input {
    width: 90%;
    max-width: 198px;
    padding: 0.5rem 0.78rem;
    border-radius: 999px;
    border: 1px solid rgba(211, 201, 190, 0.95);
    background: rgba(255, 255, 255, 0.92);
    font-size: 0.82rem;
    color: #4d433c;
    text-align: center;
    outline: none;
    box-shadow: none;
}

.gate-envelope .gate-overlay__input:focus {
    border-color: rgba(184, 170, 156, 0.95);
    box-shadow: 0 0 0 1px rgba(214, 204, 194, 0.8);
}

.gate-envelope .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    padding: 0.32rem 0.74rem;
    border-radius: 999px;
    border: 1px solid #ddcdca;
    background: linear-gradient(180deg, #fffdfc 0%, #f8f1ef 100%);
    color: #735f5a;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow:
        0 2px 0 rgba(221, 203, 198, 0.7),
        0 5px 10px rgba(98, 84, 80, 0.05);
    transition:
        transform 140ms ease,
        box-shadow 140ms ease,
        background 140ms ease,
        border-color 140ms ease;
}

.gate-envelope-form .btn {
    margin-top: 4px;
}

.gate-envelope .btn:hover,
.gate-envelope .btn:focus-visible {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #fffefe 0%, #faf4f2 100%);
    border-color: #d6bfba;
    box-shadow:
        0 2px 0 rgba(221, 203, 198, 0.65),
        0 7px 12px rgba(98, 84, 80, 0.06);
    color: #685450;
    outline: none;
}

.gate-overlay__error {
    display: none;
}

/* =========================
   ROTATING FLAP (FLAP-ONLY SVG FRONT/BACK)
   ========================= */

.gate-envelope-flap {
    position: absolute;
    top: 0;
    left: 2px;
    width: 98.6%;
    height: calc(var(--gate-env-height) * 0.625);
    z-index: 5;
    pointer-events: none;

    transform-origin: 50% 0%;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;

    transform: rotateZ(0deg) rotateX(0deg);
    transition: transform 1s 1.05s ease, z-index .9s;

    backface-visibility: visible;
    -webkit-backface-visibility: visible;
}

.gate-envelope.is-open .gate-envelope-flap {
    transform: translateY(5px) rotateZ(-0.6deg) rotateX(180deg);
    transition: transform .8s ease, z-index .9s;
    z-index: 2;
}

.gate-envelope-flap-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    user-select: none;
    pointer-events: none;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-origin: 50% 0%;
}

.gate-envelope-flap-face--front {
    transform: rotateX(0deg);
}

.gate-envelope-flap-face--back {
    transform: rotateX(180deg) scaleY(-1);
}

/* HEARTS */
.gate-envelope-hearts {
    position: absolute;
    top: calc(var(--gate-env-height) / 2);
    left: 0;
    right: 0;
    z-index: 2;
    pointer-events: none;
}

.gate-heart {
    position: absolute;
    bottom: 0;
    opacity: 0;
}

.gate-heart::before,
.gate-heart::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    width: 12px;
    height: 20px;
    background: var(--gate-heart-color);
    border-radius: 12px 12px 0 0;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

.gate-heart::after {
    left: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

.gate-heart--1 {
    left: 20%;
}

.gate-heart--2 {
    left: 55%;
}

.gate-heart--3 {
    left: 10%;
}

.gate-envelope.is-open .gate-heart--1 {
    animation: gate-heart-rise-1 4s linear .65s forwards;
}

.gate-envelope.is-open .gate-heart--2 {
    animation: gate-heart-rise-2 5s linear .65s forwards;
}

.gate-envelope.is-open .gate-heart--3 {
    animation: gate-heart-rise-3 6.5s linear .65s forwards;
}

@keyframes gate-heart-rise-1 {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(.6);
    }

    10% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(40px, -260px) scale(.75);
    }
}

@keyframes gate-heart-rise-2 {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(1);
    }

    10% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(-12px, -320px) scale(1);
    }
}

@keyframes gate-heart-rise-3 {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(.8);
    }

    10% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(46px, -380px) scale(.9);
    }
}

@keyframes gate-envelope-wiggle {

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

    25% {
        transform: translateX(-4px);
    }

    50% {
        transform: translateX(4px);
    }

    75% {
        transform: translateX(-2px);
    }
}

.gate-envelope.gate-envelope--wiggle .gate-envelope-shell {
    animation: gate-envelope-wiggle 0.38s ease;
}

.gate-overlay.gate-closing {
    animation: gate-overlay-fade 0.7s 0.4s ease-in forwards;
}

@keyframes gate-overlay-fade {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.gate-overlay.gate-closing .gate-envelope {
    opacity: 0;
    transform: translate(-50%, 28px);
    transition: opacity 420ms ease, transform 420ms ease;
}

.gate-hidden {
    display: none;
}

@media (max-width: 780px) {
    .gate-overlay__card {
        height: 100vh;
        padding: 0;
    }

    .gate-scene {
        height: 100vh;
        min-height: 0;
    }

    .gate-art-bg,
    .gate-art-mask,
    .gate-pop {
        object-position: 10% 58%;
    }

    .gate-title-art {
        top: 34px;
        left: calc(50% - 105px);
        width: 210px;
    }

    .gate-envelope {
        --gate-env-width: 198px;
        --gate-env-height: 110px;
        top: 31%;
    }

    .gate-envelope.is-open .gate-envelope-letter {
        transform: translateY(calc(var(--gate-env-height) * -0.72));
    }

    .gate-invite-art {
        width: min(90px, 44%);
        margin: 6px auto 6px;
    }

    .gate-envelope-form {
        gap: 0.28rem;
        padding: 0 8px 8px;
        transform: translateY(-2px);
    }

    .gate-envelope .gate-overlay__input {
        max-width: 150px;
        padding: 0.4rem 0.58rem;
        font-size: 0.72rem;
    }

    .gate-envelope .btn {
        min-width: 96px;
        padding: 0.22rem 0.56rem;
        font-size: 0.62rem;
        line-height: 1.1;
    }

    .gate-envelope-form .btn {
        margin-top: 0;
    }
}

/* The canvas that moves (map image + overlays together) */
.map-canvas {
    position: relative;
    display: inline-block;
    transform-origin: 50% 50%;
}

/* Smooth fade for the W 4 + Christopher station popups */
.scene--west .map-overlay[data-overlay-id="west-popup-w4"],
.scene--west .map-overlay[data-overlay-id="west-popup-christopher"] {
    transition: opacity 500ms ease-in-out;
    /* tweak duration + easing to taste */
}

/* === GENERIC MAP OVERLAYS (ceremony + west) === */

.map-overlays {
    position: absolute;
    inset: 0;
    /* fill the map-canvas */
    pointer-events: none;
    z-index: 2;
}

/* PNG/JPG overlays or inline SVGs used as overlays */
.map-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;

    opacity: 0;
    /* slow, graceful fade-in for overlays */
    transition: opacity 1500ms ease-in-out;
}

.map-overlay--on {
    opacity: 1;
}

/* WEST: slower fade for the station layer */
.scene--west .map-overlay[data-overlay-id="west-stations"] {
    transition: opacity 1500ms ease-in-out;
}

/* WEST: pop-up labels – slightly faster than stations, but still gentle */
.scene--west .map-overlay[data-overlay-id^="west-popup-"] {
    transition: opacity 1200ms ease-in-out;
}

/* WEST: soften + delay the Bobo overlay fade-in */
.scene--west .map-overlay[data-overlay-id="west-bobo"].map-overlay--on {
    /* keep opacity = 1 from .map-overlay--on, just change timing */
    transition: opacity 1000ms ease-in-out;
    transition-delay: 3000ms;
}

/* WEST: Beat 2 coloured area overlays – extra slow, in-step with the pan */
.scene--west .map-overlay[data-overlay-id="west-bobo-area"],
.scene--west .map-overlay[data-overlay-id="west-block-bobo-w4"],
.scene--west .map-overlay[data-overlay-id="west-block-w4-park"] {
    transition: opacity 2100ms ease-in-out;
}

/* WEST: slightly soften all overlays so they sit back into the map */
/* .scene--west .map-overlay {
    /* don’t touch opacity – JS still controls visibility via .map-overlay--on */
/*    filter: saturate(0.94) contrast(0.94);
/* }

/* WEST: station popup labels – keep the blur, plus the same softening */
/*.scene--west .map-overlay[data-overlay-id^="west-popup-"] {
/*    filter: blur(0.35px) saturate(0.92) contrast(0.98);
/*}

/* WEST: keep only the moving canvas promoted */
.scene--west .map-canvas {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* WEST: overlay stack should stay flat and simple */
.scene--west .map-overlays {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    will-change: auto;
    contain: paint;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* WEST: child overlays should stay as plain 2D layers */
.scene--west .map-overlay,
.scene--west .map-route-group,
.scene--west .map-route-segment {
    top: 0;
    left: 0;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 100%;
    will-change: auto;
    object-fit: fill;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* WEST: River marker can keep its transform hint */
.scene--west .map-river-marker {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: none;
}

.scene--west .map-river-marker .js-river-frame {
    transform: none !important;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
}

/* Debug: turn OFF all West overlay softening when html has .no-west-soften */
html.no-west-soften .scene--west .map-overlay {
    filter: none !important;
}

/* SVG route overlays should size like the PNG overlays */
svg.map-overlay {
    width: 100%;
    height: 100%;
}

/* === MAP OVERLAYS (ceremony scene) === */
.scene--ceremony .map-overlays {
    position: absolute;
    inset: 0;
    /* fill the map-canvas */
    pointer-events: none;
    z-index: 2;
}

/* SVG route overlays should size like the PNG overlays */
.scene--ceremony svg.map-overlay {
    width: 100%;
    height: 100%;
}

/* Each overlay fills the same canvas as the base map */
.scene--ceremony .map-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;

    opacity: 0;
    /* slower, more graceful fade for overlays */
    transition: opacity 1500ms ease-in-out;
}

.scene--ceremony .map-overlay--on {
    opacity: 1;
}

.scene--ceremony .map-route-group {
    opacity: 1 !important;
    transition: none !important;
}

.scene--ceremony .map-route-group.map-overlay--on {
    opacity: 1 !important;
}

/* Routes: appear at full opacity immediately, no fade */
.scene--ceremony .map-overlay--route {
    transition: none;
    /* override the 1500ms opacity fade just for routes */
}

/* Soften the vector subway popups so they sit better on the hand-drawn map */
.scene--ceremony .map-overlay[data-overlay-id^="popup-"] {
    filter: blur(0.35px);
    /* tweak between ~0.3–0.7px if needed */
}

.scene--ceremony .route-reveal-path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

/* WEST: explicit overlay stacking */
.scene--west .map-overlay[data-overlay-id="west-bobo"],
.scene--west .map-overlay[data-overlay-id="west-park"] {
    z-index: 1;
}

.scene--west .map-overlay[data-overlay-id="west-bobo-area"],
.scene--west .map-overlay[data-overlay-id="west-block-bobo-w4"],
.scene--west .map-overlay[data-overlay-id="west-block-w4-park"] {
    z-index: 2;
}

.scene--west .map-overlay[data-overlay-id="west-stations"] {
    z-index: 3;
}

.scene--west .map-overlay[data-overlay-id^="west-popup-"] {
    z-index: 4;
}

.scene--west .map-river-marker {
    z-index: 7;
}

.scene--west .map-overlay[data-overlay-id^="west-bobo-sign-"] {
    z-index: 6;
}

/* WEST: geometry SVG is for path calculations only.
   Keep it present in the DOM, but completely out of visible stacking. */
.scene--west .map-route-geometry--west {
    opacity: 0 !important;
    transition: none !important;
    filter: none !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

.scene--west .map-route-geometry--west .route-reveal-path {
    fill: none !important;
    stroke: none !important;
}

/* WEST: visible PNG route groups */
.scene--west .map-route-group {
    opacity: 1 !important;
    transition: none !important;
    filter: none !important;
    pointer-events: none !important;
    z-index: 5 !important;
}

.scene--west .map-route-group .map-route-segment {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
    opacity: 0;
    pointer-events: none;
    animation: none;
}

.scene--west .map-route-group.map-overlay--on .map-route-segment {
    animation: west-route-segment-fade 180ms ease-out forwards;
}

@keyframes west-route-segment-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.88;
    }
}

/* W 4 route: 16 segments — a bit quicker */
.scene--west .west-route-w4-group.map-overlay--on .map-route-segment:nth-child(1) {
    animation-delay: 0ms;
}

.scene--west .west-route-w4-group.map-overlay--on .map-route-segment:nth-child(2) {
    animation-delay: 420ms;
}

.scene--west .west-route-w4-group.map-overlay--on .map-route-segment:nth-child(3) {
    animation-delay: 840ms;
}

.scene--west .west-route-w4-group.map-overlay--on .map-route-segment:nth-child(4) {
    animation-delay: 1260ms;
}

.scene--west .west-route-w4-group.map-overlay--on .map-route-segment:nth-child(5) {
    animation-delay: 1680ms;
}

.scene--west .west-route-w4-group.map-overlay--on .map-route-segment:nth-child(6) {
    animation-delay: 2100ms;
}

.scene--west .west-route-w4-group.map-overlay--on .map-route-segment:nth-child(7) {
    animation-delay: 2520ms;
}

.scene--west .west-route-w4-group.map-overlay--on .map-route-segment:nth-child(8) {
    animation-delay: 2940ms;
}

.scene--west .west-route-w4-group.map-overlay--on .map-route-segment:nth-child(9) {
    animation-delay: 3360ms;
}

.scene--west .west-route-w4-group.map-overlay--on .map-route-segment:nth-child(10) {
    animation-delay: 3780ms;
}

.scene--west .west-route-w4-group.map-overlay--on .map-route-segment:nth-child(11) {
    animation-delay: 4200ms;
}

.scene--west .west-route-w4-group.map-overlay--on .map-route-segment:nth-child(12) {
    animation-delay: 4620ms;
}

.scene--west .west-route-w4-group.map-overlay--on .map-route-segment:nth-child(13) {
    animation-delay: 5040ms;
}

.scene--west .west-route-w4-group.map-overlay--on .map-route-segment:nth-child(14) {
    animation-delay: 5460ms;
}

.scene--west .west-route-w4-group.map-overlay--on .map-route-segment:nth-child(15) {
    animation-delay: 5880ms;
}

.scene--west .west-route-w4-group.map-overlay--on .map-route-segment:nth-child(16) {
    animation-delay: 6300ms;
}

/* Christopher route: 7 segments — slightly earlier */
.scene--west .west-route-christopher-group.map-overlay--on .map-route-segment:nth-child(1) {
    animation-delay: 2100ms;
}

.scene--west .west-route-christopher-group.map-overlay--on .map-route-segment:nth-child(2) {
    animation-delay: 2460ms;
}

.scene--west .west-route-christopher-group.map-overlay--on .map-route-segment:nth-child(3) {
    animation-delay: 2820ms;
}

.scene--west .west-route-christopher-group.map-overlay--on .map-route-segment:nth-child(4) {
    animation-delay: 3180ms;
}

.scene--west .west-route-christopher-group.map-overlay--on .map-route-segment:nth-child(5) {
    animation-delay: 3540ms;
}

.scene--west .west-route-christopher-group.map-overlay--on .map-route-segment:nth-child(6) {
    animation-delay: 3900ms;
}

.scene--west .west-route-christopher-group.map-overlay--on .map-route-segment:nth-child(7) {
    animation-delay: 4260ms;
}

/* =========================
CEREMONY CONFETTI OVERLAY
(now just an invisible anchor for JS confetti)
========================= */

.scene--ceremony .map-overlay.map-overlay--confetti {
    position: absolute;
    pointer-events: none;
    z-index: 4;

    width: 5px;
    height: 5px;
    top: 71%;
    left: 77.7%;
    transform: translate(-50%, -50%);
}

/* No visual content from CSS anymore – the JS confetti
code will use this element's position as an anchor. */
.scene--ceremony .map-overlay.map-overlay--confetti::before {
    content: none;
}

/* Route reveal animation (uses JS-set --route-len) */
@keyframes route-reveal {
    from {
        stroke-dashoffset: var(--route-len);
    }

    to {
        stroke-dashoffset: 0;
    }
}

/* Accessibility: disable animation if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scene--ceremony .route-reveal-path {
        animation: none !important;
        stroke-dashoffset: 0 !important;
    }
}

/* Layer order: image -> overlays -> dog/controls */
.scene--ceremony .map-visual--interactive .map-image,
.scene--west .map-visual--interactive .map-image {
    position: relative;
    z-index: 1;
}

.scene--ceremony .map-visual--interactive .map-zoom-controls,
.scene--ceremony .map-visual--interactive .map-dog,
.scene--west .map-visual--interactive .map-zoom-controls,
.scene--west .map-visual--interactive .map-dog {
    position: absolute;
    z-index: 3;
}

/* CEREMONY: hard-reset any stray top padding on desktop */
@media (min-width: 900px) {
    .scene--ceremony {
        padding-top: 0;
    }

    .scene--ceremony .scene-inner,
    .scene--ceremony .map-layout {
        margin-top: 0;
        padding-top: 0;
    }
}

/* =========================
   DETAILS / Q&A SCENE
   ========================= */

.details-body {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
    padding: 1rem 1.45rem 1.1rem;
    overflow: hidden;
}

.details-intro {
    display: block;
    margin: 0 0 0.45rem;
    padding: 0 0.2rem 0.65rem;
    text-align: center;
    border-bottom: 1px solid rgba(227, 138, 122, 0.22);
}

.details-intro p {
    margin: 0;
    color: #6e635c;
    font-size: 0.93rem;
    line-height: 1.55;
}

.faq-list {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0.35rem 0 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: auto;

    /* hide scrollbar but keep scrolling */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.faq-list::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.faq-item {
    border-top: 1px solid rgba(227, 138, 122, 0.22);
}

.faq-item:first-child {
    border-top: none;
}

.faq-item:last-child {
    border-bottom: 1px solid rgba(227, 138, 122, 0.22);
}

.faq-question {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 0.98rem 2.25rem 0.98rem 0.05rem;
    font-size: clamp(1rem, 1.08vw, 1.08rem);
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.34;
    color: #3b332f;
    transition: color 140ms ease;
}

.faq-question:hover {
    color: var(--accent-dark);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 0.05rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.28rem;
    font-weight: 300;
    line-height: 1;
    color: rgba(197, 111, 97, 0.78);
    transition: color 140ms ease, transform 140ms ease;
}

.faq-item[open] .faq-question::after,
.faq-item.is-open .faq-question::after {
    content: "−";
    color: var(--accent-dark);
}

.faq-answer {
    padding: 0 2.1rem 1rem 0.05rem;
    color: #6a5f58;
    font-size: 0.91rem;
    line-height: 1.7;
}

.faq-answer p {
    margin: 0;
}

@media (max-width: 780px) {
    .details-body {
        padding: 1rem;
        min-height: 0;
        overflow: hidden;
    }

    .faq-list {
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 0.1rem;
    }

    .faq-question {
        padding: 0.95rem 2rem 0.95rem 0;
        font-size: 0.98rem;
    }

    .faq-question::after {
        right: 0;
        font-size: 1.35rem;
    }

    .faq-answer {
        padding: 0 1.4rem 0.95rem 0;
        font-size: 0.91rem;
        line-height: 1.68;
    }
}

/* =========================
   RSVP SCENE
   ========================= */

.scene--rsvp .scene-inner {
    margin: 0 auto;
}

.rsvp-body {
    margin-top: 0;
    padding: 1.85rem 2rem 1.35rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.rsvp-form {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    background: transparent;
    border-radius: 0;
    border: none;
    padding: 0;
    box-shadow: none;
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    align-content: start;
    min-height: 0;
}

.rsvp-form {
    flex: 0 0 auto;
}

.rsvp-form::before {
    content: none;
}

.rsvp-form>* {
    position: relative;
    z-index: 1;
}

.rsvp-intro {
    margin-bottom: 1rem;
}

.rsvp-intro p {
    margin: 0;
    color: #6e635c;
    line-height: 1.65;
}

.rsvp-row {
    margin-bottom: 0;
}

.rsvp-attendance-group {
    display: flex;
    flex-wrap: wrap;
    gap: 2.2rem;
    margin-top: 0.38rem;
}

.rsvp-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text-main);
}

.rsvp-label input,
.rsvp-label textarea,
.rsvp-label select {
    margin-top: 0.32rem;
}

.rsvp-input {
    width: 100%;
    border-radius: 0.9rem;
    border: 1px solid rgba(228, 210, 195, 0.82);
    padding: 0.7rem 0.85rem;
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    background: rgba(255, 255, 255, 0.42);
    color: var(--text-main);
    transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

textarea.rsvp-input {
    resize: none;
    min-height: 8.75rem;
}

.rsvp-input::placeholder {
    color: #9a8f88;
}

.rsvp-input:hover {
    border-color: rgba(227, 138, 122, 0.52);
    background: #fff;
}

.rsvp-input:focus {
    border-color: var(--accent-dark);
    box-shadow: 0 0 0 1px rgba(227, 138, 122, 0.16);
    background: rgba(255, 255, 255, 0.92);
}

.rsvp-radio {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    font-size: 0.88rem;
    font-weight: 400;
    color: #5b4f47;
    cursor: pointer;
    position: relative;
}

.rsvp-radio input {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    margin: 0;
    border: 1.5px solid rgba(199, 174, 148, 0.9);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.8);
    display: inline-grid;
    place-content: center;
    flex: 0 0 auto;
}

.rsvp-radio input::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    transform: scale(0);
    transition: transform 120ms ease;
    background: var(--accent);
}

.rsvp-radio input:checked::before {
    transform: scale(1);
}

.rsvp-radio input:focus-visible {
    outline: 2px solid rgba(227, 138, 122, 0.18);
    outline-offset: 2px;
}

.rsvp-row--actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.22rem;
    padding-top: 0.35rem;
    margin-top: 0.2rem;
}

.rsvp-row--actions .btn {
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
}

.rsvp-footnote {
    margin: 0.22rem 0 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.rsvp-status {
    margin: 0;
    min-height: 0;
    font-size: 0.82rem;
    color: var(--accent-dark);
}

.rsvp-status:empty {
    display: none;
}

.scene-footer--rsvp {
    margin: 0.55rem 0 0;
    padding-top: 0.15rem;
    text-align: center;
    font-size: 0.86rem;
    color: var(--text-muted);
}

@media (max-width: 780px) {
    .rsvp-body {
        padding: 1rem;
    }

    .rsvp-attendance-group {
        flex-direction: column;
        gap: 0.55rem;
    }

    textarea.rsvp-input {
        min-height: 7.5rem;
    }

    .scene-footer--rsvp {
        margin-top: 0.5rem;
        padding-top: 0.1rem;
    }
}

@media (max-width: 780px) {
    .scene--overview {
        padding-top: 0.72rem;
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 2.2rem);
    }

    .scene--overview .scene-inner {
        grid-template-rows: auto auto;
        gap: 0;
        justify-items: center;
    }

    .scene--overview .scene-header {
        width: min(calc(100vw - 1rem), 38rem);
        margin: 0 auto 0.52rem;
        padding: 0 0.15rem;
    }

    .scene--overview .scene-kicker {
        margin-bottom: 0.24rem;
        font-size: 0.72rem;
        letter-spacing: 0.16em;
    }

    .scene--overview .scene-title {
        font-size: clamp(1.24rem, 7.2vw, 1.72rem);
        line-height: 1.03;
        letter-spacing: 0.075em;
    }

    .scene--overview .scene-subtitle {
        margin-top: 0.58rem;
        font-size: 0.84rem;
        line-height: 1.34;
        max-width: 24rem;
    }

    .scene--overview .overview-layout {
        width: min(calc(100vw - 1rem), 38rem);
        padding: 0.88rem 0.88rem 0.92rem;
        row-gap: 0.82rem;
        column-gap: 0;
        height: auto;
    }

    .scene--overview .overview-map-frame {
        width: min(100%, 312px);
        aspect-ratio: 4 / 5;
        border-radius: 1.45rem;
    }

    .scene--overview .overview-map-legend {
        gap: 0.55rem 0.9rem;
        margin-top: 0.55rem;
        font-size: 0.72rem;
        line-height: 1.3;
    }

    .scene--overview .overview-text {
        padding: 0;
        font-size: 0.85rem;
        line-height: 1.5;
        text-align: left;
    }

    .scene--overview .overview-text p {
        margin: 0 0 0.55rem;
    }

    .scene--overview .overview-intro {
        margin-bottom: 0.42rem;
        text-align: center;
    }

    .scene--overview .timeline {
        margin-top: 0.45rem;
    }

    .scene--overview .timeline li {
        padding-left: 0.82rem;
        margin-bottom: 0.48rem;
        font-size: 0.85rem;
        line-height: 1.45;
    }

    .scene--overview .timeline li::before {
        top: 0.32rem;
        left: -5px;
        width: 7px;
        height: 7px;
    }

    .scene--overview .overview-notes {
        margin-top: 0.5rem;
    }
}

/* =========================
   STATIC PAGES – MOBILE CLEANUP
   ========================= */

@media (max-width: 780px) {

    .scene--overview,
    .scene--details,
    .scene--rsvp {
        padding: 0.6rem 0.5rem calc(env(safe-area-inset-bottom, 0px) + 2.15rem);
    }

    .scene--overview .scene-inner,
    .scene--details .scene-inner,
    .scene--rsvp .scene-inner {
        width: 100%;
        max-width: none;
        grid-template-rows: auto auto;
        gap: 0;
        justify-items: stretch;
    }

    .scene--overview .scene-header,
    .scene--details .scene-header,
    .scene--rsvp .scene-header {
        width: 100%;
        max-width: none;
        margin: 0 auto 0.45rem;
        padding: 0 0.15rem;
    }

    .scene--overview .scene-kicker,
    .scene--details .scene-kicker,
    .scene--rsvp .scene-kicker {
        margin-bottom: 0.2rem;
        font-size: 0.7rem;
        letter-spacing: 0.14em;
    }

    .scene--overview .scene-title,
    .scene--details .scene-title,
    .scene--rsvp .scene-title {
        font-size: clamp(1.18rem, 6.6vw, 1.58rem);
        line-height: 1.02;
        letter-spacing: 0.065em;
    }

    .scene--overview .scene-subtitle,
    .scene--details .scene-subtitle,
    .scene--rsvp .scene-subtitle {
        margin-top: 0.5rem;
        font-size: 0.8rem;
        line-height: 1.3;
        max-width: 22rem;
    }

    /* OVERVIEW */

    .scene--overview .overview-layout {
        width: 100%;
        max-width: none;
        margin: 0 auto;
        padding: 0.72rem 0.72rem 0.78rem;
        row-gap: 0.65rem;
        column-gap: 0;
        height: auto;
        min-height: 0;
    }

    .scene--overview .overview-map-frame {
        width: min(100%, 286px);
        aspect-ratio: 4 / 5;
        border-radius: 1.3rem;
    }

    .scene--overview .overview-map-legend {
        gap: 0.45rem 0.8rem;
        margin-top: 0.45rem;
        font-size: 0.68rem;
        line-height: 1.25;
    }

    .scene--overview .overview-text {
        padding: 0;
        font-size: 0.8rem;
        line-height: 1.42;
        text-align: left;
    }

    .scene--overview .overview-intro {
        margin: 0 0 0.35rem;
        text-align: center;
    }

    .scene--overview .overview-text p {
        margin: 0 0 0.42rem;
    }

    .scene--overview .timeline {
        margin-top: 0.38rem;
    }

    .scene--overview .timeline li {
        padding-left: 0.76rem;
        margin-bottom: 0.4rem;
        font-size: 0.8rem;
        line-height: 1.38;
    }

    .scene--overview .timeline li::before {
        top: 0.28rem;
        left: -5px;
        width: 6px;
        height: 6px;
    }

    .scene--overview .overview-notes {
        margin-top: 0.38rem;
    }

    /* FAQ */

    .scene--details .details-body {
        width: 100%;
        max-width: none;
        margin: 0 auto;
        padding: 0.78rem 0.88rem 0.88rem;
        min-height: 0;
        height: auto;
    }

    .scene--details .details-intro {
        margin: 0 0 0.16rem;
        padding: 0 0.1rem 0.45rem;
    }

    .scene--details .details-intro p {
        font-size: 0.83rem;
        line-height: 1.4;
    }

    .scene--details .faq-list {
        padding-right: 0;
    }

    .scene--details .faq-question {
        padding: 0.76rem 1.55rem 0.76rem 0;
        font-size: 0.88rem;
        line-height: 1.28;
    }

    .scene--details .faq-question::after {
        right: 0;
        font-size: 1.14rem;
    }

    .scene--details .faq-answer {
        padding: 0 1rem 0.78rem 0;
        font-size: 0.82rem;
        line-height: 1.5;
    }

    /* RSVP */

    .scene--rsvp .scene-header {
        margin-bottom: 0.58rem;
    }

    .scene--rsvp .rsvp-body {
        width: 100%;
        max-width: none;
        margin: 0 auto;
        padding: 0.96rem 0.88rem 0.9rem;
        align-items: stretch;
        justify-content: flex-start;
    }

    .scene--rsvp .rsvp-form {
        width: 100%;
        max-width: none;
        gap: 0.68rem;
        font-size: 0.84rem;
    }

    .scene--rsvp .rsvp-label {
        font-size: 0.8rem;
    }

    .scene--rsvp .rsvp-input {
        padding: 0.58rem 0.72rem;
        font-size: 0.82rem;
        border-radius: 0.82rem;
    }

    .scene--rsvp textarea.rsvp-input {
        min-height: 6.9rem;
    }

    .scene--rsvp .rsvp-attendance-group {
        gap: 0.45rem;
        margin-top: 0.28rem;
    }

    .scene--rsvp .rsvp-radio {
        font-size: 0.82rem;
        gap: 0.36rem;
    }

    .scene--rsvp .rsvp-radio input {
        width: 15px;
        height: 15px;
    }

    .scene--rsvp .rsvp-radio input::before {
        width: 7px;
        height: 7px;
    }

    .scene--rsvp .rsvp-row--actions {
        gap: 0.12rem;
        padding-top: 0.18rem;
        margin-top: 0;
    }

    .scene--rsvp .rsvp-row--actions .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 9.6rem;
        margin-top: 0.28rem;
        margin-bottom: 0.8rem;
        padding: 0.46rem 1rem;
        border-radius: 999px;
        border: none;
        background: var(--accent);
        color: #fff;
        font-size: 0.8rem;
        font-weight: 600;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
        cursor: pointer;
    }

    .scene--rsvp .rsvp-row--actions .btn:hover,
    .scene--rsvp .rsvp-row--actions .btn:focus-visible {
        background: var(--accent-dark);
        outline: none;
    }

    .scene--rsvp .rsvp-footnote {
        font-size: 0.78rem;
        line-height: 1.34;
        text-align: center;
    }

    .scene--rsvp .scene-footer--rsvp {
        margin-top: 0.38rem;
        padding-top: 0;
        font-size: 0.78rem;
    }
}

@media (max-width: 780px) and (max-height: 860px) {

    .scene--overview .overview-map-frame {
        width: min(100%, 258px);
    }

    .scene--overview .overview-layout {
        row-gap: 0.55rem;
        padding-bottom: 0.68rem;
    }

    .scene--overview .overview-text {
        font-size: 0.78rem;
        line-height: 1.38;
    }

    .scene--overview .timeline li {
        margin-bottom: 0.34rem;
        font-size: 0.78rem;
        line-height: 1.34;
    }

    .scene--overview .overview-notes {
        margin-top: 0.3rem;
    }

    .scene--details .details-body {
        padding: 0.72rem 0.82rem 0.82rem;
    }

    .scene--details .details-intro {
        padding-bottom: 0.38rem;
    }

    .scene--details .details-intro p {
        font-size: 0.8rem;
        line-height: 1.36;
    }

    .scene--details .faq-question {
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
        font-size: 0.85rem;
        line-height: 1.24;
    }

    .scene--details .faq-answer {
        padding-bottom: 0.7rem;
        font-size: 0.8rem;
        line-height: 1.44;
    }

    .scene--rsvp .rsvp-body {
        padding: 0.74rem 0.82rem 0.82rem;
    }

    .scene--rsvp .rsvp-form {
        gap: 0.58rem;
    }

    .scene--rsvp .rsvp-label {
        font-size: 0.78rem;
    }

    .scene--rsvp .rsvp-input {
        padding: 0.54rem 0.68rem;
        font-size: 0.8rem;
    }

    .scene--rsvp textarea.rsvp-input {
        min-height: 6.1rem;
    }

    .scene--rsvp .rsvp-row--actions .btn {
        margin-bottom: 0.64rem;
    }

    .scene--rsvp .rsvp-footnote,
    .scene--rsvp .scene-footer--rsvp {
        font-size: 0.76rem;
    }
}