/* =============================================================
   Jubilee invitation — floral, bright, elegant
   ============================================================= */

:root {
    --butter: #FFECA0;
    --butter-soft: #FFF6C9;
    --paper: #FFFDF4;
    --white: #FFFFFF;
    --ink: #1E1A10;
    --ink-soft: #51483A;
    --leaf: #6E9152;
    --leaf-dark: #285A39;
    --leaf-deep: #173D2A;
    --marigold: #F0B62E;
    --marigold-soft: #FFD96B;
    --coral: #D96659;
    --rose: #B93646;
    --peach: #F5B982;
    --mint: #BFD7A4;
    --line: rgba(30, 26, 16, 0.16);
    --shadow: rgba(71, 52, 15, 0.18);
    --shadow-strong: rgba(46, 68, 31, 0.25);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);

    --display: 'Cormorant Garamond', serif;
    --serif: 'Cormorant Garamond', serif;
    --text-serif: 'Lora', serif;
    --body: 'Manrope', sans-serif;
    --script: 'Marck Script', cursive;
    --floral-tile-h: min(907px, 210.8vw);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    min-width: 320px;
    overflow-x: hidden;
    background: linear-gradient(180deg, #FFF8D6 0%, #FFFDF4 46%, #F8F4DB 100%);
    color: var(--ink);
    font-family: var(--body);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
textarea {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    background: var(--coral);
    color: var(--white);
}

#app,
.landing,
.sec {
    width: 100%;
    max-width: 100%;
}

body.intro-lock {
    height: 100%;
    overflow: hidden;
}

/* =============================================================
   Desktop gate
   ============================================================= */

.desktop-gate {
    display: none;
}

.dg-card {
    position: relative;
    width: min(100%, 420px);
    padding: 2.65rem 2.15rem 2.5rem;
    overflow: hidden;
    border: 1px solid rgba(213, 169, 80, 0.46);
    border-radius: 34% 30% 32% 36% / 16% 20% 18% 21%;
    background:
        radial-gradient(ellipse at 50% 18%, rgba(255, 253, 244, 0.96), rgba(255, 251, 238, 0.88) 58%, rgba(248, 241, 223, 0.76)),
        rgba(255, 251, 238, 0.9);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.48),
        0 24px 75px rgba(35, 49, 33, 0.18);
}

.dg-card::before,
.dg-card::after {
    content: '';
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.dg-card::before {
    left: -104px;
    bottom: -96px;
    width: 245px;
    aspect-ratio: 1085 / 1450;
    background: url('../images/decor/floral-corner.webp') center / contain no-repeat;
    opacity: 0.34;
    transform: rotate(-8deg);
}

.dg-card::after {
    right: -86px;
    top: -96px;
    width: 218px;
    aspect-ratio: 1085 / 1450;
    background: url('../images/decor/floral-corner.webp') center / contain no-repeat;
    opacity: 0.24;
    transform: rotate(172deg);
}

.dg-card > * {
    position: relative;
    z-index: 1;
}

.dg-script {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--ref-coral);
    font-family: var(--script);
    font-size: 2.45rem;
    line-height: 1;
}

.dg-names {
    font-family: var(--script);
    color: var(--ref-forest);
    font-size: 3.1rem;
    font-weight: 400;
    line-height: 1;
}

.dg-date,
.footer-meta,
.ty-date {
    font-family: var(--body);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
}

.dg-date {
    margin-top: 1.1rem;
    color: var(--ref-forest);
    letter-spacing: 0.12em;
}

.dg-divider {
    width: 58px;
    height: 1px;
    margin: 1.75rem auto;
    background: var(--line);
}

.dg-phone {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    fill: none;
    stroke: var(--ref-forest);
    stroke-linecap: round;
    stroke-width: 1.4;
}

.dg-text {
    color: var(--ref-ink);
    font-family: var(--text-serif);
    font-size: 1.2rem;
    line-height: 1.55;
}

body.desktop-gated {
    height: 100%;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 26%, rgba(255, 253, 244, 0.9), rgba(248, 241, 223, 0.82) 58%, #E8DDC3),
        #F8F1DF;
}

body.desktop-gated #app {
    display: none;
}

body.desktop-gated .desktop-gate {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100svh;
    padding: 2rem;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 35%, rgba(255, 253, 244, 0.96), rgba(255, 251, 238, 0.74) 45%, rgba(248, 241, 223, 0) 72%),
        radial-gradient(ellipse at 16% 24%, rgba(255, 236, 199, 0.42), transparent 34%),
        radial-gradient(ellipse at 86% 76%, rgba(200, 216, 188, 0.28), transparent 36%),
        linear-gradient(135deg, #FFFDF4 0%, #F8F1DF 48%, #EDE2C8 100%);
    text-align: center;
}

body.desktop-gated .desktop-gate::before,
body.desktop-gated .desktop-gate::after {
    content: '';
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

body.desktop-gated .desktop-gate::before {
    left: max(-150px, calc(50% - 670px));
    top: -132px;
    width: min(36vw, 430px);
    aspect-ratio: 1085 / 1450;
    background: url('../images/decor/floral-corner.webp') center / contain no-repeat;
    opacity: 0.48;
    transform: rotate(-7deg);
}

body.desktop-gated .desktop-gate::after {
    right: max(-126px, calc(50% - 660px));
    bottom: -72px;
    width: min(48vw, 570px);
    aspect-ratio: 1774 / 887;
    background:
        url('../images/decor/hero-floral-spray.webp') right bottom / contain no-repeat,
        url('../images/decor/floral-garland.webp') center bottom / 76% auto no-repeat;
    opacity: 0.66;
}

body.desktop-gated .dg-card {
    z-index: 1;
}

@media (pointer: fine) and (min-width: 900px), (min-device-width: 900px) {
    body {
        height: 100%;
        overflow: hidden;
        background:
            radial-gradient(ellipse at 50% 26%, rgba(255, 253, 244, 0.9), rgba(248, 241, 223, 0.82) 58%, #E8DDC3),
            #F8F1DF;
    }

    #app {
        display: none;
    }

    .desktop-gate {
        position: fixed;
        inset: 0;
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100svh;
        padding: 2rem;
        overflow: hidden;
        background:
            radial-gradient(ellipse at 50% 35%, rgba(255, 253, 244, 0.96), rgba(255, 251, 238, 0.74) 45%, rgba(248, 241, 223, 0) 72%),
            radial-gradient(ellipse at 16% 24%, rgba(255, 236, 199, 0.42), transparent 34%),
            radial-gradient(ellipse at 86% 76%, rgba(200, 216, 188, 0.28), transparent 36%),
            linear-gradient(135deg, #FFFDF4 0%, #F8F1DF 48%, #EDE2C8 100%);
        text-align: center;
    }

    .desktop-gate::before,
    .desktop-gate::after {
        content: '';
        position: absolute;
        z-index: 0;
        pointer-events: none;
    }

    .desktop-gate::before {
        left: max(-150px, calc(50% - 670px));
        top: -132px;
        width: min(36vw, 430px);
        aspect-ratio: 1085 / 1450;
        background: url('../images/decor/floral-corner.webp') center / contain no-repeat;
        opacity: 0.48;
        transform: rotate(-7deg);
    }

    .desktop-gate::after {
        right: max(-126px, calc(50% - 660px));
        bottom: -72px;
        width: min(48vw, 570px);
        aspect-ratio: 1774 / 887;
        background:
            url('../images/decor/hero-floral-spray.webp') right bottom / contain no-repeat,
            url('../images/decor/floral-garland.webp') center bottom / 76% auto no-repeat;
        opacity: 0.66;
    }

    .dg-card {
        z-index: 1;
    }
}

/* =============================================================
   Ambient floral background
   ============================================================= */

.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 84% 12%, rgba(240, 182, 46, 0.22), transparent 30%),
        radial-gradient(ellipse at 10% 76%, rgba(216, 79, 92, 0.12), transparent 28%),
        linear-gradient(180deg, #FFF6C9 0%, #FFFDF4 44%, #F6F8E9 100%);
}

.ambient-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/decor/floral-petals.webp') 50% 20% / min(118vw, 520px) auto repeat-y;
    opacity: 0.1;
    transform: translate3d(0, 0, 0);
    animation: petalSheetDrift 18s ease-in-out infinite alternate;
}

.ambient-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 12%, rgba(255, 255, 255, 0.76), transparent 34%),
        radial-gradient(ellipse at 10% 42%, rgba(240, 182, 46, 0.2), transparent 30%),
        radial-gradient(ellipse at 94% 68%, rgba(110, 145, 82, 0.16), transparent 28%),
        linear-gradient(180deg, rgba(255, 246, 201, 0.76), rgba(255, 253, 244, 0.9) 48%, rgba(248, 244, 219, 0.9));
}

@keyframes petalSheetDrift {
    from {
        transform: translate3d(-10px, -8px, 0) rotate(calc(var(--petal-r, 0deg) - 1deg));
    }
    to {
        transform: translate3d(12px, 18px, 0) rotate(calc(var(--petal-r, 0deg) + 1.4deg));
    }
}

@keyframes botanicalFloat {
    from {
        filter: saturate(1.02) contrast(1.01);
    }
    to {
        filter: saturate(1.16) contrast(1.04);
    }
}

@keyframes garlandBreath {
    from {
        opacity: var(--garland-opacity-from, 0.18);
        transform: translateX(var(--garland-x, 0)) translateY(0) rotate(var(--garland-r, 0deg)) scale(1);
    }
    to {
        opacity: var(--garland-opacity-to, 0.3);
        transform: translateX(var(--garland-x, 0)) translateY(-6px) rotate(var(--garland-r, 0deg)) scale(1.025);
    }
}

/* =============================================================
   Intro
   ============================================================= */

.intro {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.96), rgba(255, 239, 168, 0.88) 48%, #FFD96A),
        linear-gradient(135deg, rgba(232, 120, 104, 0.18), transparent 42%);
    transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}

.intro::before {
    content: '';
    position: absolute;
    left: -28%;
    bottom: -12%;
    width: min(132vw, 580px);
    aspect-ratio: 1085 / 1450;
    background: url('../images/decor/floral-corner.webp') left bottom / contain no-repeat;
    opacity: 0.36;
    animation: botanicalFloat 8s ease-in-out infinite alternate;
}

.intro.gone {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.intro.gone .jubilee-prologue,
.intro.gone .prologue-final,
.intro.gone .intro-photo {
    opacity: 0;
    transition-duration: 0.22s;
}

.petal-field {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.petal-field span {
    position: absolute;
    top: -12%;
    left: var(--x);
    width: var(--size);
    height: calc(var(--size) * 1.5);
    border-radius: 70% 35% 70% 35%;
    background: var(--petal);
    opacity: 0.72;
    transform: rotate(18deg);
    animation: petalFall var(--dur) linear infinite;
    animation-delay: var(--delay);
}

.petal-field span:nth-child(1) { --x: 9%; --size: 13px; --dur: 8.4s; --delay: -0.8s; --petal: rgba(233, 148, 122, 0.65); }
.petal-field span:nth-child(2) { --x: 17%; --size: 9px; --dur: 9.8s; --delay: -6s; --petal: rgba(255, 224, 112, 0.72); }
.petal-field span:nth-child(3) { --x: 28%; --size: 12px; --dur: 7.8s; --delay: -3.4s; --petal: rgba(243, 195, 156, 0.76); }
.petal-field span:nth-child(4) { --x: 39%; --size: 10px; --dur: 10.2s; --delay: -1.7s; --petal: rgba(255, 255, 255, 0.8); }
.petal-field span:nth-child(5) { --x: 49%; --size: 14px; --dur: 8.8s; --delay: -5.2s; --petal: rgba(233, 148, 122, 0.58); }
.petal-field span:nth-child(6) { --x: 59%; --size: 8px; --dur: 9.2s; --delay: -2.1s; --petal: rgba(255, 224, 112, 0.75); }
.petal-field span:nth-child(7) { --x: 68%; --size: 11px; --dur: 8.1s; --delay: -4.6s; --petal: rgba(243, 195, 156, 0.7); }
.petal-field span:nth-child(8) { --x: 77%; --size: 13px; --dur: 10.8s; --delay: -7.3s; --petal: rgba(255, 255, 255, 0.74); }
.petal-field span:nth-child(9) { --x: 86%; --size: 9px; --dur: 7.5s; --delay: -2.7s; --petal: rgba(233, 148, 122, 0.6); }
.petal-field span:nth-child(10) { --x: 93%; --size: 12px; --dur: 9.5s; --delay: -5.9s; --petal: rgba(255, 224, 112, 0.68); }
.petal-field span:nth-child(11) { --x: 22%; --size: 15px; --dur: 11.2s; --delay: -8.4s; --petal: rgba(243, 195, 156, 0.66); }
.petal-field span:nth-child(12) { --x: 73%; --size: 10px; --dur: 8.9s; --delay: -0.2s; --petal: rgba(255, 255, 255, 0.76); }

@keyframes petalFall {
    0% {
        transform: translate3d(0, -10vh, 0) rotate(0deg);
    }
    45% {
        transform: translate3d(18px, 50vh, 0) rotate(160deg);
    }
    100% {
        transform: translate3d(-12px, 112vh, 0) rotate(330deg);
    }
}

.envelope-stage {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 100svh;
    padding: calc(env(safe-area-inset-top) + 5rem) 1.25rem 3rem;
    transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
    animation: floatIn 0.9s var(--ease) both;
}

.envelope-stage.away {
    opacity: 0;
    transform: scale(1.18) translateY(-18px);
    pointer-events: none;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-title {
    margin-bottom: 7rem;
    color: var(--ink);
    font-family: var(--body);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    text-transform: uppercase;
}

.envelope-group {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.envelope-group::before {
    content: '';
    position: absolute;
    right: -26px;
    bottom: 1.8rem;
    z-index: -1;
    width: min(44vw, 170px);
    aspect-ratio: 1536 / 1024;
    background: url('../images/decor/floral-petals.webp') center / contain no-repeat;
    opacity: 0.54;
    transform: rotate(9deg);
    animation: petalSheetDrift 10s ease-in-out infinite alternate;
    pointer-events: none;
}

.envelope-btn {
    position: relative;
    width: min(82vw, 360px);
    border: 0;
    background: transparent;
    cursor: pointer;
    animation: envelopeFloat 4.3s ease-in-out infinite;
}

.envelope-img {
    width: 100%;
    height: auto;
    filter:
        sepia(0.14)
        saturate(1.12)
        drop-shadow(0 18px 34px rgba(50, 39, 18, 0.26));
    transition: transform 0.45s var(--ease), filter 0.45s var(--ease);
}

.envelope-btn:active .envelope-img {
    transform: scale(0.97);
}

.envelope-hint {
    color: var(--leaf-dark);
    font-family: var(--body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    animation: hintPulse 2.4s ease-in-out infinite;
}

@keyframes envelopeFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-9px);
    }
}

@keyframes hintPulse {
    0%,
    100% {
        opacity: 0.54;
    }
    50% {
        opacity: 1;
    }
}

.jubilee-prologue {
    position: fixed;
    inset: 0;
    z-index: 60;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 48% 38%, rgba(255, 251, 238, 0.94), rgba(248, 241, 223, 0.68) 58%, transparent 78%),
        radial-gradient(ellipse at 87% 14%, rgba(213, 169, 80, 0.2), transparent 31%),
        radial-gradient(ellipse at 10% 78%, rgba(232, 131, 104, 0.16), transparent 34%),
        linear-gradient(rgba(248, 241, 223, 0.78), rgba(248, 241, 223, 0.88)),
        url('../images/jubilee/floral-background.webp') center top / 100% auto repeat-y,
        var(--ref-paper);
    opacity: 0;
    transition: opacity 0.65s ease;
}

.jubilee-prologue[hidden] {
    display: none;
}

.jubilee-prologue::before {
    content: '';
    position: absolute;
    --garland-opacity-from: 0.24;
    --garland-opacity-to: 0.36;
    inset: auto -26% -7%;
    height: 42%;
    background: url('../images/decor/floral-garland.webp') center bottom / min(142vw, 780px) auto no-repeat;
    opacity: 0.42;
    animation: garlandBreath 9s ease-in-out infinite alternate;
}

.jubilee-prologue.active {
    opacity: 1;
}

.prologue-bloom {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.prologue-bloom::before,
.prologue-bloom::after {
    content: '';
    position: absolute;
    background: url('../images/decor/floral-corner.webp') center / contain no-repeat;
    opacity: 0.28;
    filter: saturate(1.08) contrast(1.02);
    animation: bloomDrift 5.2s ease-in-out infinite alternate;
}

.prologue-bloom::before {
    --bloom-r: -8deg;
    top: -92px;
    left: -132px;
    width: 292px;
    height: 480px;
    transform: rotate(var(--bloom-r));
}

.prologue-bloom::after {
    --bloom-r: 9deg;
    right: -154px;
    bottom: -118px;
    width: 328px;
    height: 520px;
    transform: rotate(var(--bloom-r));
    animation-delay: -1.3s;
}

@keyframes bloomDrift {
    from {
        transform: translateY(0) rotate(var(--bloom-r)) scale(1);
    }
    to {
        transform: translateY(18px) rotate(var(--bloom-r)) scale(1.04);
    }
}

.photo-scene {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.intro-photo {
    position: absolute;
    width: min(var(--photo-w, 43%), var(--photo-max, 178px));
    aspect-ratio: var(--photo-ratio, 0.78);
    padding: 7px;
    overflow: visible;
    border: 1px solid rgba(213, 169, 80, 0.56);
    border-radius: var(--photo-radius, 48% 52% 44% 56% / 42% 46% 54% 58%);
    background:
        linear-gradient(rgba(255, 251, 238, 0.86), rgba(246, 235, 204, 0.62)),
        rgba(255, 255, 255, 0.72);
    box-shadow:
        0 18px 42px rgba(50, 62, 44, 0.16),
        inset 0 0 0 1px rgba(255, 255, 255, 0.46);
    opacity: 0;
    transform: translateY(30px) scale(0.88) rotate(var(--r));
    transition:
        opacity 0.9s var(--ease),
        transform 0.9s var(--ease),
        filter 0.9s ease;
}

.intro-photo::before {
    content: '';
    position: absolute;
    inset: -12px -11px -14px -13px;
    z-index: -1;
    border: 1px solid rgba(213, 169, 80, 0.42);
    border-radius: inherit;
    background: rgba(255, 252, 244, 0.28);
    transform: rotate(var(--frame-r, 4deg));
}

.intro-photo::after {
    content: '';
    position: absolute;
    right: var(--flower-x, -34px);
    bottom: var(--flower-y, -34px);
    z-index: 3;
    width: var(--flower-size, 86px);
    aspect-ratio: 1085 / 1450;
    background: url('../images/decor/floral-corner.webp') center / contain no-repeat;
    opacity: var(--flower-opacity, 0.54);
    filter: drop-shadow(0 8px 12px rgba(35, 49, 33, 0.14));
    transform: rotate(var(--flower-r, 12deg)) scaleX(var(--flower-flip, 1));
    pointer-events: none;
}

.intro-photo img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    object-position: var(--photo-pos, 50% 38%);
    clip-path: ellipse(49% 50% at 50% 50%);
}

.intro-photo--one {
    --r: -7deg;
    --frame-r: 4deg;
    --photo-w: 46%;
    --photo-max: 184px;
    --photo-radius: 52% 48% 44% 56% / 44% 40% 60% 56%;
    --photo-pos: 48% 35%;
    --flower-x: -42px;
    --flower-y: -38px;
    --flower-r: -7deg;
    --flower-flip: -1;
    top: 8%;
    left: 5%;
    transition-delay: 0.05s;
}

.intro-photo--two {
    --r: 6deg;
    --frame-r: -4deg;
    --photo-w: 47%;
    --photo-max: 188px;
    --photo-radius: 45% 55% 53% 47% / 42% 50% 50% 58%;
    --photo-pos: 52% 36%;
    --flower-size: 76px;
    --flower-opacity: 0.46;
    top: 16%;
    right: -3%;
    transition-delay: 0.22s;
}

.intro-photo--three {
    --r: 5deg;
    --frame-r: -3deg;
    --photo-w: 49%;
    --photo-max: 192px;
    --photo-radius: 50% 50% 42% 58% / 45% 42% 58% 55%;
    --photo-pos: 48% 32%;
    --flower-x: -38px;
    --flower-y: -40px;
    --flower-r: -10deg;
    --flower-flip: -1;
    bottom: 15%;
    left: -3%;
    transition-delay: 0.38s;
}

.intro-photo--four {
    --r: -6deg;
    --frame-r: 4deg;
    --photo-w: 44%;
    --photo-max: 178px;
    --photo-radius: 48% 52% 55% 45% / 48% 44% 56% 52%;
    --photo-pos: 50% 34%;
    --flower-size: 72px;
    --flower-opacity: 0.42;
    --flower-r: 16deg;
    right: 6%;
    bottom: 8%;
    transition-delay: 0.54s;
}

.jubilee-prologue.photos-in .intro-photo {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(var(--r));
}

.jubilee-prologue.final-in .intro-photo {
    opacity: 0.32;
    filter: saturate(0.84) brightness(1.08);
}

.prologue-final {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;
    width: min(86%, 360px);
    padding: 1.85rem 1.25rem 1.75rem;
    border: 1px solid rgba(213, 169, 80, 0.46);
    border-radius: 42% 58% 47% 53% / 19% 24% 22% 20%;
    background:
        linear-gradient(135deg, rgba(255, 251, 238, 0.92), rgba(248, 241, 223, 0.78)),
        rgba(255, 253, 244, 0.9);
    box-shadow:
        0 24px 64px rgba(46, 68, 31, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.42);
    opacity: 0;
    text-align: center;
    transform: translate(-50%, -44%) scale(0.96);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.prologue-final::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -24px;
    width: min(42vw, 168px);
    height: 14px;
    background:
        radial-gradient(circle at 50% 50%, var(--ref-gold) 0 2px, transparent 2.5px),
        linear-gradient(90deg, transparent, var(--ref-gold) 31%, transparent 31% 69%, var(--ref-gold) 69%, transparent);
    opacity: 0.62;
    transform: translateX(-50%);
}

.jubilee-prologue.final-in .prologue-final {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.prologue-name {
    color: var(--ref-forest);
    font-family: var(--script);
    font-size: clamp(2.7rem, 12vw, 3.45rem);
    line-height: 1;
}

.prologue-text {
    margin-top: 0.75rem;
    color: var(--ref-ink);
    font-family: var(--display);
    font-size: clamp(1.18rem, 5vw, 1.48rem);
    font-weight: 600;
    line-height: 1.35;
}

/* =============================================================
   Landing and sections
   ============================================================= */

.landing {
    position: relative;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.95s ease;
}

.landing.reveal {
    opacity: 1;
}

.sec {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding: 4.25rem 1.25rem;
}

.sec:not(.cover) > * {
    position: relative;
    z-index: 1;
}

.rv {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.rv.in {
    opacity: 1;
    transform: translateY(0);
}

.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }

.section-title {
    width: min(100%, 420px);
    margin: 0 auto 1.35rem;
    color: var(--ink);
    font-family: var(--script);
    font-size: 2.7rem;
    font-weight: 400;
    line-height: 1.08;
    text-align: center;
    overflow-wrap: anywhere;
}

.prose {
    width: min(100%, 420px);
    margin: 0 auto;
    color: var(--ink-soft);
    font-family: var(--text-serif);
    font-size: 1.08rem;
    font-weight: 400;
    line-height: 1.82;
    text-align: center;
}

.center {
    text-align: center;
}

/* Cover ------------------------------------------------------- */

.cover {
    min-height: 84svh;
    justify-content: flex-start;
    padding: calc(env(safe-area-inset-top) + 1rem) 1.1rem 3.6rem;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(180deg, rgba(255, 248, 214, 0.72), rgba(255, 253, 244, 0.94));
    text-align: center;
}

.cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 18%, rgba(255, 255, 255, 0.8), transparent 38%),
        radial-gradient(ellipse at 50% 58%, rgba(242, 190, 55, 0.18), transparent 44%),
        linear-gradient(180deg, rgba(255, 248, 214, 0.28), rgba(255, 253, 244, 0.96));
}

.cover::after {
    content: '';
    position: absolute;
    --garland-x: -50%;
    --garland-opacity-from: 0.22;
    --garland-opacity-to: 0.34;
    left: 50%;
    bottom: -96px;
    z-index: 0;
    width: min(124%, 620px);
    height: 210px;
    background: url('../images/decor/floral-garland.webp') center bottom / contain no-repeat;
    opacity: 0.3;
    filter: saturate(1.05);
    transform: translateX(-50%);
    animation: garlandBreath 8s ease-in-out infinite alternate;
    pointer-events: none;
}

.cover-flourish {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.cover-flourish::before,
.cover-flourish::after {
    content: '';
    position: absolute;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.5;
    filter: saturate(1.06) contrast(1.02);
    animation: botanicalFloat 9s ease-in-out infinite alternate;
}

.cover-flourish::before {
    top: -108px;
    left: -170px;
    width: min(96vw, 390px);
    aspect-ratio: 1085 / 1450;
    background-image: url('../images/decor/floral-corner.webp');
    transform: rotate(-10deg);
}

.cover-flourish::after {
    right: -128px;
    top: 30%;
    width: min(78vw, 300px);
    aspect-ratio: 1536 / 1024;
    background-image: url('../images/decor/floral-petals.webp');
    opacity: 0.24;
    transform: rotate(8deg);
    animation-delay: -2.8s;
}

.cover > .cover-copy,
.cover > .cover-portrait {
    position: relative;
    z-index: 1;
}

.cover-kicker,
.cover-label {
    color: var(--leaf-dark);
    font-family: var(--body);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.cover-portrait {
    position: relative;
    width: min(68vw, 278px);
    aspect-ratio: 4 / 5;
    margin: 1rem auto 0.95rem;
    padding: 6px;
    border: 1px solid rgba(46, 90, 61, 0.24);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 222, 0.88)),
        var(--white);
    box-shadow:
        0 24px 56px rgba(71, 52, 15, 0.24),
        0 0 0 12px rgba(255, 226, 138, 0.18);
    transform: rotate(-1deg);
}

.cover-portrait::before {
    content: '';
    position: absolute;
    inset: -22px -18px;
    z-index: -1;
    border: 1px solid rgba(232, 120, 104, 0.28);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(242, 190, 55, 0.2), transparent 36%),
        linear-gradient(315deg, rgba(110, 145, 82, 0.18), transparent 38%);
    transform: rotate(2.5deg);
}

.cover-portrait::after {
    content: '';
    position: absolute;
    right: -22px;
    bottom: 22px;
    z-index: 3;
    width: 68px;
    height: 68px;
    background:
        radial-gradient(ellipse at 50% 18%, var(--marigold-soft) 0 18%, transparent 19%),
        radial-gradient(ellipse at 19% 52%, var(--peach) 0 19%, transparent 20%),
        radial-gradient(ellipse at 80% 52%, var(--coral) 0 19%, transparent 20%),
        radial-gradient(ellipse at 50% 82%, var(--mint) 0 18%, transparent 19%),
        radial-gradient(circle at 50% 50%, var(--white) 0 17%, transparent 18%);
    filter: drop-shadow(0 9px 14px rgba(71, 52, 15, 0.18));
    transform: rotate(12deg);
}

.cover-portrait img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
}

.cover-copy {
    width: min(100%, 420px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cover-name {
    margin-top: 0.32rem;
    color: #332B1D;
    font-family: var(--script);
    font-size: 2.08rem;
    font-weight: 400;
    line-height: 1.08;
    overflow-wrap: anywhere;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.86);
}

.age-mark {
    display: inline-flex;
    align-items: baseline;
    gap: 0.42rem;
    margin: 0.65rem 0 0.25rem;
    color: var(--rose);
    font-family: var(--display);
    text-shadow: 0 8px 22px rgba(232, 120, 104, 0.22);
}

.age-mark span {
    font-size: 4.45rem;
    line-height: 0.95;
}

.age-mark small {
    color: var(--leaf-dark);
    font-family: var(--body);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.cover-date {
    color: var(--leaf-deep);
    font-family: var(--body);
    font-size: 0.98rem;
    font-weight: 800;
}

.scroll-cue {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.7rem;
    transform: none;
}

.scroll-cue.in {
    transform: none;
}

.scroll-cue span {
    color: var(--leaf-dark);
    font-family: var(--body);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.scroll-cue i {
    position: relative;
    width: 1px;
    height: 34px;
    background: linear-gradient(var(--leaf-dark), transparent);
}

.scroll-cue i::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--coral);
    transform: translateX(-50%);
    animation: cue 2.15s ease-in-out infinite;
}

@keyframes cue {
    0%,
    100% {
        top: 0;
        opacity: 1;
    }
    62% {
        top: 29px;
        opacity: 0;
    }
}

/* Content sections ------------------------------------------ */

.sec-greeting {
    background:
        linear-gradient(180deg, rgba(255, 253, 244, 0.96), rgba(255, 250, 229, 0.94));
}

.sec-greeting::after {
    content: '';
    position: absolute;
    --petal-r: -9deg;
    right: -86px;
    bottom: -72px;
    width: min(82vw, 310px);
    aspect-ratio: 1536 / 1024;
    background: url('../images/decor/floral-petals.webp') center / contain no-repeat;
    opacity: 0.18;
    transform: rotate(-9deg);
    animation: petalSheetDrift 13s ease-in-out infinite alternate;
    pointer-events: none;
}

.sec-light {
    background: rgba(255, 248, 214, 0.88);
}

.sec-program {
    background:
        radial-gradient(ellipse at 12% 0%, rgba(255, 217, 107, 0.16), transparent 32%),
        radial-gradient(ellipse at 100% 88%, rgba(217, 102, 89, 0.12), transparent 34%),
        linear-gradient(180deg, #173D2A, #214E35);
    color: var(--paper);
}

.sec-place {
    background:
        radial-gradient(ellipse at 100% 8%, rgba(232, 120, 104, 0.16), transparent 26%),
        linear-gradient(180deg, rgba(255, 242, 178, 0.9), rgba(255, 249, 219, 0.96));
}

.sec-place::before {
    content: '';
    position: absolute;
    --garland-x: -50%;
    --garland-r: 180deg;
    --garland-opacity-from: 0.14;
    --garland-opacity-to: 0.24;
    top: -34px;
    left: 50%;
    width: min(128vw, 620px);
    height: 170px;
    background: url('../images/decor/floral-garland.webp') center top / contain no-repeat;
    opacity: 0.2;
    transform: translateX(-50%) rotate(180deg);
    animation: garlandBreath 9s ease-in-out infinite alternate;
    pointer-events: none;
}

.sec-rsvp {
    background:
        radial-gradient(ellipse at 0% 0%, rgba(110, 145, 82, 0.16), transparent 26%),
        linear-gradient(180deg, rgba(255, 249, 219, 0.96), rgba(255, 253, 244, 0.92));
}

.sec-program::after,
.sec-rsvp::after,
.sec-countdown::after {
    content: '';
    position: absolute;
    right: -112px;
    bottom: -98px;
    width: min(96vw, 390px);
    aspect-ratio: 1085 / 1450;
    background: url('../images/decor/floral-corner.webp') center / contain no-repeat;
    opacity: 0.16;
    transform: rotate(-12deg);
    animation: botanicalFloat 10s ease-in-out infinite alternate;
    pointer-events: none;
}

.sec-program::after {
    left: -132px;
    right: auto;
    bottom: -128px;
    opacity: 0.22;
    transform: rotate(4deg);
}

.sec-program .section-title {
    color: var(--paper);
}

.sec-program .tl-item:not(:last-child)::before {
    background: linear-gradient(rgba(255, 217, 107, 0.64), rgba(255, 253, 244, 0.2));
}

.sec-program .tl-icon {
    border-color: rgba(255, 253, 244, 0.28);
    background:
        linear-gradient(145deg, rgba(255, 253, 244, 0.98), rgba(255, 217, 107, 0.42));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.sec-program .tl-time {
    color: #FFFDF4;
}

.sec-program .tl-text {
    color: rgba(255, 253, 244, 0.86);
}

.sec-rsvp::after {
    opacity: 0.13;
}

.sec-countdown::after {
    top: -128px;
    bottom: auto;
    opacity: 0.12;
    transform: rotate(180deg);
}

.place-block {
    width: min(100%, 420px);
    margin: 0 auto 1.5rem;
    text-align: center;
}

.place-name {
    color: var(--leaf-deep);
    font-family: var(--serif);
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.25;
}

.place-meta {
    margin-top: 0.35rem;
    color: var(--rose);
    font-family: var(--body);
    font-size: 0.98rem;
    font-weight: 800;
}

.map-card {
    width: min(100%, 420px);
    height: clamp(310px, 58vh, 460px);
    overflow: hidden;
    border: 1px solid rgba(46, 90, 61, 0.24);
    border-radius: 10px;
    background:
        linear-gradient(rgba(255, 253, 244, 0.84), rgba(255, 226, 138, 0.28));
    box-shadow:
        0 18px 42px rgba(71, 52, 15, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.map-frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--paper);
}

/* Timeline --------------------------------------------------- */

.timeline {
    width: min(100%, 430px);
    margin: 0 auto;
}

.tl-item {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    column-gap: 0.9rem;
    min-height: 126px;
}

.tl-item:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 54px;
    bottom: 0;
    left: 28px;
    width: 1px;
    background: linear-gradient(var(--leaf), rgba(232, 120, 104, 0.34));
}

.tl-left {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.tl-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(46, 90, 61, 0.22);
    border-radius: 50%;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 226, 138, 0.22));
    box-shadow: 0 10px 24px rgba(71, 52, 15, 0.12);
}

.tl-icon svg {
    width: 31px;
    height: 31px;
    fill: var(--coral);
}

.tl-right {
    padding-top: 0.15rem;
    padding-bottom: 1.6rem;
}

.tl-time {
    display: block;
    color: var(--leaf-deep);
    font-family: var(--body);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.tl-text {
    display: block;
    margin-top: 0.38rem;
    color: var(--ink-soft);
    font-family: var(--text-serif);
    font-size: 1.02rem;
    font-weight: 400;
    line-height: 1.62;
}

/* RSVP ------------------------------------------------------- */

.rsvp-form {
    width: min(100%, 420px);
    margin: 2rem auto 0;
    padding: 1.3rem 1rem 1.45rem;
    border: 1px solid rgba(46, 90, 61, 0.16);
    border-radius: 10px;
    background: rgba(255, 253, 244, 0.68);
    box-shadow: 0 16px 38px rgba(71, 52, 15, 0.08);
    text-align: left;
}

.field {
    margin: 0 0 1.55rem;
    padding: 0;
    border: 0;
}

.field > label,
.field legend {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--leaf-deep);
    font-family: var(--body);
    font-size: 0.92rem;
    font-weight: 700;
}

.field input[type=text],
.field textarea {
    width: 100%;
    min-height: 48px;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(46, 90, 61, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    outline: none;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field textarea {
    min-height: 104px;
    line-height: 1.5;
}

.field input[type=text]:focus,
.field textarea:focus {
    border-color: var(--leaf-dark);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(110, 145, 82, 0.16);
}

.radios,
.checks {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.opt {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 38px;
    color: var(--ink-soft);
    cursor: pointer;
}

.opt input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}

.opt i {
    position: relative;
    width: 20px;
    height: 20px;
    flex: none;
    border: 2px solid rgba(46, 90, 61, 0.58);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.84);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.checks .opt i {
    border-radius: 6px;
}

.opt span {
    font-family: var(--body);
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.35;
}

.opt input:checked + i {
    border-color: var(--rose);
    background: var(--rose);
}

.radios .opt input:checked + i::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--white);
}

.checks .opt input:checked + i::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(42deg);
}

.opt input:focus-visible + i {
    box-shadow: 0 0 0 3px rgba(207, 89, 100, 0.2);
}

.err {
    display: block;
    min-height: 1rem;
    margin-top: 0.35rem;
    color: #A84837;
    font-family: var(--body);
    font-size: 0.82rem;
    font-weight: 600;
}

.submit,
.rsvp-again,
.ty-close {
    min-height: 48px;
    border: 1px solid var(--leaf-deep);
    border-radius: 8px;
    background:
        linear-gradient(135deg, var(--leaf-deep), var(--leaf-dark) 58%, #477246);
    color: var(--white);
    cursor: pointer;
    font-family: var(--body);
    font-size: 0.86rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 12px 24px rgba(33, 63, 45, 0.18);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.submit,
.rsvp-again {
    display: block;
    width: min(100%, 280px);
    margin: 1.6rem auto 0;
    padding: 0 1rem;
}

.submit:disabled {
    opacity: 0.68;
    cursor: wait;
}

.submit:active,
.rsvp-again:active,
.ty-close:active {
    transform: translateY(1px);
    box-shadow: 0 8px 18px rgba(33, 63, 45, 0.16);
}

.rsvp-done {
    width: min(100%, 420px);
    margin: 2rem auto 0;
    text-align: center;
}

.rsvp-again {
    background: transparent;
    color: var(--leaf-dark);
    box-shadow: none;
}

/* Countdown -------------------------------------------------- */

.sec-countdown {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(242, 190, 55, 0.2), transparent 34%),
        linear-gradient(180deg, rgba(255, 253, 244, 0.92), rgba(246, 250, 236, 0.9));
}

.countdown-label {
    width: min(100%, 420px);
    margin: 0 auto 1.2rem;
    color: var(--leaf-deep);
    font-family: var(--serif);
    font-size: 1.28rem;
    font-weight: 700;
    text-align: center;
}

.countdown {
    width: min(100%, 420px);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
}

.cd-cell {
    min-width: 0;
    padding: 0.78rem 0.22rem 0.7rem;
    border: 1px solid rgba(46, 90, 61, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 248, 214, 0.72));
    box-shadow: 0 10px 22px rgba(71, 52, 15, 0.08);
    text-align: center;
}

.cd-num {
    display: block;
    color: var(--rose);
    font-family: var(--display);
    font-size: 1.72rem;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    line-height: 1;
}

.cd-unit {
    display: block;
    margin-top: 0.34rem;
    color: var(--leaf-dark);
    font-family: var(--body);
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* Footer ----------------------------------------------------- */

.footer {
    position: relative;
    z-index: 1;
    padding: 4.7rem 1.25rem 5.5rem;
    background:
        linear-gradient(rgba(255, 246, 201, 0.74), rgba(255, 236, 160, 0.82));
    overflow: hidden;
    text-align: center;
}

.footer::before {
    content: '';
    position: absolute;
    --garland-x: -50%;
    --garland-opacity-from: 0.28;
    --garland-opacity-to: 0.38;
    left: 50%;
    bottom: -92px;
    width: min(132vw, 680px);
    height: 230px;
    background: url('../images/decor/floral-garland.webp') center bottom / contain no-repeat;
    opacity: 0.34;
    transform: translateX(-50%);
    animation: garlandBreath 9s ease-in-out infinite alternate;
    pointer-events: none;
}

.footer-name {
    color: var(--leaf-deep);
    font-family: var(--script);
    font-size: 2.9rem;
    line-height: 1;
}

.footer-meta {
    width: min(100%, 420px);
    margin: 1.15rem auto 0;
    color: var(--leaf-dark);
    line-height: 1.45;
}

/* Thank-you modal -------------------------------------------- */

.thankyou {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background:
        linear-gradient(rgba(255, 248, 214, 0.76), rgba(255, 226, 138, 0.84)),
        url('../images/decor/floral-corner.webp') left bottom / min(112vw, 540px) auto no-repeat;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.55s var(--ease), visibility 0.55s var(--ease);
}

.thankyou.visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.ty-card {
    width: min(100%, 340px);
    padding: 2rem 1.45rem;
    border: 1px solid rgba(46, 90, 61, 0.22);
    border-radius: 8px;
    background: rgba(255, 253, 244, 0.92);
    box-shadow: 0 24px 70px rgba(46, 68, 31, 0.24);
    text-align: center;
}

.thankyou.visible .ty-card {
    animation: floatIn 0.65s var(--ease) both;
}

.ty-script {
    display: block;
    color: var(--coral);
    font-family: var(--script);
    font-size: 3.5rem;
    line-height: 1;
}

.ty-divider {
    width: 54px;
    height: 1px;
    margin: 1.3rem auto;
    background: var(--line);
}

.ty-message {
    color: var(--ink-soft);
    font-family: var(--text-serif);
    font-size: 1.08rem;
    font-weight: 400;
    line-height: 1.68;
}

.ty-name {
    margin-top: 1.55rem;
    color: var(--ink);
    font-family: var(--script);
    font-size: 2.35rem;
    line-height: 1;
}

.ty-date {
    margin-top: 1rem;
    color: var(--leaf-dark);
}

.ty-close {
    margin-top: 1.75rem;
    padding: 0 1.6rem;
}

/* Confetti --------------------------------------------------- */

.confetti-burst {
    position: fixed;
    left: 50%;
    top: 52%;
    z-index: 90;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.confetti-burst span {
    position: absolute;
    left: 0;
    top: 0;
    width: 7px;
    height: 12px;
    border-radius: 5px 5px 8px 8px;
    background: var(--c);
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg);
    animation: confettiPop 1.35s var(--ease) var(--d) forwards;
}

.confetti-burst span:nth-child(3n) {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.confetti-burst span:nth-child(4n) {
    width: 11px;
    height: 6px;
    border-radius: 10px;
}

@keyframes confettiPop {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) rotate(0deg) scale(0.5);
    }
    14% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--x), var(--y), 0) rotate(var(--r)) scale(1);
    }
}

/* =============================================================
   Wide viewport card
   ============================================================= */

@media (min-width: 900px) {
    body {
        background:
            linear-gradient(135deg, rgba(255, 246, 201, 0.88), rgba(255, 253, 244, 0.96)),
            url('../images/decor/floral-corner.webp') left bottom / min(48vw, 620px) auto no-repeat,
            url('../images/decor/floral-garland.webp') right bottom / min(58vw, 760px) auto no-repeat;
    }

    #app {
        position: relative;
        width: min(430px, 100%);
        min-height: 100vh;
        margin: 0 auto;
        overflow: hidden;
        background: var(--butter-soft);
        box-shadow:
            0 0 0 1px rgba(23, 61, 42, 0.14),
            0 30px 90px rgba(23, 61, 42, 0.22);
    }

    .ambient-bg,
    .intro,
    .thankyou {
        left: 50%;
        right: auto;
        width: min(430px, 100%);
        transform: translateX(-50%);
    }

    .thankyou.visible .ty-card {
        animation-name: floatInCentered;
    }

    @keyframes floatInCentered {
        from {
            opacity: 0;
            transform: translateY(18px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* =============================================================
   Mobile refinements
   ============================================================= */

@media (max-width: 360px) {
    .section-title {
        font-size: 2.35rem;
    }

    .intro-title {
        font-size: 1.18rem;
        margin-bottom: 5.5rem;
    }

    .cover-name {
        font-size: 2.04rem;
    }

    .cover-portrait {
        width: min(62vw, 226px);
    }

    .cover-portrait::after {
        right: -15px;
        bottom: 16px;
        width: 54px;
        height: 54px;
    }

    .age-mark span {
        font-size: 3.35rem;
    }

    .prologue-name,
    .footer-name {
        font-size: 2.45rem;
    }

    .prose {
        font-size: 1.16rem;
    }
}

@media (min-width: 420px) {
    .section-title {
        font-size: 2.95rem;
    }

    .cover-name {
        font-size: 2.22rem;
    }

    .prose {
        font-size: 1.32rem;
    }
}

@media (max-height: 650px) {
    .cover {
        min-height: auto;
        padding-top: calc(env(safe-area-inset-top) + 0.65rem);
        padding-bottom: 1.45rem;
    }

    .cover-portrait {
        width: min(54vw, 210px);
        margin-top: 0.55rem;
        margin-bottom: 0.5rem;
        padding: 5px;
    }

    .cover-name {
        font-size: 1.88rem;
    }

    .age-mark {
        margin-top: 0.24rem;
        margin-bottom: 0.1rem;
    }

    .age-mark span {
        font-size: 2.95rem;
    }

    .cover-date {
        font-size: 0.9rem;
    }

    .scroll-cue {
        position: static;
        margin-top: 0.45rem;
        gap: 0.24rem;
        transform: none;
    }

    .scroll-cue.in {
        transform: none;
    }

    .scroll-cue span {
        font-size: 0.64rem;
    }

    .scroll-cue i {
        height: 22px;
    }

    .scroll-cue i::after {
        animation-name: cueShort;
    }

    .map-card {
        height: 300px;
    }
}

@keyframes cueShort {
    0%,
    100% {
        top: 0;
        opacity: 1;
    }
    62% {
        top: 18px;
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    .rv {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* =============================================================
   Reference layout override — watercolor artboard
   ============================================================= */

:root {
    --ref-paper: #F8F1DF;
    --ref-paper-soft: #FBF6E8;
    --ref-cream: #FFF9ED;
    --ref-forest: #214E43;
    --ref-forest-deep: #123A32;
    --ref-sage: #82917B;
    --ref-coral: #E98368;
    --ref-coral-soft: #F3B096;
    --ref-gold: #D5A950;
    --ref-gold-soft: rgba(213, 169, 80, 0.34);
    --ref-ink: #34443E;
    --ref-muted: #56615C;
}

body {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 247, 222, 0.85), rgba(246, 239, 220, 0.98) 54%, #E9E0C9),
        #EFE6D2;
    color: var(--ref-ink);
}

#app {
    position: relative;
    width: min(430px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    overflow: hidden;
    background:
        linear-gradient(
            180deg,
            rgba(255, 251, 238, 0.4) 0,
            rgba(255, 251, 238, 0.2) 42px,
            rgba(255, 251, 238, 0) 124px,
            rgba(255, 251, 238, 0) calc(100% - 124px),
            rgba(255, 251, 238, 0.2) calc(100% - 42px),
            rgba(255, 251, 238, 0.4) 100%
        ),
        linear-gradient(rgba(248, 241, 223, 0.86), rgba(248, 241, 223, 0.9)),
        url('../images/jubilee/floral-background.webp'),
        var(--ref-paper);
    background-position:
        center top,
        center top,
        center top;
    background-repeat:
        repeat-y,
        repeat,
        repeat-y;
    background-size:
        100% var(--floral-tile-h),
        auto,
        100% auto;
    box-shadow:
        0 0 0 1px rgba(42, 78, 67, 0.14),
        0 28px 90px rgba(38, 62, 49, 0.22);
    container-type: inline-size;
}

.ambient-bg {
    left: 50%;
    right: auto;
    width: min(430px, 100%);
    transform: translateX(-50%);
    background:
        radial-gradient(ellipse at 84% 9%, rgba(18, 58, 50, 0.22), transparent 28%),
        radial-gradient(ellipse at 9% 52%, rgba(232, 131, 104, 0.13), transparent 30%),
        linear-gradient(180deg, rgba(248, 241, 223, 0.36), rgba(248, 241, 223, 0.12));
}

.ambient-bg::before {
    background:
        url('../images/decor/floral-corner.webp') left 13% / min(64cqw, 270px) auto no-repeat,
        url('../images/decor/floral-corner.webp') right 56% / min(58cqw, 250px) auto no-repeat;
    opacity: 0.16;
}

.ambient-bg::after {
    background:
        radial-gradient(ellipse at 88% 12%, rgba(18, 58, 50, 0.42), transparent 24%),
        radial-gradient(ellipse at 16% 38%, rgba(18, 58, 50, 0.2), transparent 32%),
        radial-gradient(ellipse at 84% 71%, rgba(18, 58, 50, 0.28), transparent 35%),
        linear-gradient(180deg, rgba(255, 251, 238, 0.16), rgba(255, 251, 238, 0.3));
}

.landing {
    position: relative;
    z-index: 1;
    overflow: hidden;
    opacity: 0;
    background:
        linear-gradient(
            180deg,
            rgba(255, 251, 238, 0.34) 0,
            rgba(255, 251, 238, 0.16) 42px,
            rgba(255, 251, 238, 0) 124px,
            rgba(255, 251, 238, 0) calc(100% - 124px),
            rgba(255, 251, 238, 0.16) calc(100% - 42px),
            rgba(255, 251, 238, 0.34) 100%
        ),
        linear-gradient(rgba(248, 241, 223, 0.68), rgba(248, 241, 223, 0.84)),
        url('../images/jubilee/floral-background.webp');
    background-position:
        center top,
        center top,
        center top;
    background-repeat:
        repeat-y,
        repeat,
        repeat-y;
    background-size:
        100% var(--floral-tile-h),
        auto,
        100% auto;
    transition: opacity 0.8s var(--ease);
}

.landing::before,
.landing::after {
    content: '';
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.landing::before {
    inset: 0;
    background:
        url('../images/decor/floral-corner.webp') -30cqw 28cqw / 70cqw auto no-repeat,
        url('../images/decor/floral-corner.webp') 80cqw 127cqw / 60cqw auto no-repeat,
        url('../images/decor/floral-garland.webp') center bottom / 112cqw auto no-repeat;
    opacity: 0.4;
}

.landing::after {
    inset: 0;
    background:
        radial-gradient(ellipse at 96% 9%, rgba(17, 58, 50, 0.82), transparent 25%),
        radial-gradient(ellipse at -8% 50%, rgba(17, 58, 50, 0.58), transparent 28%),
        radial-gradient(ellipse at 88% 92%, rgba(17, 58, 50, 0.48), transparent 31%);
    mix-blend-mode: multiply;
    opacity: 0.34;
}

.landing.reveal {
    opacity: 1;
}

.sec,
.sec-light,
.sec-greeting,
.sec-place,
.sec-program,
.sec-rsvp,
.sec-countdown {
    position: relative;
    z-index: 1;
    display: block;
    overflow: visible;
    padding: 0;
    background: transparent;
    color: var(--ref-ink);
    text-align: left;
}

.sec::before,
.sec::after,
.sec-greeting::after,
.sec-place::before,
.sec-program::after,
.sec-rsvp::after,
.sec-countdown::after {
    content: none;
}

.rv {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.rv.in {
    opacity: 1;
    transform: none;
}

.section-title {
    width: auto;
    margin: 0;
    color: var(--ref-forest);
    font-family: var(--display);
    font-size: clamp(2.55rem, 12.4cqw, 4.18rem);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 0.86;
    text-align: left;
    overflow-wrap: normal;
}

.prose {
    width: auto;
    margin: 0;
    color: var(--ref-ink);
    font-family: var(--text-serif);
    font-size: clamp(0.82rem, 3.3cqw, 1rem);
    font-weight: 500;
    line-height: 1.42;
    text-align: left;
}

.cover {
    min-height: 600px;
    display: grid;
    grid-template-columns: 47% 53%;
    align-items: start;
    padding: 36px 24px 52px;
    isolation: isolate;
}

.cover::before {
    content: '';
    position: absolute;
    left: -12%;
    top: -2%;
    z-index: 0;
    width: 92%;
    height: 70%;
    border: 1px solid var(--ref-gold-soft);
    border-radius: 55% 45% 61% 39% / 38% 55% 45% 62%;
    background:
        radial-gradient(ellipse at 24% 20%, rgba(255, 255, 255, 0.94), rgba(255, 250, 238, 0.78) 61%, rgba(255, 246, 228, 0.5)),
        rgba(255, 252, 244, 0.62);
    box-shadow: inset 0 0 38px rgba(213, 169, 80, 0.12);
    transform: rotate(-7deg);
}

.cover::after {
    content: '';
    position: absolute;
    right: -42%;
    bottom: -9%;
    z-index: 1;
    width: 92%;
    height: 42%;
    border-radius: 59% 41% 45% 55% / 47% 63% 37% 53%;
    background:
        radial-gradient(ellipse at 58% 38%, rgba(18, 58, 50, 0.82), rgba(18, 58, 50, 0.22) 55%, transparent 72%);
    filter: blur(0.2px);
    transform: rotate(-9deg);
}

.cover-wash {
    position: absolute;
    left: -3%;
    right: -3%;
    bottom: -70px;
    z-index: 2;
    height: 170px;
    border-top: 0;
    border-radius: 50% 50% 0 0 / 34% 34% 0 0;
    background: linear-gradient(
        180deg,
        rgba(251, 246, 232, 0) 0%,
        rgba(251, 246, 232, 0.66) 48%,
        rgba(251, 246, 232, 0) 100%
    );
    transform: rotate(-2deg);
}

.cover-copy {
    position: relative;
    z-index: 4;
    grid-column: 1;
    display: block;
    width: 154%;
    margin-top: clamp(52px, 16cqw, 70px);
    padding-top: 6px;
}

.cover-kicker,
.cover-label {
    display: block;
    color: var(--ref-forest);
    font-family: var(--body);
    font-size: clamp(0.66rem, 2.72cqw, 0.9rem);
    font-weight: 800;
    letter-spacing: 0.2em;
    line-height: 1.4;
    text-transform: uppercase;
}

.cover-label {
    margin: 15px 0 12px 34px;
    letter-spacing: 0.18em;
}

.cover-name {
    margin: 24px 0 0;
    color: var(--ref-forest);
    font-family: var(--display);
    font-size: clamp(2rem, 8.7cqw, 3.42rem);
    font-weight: 600;
    line-height: 0.76;
    text-shadow: none;
}

.cover-name span,
.cover-name em {
    display: block;
    font-style: normal;
}

.cover-name em {
    margin: 2px 0 2px -10px;
    color: var(--ref-coral);
    font-family: var(--script);
    font-size: clamp(2.18rem, 8.8cqw, 3.72rem);
    font-weight: 400;
    line-height: 0.86;
}

.age-mark {
    display: flex;
    align-items: flex-end;
    gap: 0.35rem;
    margin: 20px 0 8px -4px;
    color: var(--ref-coral);
    font-family: var(--display);
    text-shadow: none;
}

.age-mark span {
    font-size: clamp(6.2rem, 31cqw, 10.8rem);
    font-weight: 600;
    line-height: 0.68;
}

.age-mark small {
    margin-bottom: 0.45rem;
    color: var(--ref-coral);
    font-family: var(--script);
    font-size: clamp(1.55rem, 6.4cqw, 2.55rem);
    font-weight: 400;
    line-height: 1;
    text-transform: none;
}

.cover-date {
    margin-top: 11px;
    color: var(--ref-forest);
    font-family: var(--display);
    font-size: clamp(1.1rem, 5.1cqw, 1.7rem);
    font-weight: 600;
    line-height: 1.1;
}

.scroll-cue {
    position: absolute;
    z-index: 5;
    top: clamp(338px, 94cqw, 392px);
    left: clamp(52px, 15cqw, 74px);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    margin: 0;
}

.scroll-cue span {
    color: var(--ref-forest);
    font-family: var(--body);
    font-size: clamp(0.55rem, 2.2cqw, 0.72rem);
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.scroll-cue i {
    width: 17px;
    height: 17px;
    border-right: 2px solid var(--ref-forest);
    border-bottom: 2px solid var(--ref-forest);
    background: transparent;
    transform: rotate(45deg);
    animation: cueArrowBounce 1.45s ease-in-out infinite;
}

.scroll-cue i::after {
    content: none;
}

@keyframes cueArrowBounce {
    0%,
    100% {
        opacity: 0.55;
        transform: translateY(0) rotate(45deg);
    }
    45% {
        opacity: 1;
        transform: translateY(8px) rotate(45deg);
    }
}

.cover-portrait {
    position: relative;
    z-index: 3;
    grid-column: 2;
    width: 122%;
    aspect-ratio: 0.78;
    margin: clamp(236px, 63cqw, 272px) -45% 0 8%;
    padding: 10px;
    overflow: visible;
    border: 0;
    border-radius: 48% 52% 44% 56% / 44% 43% 57% 56%;
    background:
        linear-gradient(rgba(255, 251, 238, 0.72), rgba(246, 235, 204, 0.5)),
        rgba(255, 255, 255, 0.7);
    box-shadow: none;
    transform: none;
}

.cover > figure.cover-portrait.rv {
    z-index: 8;
}

.cover-portrait::before {
    content: '';
    position: absolute;
    inset: -14px -11px -16px -17px;
    z-index: 0;
    border: 1px solid rgba(213, 169, 80, 0.58);
    border-radius: inherit;
    background: rgba(255, 252, 244, 0.36);
    transform: rotate(7deg);
}

.cover-portrait::after {
    content: '';
    position: absolute;
    right: -37%;
    bottom: -13%;
    z-index: 3;
    width: 92%;
    aspect-ratio: 1085 / 1450;
    border-radius: 0;
    background: url('../images/decor/floral-corner.webp') center / contain no-repeat;
    filter: drop-shadow(0 10px 16px rgba(35, 49, 33, 0.18));
    transform: rotate(9deg);
}

.cover-portrait img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    object-position: 52% 32%;
    clip-path: ellipse(49% 50% at 50% 50%);
}

.sec-story {
    min-height: 480px;
    display: grid;
    grid-template-columns: 39% 61%;
    align-items: start;
    margin-top: 0;
    padding: 16px 24px 54px;
}

.sec-story::before {
    content: '';
    position: absolute;
    left: -38%;
    top: -42px;
    z-index: 0;
    width: 106%;
    height: 70%;
    border: 0;
    border-radius: 58% 42% 54% 46% / 36% 55% 45% 64%;
    background: linear-gradient(
        180deg,
        rgba(255, 251, 238, 0) 0%,
        rgba(255, 251, 238, 0.62) 18%,
        rgba(255, 251, 238, 0.76) 100%
    );
    transform: rotate(-9deg);
}

.sec-story::after {
    content: '';
    position: absolute;
    left: -28%;
    top: -84px;
    z-index: 1;
    width: 56%;
    aspect-ratio: 1085 / 1450;
    background: url('../images/decor/floral-corner.webp') center / contain no-repeat;
    opacity: 0.28;
    transform: rotate(-4deg);
}

.sec-story .story-copy {
    position: relative;
    z-index: 3;
    grid-column: 1;
    display: flex;
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    width: 162%;
    padding-top: 18px;
}

.story-copy::before {
    content: '';
    position: absolute;
    left: -58px;
    top: -22px;
    z-index: -1;
    width: 320px;
    height: 305px;
    border-radius: 58% 42% 50% 30% / 29% 46% 54% 30%;
    background: rgba(255, 251, 238, 0.82);
    filter: blur(0.2px);
}

.story-copy .section-title {
    max-width: 224px;
    font-size: clamp(2.04rem, 8.8cqw, 2.96rem);
    line-height: 0.9;
}

.story-copy .prose {
    max-width: 230px;
    margin-top: 1.1rem;
    margin-bottom: 0;
    margin-left: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    line-height: 1.42;
}

.sec-story .story-floral {
    position: absolute;
    z-index: 0;
    top: 20px;
    right: 0;
    width: min(60%, 252px);
    aspect-ratio: 1085 / 1450;
    background: url('../images/decor/floral-corner.webp') center / contain no-repeat;
    opacity: 0.58;
    transform: rotate(180deg);
    pointer-events: none;
}

.map-card {
    position: relative;
    z-index: 2;
    grid-column: 1 / -1;
    width: 104%;
    height: auto;
    aspect-ratio: 1.02;
    margin: 44px 0 0 -2%;
    overflow: hidden;
    border: 1px solid rgba(213, 169, 80, 0.52);
    border-radius: 47% 53% 42% 58% / 37% 45% 55% 63%;
    background: rgba(255, 252, 244, 0.82);
    box-shadow:
        inset 0 0 0 10px rgba(255, 251, 238, 0.46),
        0 18px 36px rgba(50, 62, 44, 0.11);
    transform: rotate(4deg);
}

.map-card::before {
    content: none;
}

.map-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--ref-paper);
    opacity: 1;
    filter: none;
    transform: none;
}

.sec-place-program {
    min-height: 690px;
    display: grid;
    grid-template-columns: 37% 63%;
    grid-template-rows: 250px 1fr;
    padding: 8px 24px 76px;
}

.sec-place-program::before {
    content: '';
    position: absolute;
    left: -32%;
    top: 28px;
    z-index: 0;
    width: 164%;
    height: 64%;
    border-radius: 56% 44% 50% 50% / 34% 44% 56% 66%;
    background:
        radial-gradient(ellipse at 72% 52%, rgba(18, 58, 50, 0.2), transparent 43%),
        rgba(230, 230, 206, 0.18);
    opacity: 0.44;
    transform: rotate(-6deg);
}

.sec-place-program::after {
    content: '';
    position: absolute;
    right: -15%;
    bottom: 12px;
    z-index: 1;
    width: 46%;
    aspect-ratio: 1085 / 1450;
    background: url('../images/decor/floral-corner.webp') center / contain no-repeat;
    transform: rotate(13deg) scaleX(-1);
}

.place-block {
    position: relative;
    z-index: 3;
    grid-column: 1;
    grid-row: 1;
    width: auto;
    margin: 0;
    padding-top: 4px;
    text-align: left;
}

.place-block .section-title {
    font-size: clamp(2.04rem, 8.8cqw, 2.96rem);
}

.place-name {
    margin-top: 28px;
    color: var(--ref-forest);
    font-family: var(--display);
    font-size: clamp(1.35rem, 5.4cqw, 1.95rem);
    font-weight: 600;
    line-height: 1.02;
}

.place-meta {
    margin-top: 12px;
    color: var(--ref-coral);
    font-family: var(--display);
    font-size: clamp(1.06rem, 4.1cqw, 1.42rem);
    font-weight: 700;
    line-height: 1.1;
}

.pin-badge {
    position: absolute;
    right: -34px;
    top: 86px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(213, 169, 80, 0.7);
    border-radius: 50%;
    background: rgba(255, 252, 244, 0.72);
}

.pin-badge::before {
    content: '';
    position: absolute;
    left: 13px;
    top: 9px;
    width: 15px;
    height: 18px;
    border-radius: 50% 50% 50% 0;
    background: var(--ref-forest);
    transform: rotate(-45deg);
}

.pin-badge::after {
    content: '';
    position: absolute;
    left: 18px;
    top: 14px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ref-paper);
}

.program-block {
    display: contents;
}

.program-block > .section-title {
    position: relative;
    z-index: 3;
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    padding-top: 42px;
    max-width: 150px;
    font-size: clamp(2.04rem, 8.8cqw, 2.96rem);
}

.timeline {
    position: relative;
    z-index: 3;
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: auto;
    margin: 112px -10px 0 -10px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: -30px;
    top: -72px;
    width: 42px;
    height: 420px;
    border-left: 2px dashed rgba(213, 169, 80, 0.72);
    border-radius: 50%;
    transform: rotate(3deg);
}

.tl-item {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    column-gap: 5px;
    align-items: center;
    min-height: 0;
}

.tl-item:not(:last-child)::before {
    content: none;
}

.tl-left {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.tl-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 252, 244, 0.76);
    border-radius: 50%;
    background: radial-gradient(circle at 33% 28%, #436D5E, var(--ref-forest-deep));
    color: var(--ref-cream);
    box-shadow:
        0 7px 17px rgba(29, 55, 47, 0.22),
        0 0 0 3px rgba(213, 169, 80, 0.24);
    font-family: var(--display);
    font-size: 1.03rem;
    font-weight: 600;
    line-height: 1;
}

.tl-icon--coral {
    background: radial-gradient(circle at 35% 30%, #F7B198, var(--ref-coral));
}

.tl-right {
    position: relative;
    min-height: 128px;
    padding: 17px 18px 17px 24px;
    border: 1px solid rgba(213, 169, 80, 0.42);
    border-radius: 34px;
    background: rgba(255, 251, 238, 0.72);
    box-shadow: 0 10px 23px rgba(64, 74, 58, 0.08);
}

.tl-item:nth-child(3) .tl-right::after {
    content: '';
    position: absolute;
    right: -42px;
    bottom: -42px;
    z-index: -1;
    width: 116px;
    aspect-ratio: 1085 / 1450;
    background: url('../images/decor/floral-corner.webp') center / contain no-repeat;
    opacity: 0.48;
    transform: rotate(16deg) scaleX(-1);
    pointer-events: none;
}

.tl-time {
    display: block;
    color: var(--ref-forest);
    font-family: var(--body);
    font-size: clamp(0.88rem, 3.45cqw, 1.08rem);
    font-weight: 800;
    line-height: 1.2;
}

.tl-text {
    display: block;
    margin-top: 6px;
    color: var(--ref-muted);
    font-family: var(--text-serif);
    font-size: clamp(0.82rem, 3.3cqw, 1rem);
    font-weight: 500;
    line-height: 1.42;
}

.sec-rsvp {
    min-height: 532px;
    display: grid;
    grid-template-columns: 38% 62%;
    align-items: start;
    padding: 18px 24px 70px;
}

.sec-rsvp::before {
    content: '';
    position: absolute;
    left: -13%;
    top: -16px;
    z-index: 0;
    width: 122%;
    height: 98%;
    border: 1px solid rgba(213, 169, 80, 0.42);
    border-radius: 56% 44% 42% 58% / 39% 36% 64% 61%;
    background: rgba(255, 251, 238, 0.58);
    transform: rotate(3deg);
}

.sec-rsvp::after {
    content: '';
    position: absolute;
    left: -26%;
    bottom: -52px;
    z-index: 1;
    width: 56%;
    aspect-ratio: 1085 / 1450;
    background: url('../images/decor/floral-corner.webp') center / contain no-repeat;
    transform: rotate(-3deg);
}

.rsvp-copy {
    position: relative;
    z-index: 3;
    grid-column: 1;
    padding-top: 112px;
}

.rsvp-copy .section-title {
    font-size: clamp(2.04rem, 8.8cqw, 2.96rem);
    line-height: 0.9;
}

.rsvp-copy .prose {
    margin-top: 22px;
    max-width: 135px;
}

.rsvp-form {
    position: relative;
    z-index: 3;
    grid-column: 2;
    width: 112%;
    margin: 0 -14% 0 0;
    padding: 24px 22px 28px;
    border: 1px solid rgba(213, 169, 80, 0.46);
    border-radius: 31% 26% 28% 32% / 13% 16% 15% 17%;
    background: rgba(255, 251, 238, 0.72);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.58),
        0 14px 28px rgba(64, 74, 58, 0.1);
    text-align: left;
}

.field {
    margin-bottom: 15px;
}

.field > label,
.field legend {
    margin-bottom: 8px;
    color: var(--ref-forest);
    font-family: var(--body);
    font-size: clamp(0.82rem, 3.1cqw, 1rem);
    font-weight: 800;
    line-height: 1.25;
}

.field input[type=text],
.field textarea {
    min-height: 44px;
    padding: 0.58rem 0.68rem;
    border: 1px solid rgba(134, 120, 88, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.62);
    color: var(--ref-ink);
    font-size: clamp(0.9rem, 3.25cqw, 1rem);
}

.field textarea {
    min-height: 44px;
    resize: vertical;
}

.radios,
.checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 8px;
}

.radios {
    grid-template-columns: 1fr;
    row-gap: 7px;
}

.checks .opt:last-child {
    grid-column: 1 / -1;
}

.opt {
    min-height: 32px;
    gap: 9px;
}

.opt i {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(213, 169, 80, 0.65);
    background: rgba(255, 252, 244, 0.62);
}

.checks .opt i {
    border-radius: 2px;
}

.opt span {
    color: var(--ref-ink);
    font-size: clamp(0.78rem, 2.95cqw, 0.96rem);
    font-weight: 600;
    line-height: 1.28;
}

.opt input:checked + i {
    border-color: var(--ref-coral);
    background: var(--ref-coral);
}

.err {
    min-height: 0.75rem;
    margin-top: 2px;
    color: #A84837;
    font-size: 0.8rem;
}

.submit,
.rsvp-again,
.ty-close {
    min-height: 54px;
    border: 1px solid rgba(213, 169, 80, 0.54);
    border-radius: 999px;
    background: linear-gradient(135deg, #17453B, #285E4F);
    color: var(--ref-cream);
    font-size: clamp(0.86rem, 3.2cqw, 1rem);
    letter-spacing: 0.12em;
    box-shadow:
        0 12px 20px rgba(24, 70, 59, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.submit,
.rsvp-again {
    width: 100%;
    margin-top: 14px;
}

.rsvp-done {
    position: relative;
    z-index: 3;
    grid-column: 2;
    align-self: center;
    justify-self: start;
    width: 112%;
    margin: 0 -14% 0 0;
    padding: 28px 24px 30px;
    border: 1px solid rgba(213, 169, 80, 0.42);
    border-radius: 38% 32% 34% 36% / 17% 20% 18% 19%;
    background: rgba(255, 251, 238, 0.72);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.48),
        0 14px 28px rgba(64, 74, 58, 0.1);
    text-align: center;
}

.rsvp-done .prose {
    max-width: none;
    text-align: center;
}

.rsvp-done .rsvp-again {
    margin-top: 24px;
}

.sec-countdown {
    position: relative;
    padding: 10px 24px 46px;
    text-align: center;
}

.sec-countdown::after {
    content: '';
    position: absolute;
    left: -18%;
    right: -18%;
    bottom: -76px;
    z-index: 0;
    height: 154px;
    background: linear-gradient(
        180deg,
        rgba(248, 241, 223, 0) 0%,
        rgba(255, 251, 238, 0.58) 42%,
        rgba(255, 251, 238, 0.86) 72%,
        rgba(255, 251, 238, 0) 100%
    );
    pointer-events: none;
}

.countdown-label {
    width: auto;
    margin: 0 0 20px;
    color: var(--ref-forest);
    font-family: var(--display);
    font-size: clamp(1.35rem, 5.4cqw, 1.85rem);
    font-weight: 600;
    line-height: 1.1;
}

.countdown {
    width: 100%;
    --cd-size: clamp(72px, 20cqw, 84px);
    display: grid;
    grid-template-columns: repeat(4, var(--cd-size));
    justify-content: space-between;
    align-items: center;
    gap: 0;
}

.cd-cell {
    position: relative;
    aspect-ratio: 1;
    width: var(--cd-size);
    flex: 0 0 var(--cd-size);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 7px;
    border: 1px solid rgba(213, 169, 80, 0.46);
    border-radius: 50%;
    background: rgba(255, 251, 238, 0.62);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.cd-cell:not(:last-child)::after {
    content: none;
    position: absolute;
    right: -6px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ref-gold);
    transform: translate(50%, -50%);
}

.cd-num {
    color: var(--ref-coral);
    font-family: var(--display);
    font-size: clamp(1.76rem, 6.8cqw, 2.28rem);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    line-height: 0.92;
}

.cd-unit {
    margin-top: 5px;
    color: var(--ref-forest);
    font-family: var(--body);
    font-size: clamp(0.78rem, 2.9cqw, 0.92rem);
    font-weight: 800;
    text-transform: lowercase;
}

.footer {
    position: relative;
    z-index: 1;
    margin-top: -26px;
    padding: 54px 24px 94px;
    overflow: visible;
    background:
        linear-gradient(
            180deg,
            rgba(255, 251, 238, 0) 0%,
            rgba(255, 251, 238, 0.72) 28%,
            rgba(248, 241, 223, 0.58) 100%
        );
    text-align: center;
}

.footer::before {
    content: '';
    position: absolute;
    left: -26%;
    right: -26%;
    bottom: -68px;
    z-index: 0;
    width: auto;
    height: 204px;
    background: url('../images/decor/floral-garland.webp') center bottom / 118% auto no-repeat;
    opacity: 0.9;
    transform: none;
    animation: none;
}

.footer::after {
    content: '';
    position: absolute;
    left: -22%;
    right: -22%;
    top: -86px;
    z-index: 0;
    height: 156px;
    background: linear-gradient(
        180deg,
        rgba(248, 241, 223, 0) 0%,
        rgba(255, 251, 238, 0.68) 58%,
        rgba(255, 251, 238, 0) 100%
    );
    pointer-events: none;
}

.footer-name {
    position: relative;
    z-index: 2;
    display: block;
    max-width: 100%;
    color: var(--ref-forest);
    font-family: var(--script);
    font-size: clamp(1.72rem, 7.35cqw, 2.42rem);
    line-height: 0.95;
    white-space: nowrap;
    transform: scaleX(0.94);
    transform-origin: center;
}

.footer-name span {
    color: var(--ref-forest);
}

.footer-name em {
    color: var(--ref-coral);
    font-style: normal;
    margin-left: 0.18em;
}

.footer-meta {
    position: relative;
    z-index: 2;
    width: auto;
    margin: 22px auto 0;
    color: var(--ref-forest);
    font-family: var(--display);
    font-size: clamp(0.9rem, 3.7cqw, 1.22rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-transform: uppercase;
}

.thankyou {
    background:
        linear-gradient(rgba(248, 241, 223, 0.82), rgba(248, 241, 223, 0.86)),
        url('../images/jubilee/floral-background.webp') center / cover no-repeat;
}

.ty-card {
    border-color: rgba(213, 169, 80, 0.44);
    border-radius: 34% 29% 31% 28% / 17% 20% 19% 18%;
    background: rgba(255, 251, 238, 0.82);
}

.ty-script,
.ty-name {
    color: var(--ref-coral);
}

@media (min-width: 900px) {
    #app {
        width: min(430px, 100%);
        background:
            linear-gradient(
                180deg,
                rgba(255, 251, 238, 0.4) 0,
                rgba(255, 251, 238, 0.2) 42px,
                rgba(255, 251, 238, 0) 124px,
                rgba(255, 251, 238, 0) calc(100% - 124px),
                rgba(255, 251, 238, 0.2) calc(100% - 42px),
                rgba(255, 251, 238, 0.4) 100%
            ),
            linear-gradient(rgba(248, 241, 223, 0.86), rgba(248, 241, 223, 0.9)),
            url('../images/jubilee/floral-background.webp'),
            var(--ref-paper);
        background-position:
            center top,
            center top,
            center top;
        background-repeat:
            repeat-y,
            repeat,
            repeat-y;
        background-size:
            100% var(--floral-tile-h),
            auto,
            100% auto;
    }

    .ambient-bg,
    .intro,
    .thankyou {
        left: 50%;
        right: auto;
        width: min(430px, 100%);
        transform: translateX(-50%);
    }
}

@media (max-width: 374px) {
    .cover {
        min-height: 510px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .cover-copy {
        width: 154%;
        margin-top: clamp(48px, 15cqw, 64px);
    }

    .cover-name {
        font-size: 2.25rem;
    }

    .cover-name em {
        font-size: 2.55rem;
    }

    .age-mark span {
        font-size: 6.85rem;
    }

    .sec-story,
    .sec-place-program,
    .sec-rsvp,
    .sec-countdown,
    .footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .tl-item {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .tl-icon {
        width: 51px;
        height: 51px;
        font-size: 0.95rem;
    }

    .tl-right {
        padding-left: 19px;
        padding-right: 12px;
    }

    .rsvp-form {
        padding-left: 17px;
        padding-right: 17px;
    }
}

/* =============================================================
   Generated floral asset pass — envelope and cover
   ============================================================= */

.intro {
    place-items: stretch;
    background:
        radial-gradient(ellipse at 50% 31%, rgba(255, 253, 244, 0.94), rgba(255, 249, 235, 0.82) 48%, rgba(238, 226, 199, 0.78)),
        radial-gradient(ellipse at 90% 76%, rgba(124, 144, 118, 0.22), transparent 32%),
        radial-gradient(ellipse at 12% 3%, rgba(239, 184, 126, 0.2), transparent 30%),
        #F8F1DF;
}

.intro::before {
    inset: 0;
    left: 0;
    bottom: auto;
    z-index: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    background: url('../images/decor/intro-floral-frame.webp') left top / 100% 100% no-repeat;
    opacity: 0.95;
    transform: none;
    animation: none;
    pointer-events: none;
}

.intro::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at 86% 17%, rgba(213, 169, 80, 0.12), transparent 26%),
        radial-gradient(ellipse at 74% 82%, rgba(255, 255, 255, 0.42), transparent 32%),
        linear-gradient(136deg, transparent 17%, rgba(213, 169, 80, 0.24) 17.12%, transparent 17.28%),
        linear-gradient(154deg, transparent 75%, rgba(213, 169, 80, 0.22) 75.12%, transparent 75.28%);
    mix-blend-mode: multiply;
    pointer-events: none;
}

.petal-field {
    display: none;
}

.envelope-stage {
    z-index: 2;
    justify-content: flex-start;
    padding:
        calc(env(safe-area-inset-top) + clamp(108px, 17svh, 164px))
        clamp(22px, 6vw, 32px)
        calc(env(safe-area-inset-bottom) + 38px);
}

.intro-title {
    position: relative;
    margin: 0 0 clamp(62px, 8.2svh, 86px);
    color: var(--ref-forest);
    font-family: var(--display);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: 0.08em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42);
}

.intro-title span,
.intro-title strong {
    display: block;
}

.intro-title span {
    font-size: clamp(1.75rem, 7.3vw, 2.45rem);
}

.intro-title strong {
    margin-top: 0.28em;
    font-size: clamp(2.55rem, 10.6vw, 3.6rem);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.intro-title::after {
    content: '';
    display: block;
    width: min(34vw, 148px);
    height: 13px;
    margin: clamp(18px, 3svh, 26px) auto 0;
    background:
        radial-gradient(circle at 50% 50%, var(--ref-gold) 0 2px, transparent 2.5px),
        linear-gradient(90deg, transparent, var(--ref-gold) 30%, transparent 30% 70%, var(--ref-gold) 70%, transparent);
    opacity: 0.7;
}

.envelope-group {
    width: 100%;
    gap: clamp(30px, 5.2svh, 50px);
}

.envelope-group::before {
    content: none;
}

.envelope-btn {
    width: min(82vw, 356px);
    max-width: 356px;
}

.envelope-img {
    filter:
        saturate(1.03)
        drop-shadow(0 16px 22px rgba(45, 35, 20, 0.18))
        drop-shadow(0 29px 45px rgba(45, 35, 20, 0.16));
}

.envelope-hint {
    position: relative;
    color: var(--ref-forest);
    font-family: var(--display);
    font-size: clamp(1.2rem, 5.4vw, 1.55rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.3em;
    opacity: 1;
    text-shadow:
        0 0 5px rgba(255, 251, 238, 0.98),
        0 0 12px rgba(255, 246, 214, 0.92),
        0 0 22px rgba(248, 241, 223, 0.78),
        0 1px 0 rgba(255, 253, 244, 0.86);
    text-transform: uppercase;
    animation: hintGlow 2.8s ease-in-out infinite;
}

.envelope-hint::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -17px;
    width: min(32vw, 138px);
    height: 13px;
    background:
        radial-gradient(circle at 50% 50%, var(--ref-gold) 0 2px, transparent 2.5px),
        linear-gradient(90deg, transparent, var(--ref-gold) 31%, transparent 31% 69%, var(--ref-gold) 69%, transparent);
    opacity: 0.68;
    transform: translateX(-50%);
}

.envelope-hint::after {
    content: '';
    position: absolute;
    left: 50%;
    top: calc(100% + 24px);
    width: 15px;
    height: 15px;
    border-right: 2px solid var(--ref-gold);
    border-bottom: 2px solid var(--ref-gold);
    transform: translateX(-50%) rotate(45deg);
}

@keyframes hintGlow {
    0%,
    100% {
        opacity: 0.72;
        text-shadow:
            0 0 5px rgba(255, 251, 238, 0.96),
            0 0 12px rgba(255, 246, 214, 0.86),
            0 0 20px rgba(248, 241, 223, 0.68),
            0 1px 0 rgba(255, 253, 244, 0.78);
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        text-shadow:
            0 0 7px rgba(255, 253, 244, 1),
            0 0 16px rgba(255, 248, 222, 0.98),
            0 0 28px rgba(248, 241, 223, 0.86),
            0 1px 0 rgba(255, 253, 244, 0.94);
        transform: translateY(-2px);
    }
}

.cover > .cover-floral-asset {
    position: absolute;
    left: -128px;
    top: 430px;
    z-index: 3;
    width: min(126cqw, 520px);
    aspect-ratio: 1774 / 887;
    background: url('../images/decor/hero-floral-spray.webp') left center / contain no-repeat;
    opacity: 0.94;
    filter: drop-shadow(0 10px 18px rgba(35, 49, 33, 0.16));
    transform: rotate(-7deg);
    transform-origin: 26% 68%;
    pointer-events: none;
    animation:
        heroFloralIn 0.95s var(--ease) 0.2s both,
        floralBreath 6.8s ease-in-out 1.3s infinite alternate;
}

.cover > .cover-copy.rv {
    z-index: 6;
}

.cover > figure.cover-portrait.rv {
    z-index: 8;
}

@keyframes heroFloralIn {
    from {
        opacity: 0;
        transform: translateY(18px) rotate(-11deg) scale(0.96);
    }
    to {
        opacity: 0.94;
        transform: translateY(0) rotate(-7deg) scale(1);
    }
}

@keyframes floralBreath {
    from {
        transform: rotate(-7deg) translateY(0);
    }
    to {
        transform: rotate(-5deg) translateY(-6px);
    }
}

@media (max-width: 374px) {
    .envelope-stage {
        padding-top: calc(env(safe-area-inset-top) + clamp(92px, 15svh, 132px));
    }

    .intro-title {
        margin-bottom: clamp(50px, 7.2svh, 70px);
    }

    .cover > .cover-floral-asset {
        left: -120px;
        top: 400px;
        width: 500px;
    }
}
