/* style.css - The Sophisticated Wedding PWA Stylesheet */
/* Optical tweak if bouquet art is off-center inside tulip.svg (negative = left) */
:root {
    --tulip-nudge-x: -8px;
    /* Blush Forever — romantic timeless palette (reference strip) */
    --palette-soft-blush-pink: #E7C1C6;
    --palette-rose-quartz: #E3B7B2;
    --palette-warm-ivory: #F6F2EB;
    --palette-champagne-beige: #E2D1B8;
    --palette-muted-taupe: #B6A79A;

    /* Semantic aliases (use these in components) */
    --nude-pink: var(--palette-soft-blush-pink);
    --beige: var(--palette-warm-ivory);
    --taupe: var(--palette-muted-taupe);
    --rose-gold: var(--palette-rose-quartz);
    --white: #FFFFFF;

    /* Readable type (palette swatches are soft; use these for body + glass surfaces) */
    --text-primary: color-mix(in srgb, var(--palette-muted-taupe) 44%, #1c1818);
    --text-accent: color-mix(in srgb, var(--palette-rose-quartz) 52%, #2a2220);

    /* Hero column bleed (outside photo crop) */
    --hero-bleed: var(--palette-champagne-beige);
    /* Aim crop higher on the file so faces sit in the clearer band above the invitation card */
    --hero-object-y: 36%;
    --invite-max-w: 440px;
    /* Shift knot block down so seal (tulip + bow) centers on viewport midline where twine sits */
    --knot-seal-nudge: 22px;
    /* Raise tulip art so the small stem tie tucks behind the bow / twine */
    --tulip-lift: 22px;
    /* Lift card off the bottom edge of the viewport (pairs with .hero padding-bottom) */
    --hero-card-nudge-y: clamp(20px, 5dvh, 56px);
    /* Rounded hero photo + matching overlays */
    --hero-image-radius: clamp(14px, 3.6vw, 22px);
}

/* 1. Global Setup */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    height: 100%; width: 100%; overflow: hidden;
    /* Matches invitation bands when rubber-banding scroll */
    background-color: var(--palette-muted-taupe);
    font-family: 'Tenor Sans', sans-serif;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* On wide monitors, keep the invite phone-sized instead of stretching edge-to-edge */
@media (min-width: 768px) {
    #splash,
    #vellum-perspective,
    .fx-layer {
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        width: min(100vw, var(--invite-max-w));
        max-width: var(--invite-max-w);
    }

    .app-container {
        width: min(100vw, var(--invite-max-w));
        max-width: var(--invite-max-w);
        margin-left: auto;
        margin-right: auto;
        border-left: 1px solid rgba(182, 167, 154, 0.1);
        border-right: 1px solid rgba(182, 167, 154, 0.1);
    }
}

html.page-rsvp,
html.page-rsvp body {
    height: auto;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background-color: var(--palette-soft-blush-pink);
}

html.page-rsvp body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* 2. Scroll Snapping Container — vertical “magnetic” pages */
.app-container {
    height: 100dvh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.app-container::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* PWA standalone: respect notch + home indicator; env() fallbacks when insets are unavailable */
section {
    height: 100dvh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: max(clamp(40px, 10vw, 52px), env(safe-area-inset-top, 20px));
    padding-bottom: max(clamp(40px, 10vw, 52px), env(safe-area-inset-bottom, 20px));
    padding-left: max(clamp(22px, 5.5vw, 32px), env(safe-area-inset-left, 0px));
    padding-right: max(clamp(22px, 5.5vw, 32px), env(safe-area-inset-right, 0px));
    text-align: center;
}

/* Section motif — assets/tulip-motif.svg (viewBox 93.75×231), not the vellum tulip.svg */
.section-tulip {
    display: block;
    width: clamp(36px, 9.5vw, 50px);
    height: auto;
    aspect-ratio: 93.75 / 231;
    margin: 0 auto 12px;
    flex-shrink: 0;
    opacity: 0.48;
    pointer-events: none;
    object-fit: contain;
}

/* Soft-blush sections: motif fill ≈ rose quartz — lift from ground */
.section--schedule .section-tulip,
.section--reception .section-tulip,
.section--entourage--brides .section-tulip,
.section--honors .section-tulip,
.section--thanks:not(.invite-closure) .section-tulip,
.story-page--meet .section-tulip {
    opacity: 0.72;
    filter:
        brightness(0.68)
        contrast(1.06)
        drop-shadow(0 1px 0 rgba(255, 255, 255, 0.4))
        drop-shadow(0 2px 5px rgba(42, 34, 32, 0.16));
}

/* Muted taupe sections */
.section--ceremony .section-tulip,
.section--entourage--grooms .section-tulip {
    opacity: 0.82;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.12));
}

/* 3. Typography Mastery */
h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem; font-style: italic; font-weight: 300;
    margin: 10px 0; line-height: 1.1;
}

h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.05rem, 5.8vw + 1rem, 2.45rem);
    font-style: italic;
    margin-bottom: 15px;
    font-weight: 300;
}

.subtitle {
    text-transform: uppercase;
    letter-spacing: 0.38em;
    font-size: clamp(0.7rem, 2.4vw + 0.55rem, 0.8rem);
    opacity: 0.88;
    margin-bottom: 10px;
}

.timeline small {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: clamp(0.65rem, 2vw + 0.55rem, 0.72rem);
    opacity: 0.88;
}

/* Splash */
#splash {
    position: fixed;
    inset: 0;
    z-index: 7000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--palette-muted-taupe);
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.monogram {
    display: block;
    flex-shrink: 0;
}

.monogram--splash {
    width: clamp(150px, 46vw, 240px);
    height: auto;
    max-height: min(34dvh, 260px);
    object-fit: contain;
}

.monogram--footer {
    font-size: clamp(1.45rem, 4.5vw + 1rem, 1.75rem);
    margin-top: 40px;
    letter-spacing: 0.2em;
}

/* Hero: full-bleed photo under status bar (black-translucent iOS); card nudged via .hero__inner safe-area */
.hero {
    position: relative;
    overflow: hidden;
    justify-content: flex-end;
    align-items: center;
    padding-top: 8px;
    padding-bottom: max(clamp(52px, 11dvh, 88px), calc(env(safe-area-inset-bottom, 0px) + 36px));
    padding-left: max(14px, env(safe-area-inset-left, 0px));
    padding-right: max(14px, env(safe-area-inset-right, 0px));
    /* Alternating bands: first stripe is muted taupe (letterbox around portrait) */
    background-color: var(--palette-muted-taupe);
}

.hero__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center var(--hero-object-y);
    border-radius: var(--hero-image-radius);
    /* Slight zoom-out so tall / huge photos don’t crop to faces only */
    transform: scale(0.9);
    transform-origin: center var(--hero-object-y);
    z-index: 0;
    /* Editorial / magazine: richer mids, cleaner separation from scrim */
    filter: contrast(1.08) saturate(1.14) brightness(1.03);
    transition: transform 2.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Shutter runs when the hero unveils (not on pre-vellum beat) */
.hero__shutter {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    border-radius: var(--hero-image-radius);
    overflow: hidden;
    opacity: 0;
}

/* Unveil: Ken Burns + focus pull + shutter (pairs with wing timing) */
@media (prefers-reduced-motion: no-preference) {
    /* Sealed: soft blur + zoom — glimpsed through vellum; clears when knot releases */
    .hero:not(.hero--unveiled) .hero__photo {
        transform: scale(1.1);
        filter: blur(5px) contrast(1.05) saturate(1.1) brightness(0.92);
        transition: transform 0.9s cubic-bezier(0.33, 0.02, 0.25, 1), filter 0.85s ease-out;
    }

    .hero.hero--unveiled .hero__photo {
        transform: scale(0.995);
        transition:
            transform 11s cubic-bezier(0.12, 0.55, 0.08, 1),
            filter 2.1s cubic-bezier(0.2, 0.75, 0.25, 1);
        filter: contrast(1.1) saturate(1.18) brightness(1.05);
    }

    .hero.hero--unveiled .hero__shutter {
        animation: heroShutterOpen 1.05s cubic-bezier(0.28, 0.85, 0.32, 1) forwards;
    }
}

@keyframes heroShutterOpen {
    0% {
        opacity: 1;
        background: var(--palette-muted-taupe);
        clip-path: inset(0% 0% 0% 0%);
    }
    55% {
        opacity: 1;
        clip-path: inset(48% 0% 48% 0%);
    }
    85% {
        opacity: 0.35;
        clip-path: inset(50% 0% 50% 0%);
    }
    100% {
        opacity: 0;
        clip-path: inset(50% 0% 50% 0%);
    }
}

@keyframes scrollHintNudge {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-8px);
    }
    60% {
        transform: translateX(-50%) translateY(-4px);
    }
}

.hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    border-radius: var(--hero-image-radius);
    background:
        radial-gradient(ellipse 118% 62% at 50% 36%, rgba(255, 252, 248, 0.28) 0%, transparent 55%),
        radial-gradient(ellipse 100% 55% at 50% 82%, rgba(255, 252, 248, 0.52) 0%, transparent 52%),
        radial-gradient(ellipse 82% 42% at 50% 100%, rgba(231, 193, 198, 0.38) 0%, transparent 46%),
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.05) 0%,
            transparent 22%,
            transparent 50%,
            rgba(182, 167, 154, 0.08) 68%,
            rgba(182, 167, 154, 0.22) 100%
        );
}

/* Soft vignette + corner warmth (under scrim) */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: var(--hero-image-radius);
    box-shadow:
        inset 0 0 120px rgba(182, 167, 154, 0.18),
        inset 0 0 48px rgba(227, 183, 178, 0.12),
        inset 0 -80px 100px rgba(95, 82, 74, 0.07);
}

/* Very light print grain (magazine texture) */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: var(--hero-image-radius);
    opacity: 0.045;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

.hero__inner {
    position: relative;
    z-index: 4;
    max-width: 360px;
    width: 100%;
    padding-inline: 8px;
    /* Clears clock / notch when content draws behind status bar (iOS standalone) */
    margin-top: env(safe-area-inset-top, 40px);
    margin-bottom: clamp(6px, 1.5dvh, 16px);
    transform: translateY(var(--hero-card-nudge-y));
}

/* After reveal: fade in + bounce nudge so guests discover vertical snap scroll */
.scroll-hint {
    position: absolute;
    bottom: max(90px, calc(env(safe-area-inset-bottom) + 64px));
    left: 50%;
    z-index: 5;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    text-align: center;
    transition: opacity 0.45s ease;
}

body.app-ready .scroll-hint {
    opacity: 0.5;
    transition: opacity 2s ease 4s;
    /* Nudge starts after the 4s hold + ~2s fade-in */
    animation: scrollHintNudge 2.5s ease-in-out 6s infinite;
}

.scroll-hint__label {
    font-family: 'Tenor Sans', sans-serif;
    font-size: clamp(0.45rem, 1.1vw + 0.38rem, 0.52rem);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin: 0 0 8px;
    color: var(--rose-gold);
}

.scroll-hint__chevron {
    display: block;
    margin: 0 auto;
    color: var(--rose-gold);
    opacity: 0.9;
}

/* Frosted invitation card — glassmorphism over hero */
.hero__card {
    position: relative;
    isolation: isolate;
    padding: clamp(17px, 4.5vw, 22px) clamp(18px, 5vw, 24px);
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(255, 253, 250, 0.32) 42%,
        rgba(252, 244, 236, 0.36) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(28px) saturate(1.45);
    -webkit-backdrop-filter: blur(28px) saturate(1.45);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.22) inset,
        0 2px 1px rgba(255, 255, 255, 0.55) inset,
        0 -1px 1px rgba(182, 167, 154, 0.2) inset,
        0 8px 28px rgba(95, 82, 74, 0.09),
        0 22px 56px rgba(95, 82, 74, 0.11);
}

.hero__card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(
        118deg,
        rgba(255, 255, 255, 0.7) 0%,
        rgba(255, 255, 255, 0.12) 32%,
        transparent 48%,
        transparent 62%,
        rgba(255, 255, 255, 0.08) 100%
    );
    opacity: 0.5;
}

.hero__rule {
    display: block;
    width: min(252px, 76vw);
    height: auto;
    margin: 0 auto;
    color: var(--text-accent);
}

.hero__rule--flip {
    transform: scaleY(-1);
    margin-top: 1px;
    margin-bottom: 1px;
}

.hero__rule-line {
    stroke: currentColor;
    stroke-opacity: 0.9;
}

.hero__rule-dot {
    fill: currentColor;
    fill-opacity: 0.55;
}

.hero__rule-fleur {
    fill: currentColor;
    fill-opacity: 0.42;
}

.hero__rule:not(.hero__rule--flip) {
    margin-bottom: 4px;
}

.hero__eyebrow {
    margin-top: 4px;
    margin-bottom: 2px;
    letter-spacing: 0.42em;
    font-size: clamp(0.62rem, 2.2vw + 0.52rem, 0.72rem);
    color: var(--text-primary);
    opacity: 1;
    font-weight: 600;
}

.hero__title {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(2.45rem, 8.2vw + 0.35rem, 3.35rem);
    line-height: 1.08;
    margin: 3px 0 2px;
    color: color-mix(in srgb, var(--text-primary) 94%, #120f0e);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.12em 0.28em;
    text-shadow:
        0 0 20px rgba(255, 255, 255, 0.98),
        0 0 42px rgba(255, 252, 248, 0.55),
        0 2px 0 rgba(255, 255, 255, 0.65),
        0 3px 14px rgba(42, 34, 32, 0.08);
}

.hero__name {
    letter-spacing: 0.045em;
    font-weight: 400;
    color: color-mix(in srgb, var(--text-primary) 96%, #0a0808);
}

.hero__ampersand {
    font-size: 0.58em;
    color: var(--text-accent);
    font-style: italic;
    font-weight: 500;
    line-height: 1;
    padding: 0 0.06em;
    opacity: 1;
}

.hero__date {
    margin-top: 5px;
    font-size: clamp(0.7rem, 2.5vw + 0.55rem, 0.8rem);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-primary);
    line-height: 1.6;
    opacity: 1;
    font-weight: 600;
}

.hero__date-dot {
    color: var(--text-accent);
    margin: 0 0.35em;
    letter-spacing: 0;
    opacity: 1;
}

.hero__tagline {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(0.82rem, 2.8vw + 0.6rem, 0.95rem);
    line-height: 1.45;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    opacity: 1;
    margin-top: 9px;
    max-width: min(280px, 88vw);
    margin-left: auto;
    margin-right: auto;
}

/* —— Our Story: cinematic interlude (after hero, before schedule) —— */
.story-page {
    position: relative;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.story-page--meet {
    background: var(--white);
    --text-primary: color-mix(in srgb, var(--palette-muted-taupe) 44%, #141110);
    --text-accent: color-mix(in srgb, var(--palette-rose-quartz) 52%, #2a2220);
    color: var(--text-primary);
}

.story-page .subtitle {
    color: var(--text-accent);
    opacity: 0.9;
}

/* Proposal: High-Sky — full-bleed portrait, vellum card in top sky band; couple stays clear in center */
.story-page--proposal.story-page--proposal-portrait {
    --proposal-photo-inset: clamp(10px, 2.6dvw, 18px);
    --proposal-card-sky-gap: clamp(14px, 3.6dvh, 26px);
    --text-primary: color-mix(in srgb, var(--palette-muted-taupe) 38%, #100d0c);
    --text-accent: color-mix(in srgb, var(--palette-rose-quartz) 48%, #1c1412);
    color: var(--text-primary);
    background: var(--palette-muted-taupe);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    padding: 0;
    padding-bottom: max(10px, env(safe-area-inset-bottom, 12px));
}

.story-page__proposal-bg-photo {
    position: absolute;
    inset: var(--proposal-photo-inset);
    z-index: 0;
    pointer-events: none;
    border-radius: clamp(16px, 4vw, 24px);
    overflow: hidden;
    box-sizing: border-box;
    border: clamp(2px, 0.5vw, 4px) solid color-mix(in srgb, var(--palette-muted-taupe) 78%, #2a221e);
    box-shadow: 0 10px 28px rgba(42, 34, 32, 0.08);
    isolation: isolate;
}

/* Only the cover photo — not nested imgs (e.g. tulip inside .story-page__proposal-float) */
.story-page__proposal-bg-photo > img {
    position: relative;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Sky-tint: subtle veil so ivory type stays legible on bright blue */
.story-page__proposal-bg-photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 32%;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(
        to bottom,
        color-mix(in srgb, #1a1412 12%, transparent) 0%,
        transparent 100%
    );
}

/* Editorial mist: no .story-content--glass — that class adds border + inset shadow (“ghost edge”) */
.story-page__proposal-float {
    position: absolute;
    top: clamp(12px, 2.2dvh, 18px);
    left: 50%;
    z-index: 2;
    transform: translateX(-50%);
    width: min(90%, 22rem);
    max-width: calc(100% - clamp(16px, 4vw, 28px));
    margin-top: 0;
    padding-top: calc(env(safe-area-inset-top, 16px) + var(--proposal-card-sky-gap));
    padding-right: clamp(16px, 5vw, 24px);
    padding-bottom: clamp(56px, 17dvh, 92px);
    padding-left: clamp(16px, 5vw, 24px);
    text-align: center;
    pointer-events: auto;
    /* Hold ivory longer so body + closing line stay over readable mist, then fade quickly */
    background: linear-gradient(
        to bottom,
        color-mix(in srgb, var(--palette-warm-ivory) 99%, #fffefb) 0%,
        color-mix(in srgb, var(--palette-warm-ivory) 94%, #fffefb) 28%,
        color-mix(in srgb, var(--palette-warm-ivory) 88%, transparent) 48%,
        color-mix(in srgb, var(--palette-warm-ivory) 72%, transparent) 64%,
        color-mix(in srgb, var(--palette-warm-ivory) 42%, transparent) 80%,
        color-mix(in srgb, var(--palette-warm-ivory) 14%, transparent) 92%,
        transparent 100%
    );
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    outline: none;
    box-shadow: none;
    border-radius: clamp(14px, 3.5vw, 20px) clamp(14px, 3.5vw, 20px) 0 0;
    overflow: hidden;
}

.story-page__proposal-tulip {
    display: block;
    width: clamp(30px, 8vw, 42px);
    max-width: 42px;
    height: auto;
    max-height: 110px;
    aspect-ratio: 93.75 / 231;
    margin: 0 auto clamp(8px, 2vw, 12px);
    flex-shrink: 0;
    opacity: 0.9;
    pointer-events: none;
    object-fit: contain;
    filter:
        brightness(0.55)
        contrast(1.05)
        drop-shadow(0 0 8px color-mix(in srgb, var(--palette-warm-ivory) 90%, #fffefb))
        drop-shadow(0 1px 2px rgba(42, 34, 32, 0.12));
}

.story-page__proposal-float .story-page__eyebrow,
.story-page__proposal-float .story-page__title {
    text-shadow:
        0 0 15px color-mix(in srgb, var(--palette-warm-ivory) 92%, #fffefb),
        0 0 5px color-mix(in srgb, var(--palette-warm-ivory) 65%, #fffefb);
}

/* Stronger halo where the mist thins over the mountains */
.story-page__proposal-float .story-body .story-line {
    color: color-mix(in srgb, var(--text-primary) 96%, #0c0a09);
    text-shadow:
        0 0 28px rgba(255, 252, 248, 0.98),
        0 0 16px rgba(255, 252, 248, 0.95),
        0 0 8px rgba(255, 252, 248, 0.88),
        0 1px 0 rgba(255, 252, 248, 0.75);
}

.story-page__proposal-float .story-page__eyebrow {
    margin-bottom: clamp(2px, 0.5vw, 4px);
}

.story-page__proposal-float .story-page__title {
    margin-top: -5px;
    margin-bottom: clamp(14px, 3.5vw, 20px);
    font-size: clamp(1.35rem, 3.6vw + 0.58rem, 1.8rem);
}

.story-page__proposal-float .story-line {
    font-size: clamp(0.86rem, 2.35vw + 0.52rem, 0.96rem);
    line-height: 1.56;
    margin-bottom: 10px;
}

.story-page__proposal-float .story-line--highlight {
    margin-top: clamp(10px, 2.5vw, 16px);
    margin-bottom: 0;
}

.story-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: min(26rem, 90vw);
    margin-inline: auto;
    padding: 0 4px clamp(56px, 12dvh, 88px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.story-content--glass {
    background: color-mix(in srgb, var(--palette-warm-ivory) 82%, transparent);
    backdrop-filter: blur(14px) saturate(1.05);
    -webkit-backdrop-filter: blur(14px) saturate(1.05);
    border: 1px solid color-mix(in srgb, #fff 55%, var(--palette-rose-quartz));
    border-radius: clamp(14px, 3.5vw, 22px);
    box-shadow:
        0 12px 40px rgba(42, 34, 32, 0.12),
        inset 0 1px 0 rgba(255, 252, 248, 0.65);
    padding: clamp(22px, 5vw, 34px) clamp(18px, 4.5vw, 28px) clamp(20px, 4dvh, 32px);
}

.story-page__eyebrow {
    margin-bottom: clamp(6px, 1.5vw, 12px);
    opacity: 0.9;
}

.story-page__title {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.65rem, 4.5vw + 0.75rem, 2.15rem);
    line-height: 1.12;
    margin: 0 0 clamp(14px, 3vw, 22px);
    color: var(--text-primary);
}

.story-body {
    width: 100%;
    text-align: center;
}

.story-line {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(0.98rem, 2.85vw + 0.62rem, 1.18rem);
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: 0.01em;
    margin: 0 0 clamp(12px, 2.4vw, 18px);
    color: color-mix(in srgb, var(--text-primary) 96%, #0f0c0b);
    max-width: 34em;
    margin-left: auto;
    margin-right: auto;
}

.story-line:last-child {
    margin-bottom: 0;
}

.story-line--italic {
    font-style: italic;
    font-weight: 400;
    color: var(--rose-gold);
    opacity: 0.95;
}

.story-line--highlight {
    font-style: italic;
    font-weight: 500;
    color: color-mix(in srgb, var(--palette-muted-taupe) 42%, #141110);
    letter-spacing: 0.04em;
    text-wrap: balance;
}

.story-page--proposal .story-line--highlight {
    color: #6a574c;
    font-weight: 500;
    letter-spacing: 0.06em;
}

.story-page__proposal-float .story-body .story-line--highlight {
    color: #5c4b42;
    text-shadow:
        0 0 32px rgba(255, 252, 248, 1),
        0 0 20px rgba(255, 252, 248, 0.98),
        0 0 10px rgba(255, 252, 248, 0.95),
        0 1px 0 rgba(255, 252, 248, 0.9),
        0 0 1px rgba(42, 34, 32, 0.12);
}

/* Story: line reveal (honors-adjacent) */
@media (prefers-reduced-motion: no-preference) {
    .story-page[data-story-page] .story-line {
        opacity: 0;
        filter: blur(8px);
        transform: translateY(14px);
        transition:
            opacity 0.75s cubic-bezier(0.2, 0, 0.2, 1),
            filter 0.75s cubic-bezier(0.2, 0, 0.2, 1),
            transform 0.75s cubic-bezier(0.2, 0, 0.2, 1);
    }

    .story-page[data-story-page].story-page--active .story-line:nth-child(1) {
        transition-delay: 0.05s;
    }

    .story-page[data-story-page].story-page--active .story-line:nth-child(2) {
        transition-delay: 0.22s;
    }

    .story-page[data-story-page].story-page--active .story-line:nth-child(3) {
        transition-delay: 0.4s;
    }

    .story-page[data-story-page].story-page--active .story-line {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .story-page[data-story-page] .story-line {
        opacity: 1;
        filter: none;
        transform: none;
    }
}

/* Timeline — silk ribbon */
.section--schedule .timeline {
    position: relative;
    width: 100%;
    max-width: min(340px, 92vw);
    margin-top: 22px;
    padding: 8px 0 24px;
}

.t-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    transform: translateX(-50%);
    background: linear-gradient(
        to bottom,
        transparent,
        var(--rose-gold) 5%,
        var(--rose-gold) 95%,
        transparent
    );
}

/* Soft-blush schedule ground: rose-gold line matched page — use taupe + subtle rim */
.section--schedule .t-line {
    width: 2px;
    border-radius: 1px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        color-mix(in srgb, var(--palette-muted-taupe) 70%, var(--palette-rose-quartz)) 6%,
        var(--palette-muted-taupe) 14%,
        var(--palette-muted-taupe) 86%,
        color-mix(in srgb, var(--palette-muted-taupe) 70%, var(--palette-rose-quartz)) 94%,
        transparent 100%
    );
    box-shadow:
        0 0 0 1px rgba(255, 252, 248, 0.55),
        0 1px 3px rgba(42, 34, 32, 0.12);
}

.section--schedule .t-item::before {
    border-color: var(--palette-muted-taupe);
    border-width: 2px;
    box-shadow: 0 0 0 1px rgba(255, 252, 248, 0.65);
}

.t-item {
    position: relative;
    width: 50%;
    padding: clamp(18px, 4.5vw, 24px) clamp(14px, 4vw, 20px);
    box-sizing: border-box;
    font-size: clamp(0.95rem, 3.2vw + 0.65rem, 1.06rem);
    line-height: 1.45;
}

.t-item.left {
    text-align: right;
    padding-right: 28px;
}

.t-item.right {
    margin-left: 50%;
    text-align: left;
    padding-left: 28px;
}

.t-item::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--rose-gold);
    transform: translateY(-50%);
}

.t-item.left::before {
    right: -4px;
}

.t-item.right::before {
    left: -4px;
}

/* Schedule — blur-to-focus stagger + silk thread “grows” (hero-adjacent cinematic beat) */
@media (prefers-reduced-motion: no-preference) {
    .section--schedule:not(.section--schedule--focused) .timeline .t-line {
        transform: translateX(-50%) scaleY(0.08);
        transform-origin: top center;
        opacity: 0.25;
        transition:
            transform 0.95s cubic-bezier(0.22, 0.82, 0.22, 1),
            opacity 0.55s ease;
    }

    .section--schedule.section--schedule--focused .timeline .t-line {
        transform: translateX(-50%) scaleY(1);
        transform-origin: top center;
        opacity: 1;
        transition: transform 1.2s cubic-bezier(0.18, 0.82, 0.18, 1);
    }

    .section--schedule:not(.section--schedule--focused) .timeline .t-item {
        opacity: 0;
        filter: blur(7px);
        transform: translateY(22px);
        transition:
            opacity 0.78s cubic-bezier(0.2, 0, 0.2, 1),
            filter 0.78s cubic-bezier(0.2, 0, 0.2, 1),
            transform 0.78s cubic-bezier(0.2, 0, 0.2, 1);
    }

    .section--schedule.section--schedule--focused .timeline .t-item {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }

    .section--schedule.section--schedule--focused .timeline .t-item:nth-child(2) {
        transition-delay: 0.06s;
    }

    .section--schedule.section--schedule--focused .timeline .t-item:nth-child(3) {
        transition-delay: 0.18s;
    }

    .section--schedule.section--schedule--focused .timeline .t-item:nth-child(4) {
        transition-delay: 0.3s;
    }

    .section--schedule.section--schedule--focused .timeline .t-item:nth-child(5) {
        transition-delay: 0.42s;
    }

    .section--schedule.section--schedule--focused .timeline .t-item:nth-child(6) {
        transition-delay: 0.54s;
    }

    .section--schedule.section--schedule--focused .timeline .t-item:nth-child(7) {
        transition-delay: 0.66s;
    }
}

/* Scroll sections — alternating muted taupe ↔ soft blush (readable on phones) */
/* Wedding timeline: one snap page, no inner scroll — compact spacing so all rows fit in the viewport */
.section--schedule {
    background: var(--palette-soft-blush-pink);
    padding-top: max(clamp(24px, 6dvh, 44px), env(safe-area-inset-top, 20px));
    padding-bottom: max(clamp(24px, 6dvh, 44px), env(safe-area-inset-bottom, 20px));
}

.section--schedule .section-tulip {
    width: clamp(28px, 7.5vw, 42px);
    margin-bottom: clamp(2px, 1dvh, 8px);
}

.section--schedule .subtitle {
    margin-bottom: clamp(2px, 0.8dvh, 8px);
}

.section--schedule .timeline {
    margin-top: clamp(6px, 1.6dvh, 14px);
    padding: 2px 0 clamp(6px, 1.2dvh, 14px);
}

.section--schedule .t-item {
    padding: clamp(7px, 1.5dvh, 14px) clamp(10px, 3.5vw, 18px);
    font-size: clamp(0.8rem, 2.4vw + 0.52rem, 0.95rem);
    line-height: 1.32;
}

.section--schedule .t-item.left {
    padding-right: clamp(20px, 6vw, 26px);
}

.section--schedule .t-item.right {
    padding-left: clamp(20px, 6vw, 26px);
}

.section--schedule .timeline small {
    font-size: clamp(0.56rem, 1.65vw + 0.45rem, 0.66rem);
    letter-spacing: 0.12em;
}

.section--ceremony {
    background: var(--palette-muted-taupe);
    --text-primary: color-mix(in srgb, var(--palette-warm-ivory) 14%, #141110);
    --text-accent: color-mix(in srgb, var(--palette-rose-quartz) 62%, #fff9f7);
}

.section--reception {
    background: var(--palette-soft-blush-pink);
}

.section--thanks {
    background: var(--palette-soft-blush-pink);
}

/* End-fold: vellum-style panels slide in; center strip stays clear for CTA */
.section--thanks.invite-closure {
    background: var(--beige);
    --text-primary: color-mix(in srgb, var(--palette-muted-taupe) 46%, #141110);
    --text-accent: color-mix(in srgb, var(--palette-rose-quartz) 52%, #2a2220);
}

.invite-closure .closure-tulip {
    opacity: 0.5;
    margin-bottom: 8px;
    filter: drop-shadow(0 1px 3px rgba(42, 34, 32, 0.08));
}

.closure-vellum {
    position: absolute;
    top: 0;
    width: 45%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(
        102deg,
        color-mix(in srgb, var(--nude-pink) 24%, rgba(255, 252, 248, 0.93)) 0%,
        color-mix(in srgb, var(--palette-warm-ivory) 88%, rgba(227, 193, 198, 0.35)) 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    transition: transform 1.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.closure-vellum--left {
    left: 0;
    transform: translateX(-100%);
    border-right: 1px solid color-mix(in srgb, var(--nude-pink) 50%, transparent);
}

.closure-vellum--right {
    right: 0;
    transform: translateX(100%);
    border-left: 1px solid color-mix(in srgb, var(--nude-pink) 50%, transparent);
}

.invite-closure.invite-closure--panels-in .closure-vellum--left,
.invite-closure.invite-closure--panels-in .closure-vellum--right {
    transform: translateX(0);
}

.closure-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: min(360px, 90vw);
    padding-inline: 10px;
}

.closure-eyebrow {
    margin-bottom: 6px;
}

.closure-message {
    margin: 0 0 14px;
    max-width: min(308px, 86vw);
    line-height: 1.65;
    font-size: clamp(0.98rem, 3.1vw + 0.62rem, 1.08rem);
    color: var(--text-primary);
}

.closure-signoff {
    margin: 0 0 4px;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.32rem, 4vw + 0.82rem, 1.68rem);
    color: var(--text-primary);
}

.closure-monogram {
    display: block;
    margin: 8px auto 10px;
    width: clamp(160px, 48vw, 260px);
    height: auto;
    max-height: min(28dvh, 280px);
    object-fit: contain;
    opacity: 0.95;
}

.closure-locale {
    margin: 0 0 4px;
    font-size: clamp(0.6rem, 1.7vw + 0.48rem, 0.7rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-accent);
    opacity: 0.85;
}

.closure-locale-dot {
    margin: 0 0.25em;
    opacity: 0.6;
}

.rsvp-bar--closure {
    z-index: 11;
    margin-top: clamp(16px, 3.8vw, 24px);
}

.section--ceremony__address {
    margin: 20px 0;
    line-height: 1.65;
    font-size: clamp(0.92rem, 3vw + 0.65rem, 1.05rem);
    max-width: min(320px, 92vw);
}

/* Venue address doubles as directions link (ceremony + reception) */
a.section--ceremony__address.link--venue-address {
    display: inline-flex;
    align-items: flex-start;
    gap: 12px;
    max-width: min(340px, 92vw);
    text-align: left;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--text-accent) 45%, transparent);
    padding-bottom: 3px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.venue-address__icon {
    flex-shrink: 0;
    width: clamp(20px, 5.2vw, 24px);
    height: clamp(20px, 5.2vw, 24px);
    margin-top: 0.12em;
    opacity: 0.95;
}

.venue-address__text {
    min-width: 0;
    line-height: inherit;
}

a.section--ceremony__address.link--venue-address:hover,
a.section--ceremony__address.link--venue-address:focus-visible {
    color: var(--text-accent);
    border-bottom-color: var(--text-accent);
}

a.section--ceremony__address.link--venue-address:focus-visible {
    outline: 2px solid var(--rose-gold);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Attire — alternating band (muted taupe); stronger type tokens for contrast */
/* Fit entire dress code in one viewport: compact copy, single card, no inner scroll */
.section--attire {
    background: var(--palette-muted-taupe);
    --text-primary: color-mix(in srgb, var(--palette-warm-ivory) 14%, #141110);
    --text-accent: color-mix(in srgb, var(--palette-rose-quartz) 62%, #fff9f7);
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    justify-content: center;
    align-items: stretch;
    padding-top: max(clamp(24px, 5.5dvh, 52px), env(safe-area-inset-top, 20px));
    padding-bottom: max(clamp(24px, 5.5dvh, 52px), env(safe-area-inset-bottom, 20px));
    padding-left: max(clamp(20px, 5vw, 36px), env(safe-area-inset-left, 0px));
    padding-right: max(clamp(20px, 5vw, 36px), env(safe-area-inset-right, 0px));
}

.section--attire__inner {
    flex: 0 1 auto;
    width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-inline: clamp(12px, 5vw, 32px);
    padding-block: clamp(10px, 2.5dvh, 28px);
    /* Slightly shrink type on short viewports (vmin ties to smallest screen dimension) */
    font-size: clamp(0.68rem, 1.35vmin + 0.48rem, 0.88rem);
}

.section--attire .section-tulip {
    opacity: 0.82;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.12));
    width: clamp(22px, 6vmin, 36px);
    margin-bottom: clamp(4px, 1vmin, 12px);
}

.section--attire .subtitle {
    margin-bottom: clamp(2px, 0.5vmin, 8px);
    font-size: clamp(0.58rem, 1.1vmin + 0.42rem, 0.72rem);
    letter-spacing: 0.28em;
}

.section--attire h2 {
    margin-top: 0;
    margin-bottom: clamp(12px, 2vmin, 22px);
    font-size: clamp(1.15rem, 3.2vmin + 0.55rem, 1.65rem);
    line-height: 1.08;
}

.section--attire__copy {
    max-width: min(440px, 92vw);
    margin: clamp(10px, 2vmin, 20px) auto clamp(12px, 2.2vmin, 22px);
    line-height: 1.42;
    font-size: 1em;
}

.section--attire__copy strong {
    font-weight: 600;
    color: color-mix(in srgb, var(--text-primary) 88%, var(--palette-warm-ivory));
}

.section--attire__copy--footnote {
    margin-top: 0;
    margin-bottom: clamp(12px, 2.2vmin, 22px);
    font-size: 0.92em;
    line-height: 1.35;
    opacity: 0.92;
}

.attire-guidance {
    max-width: min(460px, 94vw);
    margin: clamp(10px, 2vmin, 20px) auto clamp(14px, 2.4vmin, 24px);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.attire-panel {
    padding: clamp(12px, 3.2vw, 18px) clamp(14px, 3.8vw, 20px);
    border-radius: 12px;
    background: color-mix(in srgb, var(--palette-warm-ivory) 9%, transparent);
    border: 1px solid color-mix(in srgb, var(--text-primary) 8%, transparent);
    box-shadow: 0 1px 0 rgba(255, 252, 248, 0.35) inset;
}

.attire-panel--combined {
    padding: clamp(18px, 3.2vmin, 28px) clamp(18px, 4.5vw, 28px);
    border-radius: 10px;
}

.attire-panel--guests {
    background: color-mix(in srgb, var(--palette-warm-ivory) 6%, transparent);
}

.attire-role--guest {
    margin-top: clamp(14px, 2.6vmin, 22px);
    padding-top: clamp(14px, 2.6vmin, 22px);
    border-top: 1px solid color-mix(in srgb, var(--text-primary) 10%, transparent);
}

.attire-role-line {
    margin: 0 0 clamp(8px, 1.4vmin, 12px);
    line-height: 1.36;
    font-size: 1em;
    color: var(--text-primary);
    text-align: left;
}

.attire-role-line:last-of-type {
    margin-bottom: 0;
}

.attire-panel__eyebrow {
    margin: 0 0 clamp(6px, 1.1vmin, 12px);
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.78em;
    font-family: 'Tenor Sans', sans-serif;
    color: color-mix(in srgb, var(--text-primary) 78%, var(--palette-rose-quartz));
    opacity: 0.95;
}

.attire-panel__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.5dvh, 12px);
}

.attire-panel__list li {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    line-height: 1.45;
    font-size: clamp(0.86rem, 2.8vw + 0.58rem, 0.98rem);
}

.attire-panel__who {
    font-family: 'Tenor Sans', sans-serif;
    font-size: 0.72em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--text-primary) 72%, var(--rose-gold));
    margin-right: 0.35em;
}

.attire-panel__detail {
    color: var(--text-primary);
}

.attire-panel__guest-copy {
    margin: 0;
    line-height: 1.38;
    font-size: 1em;
    color: var(--text-primary);
    text-align: left;
}

.attire-palette {
    list-style: none;
    margin: 0;
    padding: clamp(6px, 1.4vmin, 14px) 0 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: clamp(8px, 2.2vmin, 18px);
    max-width: min(380px, 92vw);
    margin-inline: auto;
    flex-shrink: 0;
}

.attire-palette li {
    margin: 0;
    padding: 0;
}

.attire-swatch {
    display: block;
    width: clamp(26px, 7vmin, 40px);
    height: clamp(26px, 7vmin, 40px);
    border-radius: 50%;
    border: 1.5px solid color-mix(in srgb, var(--palette-muted-taupe) 22%, transparent);
    box-shadow:
        0 2px 10px rgba(60, 48, 44, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
}

.attire-swatch--soft-blush {
    background: var(--palette-soft-blush-pink);
}

.attire-swatch--rose-quartz {
    background: var(--palette-rose-quartz);
}

.attire-swatch--champagne-beige {
    background: var(--palette-champagne-beige);
}

.attire-swatch--muted-taupe {
    background: var(--palette-muted-taupe);
    border-color: color-mix(in srgb, #2a2220 14%, transparent);
    box-shadow:
        0 2px 10px rgba(60, 48, 44, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@media (max-height: 640px) {
    .section--attire {
        padding-top: max(clamp(14px, 3.5dvh, 28px), env(safe-area-inset-top, 14px));
        padding-bottom: max(clamp(14px, 3.5dvh, 28px), env(safe-area-inset-bottom, 14px));
    }

    .section--attire__inner {
        font-size: clamp(0.6rem, 1.15vmin + 0.42rem, 0.78rem);
        padding-block: clamp(4px, 1.2dvh, 12px);
    }
}

/* Honors — long-form tapestry: snap at top, outer scroll, silk thread, block + line stagger */
.section--honors.honors-section {
    position: relative;
    height: auto;
    min-height: 100dvh;
    max-height: none;
    padding: 0;
    overflow: visible;
    justify-content: flex-start;
    align-items: stretch;
    scroll-snap-align: start;
    text-align: center;
    background: var(--palette-soft-blush-pink);
}

.honors-thread {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    transform: translateX(-50%);
    background: linear-gradient(
        to bottom,
        transparent 0%,
        color-mix(in srgb, var(--palette-rose-quartz) 65%, transparent) 6%,
        var(--rose-gold) 18%,
        var(--rose-gold) 82%,
        color-mix(in srgb, var(--palette-rose-quartz) 65%, transparent) 94%,
        transparent 100%
    );
    opacity: 0.24;
    pointer-events: none;
    z-index: 0;
}

.honors-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: min(400px, 94vw);
    margin: 0 auto;
    padding: max(16px, env(safe-area-inset-top)) clamp(20px, 5.5vw, 32px) max(100px, calc(env(safe-area-inset-bottom) + 80px));
}

.honors-eyebrow {
    margin-bottom: 4px;
}

.honors-headline {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.5rem, 4.8vw + 0.75rem, 1.95rem);
    color: var(--text-primary);
    margin: 0 0 28px;
    line-height: 1.15;
}

.honor-block {
    margin-bottom: clamp(36px, 8vw, 48px);
    text-align: center;
}

.honor-block__title {
    font-family: 'Tenor Sans', sans-serif;
    font-size: clamp(0.58rem, 1.8vw + 0.46rem, 0.68rem);
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-accent);
    margin: 0 0 18px;
    line-height: 1.4;
}

.honor-stack {
    display: flex;
    flex-direction: column;
    gap: clamp(22px, 5vw, 30px);
}

.honor-group {
    margin: 0;
    padding: 0 8px;
}

.honor-group-title {
    font-family: 'Tenor Sans', sans-serif;
    font-size: clamp(0.54rem, 1.65vw + 0.42rem, 0.62rem);
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--text-accent);
    margin: 0 0 8px;
    line-height: 1.45;
}

.honor-group-title--sub {
    margin-top: 4px;
    margin-bottom: 12px;
    opacity: 0.88;
}

.honor-sentence {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(0.92rem, 2.8vw + 0.58rem, 1.05rem);
    line-height: 1.55;
    color: color-mix(in srgb, var(--text-primary) 94%, var(--palette-muted-taupe));
    margin: 0 0 10px;
    max-width: 34em;
    margin-left: auto;
    margin-right: auto;
}

.honor-sentence--block {
    margin-bottom: 6px;
}

.honor-names {
    font-family: 'Cormorant Garamond', serif;
    font-style: normal;
    font-weight: 500;
    font-size: clamp(1.12rem, 3.25vw + 0.68rem, 1.32rem);
    line-height: 1.42;
    letter-spacing: 0.015em;
    color: color-mix(in srgb, var(--text-primary) 97%, #0f0c0b);
    margin: 0;
}

.honor-names__role {
    font-size: 0.88em;
    opacity: 0.82;
    font-style: italic;
}

.honor-names--stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2em;
    text-align: center;
}

.honor-names--stack .honor-names__line {
    display: block;
    line-height: 1.35;
}

.sponsor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 1.25rem;
    text-align: left;
    margin-top: 4px;
    padding: 0 10px;
    max-width: 100%;
    position: relative;
}

.sponsor-col {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sponsor-col li {
    font-family: 'Cormorant Garamond', serif;
    font-style: normal;
    font-weight: 500;
    font-size: clamp(0.94rem, 2.65vw + 0.55rem, 1.06rem);
    line-height: 1.48;
    letter-spacing: 0.02em;
    color: color-mix(in srgb, var(--text-primary) 96%, #100d0c);
    padding: 4px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--palette-rose-quartz) 18%, transparent);
}

.sponsor-col li:last-child {
    border-bottom: none;
}

@keyframes honorLineIn {
    from {
        opacity: 0;
        filter: blur(10px);
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .honor-block[data-honor-reveal]:not(.honor-block--active) {
        opacity: 0;
        filter: blur(10px);
        transform: translateY(22px);
        transition:
            opacity 0.88s cubic-bezier(0.18, 0.78, 0.18, 1),
            filter 0.88s cubic-bezier(0.18, 0.78, 0.18, 1),
            transform 0.88s cubic-bezier(0.18, 0.78, 0.18, 1);
    }

    .honor-block[data-honor-reveal].honor-block--active {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }

    /* In-block “subtitle” beat: titles → sentences → names (staggered) */
    .honor-block--active .honor-block__title,
    .honor-block--active .honor-group-title--sub {
        opacity: 0;
        animation: honorLineIn 0.62s cubic-bezier(0.2, 0.82, 0.2, 1) forwards;
    }

    .honor-block--active .honor-block__title {
        animation-delay: 0.06s;
    }

    .honor-block--active .honor-sentence--block {
        opacity: 0;
        animation: honorLineIn 0.68s cubic-bezier(0.2, 0.82, 0.2, 1) forwards;
        animation-delay: 0.14s;
    }

    .honor-block--active .honor-group-title--sub {
        animation-delay: 0.22s;
    }

    .honor-block--active .honor-stack .honor-group:nth-child(1) .honor-group-title {
        animation: honorLineIn 0.58s cubic-bezier(0.2, 0.82, 0.2, 1) forwards;
        animation-delay: 0.1s;
        opacity: 0;
    }

    .honor-block--active .honor-stack .honor-group:nth-child(1) .honor-sentence {
        animation: honorLineIn 0.65s cubic-bezier(0.2, 0.82, 0.2, 1) forwards;
        animation-delay: 0.22s;
        opacity: 0;
    }

    .honor-block--active .honor-stack .honor-group:nth-child(1) .honor-names {
        animation: honorLineIn 0.65s cubic-bezier(0.2, 0.82, 0.2, 1) forwards;
        animation-delay: 0.38s;
        opacity: 0;
    }

    .honor-block--active .honor-stack .honor-group:nth-child(2) .honor-group-title {
        animation: honorLineIn 0.58s cubic-bezier(0.2, 0.82, 0.2, 1) forwards;
        animation-delay: 0.32s;
        opacity: 0;
    }

    .honor-block--active .honor-stack .honor-group:nth-child(2) .honor-sentence {
        animation: honorLineIn 0.65s cubic-bezier(0.2, 0.82, 0.2, 1) forwards;
        animation-delay: 0.44s;
        opacity: 0;
    }

    .honor-block--active .honor-stack .honor-group:nth-child(2) .honor-names {
        animation: honorLineIn 0.65s cubic-bezier(0.2, 0.82, 0.2, 1) forwards;
        animation-delay: 0.58s;
        opacity: 0;
    }

    .honor-block--active .honor-stack .honor-group:nth-child(3) .honor-group-title {
        animation: honorLineIn 0.58s cubic-bezier(0.2, 0.82, 0.2, 1) forwards;
        animation-delay: 0.52s;
        opacity: 0;
    }

    .honor-block--active .honor-stack .honor-group:nth-child(3) .honor-sentence {
        animation: honorLineIn 0.65s cubic-bezier(0.2, 0.82, 0.2, 1) forwards;
        animation-delay: 0.64s;
        opacity: 0;
    }

    .honor-block--active .honor-stack .honor-group:nth-child(3) .honor-names {
        animation: honorLineIn 0.65s cubic-bezier(0.2, 0.82, 0.2, 1) forwards;
        animation-delay: 0.78s;
        opacity: 0;
    }

    .honor-block--active .honor-stack .honor-group:nth-child(4) .honor-group-title {
        animation: honorLineIn 0.58s cubic-bezier(0.2, 0.82, 0.2, 1) forwards;
        animation-delay: 0.72s;
        opacity: 0;
    }

    .honor-block--active .honor-stack .honor-group:nth-child(4) .honor-sentence {
        animation: honorLineIn 0.65s cubic-bezier(0.2, 0.82, 0.2, 1) forwards;
        animation-delay: 0.84s;
        opacity: 0;
    }

    .honor-block--active .honor-stack .honor-group:nth-child(4) .honor-names {
        animation: honorLineIn 0.65s cubic-bezier(0.2, 0.82, 0.2, 1) forwards;
        animation-delay: 0.98s;
        opacity: 0;
    }

    .honor-block#honor-pillars.honor-block--active .sponsor-col:first-child li,
    .honor-block#honor-pillars.honor-block--active .sponsor-col:last-child li {
        animation: honorLineIn 0.55s cubic-bezier(0.2, 0.82, 0.2, 1) forwards;
        opacity: 0;
    }

    .honor-block#honor-pillars.honor-block--active .sponsor-col:first-child li:nth-child(1) {
        animation-delay: 0.28s;
    }

    .honor-block#honor-pillars.honor-block--active .sponsor-col:first-child li:nth-child(2) {
        animation-delay: 0.34s;
    }

    .honor-block#honor-pillars.honor-block--active .sponsor-col:first-child li:nth-child(3) {
        animation-delay: 0.4s;
    }

    .honor-block#honor-pillars.honor-block--active .sponsor-col:first-child li:nth-child(4) {
        animation-delay: 0.46s;
    }

    .honor-block#honor-pillars.honor-block--active .sponsor-col:first-child li:nth-child(5) {
        animation-delay: 0.52s;
    }

    .honor-block#honor-pillars.honor-block--active .sponsor-col:first-child li:nth-child(6) {
        animation-delay: 0.58s;
    }

    .honor-block#honor-pillars.honor-block--active .sponsor-col:first-child li:nth-child(7) {
        animation-delay: 0.64s;
    }

    .honor-block#honor-pillars.honor-block--active .sponsor-col:first-child li:nth-child(8) {
        animation-delay: 0.7s;
    }

    .honor-block#honor-pillars.honor-block--active .sponsor-col:last-child li:nth-child(1) {
        animation-delay: 0.3s;
    }

    .honor-block#honor-pillars.honor-block--active .sponsor-col:last-child li:nth-child(2) {
        animation-delay: 0.36s;
    }

    .honor-block#honor-pillars.honor-block--active .sponsor-col:last-child li:nth-child(3) {
        animation-delay: 0.42s;
    }

    .honor-block#honor-pillars.honor-block--active .sponsor-col:last-child li:nth-child(4) {
        animation-delay: 0.48s;
    }

    .honor-block#honor-pillars.honor-block--active .sponsor-col:last-child li:nth-child(5) {
        animation-delay: 0.54s;
    }

    .honor-block#honor-pillars.honor-block--active .sponsor-col:last-child li:nth-child(6) {
        animation-delay: 0.6s;
    }

    .honor-block#honor-pillars.honor-block--active .sponsor-col:last-child li:nth-child(7) {
        animation-delay: 0.66s;
    }

    .honor-block#honor-pillars.honor-block--active .sponsor-col:last-child li:nth-child(8) {
        animation-delay: 0.72s;
    }
}

/* Entourage — two snap pages (bride / groom), portrait grid + editorial expand, locked to 100dvh */
.section--entourage {
    height: 100dvh;
    max-height: 100dvh;
    justify-content: center;
    align-items: center;
    padding-top: max(clamp(10px, 2.8vw, 22px), env(safe-area-inset-top, 20px));
    padding-bottom: max(clamp(10px, 2.6vw, 20px), env(safe-area-inset-bottom, 20px));
    padding-left: max(clamp(14px, 4vw, 26px), env(safe-area-inset-left, 0px));
    padding-right: max(clamp(14px, 4vw, 26px), env(safe-area-inset-right, 0px));
    overflow: hidden;
}

.section--entourage--brides {
    background: var(--palette-soft-blush-pink);
}

.section--entourage--grooms {
    background: var(--palette-muted-taupe);
    --text-primary: color-mix(in srgb, var(--palette-warm-ivory) 14%, #141110);
    --text-accent: color-mix(in srgb, var(--palette-rose-quartz) 62%, #fff9f7);
}

.section--entourage .section-tulip {
    width: clamp(26px, 6.5vw, 38px);
    margin-bottom: 4px;
    flex-shrink: 0;
}

.section--entourage .subtitle {
    margin-bottom: 2px;
    flex-shrink: 0;
}

.section--entourage h2 {
    margin-bottom: 4px;
    font-size: clamp(1.38rem, 4.2vw + 0.65rem, 1.75rem);
    flex-shrink: 0;
}

.portrait-gallery {
    width: 100%;
    max-width: min(100vw, var(--invite-max-w, 440px));
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.portrait-gallery__intro {
    font-size: clamp(0.56rem, 1.65vw + 0.45rem, 0.7rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.76;
    margin-bottom: 6px;
    max-width: min(300px, 90vw);
    margin-left: auto;
    margin-right: auto;
    line-height: 1.35;
    flex-shrink: 0;
    text-align: center;
}

.portrait-grid {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: clamp(6px, 1.8vw, 12px) clamp(8px, 2.2vw, 16px);
    padding: 2px;
    align-content: stretch;
}

.portrait-card:focus-visible {
    outline: 2px solid var(--rose-gold);
    outline-offset: 3px;
}

.portrait-card {
    position: relative;
    margin: 0;
    padding: 0;
    border: none;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    align-self: stretch;
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 253, 252, 1) 55%,
        rgba(252, 248, 246, 1) 100%
    );
    border-radius: clamp(10px, 2.4vw, 16px);
    border: 1px solid rgba(227, 183, 178, 0.22);
    box-shadow:
        0 2px 12px rgba(95, 82, 74, 0.06),
        0 12px 32px rgba(182, 167, 154, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: visible;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(227, 183, 178, 0.2);
    transition:
        transform 0.45s cubic-bezier(0.22, 0.82, 0.2, 1),
        box-shadow 0.45s ease,
        opacity 0.35s ease;
}

.portrait-card--shift {
    transform: translateY(2px);
}

.portrait-card:active:not(.portrait-card--expanded) {
    transform: scale(0.985);
}

.portrait-card--shift:active:not(.portrait-card--expanded) {
    transform: translateY(2px) scale(0.985);
}

.portrait-card__close {
    position: fixed;
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    z-index: 8030;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text-primary);
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(42, 34, 32, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.25s ease;
}

.portrait-card--expanded .portrait-card__close {
    opacity: 1;
    pointer-events: auto;
}

.portrait-card__close:hover {
    background: var(--white);
}

.portrait-card__close:focus-visible {
    outline: 2px solid var(--rose-gold);
    outline-offset: 2px;
}

.portrait-card__hit {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 6px 7px 8px;
    border-radius: inherit;
}

.portrait-card__media {
    width: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    border-radius: clamp(6px, 1.6vw, 10px);
    background: linear-gradient(155deg, var(--nude-pink), var(--rose-gold));
    box-shadow: 0 4px 16px rgba(95, 82, 74, 0.07);
}

.portrait-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    border: 1px solid rgba(255, 255, 255, 0.55);
    filter: sepia(0.04) saturate(1.03);
    transition: transform 0.55s cubic-bezier(0.22, 0.82, 0.2, 1);
}

.portrait-card:hover:not(.portrait-card--expanded) .portrait-card__img {
    transform: scale(1.02);
}

.portrait-card__info {
    flex-shrink: 0;
    margin-top: 6px;
    text-align: center;
    padding: 0 1px;
}

.section--entourage .portrait-card:not(.portrait-card--expanded) .portrait-card__name {
    font-size: clamp(0.92rem, 2.75vw + 0.55rem, 1.12rem);
    font-weight: 400;
    margin: 0 0 2px;
    line-height: 1.15;
    color: color-mix(in srgb, var(--text-primary) 97%, #0f0d0c);
}

.section--entourage .portrait-card:not(.portrait-card--expanded) .portrait-card__role {
    font-size: clamp(0.48rem, 1.55vw + 0.38rem, 0.6rem);
    letter-spacing: 0.22em;
    line-height: 1.3;
}

.portrait-card__name {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.05rem, 3.1vw + 0.64rem, 1.22rem);
    margin: 0 0 4px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: color-mix(in srgb, var(--text-primary) 96%, #141110);
}

.portrait-card__role {
    font-family: 'Tenor Sans', sans-serif;
    font-size: clamp(0.54rem, 1.85vw + 0.44rem, 0.66rem);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    opacity: 0.74;
    line-height: 1.35;
    margin: 0;
    color: var(--text-accent);
}

/* Editorial expansion — above petals (5500) and install hint (7500) */
.portrait-focus-overlay {
    position: fixed;
    inset: 0;
    z-index: 8000;
    background: rgba(42, 34, 32, 0.38);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition:
        opacity 0.45s cubic-bezier(0.33, 0.02, 0.25, 1),
        visibility 0s linear 0.5s;
}

.portrait-focus-overlay--visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition:
        opacity 0.45s cubic-bezier(0.33, 0.02, 0.25, 1),
        visibility 0s linear 0s;
}

.portrait-card--expanded {
    position: fixed;
    z-index: 8010;
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    top: max(12px, env(safe-area-inset-top));
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
    height: auto;
    margin: 0;
    max-width: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    cursor: default;
    transform: scale(1);
    animation: portraitExpandIn 0.52s cubic-bezier(0.2, 0.82, 0.18, 1) forwards;
    box-shadow: 0 28px 80px rgba(32, 26, 24, 0.22);
}

.portrait-card--expanded.portrait-card--shift {
    transform: scale(1);
}

.portrait-card--expanded:active {
    transform: none;
}

.portrait-card--expanded .portrait-card__hit {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: max(8px, env(safe-area-inset-top)) 8px max(10px, env(safe-area-inset-bottom));
}

.portrait-card--expanded .portrait-card__media {
    flex: 1 1 auto;
    min-height: 0;
    max-height: min(78dvh, 720px);
    margin: 0 auto;
    width: 100%;
    max-width: min(420px, 100%);
    border-radius: clamp(12px, 3vw, 18px);
    box-shadow: 0 16px 48px rgba(42, 34, 32, 0.18);
}

.portrait-card--expanded .portrait-card__img {
    filter: sepia(0.03) saturate(1.04);
}

.portrait-card--expanded .portrait-card__info {
    flex-shrink: 0;
    margin-top: 14px;
    margin-bottom: 0;
    padding: 14px 18px 16px;
    text-align: center;
    border-radius: clamp(14px, 3.5vw, 18px);
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.44) 0%,
        rgba(255, 253, 250, 0.32) 100%
    );
    backdrop-filter: blur(22px) saturate(1.35);
    -webkit-backdrop-filter: blur(22px) saturate(1.35);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(42, 34, 32, 0.1);
}

.portrait-card--expanded .portrait-card__name {
    font-size: clamp(1.42rem, 4.4vw + 0.82rem, 1.82rem);
    font-weight: 400;
    color: color-mix(in srgb, var(--text-primary) 94%, #0f0c0b);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.portrait-card--expanded .portrait-card__role {
    font-size: clamp(0.58rem, 1.9vw + 0.48rem, 0.7rem);
    letter-spacing: 0.26em;
    color: var(--rose-gold);
    opacity: 0.9;
}

@keyframes portraitExpandIn {
    from {
        opacity: 0.88;
        transform: scale(0.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .portrait-card {
        transition: none;
    }

    .portrait-card:active:not(.portrait-card--expanded) {
        transform: none;
    }

    .portrait-card--shift {
        transform: none;
    }

    .portrait-card--shift:active:not(.portrait-card--expanded) {
        transform: none;
    }

    .portrait-card__img {
        transition: none;
    }

    .portrait-card--expanded {
        animation: none;
    }

    .portrait-focus-overlay {
        transition: opacity 0.2s ease;
    }
}

/* Knot hint — readable on vellum */
.knot-hint {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    margin-top: 14px;
    color: color-mix(in srgb, var(--taupe) 78%, #2a2220);
    opacity: 0.92;
    text-shadow:
        0 0 12px rgba(255, 255, 255, 0.95),
        0 1px 2px rgba(255, 255, 255, 0.8);
}

.pull-text.knot-hint {
    font-size: 0.52rem;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    margin-top: 0;
}

/* Effects above overlay (petals); below splash (7000) */
.fx-layer {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5500;
    overflow: visible;
}

/* 4. 3D gate-fold vellum — wings hinged at outer edges; slight center overlap */
#vellum-perspective {
    position: fixed;
    inset: 0;
    z-index: 5000;
    perspective: 1480px;
    perspective-origin: 50% 42%;
    overflow: hidden;
    transition:
        opacity 0.85s ease,
        perspective 2.5s cubic-bezier(0.12, 0.82, 0.14, 1),
        background-color 0.55s ease;
    /* Invite open + RSVP closing seal: one source for twine / bow / knot (matches rose quartz treatment) */
    --vellum-seal-ribbon: var(--palette-rose-quartz);
    --vellum-seal-ribbon-light: color-mix(in srgb, var(--vellum-seal-ribbon) 82%, #fff);
    --vellum-seal-ribbon-glow: color-mix(in srgb, var(--vellum-seal-ribbon) 88%, #fff);
    --vellum-wing-duration: 2.4s;
    --vellum-wing-ease: cubic-bezier(0.1, 0.92, 0.14, 1);
}

/* Frosted sheet: translucent ivory so the hero reads through (not a flat opaque panel) */
#vellum-perspective:not(.open) {
    background-color: color-mix(in srgb, var(--palette-warm-ivory) 40%, transparent);
}

#vellum-perspective.open {
    background-color: transparent;
}

#vellum-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition:
        transform 0.22s cubic-bezier(0.36, 1.45, 0.52, 1),
        filter 0.22s ease-out;
}

.vellum-wing {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50.5%;
    height: 100%;
    /* Translucent vellum + blur — lets the portrait breathe through the wings */
    background: linear-gradient(
        108deg,
        color-mix(in srgb, var(--palette-warm-ivory) 58%, transparent) 0%,
        color-mix(in srgb, #f5f1e8 52%, transparent) 42%,
        color-mix(in srgb, #ebe6dc 54%, transparent) 100%
    );
    backdrop-filter: blur(22px) saturate(1.1);
    -webkit-backdrop-filter: blur(22px) saturate(1.1);
    border: 0.5px solid rgba(255, 255, 255, 0.4);
    transform-style: preserve-3d;
    transition:
        transform var(--vellum-wing-duration) var(--vellum-wing-ease),
        box-shadow var(--vellum-wing-duration) var(--vellum-wing-ease);
    z-index: 5001;
    will-change: transform;
}

.vellum-wing::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.14;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cfilter id='v'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23v)' opacity='0.55'/%3E%3C/svg%3E");
}

/* Crease highlight where wings meet */
.vellum-wing .edge-highlight {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    pointer-events: none;
    z-index: 2;
}

.vellum-wing.left .edge-highlight {
    right: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.35) 0%,
        rgba(255, 252, 245, 0.12) 45%,
        rgba(62, 48, 40, 0.08) 100%
    );
}

.vellum-wing.right .edge-highlight {
    left: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.35) 0%,
        rgba(255, 252, 245, 0.12) 45%,
        rgba(62, 48, 40, 0.08) 100%
    );
}

.vellum-wing.left {
    left: 0;
    right: auto;
    transform-origin: left center;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
}

.vellum-wing.right {
    right: 0;
    left: auto;
    transform-origin: right center;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

#vellum-perspective.open .vellum-wing.left {
    transform: rotateY(-122deg) translateZ(-38px);
    box-shadow:
        28px 14px 64px rgba(0, 0, 0, 0.28),
        16px 0 44px rgba(120, 98, 96, 0.16),
        0 0 48px rgba(255, 252, 248, 0.06);
}

#vellum-perspective.open .vellum-wing.right {
    transform: rotateY(122deg) translateZ(-38px);
    box-shadow:
        -28px 14px 64px rgba(0, 0, 0, 0.28),
        -16px 0 44px rgba(120, 98, 96, 0.16),
        0 0 48px rgba(255, 252, 248, 0.06);
}

/* Cinematic vellum: camera pulls back when wings open (shutter on hero unveil) */
@media (prefers-reduced-motion: no-preference) {
    #vellum-perspective.open {
        perspective: 2680px;
        perspective-origin: 50% 40%;
    }
}

/* RSVP: same #vellum-perspective as invite; hidden until closing (stacking matches index) */
html.page-rsvp #vellum-perspective {
    display: none;
}

html.page-rsvp #vellum-perspective.vellum-rsvp--active {
    display: block;
}

/*
 * RSVP closing: wings start open then meet. Without this, removing .open restores
 * .tulip-under opacity while panels are still apart — bouquet shows over the form.
 * Keep tulip / twine / knot hidden until the gate is sealed (.vellum-rsvp--sealed).
 */
html.page-rsvp #vellum-perspective.vellum-rsvp--active:not(.vellum-rsvp--sealed) .tulip-under,
html.page-rsvp #vellum-perspective.vellum-rsvp--active:not(.vellum-rsvp--sealed) .twine-line,
html.page-rsvp #vellum-perspective.vellum-rsvp--active:not(.vellum-rsvp--sealed) .knot-assembly.knot-ui {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.35s ease,
        visibility 0s linear 0.35s,
        transform 0.5s ease,
        filter 0.35s ease;
}

html.page-rsvp #vellum-perspective.vellum-rsvp--sealed .tulip-under,
html.page-rsvp #vellum-perspective.vellum-rsvp--sealed .twine-line,
html.page-rsvp #vellum-perspective.vellum-rsvp--sealed .knot-assembly.knot-ui {
    visibility: visible;
    pointer-events: auto;
}

/* Match index resting seal: reopen path must reset opacity/transform from .open / pre-seal hides */
html.page-rsvp #vellum-perspective.vellum-rsvp--sealed .tulip-under {
    opacity: 0.88;
}

html.page-rsvp #vellum-perspective.vellum-rsvp--sealed .twine-line {
    opacity: 1;
    transform: translateY(calc(-50% + var(--knot-seal-nudge)));
    transform-origin: center center;
}

html.page-rsvp #vellum-perspective.vellum-rsvp--sealed .knot-assembly.knot-ui {
    cursor: pointer;
    opacity: 1;
}

html.page-rsvp #vellum-perspective.vellum-rsvp--sealed .pull-text.knot-hint {
    opacity: 1;
    transform: translateX(-50%);
}

html.page-rsvp #vellum-perspective.vellum-rsvp--sealed .bow-wrap .loop {
    border-color: var(--vellum-seal-ribbon);
    opacity: 1;
    transform: translateY(-50%) rotate(-16deg);
}

html.page-rsvp #vellum-perspective.vellum-rsvp--sealed .bow-wrap .right-loop {
    transform: translateY(-50%) rotate(16deg);
}

html.page-rsvp #vellum-perspective.vellum-rsvp--sealed .bow-wrap .knot-core {
    opacity: 1;
    transform: translate(-50%, -50%);
    background: linear-gradient(
        145deg,
        var(--vellum-seal-ribbon-glow),
        var(--vellum-seal-ribbon)
    );
}

/* RSVP reduced motion: same slide “open” state as invite, then panels meet */
html.page-rsvp #vellum-perspective.vellum-rsvp--reduced .vellum-wing {
    transition-duration: 0.28s !important;
}

html.page-rsvp #vellum-perspective.vellum-rsvp--reduced.open .vellum-wing.left {
    transform: translate3d(-105%, 0, 0) !important;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.06) !important;
}

html.page-rsvp #vellum-perspective.vellum-rsvp--reduced.open .vellum-wing.right {
    transform: translate3d(105%, 0, 0) !important;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.06) !important;
}

.rsvp-step[hidden] {
    display: none !important;
}

.rsvp-choice-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: min(320px, 92vw);
    margin: 24px auto 20px;
}

.rsvp-choice {
    font-family: 'Tenor Sans', sans-serif;
    font-size: clamp(0.72rem, 2.4vw + 0.58rem, 0.8rem);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    min-height: 52px;
    padding: 16px 22px;
    border-radius: 50px;
    border: 1px solid color-mix(in srgb, var(--rose-gold) 55%, transparent);
    background: rgba(255, 255, 255, 0.55);
    color: var(--text-primary);
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.rsvp-choice:hover,
.rsvp-choice:focus-visible {
    background: rgba(255, 255, 255, 0.88);
    border-color: var(--rose-gold);
}

.rsvp-choice:focus-visible {
    outline: 2px solid var(--rose-gold);
    outline-offset: 3px;
}

.rsvp-thanks-lead {
    max-width: min(340px, 92vw);
    line-height: 1.6;
    font-size: clamp(1rem, 3.2vw + 0.7rem, 1.12rem);
    margin: 12px auto 0;
    color: var(--text-primary);
}

/* Tulip — tucked under twine + bow until untied */
.tulip-under {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    margin-inline: auto;
    z-index: 5002;
    width: 92px;
    height: auto;
    max-height: 128px;
    transform: translate(var(--tulip-nudge-x), calc(-50% + var(--knot-seal-nudge) - var(--tulip-lift)));
    pointer-events: none;
    object-fit: contain;
    object-position: center bottom;
    opacity: 0.88;
    transition:
        transform 0.85s cubic-bezier(0.17, 0.67, 0.83, 0.67),
        opacity 0.85s ease;
    filter:
        brightness(0.42)
        sepia(0.48)
        saturate(1.8)
        hue-rotate(325deg)
        contrast(1.15)
        drop-shadow(0 0 4px rgba(255, 252, 248, 0.95))
        drop-shadow(0 2px 6px rgba(120, 92, 88, 0.32));
}

/* Horizontal twine — full width, above tulip, below bow (rose quartz for contrast on vellum) */
.twine-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 2px;
    z-index: 5003;
    pointer-events: none;
    transform: translateY(calc(-50% + var(--knot-seal-nudge)));
    transform-origin: center center;
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--vellum-seal-ribbon) 35%, transparent) 0%,
        var(--vellum-seal-ribbon) 14%,
        var(--vellum-seal-ribbon-light) 50%,
        var(--vellum-seal-ribbon) 86%,
        color-mix(in srgb, var(--vellum-seal-ribbon) 35%, transparent) 100%
    );
    box-shadow:
        0 0 0 1px color-mix(in srgb, #fff 55%, var(--vellum-seal-ribbon)),
        0 2px 10px rgba(120, 72, 68, 0.22);
    transition:
        transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.85s ease;
}

/* Bow + hint — above twine */
.knot-assembly.knot-ui {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(240px, 72vw);
    transform: translate(-50%, calc(-50% + var(--knot-seal-nudge)));
    z-index: 5005;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.5s ease 0.2s;
}

.knot-assembly.knot-ui:focus-visible {
    outline: 2px solid var(--rose-gold);
    outline-offset: 6px;
}

a.knot-assembly.knot-ui {
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

.bow-wrap {
    position: relative;
    width: 88px;
    height: 44px;
    margin: 0 auto;
    z-index: 2;
}

.bow-wrap .loop {
    position: absolute;
    width: 38px;
    height: 28px;
    border: 3px solid var(--vellum-seal-ribbon);
    border-radius: 50%;
    top: 50%;
    background: transparent;
    box-shadow:
        0 0 0 1px color-mix(in srgb, #fff 40%, transparent),
        0 3px 10px rgba(120, 72, 68, 0.2);
    transition:
        transform 0.8s cubic-bezier(0.17, 0.67, 0.83, 0.67),
        opacity 0.65s ease;
}

.bow-wrap .left-loop {
    left: 0;
    transform: translateY(-50%) rotate(-16deg);
    transform-origin: right center;
}

.bow-wrap .right-loop {
    right: 0;
    transform: translateY(-50%) rotate(16deg);
    transform-origin: left center;
}

.bow-wrap .knot-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(
        145deg,
        var(--vellum-seal-ribbon-glow),
        var(--vellum-seal-ribbon)
    );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 2px 6px rgba(100, 58, 54, 0.28);
    transition:
        transform 0.75s cubic-bezier(0.17, 0.67, 0.83, 0.67),
        opacity 0.55s ease;
}

.pull-text {
    position: absolute;
    bottom: -38px;
    left: 50%;
    width: min(220px, 85vw);
    transform: translateX(-50%);
    margin: 0;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

/* Untie phase — before panels swing */
#vellum-perspective.unravelling .bow-wrap .left-loop {
    transform: translateY(-50%) translateX(calc(-1 * min(100px, 28vw))) scale(0.2) rotate(-48deg);
    opacity: 0;
}

#vellum-perspective.unravelling .bow-wrap .right-loop {
    transform: translateY(-50%) translateX(min(100px, 28vw)) scale(0.2) rotate(48deg);
    opacity: 0;
}

#vellum-perspective.unravelling .bow-wrap .knot-core {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

#vellum-perspective.unravelling .twine-line {
    transform: translateY(calc(-50% + var(--knot-seal-nudge))) scaleX(0);
    opacity: 0;
}

#vellum-perspective.unravelling .tulip-under {
    transform: translate(var(--tulip-nudge-x), calc(-50% + var(--knot-seal-nudge) - var(--tulip-lift))) scale(1.08);
    opacity: 1;
    filter:
        brightness(0.38)
        sepia(0.45)
        saturate(1.85)
        hue-rotate(325deg)
        contrast(1.18)
        drop-shadow(0 0 8px rgba(255, 252, 248, 1))
        drop-shadow(0 3px 10px rgba(120, 92, 88, 0.26));
}

/* Wings open: tulip z-stacks above the gap — must beat .unravelling rule (same specificity) */
#vellum-perspective.unravelling.open .tulip-under,
#vellum-perspective.open .tulip-under {
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.35s ease,
        visibility 0s linear 0.35s,
        transform 0.5s ease,
        filter 0.35s ease;
}

#vellum-perspective.unravelling .knot-assembly.knot-ui {
    pointer-events: none;
}

#vellum-perspective.unravelling .pull-text {
    opacity: 0;
    transform: translateX(-50%) translateY(6px);
}

#vellum-perspective.open .knot-assembly.knot-ui {
    opacity: 0;
    pointer-events: none;
}

/* Music toggle */
.music-toggle {
    position: fixed;
    top: max(20px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
    z-index: 4500;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.music-toggle[aria-pressed="true"] {
    background: rgba(227, 183, 178, 0.38);
    color: var(--text-primary);
}

.music-toggle:focus-visible {
    outline: 2px solid var(--rose-gold);
    outline-offset: 2px;
}

/* iOS install hint — above #splash (7000) and petals (5500) so first-run / reduced-motion timing still shows it */
.ios-install-hint {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px));
    z-index: 7500;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 40px 14px 16px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(227, 183, 178, 0.4);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text-primary);
}

.ios-install-hint[hidden] {
    display: none !important;
}

.ios-install-hint__icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.ios-install-hint__text {
    text-align: left;
    flex: 1;
}

.ios-install-hint__close {
    position: absolute;
    top: 4px;
    right: 6px;
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--text-primary);
    opacity: 0.6;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ios-install-hint__close:hover {
    opacity: 1;
}

/* 5. Shimmering Glass RSVP (fixed bar optional; index uses in-section only) */
.rsvp-bar {
    position: fixed;
    bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px));
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    padding: 14px 60px; border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.75rem; letter-spacing: 3px;
    color: var(--text-primary); text-decoration: none; z-index: 4700;
    overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.rsvp-bar--in-section {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 16px 44px;
    margin-top: 22px;
    margin-bottom: 4px;
    font-size: clamp(0.74rem, 2.6vw + 0.55rem, 0.82rem);
}

.rsvp-bar--in-section:focus-visible {
    outline: 2px solid var(--rose-gold);
    outline-offset: 4px;
}

.rsvp-bar::after {
    content: ''; position: absolute; top: -50%; left: -150%; width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 6s infinite;
}

@keyframes shimmer { 20% { left: 150%; } 100% { left: 150%; } }

/* 6. Petal particles — aisle rain (Web Animations API); size / radius often inline in JS */
.petal {
    position: fixed;
    margin: 0;
    left: 0;
    top: 0;
    background: linear-gradient(145deg, var(--palette-warm-ivory) 0%, var(--nude-pink) 45%, var(--palette-rose-quartz) 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 12px rgba(182, 167, 154, 0.24);
    pointer-events: none;
    will-change: transform, opacity;
}

.petal--rain {
    box-shadow: 0 4px 18px rgba(182, 167, 154, 0.16);
}

/* Resting petals — keep GPU hint light once the fall animation ends */
.petal--landed {
    will-change: auto;
}

/* RSVP standalone page */
.rsvp-page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(44px, 11vw, 56px) clamp(22px, 6vw, 32px) max(100px, env(safe-area-inset-bottom));
    text-align: center;
    background: transparent;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.rsvp-page::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.rsvp-page h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.85rem, 5.5vw + 1rem, 2.25rem);
    font-style: italic;
    font-weight: 300;
    margin-bottom: 16px;
}

.rsvp-page .subtitle {
    font-size: clamp(0.68rem, 2.4vw + 0.55rem, 0.78rem);
}

.rsvp-page .rsvp-copy {
    max-width: min(340px, 92vw);
    line-height: 1.65;
    font-size: clamp(0.98rem, 3.2vw + 0.65rem, 1.06rem);
    margin-bottom: 28px;
}

.rsvp-page .rsvp-copy--note {
    font-size: clamp(0.82rem, 2.6vw + 0.6rem, 0.92rem);
    opacity: 0.88;
}

.rsvp-page .back-link {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: clamp(0.68rem, 2.2vw + 0.55rem, 0.76rem);
    color: var(--text-accent);
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--text-accent) 65%, transparent);
}

.rsvp-page .back-link:focus-visible {
    outline: 2px solid var(--rose-gold);
    outline-offset: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .app-container {
        scroll-behavior: auto;
    }

    body.app-ready .scroll-hint {
        animation: none;
        opacity: 0.44;
        transition: opacity 1.2s ease 2s;
    }

    .hero__photo {
        transition: none !important;
    }

    #vellum-perspective {
        perspective: 1480px !important;
        transition: opacity 0.85s ease !important;
    }

    .hero__shutter {
        animation: none !important;
        opacity: 0 !important;
    }

    #vellum-container {
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }

    #splash {
        transition: opacity 0.3s ease;
    }

    #vellum-perspective,
    .vellum-wing,
    .knot-assembly.knot-ui,
    .twine-line,
    .tulip-under,
    .bow-wrap .loop,
    .bow-wrap .knot-core {
        transition-duration: 0.25s !important;
    }

    #vellum-perspective.open .vellum-wing.left {
        transform: translate3d(-105%, 0, 0) !important;
        box-shadow: -4px 0 16px rgba(0, 0, 0, 0.06) !important;
    }

    #vellum-perspective.open .vellum-wing.right {
        transform: translate3d(105%, 0, 0) !important;
        box-shadow: 4px 0 16px rgba(0, 0, 0, 0.06) !important;
    }

    .hero.hero--unveiled .hero__photo {
        transform: scale(0.9) !important;
    }

    .rsvp-bar::after {
        animation: none;
    }

    .closure-vellum {
        transition: none !important;
        transform: translateX(0) !important;
    }

    .portrait-grid {
        scroll-behavior: auto;
    }

    .honor-block[data-honor-reveal] {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
        transition: none !important;
    }
}
