﻿:root {
    --font-primary: 'Cormorant Garamond', serif;
    --font-secondary: 'Lato', sans-serif;
    --color-text: #544b49;
    --color-heading: #5a4a46;
    --color-muted: #a4847d;
    --color-accent: #c97b84;
    --color-cream: #f8ece4;
    --color-warm-cream: #c3a28f;
    --color-icon: #9a7060;
    --color-border: rgba(164, 132, 125, 0.16);
    --color-shadow: rgba(90, 74, 74, 0.12);
    --color-button: #91766e;
    --color-button-hover: #826861;
    --section-odd-bg: linear-gradient(180deg, rgba(255, 251, 248, 0.72), rgba(250, 242, 238, 0.72));
    --section-even-bg: linear-gradient(180deg, rgba(248, 241, 235, 0.76), rgba(244, 234, 229, 0.76));
    --card-top: rgba(255, 252, 249, 0.97);
    --card-bottom: rgba(255, 247, 243, 0.93);
    --theme-page-pattern-image: url('../../assets/themes/floral/floral-test.jpg');
    --theme-corner-image: url('../../assets/themes/floral/floral-corner.PNG');
    --panel-texture-image: url('../../assets/themes/floral/paper-texture.jpg');
    --hero-fallback-image: url('../../assets/themes/floral/floral-test.jpg');
    --hero-image-layer: none;
    --hero-image-layer-mobile: none;
    --hero-card-radius: 30px;
    --hero-card-inner-radius: 26px;
    --hero-glass-fill: rgba(255, 255, 255, 0.09);
    --hero-glass-border: rgba(255, 255, 255, 0.16);
    --hero-glass-blur: 14px;
    --hero-support-blur: 8px;
    --hud-surface:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 30%),
        linear-gradient(180deg, rgba(255, 250, 246, 0.2), rgba(255, 250, 246, 0.08)),
        rgba(107, 82, 74, 0.14);
    --hud-border: rgba(255, 255, 255, 0.18);
    --hud-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 14px 30px rgba(90, 74, 74, 0.12);
    --hud-blur: 12px;
    --hud-text: rgba(83, 66, 61, 0.9);
    --hud-value-text: rgba(76, 59, 53, 0.96);
    --hero-shell-max-width: 620px;
    --hero-card-max-width: 620px;
    --hero-support-max-width: min(74%, 430px);
    --hero-mobile-card-padding: 18px 20px 14px;
    --hero-mobile-card-radius-top: 28px;
    --hero-mobile-support-max-width: min(86%, 340px);
    --hud-max-width: 640px;
    --hud-side-inset: 28px;
    --hud-side-inset-mobile: 12px;
    --hud-enter-offset-x: -10px;
    --section-gleam-min-opacity: 0.05;
    --section-gleam-max-opacity: 0.10;
    --section-gleam-duration: 5s;
    --section-reveal-distance: 28px;
    --section-reveal-scale: 0.985;
    --section-reveal-duration: 0.9s;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-secondary);
    color: var(--color-text);
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(255, 249, 244, 0.98), rgba(248, 241, 235, 0.95) 38%, rgba(242, 232, 227, 0.94) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
}

[hidden] {
    display: none !important;
}


.preview-watermark {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    pointer-events: none;
    color: rgba(92, 70, 63, var(--preview-watermark-opacity, 0.06));
    font-family: var(--font-secondary);
    font-size: clamp(2.4rem, 12vw, 8rem);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transform: rotate(-28deg);
    mix-blend-mode: multiply;
    user-select: none;
}
body.modal-open {
    overflow: hidden;
}

a,
button,
input,
select,
textarea {
    font: inherit;
}

button,
.btn {
    cursor: pointer;
}

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

iframe {
    border: 0;
}

.eyebrow {
    margin: 0 0 14px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-size: 0.76rem;
    color: var(--color-muted);
}

.section-shell {
    position: relative;
    z-index: 2;
    width: min(420px, calc(100vw - 32px));
    margin: 0 auto;
}

.page-section {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 104px 0 92px;
    scroll-margin-top: 24px;
    position: relative;
}

.page-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)),
        var(--theme-page-pattern-image) center top / 420px auto repeat;
    opacity: var(--section-gleam-min-opacity);
    animation: sectionPatternGleam var(--section-gleam-duration) ease-in-out infinite;
    pointer-events: none;
}

.page-section::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -18px;
    left: 0;
    z-index: 1;
    height: 26px;
    background: linear-gradient(to bottom, rgba(125, 101, 96, 0.08), rgba(125, 101, 96, 0));
    pointer-events: none;
}

.page-section:nth-of-type(odd) {
    background: var(--section-odd-bg);
}

.page-section:nth-of-type(even) {
    background: var(--section-even-bg);
}

.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes sectionPatternGleam {
    0%, 100% {
        opacity: var(--section-gleam-min-opacity);
    }

    50% {
        opacity: var(--section-gleam-max-opacity);
    }
}

.section:not(#our-story) .section-shell > *:not(.hero-carousel-controls),
.section:not(#our-story) .celebration-stack > *,
.section:not(#our-story) .event-grid > *,
.section:not(#our-story) .countdown-grid > *,
.section:not(#our-story) .rsvp-stack > *,
.section:not(#our-story) .gift-shell > *,
.section:not(#our-story) .closing-shell > * {
    opacity: 0;
    transform: translateY(var(--section-reveal-distance)) scale(var(--section-reveal-scale));
    transition: opacity var(--section-reveal-duration) ease, transform var(--section-reveal-duration) ease;
    will-change: opacity, transform;
}

.section.show:not(#our-story) .section-shell > *,
.section.show:not(#our-story) .celebration-stack > *,
.section.show:not(#our-story) .event-grid > *,
.section.show:not(#our-story) .countdown-grid > *,
.section.show:not(#our-story) .rsvp-stack > *,
.section.show:not(#our-story) .gift-shell > *,
.section.show:not(#our-story) .closing-shell > * {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.section.show:not(#our-story) .section-shell > *:nth-child(1) { transition-delay: 0.1s; }
.section.show:not(#our-story) .section-shell > *:nth-child(2) { transition-delay: 0.2s; }
.section.show:not(#our-story) .section-shell > *:nth-child(3) { transition-delay: 0.3s; }
.section.show:not(#our-story) .section-shell > *:nth-child(4) { transition-delay: 0.4s; }

.section.show:not(#our-story) .event-grid > *:nth-child(1),
.section.show:not(#our-story) .rsvp-stack > *:nth-child(1),
.section.show:not(#our-story) .countdown-grid > *:nth-child(1) { transition-delay: 0.12s; }

.section.show:not(#our-story) .event-grid > *:nth-child(2),
.section.show:not(#our-story) .rsvp-stack > *:nth-child(2),
.section.show:not(#our-story) .countdown-grid > *:nth-child(2) { transition-delay: 0.24s; }

.section.show:not(#our-story) .countdown-grid > *:nth-child(3) { transition-delay: 0.36s; }
.section.show:not(#our-story) .countdown-grid > *:nth-child(4) { transition-delay: 0.48s; }

.story-parallax {
    position: relative;
    height: 70vh;
    min-height: 460px;
    max-height: 720px;
    overflow: hidden;
    background: #f6eee9;
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.story-parallax::before,
.story-parallax::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.story-parallax::before {
    background:
        linear-gradient(180deg, rgba(253, 248, 245, 0.08), rgba(253, 248, 245, 0.02) 34%, rgba(253, 248, 245, 0.02) 66%, rgba(253, 248, 245, 0.1)),
        radial-gradient(ellipse at center, rgba(255, 255, 255, 0), rgba(42, 27, 23, 0.16));
}

.story-parallax::after {
    box-shadow:
        inset 0 24px 42px rgba(125, 101, 96, 0.08),
        inset 0 -24px 42px rgba(125, 101, 96, 0.08);
}

.story-parallax-media {
    position: absolute;
    top: -28%;
    right: 0;
    left: 0;
    height: 140%;
    z-index: 1;
    background-image: url('../../assets/invitations/demo-adrian-nadia/transition/parallax-bg.webp');
    background-position: center 34%;
    background-size: cover;
    opacity: 0.98;
    transform: translate3d(0, var(--parallax-y, 0px), 0) scale(var(--parallax-scale, 1.22));
    transform-origin: center center;
    will-change: transform;
}

.story-parallax-text {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: min(86vw, 620px);
    margin: 0;
    color: rgba(255, 250, 246, 0.94);
    font-family: 'MonteCarlo', cursive;
    font-size: clamp(2.8rem, 9vw, 5.4rem);
    line-height: 1;
    text-align: center;
    text-shadow:
        0 2px 8px rgba(43, 30, 27, 0.34),
        0 10px 28px rgba(43, 30, 27, 0.32);
    transform: translate(-50%, -50%);
}

.card {
    background: linear-gradient(180deg, var(--card-top), var(--card-bottom));
    border-radius: 24px;
    border: 1px solid rgba(164, 132, 125, 0.14);
    box-shadow: 0 22px 44px rgba(90, 74, 74, 0.08);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: var(--color-button);
    color: #fffaf7;
    border-radius: 999px;
    border: none;
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 12px 24px rgba(90, 74, 74, 0.14);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    background: var(--color-button-hover);
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(90, 74, 74, 0.18);
}

/* COVER */
.cover {
    position: fixed;
    inset: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 30;
    background:
        radial-gradient(circle at center, rgba(0, 0, 0, 0.035), rgba(0, 0, 0, 0) 72%),
        radial-gradient(circle at top, rgba(255, 252, 249, 0.98), rgba(247, 239, 234, 0.98) 58%, rgba(243, 234, 229, 0.98) 100%);
}

.cover-brand {
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: min(40vw, 216px);
    margin-inline: auto;
    transform: none;
    opacity: 0;
    animation: hudBrandFadeDown 0.8s cubic-bezier(0.22, 0.82, 0.22, 1) 0.12s forwards;
    pointer-events: none;
}

.cover-brand-logo {
    display: block;
    width: min(40vw, 216px);
    height: auto;
    object-fit: contain;
    filter:
        drop-shadow(0 1px 1px rgba(120, 120, 120, 0.85))
        drop-shadow(0 10px 20px rgba(90, 74, 74, 0.08));
}

.cover-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(46vw, 540px);
    min-height: 66vh;
    padding: 42px 44px;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(255, 250, 246, 0.34), rgba(255, 246, 241, 0.26));
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    box-shadow: 0 28px 80px rgba(90, 74, 74, 0.06);
    justify-content: center;
    transition:
        opacity 1.38s cubic-bezier(0.22, 0.82, 0.22, 1),
        transform 1.38s cubic-bezier(0.22, 0.82, 0.22, 1);
    animation: coverPanelFade 1.5s ease forwards;
}

.cover-content::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 0;
    box-shadow:
        inset 0 18px 30px rgba(255, 255, 255, 0.22),
        inset 0 -24px 34px rgba(153, 133, 124, 0.08),
        inset 0 0 42px rgba(122, 101, 93, 0.07),
        0 16px 40px rgba(90, 74, 74, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 248, 244, 0.08)),
        radial-gradient(circle at center, rgba(255, 255, 255, 0), rgba(125, 103, 95, 0.06) 100%);
    filter: blur(2.5px);
    pointer-events: none;
    transition: opacity 1.3s cubic-bezier(0.22, 0.82, 0.22, 1);
}

.cover-content::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 248, 244, 0.03)),
        var(--panel-texture-image) center center / cover no-repeat;
    opacity: 0.3;
    filter: blur(0.5px) saturate(0.8);
    pointer-events: none;
    transition: opacity 1.3s cubic-bezier(0.22, 0.82, 0.22, 1);
}

.cover-content > * {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(16px);
    animation: coverFadeUp 1.5s ease forwards;
}

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

.cover-petals-back {
    z-index: 1;
}

.cover-petals-front {
    z-index: 4;
}

.cover-petal {
    position: absolute;
    top: -12vh;
    left: 0;
    width: var(--petal-size, 18px);
    height: calc(var(--petal-size, 18px) * 1.36);
    opacity: 0;
    will-change: transform, opacity;
    transition:
        translate var(--scatter-duration, 0.7s) ease-out,
        scale var(--scatter-duration, 0.7s) ease-out,
        opacity 0.35s ease;
    animation: petalFall var(--fall-duration, 14s) linear var(--fall-delay, 0s) 1 forwards;
}

.cover-petal::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--petal-radius, 58% 42% 60% 40% / 42% 45% 55% 58%);
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 247, 245, 0.9), rgba(255, 247, 245, 0) 38%),
        linear-gradient(180deg, rgba(244, 188, 198, 0.96), rgba(230, 160, 175, 0.92) 58%, rgba(216, 143, 160, 0.9));
    box-shadow:
        inset -1px -2px 3px rgba(181, 96, 119, 0.18),
        0 4px 10px rgba(164, 131, 122, 0.12);
    filter: blur(var(--petal-blur, 0px)) contrast(var(--petal-contrast, 1));
    opacity: var(--petal-opacity, 0.55);
    animation: petalFlutter var(--flutter-duration, 4.8s) ease-in-out infinite;
}

@keyframes petalFall {
    0% {
        opacity: 0;
        transform: translateY(-12vh) translateX(0) rotate(0deg) scale(var(--petal-scale, 1));
    }

    16% {
        opacity: var(--petal-opacity, 0.75);
    }

    22% {
        transform: translateY(18vh) translateX(var(--drift-a, 40px)) rotate(var(--rot-a, 18deg)) scale(var(--petal-scale, 1));
    }

    40% {
        transform: translateY(42vh) translateX(var(--drift-b, -70px)) rotate(var(--rot-b, 44deg)) scale(calc(var(--petal-scale, 1) * 0.98));
    }

    54% {
        transform: translateY(50vh) translateX(var(--drift-c, 18px)) rotate(var(--rot-c, 58deg)) scale(var(--petal-scale, 1));
    }

    74% {
        transform: translateY(78vh) translateX(var(--drift-d, 86px)) rotate(var(--rot-d, 96deg)) scale(calc(var(--petal-scale, 1) * 0.99));
    }

    88% {
        opacity: calc(var(--petal-opacity, 0.75) * 0.55);
        transform: translateY(96vh) translateX(calc(var(--drift-d, 86px) * 0.45)) rotate(var(--rot-e, 118deg)) scale(calc(var(--petal-scale, 1) * 0.97));
    }

    100% {
        opacity: 0;
        transform: translateY(112vh) translateX(calc(var(--drift-d, 86px) * -0.7)) rotate(calc(var(--rot-e, 118deg) + 22deg)) scale(calc(var(--petal-scale, 1) * 0.94));
    }
}

@keyframes petalFlutter {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(8deg) scale(1.01);
    }

    50% {
        transform: rotate(-6deg) scale(0.98);
    }

    75% {
        transform: rotate(10deg) scale(1);
    }
}

@keyframes waxPulse {
    0%, 82%, 100% {
        transform: scale(1);
        box-shadow:
            0 2px 0 rgba(255, 255, 255, 0.14),
            0 8px 16px rgba(0, 0, 0, 0.15),
            0 0 0 5px rgba(147, 41, 47, 0.08),
            inset 0 2px 4px rgba(255, 255, 255, 0.3),
            inset 0 2px 6px rgba(255, 255, 255, 0.18),
            inset 0 10px 14px rgba(255, 255, 255, 0.08),
            inset 0 -8px 16px rgba(89, 18, 23, 0.26),
            inset 0 0 0 2px rgba(132, 24, 31, 0.28),
            0 12px 22px rgba(90, 74, 74, 0.18),
            0 22px 26px rgba(90, 74, 74, 0.12),
            0 8px 10px rgba(56, 23, 28, 0.08);
    }

    88% {
        transform: scale(1.04);
        box-shadow:
            0 2px 0 rgba(255, 255, 255, 0.14),
            0 10px 20px rgba(0, 0, 0, 0.17),
            0 0 0 9px rgba(147, 41, 47, 0.06),
            inset 0 2px 4px rgba(255, 255, 255, 0.32),
            inset 0 2px 6px rgba(255, 255, 255, 0.2),
            inset 0 10px 14px rgba(255, 255, 255, 0.08),
            inset 0 -8px 16px rgba(89, 18, 23, 0.26),
            inset 0 0 0 2px rgba(132, 24, 31, 0.28),
            0 16px 28px rgba(90, 74, 74, 0.2),
            0 24px 28px rgba(90, 74, 74, 0.12),
            0 10px 12px rgba(56, 23, 28, 0.08);
    }
}

.cover:hover .cover-petal {
    translate: var(--hover-drift-x, 0px) var(--hover-drift-y, 0px);
}

.cover.is-scattering .cover-petal {
    opacity: 0;
}

.cover.is-scattering .cover-petal.is-bursting {
    translate: var(--scatter-x, 0px) var(--scatter-y, -24px);
    scale: var(--scatter-scale, 1.12);
}

.cover-petals-back .cover-petal::before {
    opacity: var(--petal-opacity, 0.12);
    filter: blur(var(--petal-blur, 2.5px)) contrast(var(--petal-contrast, 1));
}

.cover-petals-front .cover-petal::before {
    opacity: var(--petal-opacity, 0.9);
    filter: blur(var(--petal-blur, 0.2px)) contrast(var(--petal-contrast, 1.05));
}

.cover-content > *:nth-child(1) { animation-delay: 0.1s; }
.cover-content > *:nth-child(2) { animation-delay: 0.22s; }
.cover-content > *:nth-child(3) { animation-delay: 0.34s; }
.cover-content > *:nth-child(4) { animation-delay: 0.46s; }
.cover-content > *:nth-child(5) { animation-delay: 0.58s; }

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

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

.cover-split {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50.5%;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(255, 251, 247, 0.98), rgba(248, 240, 235, 0.98)),
        linear-gradient(90deg, rgba(211, 184, 173, 0.05), rgba(255, 255, 255, 0));
    transition:
        transform 1.6s cubic-bezier(0.22, 0.82, 0.22, 1),
        opacity 1.5s cubic-bezier(0.22, 0.82, 0.22, 1);
}

.cover-split-left {
    left: 0;
    box-shadow:
        inset -34px 0 38px -34px rgba(90, 74, 74, 0.18),
        inset 0 0 0 1px rgba(196, 170, 160, 0.08);
}

.cover-split-right {
    right: 0;
    box-shadow:
        inset 34px 0 38px -34px rgba(90, 74, 74, 0.18),
        inset 0 0 0 1px rgba(196, 170, 160, 0.08);
}

.cover-split::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.28;
}

.cover-split-left::after {
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 34%),
        linear-gradient(to right, rgba(248, 241, 235, 0) 0%, rgba(248, 241, 235, 0.34) 100%);
}

.cover-split-right::after {
    background:
        radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0) 34%),
        linear-gradient(to left, rgba(248, 241, 235, 0) 0%, rgba(248, 241, 235, 0.34) 100%);
}

.cover::after {
    display: none;
}

.cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(255, 249, 244, 0.08), rgba(255, 249, 244, 0.28));
    opacity: 1;
    pointer-events: none;
}

.cover::before,
.cover::after {
    z-index: 0;
}

.cover-split-left::before,
.cover-split-right::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        url('../../assets/themes/floral/floral-texture.jpg') center/260px auto repeat;
    opacity: 0.16;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.cover-ornament {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    opacity: 0.42;
    filter: sepia(0.88) saturate(0.86) hue-rotate(-8deg) blur(0.35px);
    mix-blend-mode: multiply;
    background-image: var(--theme-corner-image);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    transition:
        transform 1.52s cubic-bezier(0.22, 0.82, 0.22, 1),
        opacity 1.34s cubic-bezier(0.22, 0.82, 0.22, 1);
}

.cover-ornament-top-left {
    top: 0;
    left: 0;
    width: min(22vw, 210px);
    height: min(22vw, 210px);
    transform: translateX(0) scaleY(-1);
    transform-origin: center;
}

.cover-ornament-top-right {
    top: 0;
    right: 0;
    width: min(22vw, 210px);
    height: min(22vw, 210px);
    transform: translateX(0) scale(-1, -1);
    transform-origin: center;
}

.cover-ornament-bottom-left {
    left: 0;
    bottom: 0;
    width: min(24vw, 230px);
    height: min(24vw, 230px);
    transform: translateX(0);
    transform-origin: center;
}

.cover-ornament-bottom-right {
    right: 0;
    bottom: 0;
    width: min(24vw, 230px);
    height: min(24vw, 230px);
    transform: translateX(0) scaleX(-1);
    transform-origin: center;
}

.cover-ornament-center-soft {
    top: 50%;
    left: 50%;
    width: 340px;
    height: 340px;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(circle, rgba(224, 196, 184, 0.08), rgba(224, 196, 184, 0) 66%);
    opacity: 1;
}

.cover-handle {
    display: none;
}

.cover-handle-left {
    left: calc(50% - 10px);
}

.cover-handle-right {
    right: calc(50% - 10px);
}

.cover.opening::after {
    opacity: 0;
}

.cover.pre-opening .cover-brand,
.cover.opening .cover-brand {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.cover.pre-opening .cover-content,
.cover.opening .cover-content {
    animation: none;
    opacity: 0;
    transform: translateY(0) scale(0.988);
    pointer-events: none;
}

.cover.pre-opening .cover-content > *,
.cover.opening .cover-content > * {
    animation: none;
    opacity: 0;
}

.cover.pre-opening .cover-content::before,
.cover.pre-opening .cover-content::after,
.cover.opening .cover-content::before,
.cover.opening .cover-content::after {
    opacity: 0;
}

.cover.opening .cover-handle {
    opacity: 0;
    transition: opacity 0.25s ease;
}

.cover.opening .cover-ornament-top-left {
    transform: translateX(-72%) scaleY(-1);
    opacity: 0.2;
}

.cover.opening .cover-ornament-bottom-left {
    transform: translateX(-72%);
    opacity: 0.2;
}

.cover.opening .cover-ornament-top-right {
    transform: translateX(72%) scale(-1, -1);
    opacity: 0.2;
}

.cover.opening .cover-ornament-bottom-right {
    transform: translateX(72%) scaleX(-1);
    opacity: 0.2;
}

.cover.opening .cover-ornament-center-soft {
    opacity: 0;
}

.cover.opening .cover-split-left {
    transform: translateX(-100%);
    opacity: 0;
}

.cover.opening .cover-split-right {
    transform: translateX(100%);
    opacity: 0;
}

.cover-kicker {
    margin: 0 0 14px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--color-muted);
}

.cover-title {
    margin: 0;
    font-family: var(--font-primary);
    font-size: clamp(2.8rem, 5.4vw, 4.8rem);
    line-height: 1.02;
    color: transparent;
    background: linear-gradient(180deg, #a98658 0%, #6d5a54 34%, #4f4340 100%);
    background-clip: text;
    -webkit-background-clip: text;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.28),
        0 0 0.4px rgba(86, 67, 60, 0.9);
}

.cover-title span {
    display: block;
    margin-top: 6px;
    font-size: 0.96rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: none;
    -webkit-text-fill-color: var(--color-accent);
}

.cover-guest {
    margin: 28px 0 0;
    color: var(--color-heading);
    font-size: 1.02rem;
}

.cover-handle-gap {
    display: none;
}

.cover-poem {
    max-width: 28rem;
    margin: 28px 0 0;
    color: var(--color-text);
    font-size: 0.98rem;
    line-height: 1.8;
}

.cover-open-btn {
    position: relative;
    margin-top: 34px;
    width: 104px;
    height: 104px;
    padding: 0;
    border: none;
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 28%),
        radial-gradient(circle at 50% 50%, #b43d41 0%, #9f2f35 62%, #7b1f24 100%);
    color: #fff7f4;
    border-radius: 46% 54% 51% 49% / 48% 45% 55% 52%;
    letter-spacing: 0;
    text-transform: none;
    font-family: 'MonteCarlo', cursive;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
    overflow: hidden;
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.14),
        0 8px 16px rgba(0, 0, 0, 0.15),
        0 0 0 5px rgba(147, 41, 47, 0.08),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 2px 6px rgba(255, 255, 255, 0.18),
        inset 0 10px 14px rgba(255, 255, 255, 0.08),
        inset 0 -8px 16px rgba(89, 18, 23, 0.26),
        inset 0 0 0 2px rgba(132, 24, 31, 0.28),
        0 12px 22px rgba(90, 74, 74, 0.18),
        0 22px 26px rgba(90, 74, 74, 0.12),
        0 8px 10px rgba(56, 23, 28, 0.08);
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.22),
        0 -1px 0 rgba(131, 90, 37, 0.22),
        0 1px 2px rgba(86, 20, 24, 0.22),
        0 3px 6px rgba(86, 20, 24, 0.14);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    opacity: 0;
    transform: translateY(16px);
    animation:
        coverFadeUp 1.5s ease 0.58s forwards,
        waxPulse 3.8s ease-in-out 2.08s infinite;
}

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

.seal-ring-svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.seal-ring-text {
    fill: rgba(247, 224, 205, 0.94);
    font-family: var(--font-secondary);
    font-size: 6.3px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.seal-ring-text-top {
    opacity: 0.92;
}

.seal-ring-text-bottom {
    opacity: 0.88;
}

.seal-center {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.seal-classic-text {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'MonteCarlo', cursive;
    font-size: 1.9rem;
    line-height: 1;
    color: #f5d9a6;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.22),
        0 -1px 0 rgba(131, 90, 37, 0.22),
        0 1px 2px rgba(86, 20, 24, 0.22),
        0 3px 6px rgba(86, 20, 24, 0.14);
    pointer-events: none;
}

.seal-initials {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.16em;
    font-family: 'MonteCarlo', cursive;
    font-size: 1.25rem;
    line-height: 1;
    color: #e8d8cc;
    transform: translateX(-2px);
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.14),
        0 -1px 0 rgba(112, 85, 72, 0.14),
        0 2px 4px rgba(86, 20, 24, 0.12),
        0 4px 8px rgba(86, 20, 24, 0.08);
}

.seal-glyph {
    display: inline-block;
    transform: translateY(1px);
}

.cover-open-btn[data-seal-variant="open"] .seal-ring,
.cover-open-btn[data-seal-variant="open"] .seal-center {
    display: none;
}

.cover-open-btn[data-seal-variant="monogram"] .seal-classic-text {
    display: none;
}

.seal-joiner {
    display: inline-block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.86em;
    font-style: italic;
    font-weight: 600;
    color: rgba(236, 223, 214, 0.88);
    transform: translateY(-1px);
}

.cover-open-btn::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 46% 54% 51% 49% / 48% 45% 55% 52%;
    border: 1px solid rgba(255, 230, 224, 0.18);
    box-shadow:
        inset 0 1px 4px rgba(255, 255, 255, 0.14),
        inset 0 -4px 8px rgba(104, 22, 28, 0.16);
    pointer-events: none;
}

.cover-open-btn::after {
    content: "";
    position: absolute;
    top: 10%;
    left: 20%;
    width: 60%;
    height: 30%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    filter: blur(0.4px);
    opacity: 0.92;
    pointer-events: none;
}

.cover-open-btn:hover {
    transform: translateY(-1px);
    filter: saturate(1.04);
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.14),
        0 0 0 5px rgba(147, 41, 47, 0.08),
        inset 0 2px 6px rgba(255, 255, 255, 0.18),
        inset 0 10px 14px rgba(255, 255, 255, 0.08),
        inset 0 -8px 16px rgba(89, 18, 23, 0.26),
        inset 0 0 0 2px rgba(132, 24, 31, 0.28),
        0 16px 26px rgba(90, 74, 74, 0.22),
        0 26px 30px rgba(90, 74, 74, 0.14);
}

/* MAIN */
#main {
    display: none;
    min-height: 100vh;
    opacity: 0;
    transition: opacity 0.42s ease;
}

#main.is-visible {
    opacity: 1;
}

.main-flow {
    position: relative;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 0;
    min-height: 100vh;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background:
        linear-gradient(180deg, rgba(42, 25, 20, 0.24), rgba(42, 25, 20, 0.1) 28%, rgba(42, 25, 20, 0.32) 100%),
        var(--hero-slide-image, var(--hero-image-layer)),
        linear-gradient(180deg, rgba(245, 234, 228, 0.9), rgba(236, 221, 214, 0.94)),
        var(--hero-fallback-image) center center / 520px auto repeat;
    background-repeat: no-repeat, no-repeat, no-repeat, repeat;
    background-size: cover, cover, cover, 520px auto;
    background-position: center, var(--hero-slide-position, center 30%), center, center center;
    transform: scale(1.06);
    transform-origin: center center;
    transition: opacity 0.9s ease, transform 5s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-carousel-controls {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(90, 58, 46, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-carousel-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 250, 246, 0.12);
    color: rgba(255, 248, 244, 0.96);
    box-shadow: 0 8px 16px rgba(10, 4, 3, 0.16);
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-carousel-btn:hover {
    background: rgba(255, 250, 246, 0.2);
    transform: translateY(-1px);
}

.hero-carousel-pause {
    min-width: 40px;
    padding: 0;
    font-size: 1rem;
    letter-spacing: 0;
    text-transform: none;
}

.hero-carousel-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-carousel-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 241, 236, 0.32);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-carousel-dot.is-active {
    background: var(--color-accent);
    transform: scale(1.22);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.4));
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(18, 9, 7, 0.04), rgba(18, 9, 7, 0.12) 36%, rgba(18, 9, 7, 0.34) 100%),
        linear-gradient(180deg, rgba(31, 18, 14, 0), rgba(31, 18, 14, 0.14) 42%, rgba(31, 18, 14, 0.42) 100%),
        linear-gradient(90deg, rgba(255, 246, 240, 0.04), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.hero-shell {
    position: relative;
    z-index: 1;
    width: min(var(--hero-shell-max-width), calc(100vw - 32px));
    max-width: var(--hero-shell-max-width);
    padding: 126px 0 84px;
    transition: margin 0.7s ease, transform 0.7s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-card {
    position: relative;
    z-index: 1;
    width: min(100%, var(--hero-card-max-width));
    padding: 32px 30px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-shadow: 0 8px 24px rgba(16, 8, 6, 0.24);
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    border-radius: var(--hero-card-radius);
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.05) 40%, rgba(255, 255, 255, 0) 60%),
        var(--hero-glass-fill);
    border: 1px solid var(--hero-glass-border);
    backdrop-filter: blur(var(--hero-glass-blur));
    -webkit-backdrop-filter: blur(var(--hero-glass-blur));
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.24),
        0 25px 60px rgba(0, 0, 0, 0.25);
    opacity: 0;
    animation: heroGlassIntro 1s cubic-bezier(0.22, 0.82, 0.22, 1) 0.08s forwards;
    pointer-events: none;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 12px;
    z-index: -1;
    border-radius: var(--hero-card-inner-radius);
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.22)),
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 48%),
        linear-gradient(116deg, rgba(255, 255, 255, 0) 26%, rgba(255, 255, 255, 0.14) 38%, rgba(255, 255, 255, 0.04) 48%, rgba(255, 255, 255, 0) 58%);
    opacity: 0;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.16),
        inset 0 -22px 34px rgba(0, 0, 0, 0.12);
    animation: heroGlassOverlayIntro 1s cubic-bezier(0.22, 0.82, 0.22, 1) 0.16s forwards;
    pointer-events: none;
}

.hero[data-hero-align="left"] .hero-shell {
    margin-left: max(24px, 7vw);
    margin-right: auto;
    justify-content: flex-start;
}

.hero[data-hero-align="left"] .hero-card {
    text-align: left;
    align-items: flex-start;
}

.hero[data-hero-align="left"] .hero-cta,
.hero[data-hero-align="left"] .hero-carousel-controls {
    margin-left: auto;
    margin-right: auto;
}

.hero[data-hero-align="right"] .hero-shell {
    margin-left: auto;
    margin-right: max(24px, 7vw);
    justify-content: flex-end;
}

.hero[data-hero-align="right"] .hero-card {
    text-align: right;
    align-items: flex-end;
}

.hero[data-hero-align="right"] .hero-cta,
.hero[data-hero-align="right"] .hero-carousel-controls {
    margin-left: auto;
    margin-right: auto;
}

.hero h1 {
    margin: 0;
    font-family: var(--font-primary);
    font-size: clamp(3rem, 6.4vw, 5.3rem);
    line-height: 0.98;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.hero h1 span {
    display: inline-block;
    margin: 0 0.08em;
    color: rgba(255, 236, 226, 0.94);
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.hero-date {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 500;
    letter-spacing: 2px;
    line-height: 1.35;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 8px 22px rgba(17, 8, 6, 0.42);
}

.hero-location {
    margin: 10px 0 0;
    font-size: 0.9rem;
    line-height: 1.45;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 248, 244, 0.78);
    text-shadow: 0 8px 20px rgba(17, 8, 6, 0.34);
}

.hero-support {
    width: fit-content;
    max-width: var(--hero-support-max-width);
    margin: 26px auto 0;
    padding: 17px 22px 19px;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
        rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 10px 22px rgba(10, 4, 3, 0.16);
    backdrop-filter: blur(var(--hero-support-blur));
    -webkit-backdrop-filter: blur(var(--hero-support-blur));
}

.hero-copy {
    max-width: none;
    margin: 14px 0 0;
    font-size: 1.02rem;
    line-height: 1.78;
    color: rgba(255, 255, 255, 0.86);
    text-shadow: 0 8px 22px rgba(17, 8, 6, 0.42);
}

.hero-cta {
    margin-top: 24px;
    min-width: 188px;
}

.hero .eyebrow {
    margin-bottom: 18px;
    font-size: 0.64rem;
    letter-spacing: 0.32em;
    color: rgba(255, 239, 232, 0.7);
    text-shadow: 0 4px 14px rgba(17, 8, 6, 0.18);
}

@keyframes heroMediaIntro {
    from {
        transform: scale(1.05);
    }
    to {
        transform: scale(1);
    }
}

@keyframes heroGlassIntro {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes heroGlassOverlayIntro {
    from {
        opacity: 0;
        transform: scale(0.99);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.section-copy {
    margin-bottom: 28px;
    text-align: center;
}

.section-copy h2,
.section-shell > h2 {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.08;
    color: #5d4f4a;
}

.section-copy p,
.section-shell > p:not(.eyebrow) {
    color: #8f7771;
    line-height: 1.9;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 36px 0 32px;
}

.countdown-tile {
    padding: 24px 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 252, 249, 0.94), rgba(255, 247, 243, 0.9));
    border: 1px solid rgba(142, 118, 111, 0.12);
    box-shadow: 0 18px 40px rgba(90, 74, 74, 0.07);
}

.count-value {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    transition: transform 0.25s ease, color 0.25s ease;
    color: #5d4f4a;
}

.count-value.tick {
    transform: translateY(-2px) scale(1.06);
    color: #c09a8a;
}

.count-label {
    display: block;
    margin-top: 6px;
    color: #a4847d;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.76rem;
}

.celebration-stack {
    display: grid;
    gap: 28px;
    margin-top: 32px;
}

.event-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}

.event-card {
    padding: 34px;
    text-align: left;
}

.event-card-head {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 14px;
    align-items: center;
    margin-bottom: 22px;
}

.event-label,
.location-kicker,
.story-feature-label,
.rsvp-step-label {
    margin: 0 0 6px;
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #b08d82;
}

.event-summary-list {
    display: grid;
    gap: 12px;
}

.event-summary-item {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 251, 248, 0.7);
    border: 1px solid rgba(164, 132, 125, 0.1);
}

.event-summary-key {
    display: block;
    margin-bottom: 6px;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a4847d;
}

.event-summary-item strong {
    font-size: 1.02rem;
    color: #5d4f4a;
}

.event-address {
    margin: 18px 0 0;
    color: #8f7771;
    line-height: 1.75;
}

.map-embed-inline {
    margin-top: 8px;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(164, 132, 125, 0.1);
}

.map-embed-inline iframe {
    width: 100%;
    height: 220px;
}

.event-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.celebration-venue {
    display: grid;
    gap: 18px;
}

.btn-secondary {
    background: rgba(238, 222, 214, 0.92);
    color: #7a625c;
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(228, 210, 202, 0.98);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-icon .lucide-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.event-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: rgba(251, 240, 235, 0.96);
    color: var(--color-icon);
    font-size: 1.4rem;
}

.event-icon .lucide-icon {
    width: 24px;
    height: 24px;
}

.event-card h3,
.dress-code h3,
.gift-item h3 {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: #5d4f4a;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 22px;
}

.detail-list li {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(142, 118, 111, 0.08);
}

.detail-list li:last-child {
    border-bottom: none;
}

.detail-list strong {
    color: #a4847d;
}

.dress-code {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-top: 30px;
    padding: 28px 30px;
    text-align: left;
}

.dress-code h3,
.map-card h3 {
    margin-top: 0;
}

.map-card {
    overflow: hidden;
    padding: 14px;
}

.map-card iframe,
.map-static-image {
    width: 100%;
    min-height: 460px;
    border-radius: 18px;
}

.map-static-image {
    display: block;
    height: 460px;
    object-fit: cover;
    object-position: center;
}

.address-text {
    font-size: 1.02rem;
    line-height: 1.9;
}

.parking-note {
    margin: 20px 0 28px;
    color: #8f7771;
    line-height: 1.8;
}

.location-card {
    padding: 32px;
    text-align: left;
}

.location-card h3 {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: #5d4f4a;
}

.location-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.location-kicker .lucide-icon {
    color: var(--color-icon);
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.location-actions {
    margin-top: 28px;
}

.story-shell,
.gallery-shell {
    width: min(1080px, calc(100vw - 40px));
}

.story-shell {
    position: relative;
    z-index: 2;
    --story-parallax-shift: 18px;
}

#our-story {
    overflow: hidden;
}

.story-petals {
    z-index: 1;
}

.story-petals-front {
    z-index: 3;
}

.story-petals-back .cover-petal::before {
    opacity: calc(var(--petal-opacity, 0.2) * 1.25);
}

.story-petals-front .cover-petal::before {
    opacity: calc(var(--petal-opacity, 0.72) * 0.82);
}

.story-shell::before {
    content: "";
    position: absolute;
    inset: -24px -18px;
    border-radius: 36px;
    background:
        radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 48%),
        linear-gradient(180deg, rgba(255, 251, 248, 0.38), rgba(248, 241, 235, 0.16)),
        var(--theme-page-pattern-image) center top / 360px auto repeat;
    opacity: 0.14;
    transform: translateY(var(--story-parallax-shift));
    transition: transform 0.6s ease, opacity 0.6s ease;
    pointer-events: none;
}

.story-active .story-shell::before {
    opacity: 0.2;
}

.story-lead {
    max-width: 34rem;
    margin: 18px auto 0;
    color: #8f7771;
    line-height: 1.85;
}

.story-timeline {
    position: relative;
    display: grid;
    gap: 22px;
    margin-top: 34px;
}

.story-item {
    position: relative;
    opacity: 0;
    transform: translateY(30px) scale(0.96);
    transition:
        opacity 0.72s ease,
        transform 0.72s cubic-bezier(0.22, 0.82, 0.22, 1),
        filter 0.5s ease;
    filter: saturate(0.9);
}

.section.show .story-item.is-entered {
    opacity: 1;
    transform: translateY(0) scale(0.985);
}

.section.show .story-item:nth-child(1) { transition-delay: 0.08s; }
.section.show .story-item:nth-child(2) { transition-delay: 0.18s; }
.section.show .story-item:nth-child(3) { transition-delay: 0.28s; }

.story-item.is-focused {
    transform: translateY(0) scale(1);
    filter: saturate(1);
}

.story-item.is-focused .story-card {
    box-shadow: 0 28px 48px rgba(90, 74, 74, 0.14);
}

.story-item.is-focused .story-photo {
    transform: scale(1.02);
}

.story-item.is-after-focus.story-item-left {
    transform: translateX(-10px) scale(0.985);
}

.story-item.is-after-focus.story-item-right {
    transform: translateX(10px) scale(0.985);
}

.story-card {
    overflow: hidden;
    padding: 0;
    text-align: left;
}

.story-photo-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

    .story-photo {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
}

.story-card:hover .story-photo {
    transform: scale(1.03);
}

.story-copy {
    padding: 22px 22px 24px;
}

.story-year {
    margin: 0 0 8px;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #b79284;
}

.story-copy h3 {
    margin: 0 0 10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.9rem;
    color: #5d4f4a;
}

.story-copy p:last-child {
    margin: 0;
    color: #8f7771;
    line-height: 1.8;
}

.story-dot {
    display: none;
}

.gallery-grid {
    gap: 18px;
    margin-top: 32px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 252, 249, 0.7);
    box-shadow: 0 16px 28px rgba(90, 74, 74, 0.08);
    opacity: 0;
    transform: translateY(22px);
    transition: transform 0.45s ease, opacity 0.55s ease, box-shadow 0.35s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.section.show .gallery-item {
    opacity: 1;
    transform: translateY(0);
}

.section.show .gallery-item:nth-child(1) { transition-delay: 0.04s; }
.section.show .gallery-item:nth-child(2) { transition-delay: 0.08s; }
.section.show .gallery-item:nth-child(3) { transition-delay: 0.12s; }
.section.show .gallery-item:nth-child(4) { transition-delay: 0.16s; }
.section.show .gallery-item:nth-child(5) { transition-delay: 0.2s; }
.section.show .gallery-item:nth-child(6) { transition-delay: 0.24s; }
.section.show .gallery-item:nth-child(7) { transition-delay: 0.28s; }
.section.show .gallery-item:nth-child(8) { transition-delay: 0.32s; }

.gallery-item figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 14px 16px;
    background: linear-gradient(to top, rgba(72, 52, 47, 0.75), rgba(72, 52, 47, 0));
    color: #fff8f5;
    text-align: left;
    font-size: 0.9rem;
}

body[data-gallery-mode="simple"] .gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
}

body[data-gallery-mode="simple"] .gallery-item {
    cursor: default;
}

body[data-gallery-mode="enhanced"] .gallery-grid {
    column-count: 1;
    column-gap: 18px;
}

body[data-gallery-mode="enhanced"] .gallery-item {
    break-inside: avoid;
    margin-bottom: 18px;
    cursor: pointer;
}

body[data-gallery-mode="enhanced"] .gallery-item:hover {
    box-shadow: 0 24px 38px rgba(90, 74, 74, 0.12);
}

body[data-gallery-mode="enhanced"] .gallery-item:hover img {
    transform: scale(1.04);
}

.form-card {
    padding: 34px;
}

.rsvp-stack {
    display: grid;
    gap: 18px;
}

.rsvp-form {
    display: grid;
    gap: 18px;
    text-align: left;
}

.rsvp-form label {
    display: grid;
    gap: 8px;
}

.rsvp-form span {
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a4847d;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid rgba(142, 118, 111, 0.16);
    border-radius: 16px;
    background: rgba(255, 251, 248, 0.88);
    color: #6f5a54;
}

.rsvp-form textarea {
    resize: vertical;
}

.rsvp-step {
    display: grid;
    gap: 10px;
}

.guest-stepper {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    align-items: center;
    gap: 10px;
}

.guest-stepper input {
    text-align: center;
    font-weight: 600;
    -moz-appearance: textfield;
}

.guest-stepper input::-webkit-outer-spin-button,
.guest-stepper input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.guest-stepper-btn {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(164, 132, 125, 0.18);
    border-radius: 50%;
    background: rgba(255, 251, 248, 0.78);
    color: #7a625c;
    font-size: 1.2rem;
    box-shadow: 0 12px 24px rgba(90, 74, 74, 0.06);
    transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.guest-stepper-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    background: rgba(255, 246, 241, 0.94);
}

.guest-stepper-btn:disabled {
    opacity: 0.42;
    cursor: default;
}

.rsvp-microcopy,
.rsvp-support-copy {
    color: #8f7771;
    line-height: 1.8;
}

.attendance-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.attendance-option {
    border: 1px solid rgba(164, 132, 125, 0.16);
    border-radius: 16px;
    background: rgba(255, 251, 248, 0.72);
    color: #7d6761;
    padding: 14px 16px;
    text-align: center;
    box-shadow: 0 12px 24px rgba(90, 74, 74, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.attendance-option:hover {
    transform: translateY(-1px);
}

.attendance-option.is-selected {
    border-color: rgba(145, 118, 110, 0.36);
    background: rgba(145, 118, 110, 0.12);
    color: #5f4f4a;
    box-shadow: 0 16px 28px rgba(90, 74, 74, 0.08);
}

.rsvp-note-field {
    margin-top: 4px;
}

.rsvp-submit-btn {
    margin-top: 4px;
}

.rsvp-status {
    min-height: 1.5em;
    margin: 4px 0 0;
    color: #9d837c;
}

.rsvp-status.success {
    animation: pulseMessage 0.55s ease;
}

.rsvp-notes {
    padding: 26px 24px;
    text-align: left;
}

.rsvp-notes h3 {
    margin: 0 0 14px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: #5d4f4a;
}

@keyframes pulseMessage {
    0% { transform: scale(0.98); opacity: 0.4; }
    100% { transform: scale(1); opacity: 1; }
}

.message-wall {
    max-height: 300px;
    overflow: auto;
    text-align: left;
}

.message-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.message-page-label {
    color: #9a837d;
    font-size: 0.84rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.message-page-btn {
    border: 1px solid rgba(164, 132, 125, 0.16);
    border-radius: 999px;
    background: rgba(255, 251, 248, 0.72);
    color: #7d6761;
    padding: 10px 14px;
    box-shadow: 0 10px 20px rgba(90, 74, 74, 0.05);
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.message-page-btn:hover:not(:disabled) {
    background: rgba(255, 246, 241, 0.92);
    transform: translateY(-1px);
}

.message-page-btn:disabled {
    opacity: 0.42;
    cursor: default;
}

.wish-item {
    padding: 14px 2px;
    border-bottom: 1px solid rgba(142, 118, 111, 0.1);
}

.wish-item:last-child {
    border-bottom: none;
}

.wish-item h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: var(--color-warm-cream);
    letter-spacing: 0.04em;
}

.wish-item p {
    margin: 0;
    color: #8e766f;
    line-height: 1.75;
}

.closing-shell {
    position: relative;
    z-index: 2;
    max-width: 420px;
    margin: 0 auto;
}

#closing {
    overflow: hidden;
}

.closing-petals {
    z-index: 1;
}

.closing-petals-front {
    z-index: 3;
}

.closing-petals-back .cover-petal::before {
    opacity: calc(var(--petal-opacity, 0.24) * 1.45);
}

.closing-petals-front .cover-petal::before {
    opacity: var(--petal-opacity, 0.9);
}

.closing-copy {
    max-width: 600px;
    margin: 18px auto 0;
    line-height: 1.9;
    color: #8f7771;
}

.closing-signature {
    margin: 20px 0 4px;
    font-family: 'MonteCarlo', cursive;
    font-size: clamp(2rem, 5.5vw, 2.8rem);
    font-style: normal;
    line-height: 0.95;
    color: #5d4f4a;
}

.closing-brand-logo {
    display: block;
    width: min(34vw, 128px);
    margin: 10px auto 0;
    filter: drop-shadow(0 1px 3px rgba(90, 74, 74, 0.24));
    opacity: 0.9;
}

.gift-shell {
    display: grid;
    gap: 18px;
}

.top-hud {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 21;
    width: min(var(--hud-max-width), calc(100vw - var(--hud-side-inset)));
    padding: 3px 14px 5px;
    border-radius: 0 0 22px 22px;
    background: var(--hud-surface);
    border: 0;
    box-shadow: var(--hud-shadow);
    backdrop-filter: blur(var(--hud-blur));
    -webkit-backdrop-filter: blur(var(--hud-blur));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transform: translateX(-50%);
    pointer-events: none;
}

.hud-brand {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
    min-width: 0;
    align-self: center;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(-10px);
    animation: hudBrandFadeDown 0.7s cubic-bezier(0.22, 0.82, 0.22, 1) 0.14s forwards;
}

.hud-brand-logo {
    display: block;
    width: auto;
    height: 72px;
    opacity: 1;
    object-fit: contain;
    transform: translateY(2px);
    filter:
        saturate(1.1)
        drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4))
        drop-shadow(0 6px 14px rgba(90, 74, 74, 0.08));
}

.floating-countdown {
    opacity: 0;
    visibility: hidden;
    transform: translateX(var(--hud-enter-offset-x));
    transition: opacity 0.42s ease, transform 0.42s ease, visibility 0.42s ease;
    min-width: 0;
    flex: 1 1 auto;
    pointer-events: auto;
}

.floating-countdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.floating-countdown-line {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.floating-countdown-label {
    margin: 0;
    color: var(--hud-text);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.24);
}

.floating-countdown-value-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--hud-value-text);
    font-family: var(--font-primary);
    font-size: 1rem;
    letter-spacing: 0.06em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

@keyframes hudBrandFadeDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

@media (min-width: 900px) {
    .story-timeline::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 1px;
        background: linear-gradient(to bottom, rgba(164, 132, 125, 0.1), rgba(164, 132, 125, 0.36), rgba(164, 132, 125, 0.1));
        transform: translateX(-50%);
    }

    .story-item {
        width: calc(50% - 34px);
    }

    .story-item-left {
        margin-right: auto;
        transform: translate(-18px, 28px);
    }

    .story-item-right {
        margin-left: auto;
        transform: translate(18px, 40px);
    }

    .section.show .story-item-left,
    .section.show .story-item-right {
        transform: translate(0, 0) scale(0.985);
    }

    .story-dot {
        position: absolute;
        top: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 52px;
        height: 52px;
        border-radius: 999px;
        background: linear-gradient(180deg, rgba(255, 252, 249, 0.98), rgba(255, 244, 239, 0.92));
        color: #8f7771;
        box-shadow: 0 12px 24px rgba(90, 74, 74, 0.1);
    }

    .story-item-left .story-dot {
        right: -60px;
    }

    .story-item-right .story-dot {
        left: -60px;
    }

    body[data-gallery-mode="simple"] .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    body[data-gallery-mode="enhanced"] .gallery-grid {
        column-count: 3;
        column-gap: 20px;
    }
}

@media (max-width: 899px) {
    .story-item.is-after-focus.story-item-left,
    .story-item.is-after-focus.story-item-right {
        transform: translateX(0) scale(0.985);
    }
}

/* AUDIO */
.audio-controls {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    opacity: 1;
    transition: opacity 0.2s ease;
    flex: 0 0 auto;
    pointer-events: auto;
    margin-left: auto;
}

.audio-controls:hover,
.audio-controls.is-expanded {
    opacity: 0.9;
}

.audio-controls:active,
.audio-controls.is-active {
    opacity: 1;
}

.audio-btn {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(111, 90, 84, 0.12);
    border-radius: 999px;
    background: rgba(255, 250, 246, 0.26);
    color: #6f5a54;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.audio-btn:hover {
    background: rgba(255, 250, 246, 0.42);
    transform: translateY(-1px);
}

.volume-slider-wrap {
    display: flex;
    align-items: center;
    width: 0;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(111, 90, 84, 0.12);
    border-radius: 999px;
    background: rgba(255, 250, 246, 0.26);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: width 0.22s ease, padding 0.22s ease, opacity 0.22s ease;
}

.audio-controls:hover .volume-slider-wrap,
.audio-controls.is-expanded .volume-slider-wrap {
    width: 112px;
    padding: 0 14px;
    opacity: 1;
    pointer-events: auto;
}

.volume-slider {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(to right, #b88d80 0%, #b88d80 100%);
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #6f5a54;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 50%;
    background: #6f5a54;
    cursor: pointer;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 18;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(111, 90, 84, 0.92);
    color: #fff8f5;
    box-shadow: 0 14px 24px rgba(90, 74, 74, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.section-nav {
    position: fixed;
    top: 50%;
    right: 18px;
    z-index: 18;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: translateY(-50%);
}

.section-nav[hidden] {
    display: none !important;
}

.section-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 18px;
    border: 0;
    background: transparent;
    padding: 0;
    color: inherit;
    cursor: pointer;
}

.section-nav-label {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    border-radius: 999px;
    background: rgba(255, 251, 247, 0.86);
    color: var(--color-heading);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 0;
    box-shadow: 0 10px 18px rgba(90, 74, 74, 0.08);
    opacity: 0;
    transition: max-width 0.28s ease, padding 0.28s ease, opacity 0.28s ease;
}

.section-nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(164, 132, 125, 0.34);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
    transition: transform 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.section-nav-link:hover .section-nav-label,
.section-nav-link.is-active .section-nav-label {
    max-width: 140px;
    padding: 6px 12px;
    opacity: 1;
}

.section-nav-link:hover .section-nav-dot,
.section-nav-link.is-active .section-nav-dot {
    background: var(--color-accent);
    transform: scale(1.28);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.4),
        0 0 0 6px rgba(201, 123, 132, 0.12);
}

/* LIGHTBOX / MODAL */
.lightbox,
.gift-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(72, 52, 47, 0.72);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.open,
.gift-modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox img {
    max-width: min(90vw, 980px);
    max-height: 76vh;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.lightbox p {
    position: absolute;
    bottom: 32px;
    color: #fff8f5;
    max-width: 720px;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 250, 246, 0.9);
    color: #6f5a54;
    font-size: 1.6rem;
    line-height: 1;
}

.gift-dialog {
    position: relative;
    width: min(820px, calc(100vw - 36px));
    padding: 34px;
    text-align: center;
}

.gift-dialog h2 {
    max-width: 520px;
    margin-right: auto;
    margin-left: auto;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: 0;
    color: #5d4f4a;
}

.gift-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.gift-item {
    display: grid;
    justify-items: center;
    align-content: start;
    padding: 22px;
    border-radius: 18px;
    background: rgba(255, 251, 248, 0.9);
    text-align: center;
}

.gift-item h3 {
    margin-top: 0;
}

.gift-item p {
    margin: 0;
    color: #7d6761;
    line-height: 1.65;
}

.gift-item p span {
    display: block;
}

.copy-btn {
    margin-top: 14px;
}

.qr-item img {
    width: 180px;
    margin-top: 10px;
}

/* FORMS / MESSAGES */
.message-wall::-webkit-scrollbar {
    width: 10px;
}

.message-wall::-webkit-scrollbar-thumb {
    background: rgba(157, 131, 124, 0.34);
    border-radius: 999px;
}

/* RESPONSIVE */
@media (max-width: 1440px) {
    .cover-brand {
        top: -2px;
        max-width: min(26vw, 148px);
    }

    .cover-brand-logo {
        width: min(26vw, 148px);
    }
}

@media (max-width: 1200px) {
    .cover-content {
        width: min(52vw, 460px);
        padding: 34px 32px;
    }

    .cover-split {
        width: 50.5%;
    }
}

@media (max-width: 900px) {
    .gift-grid {
        grid-template-columns: 1fr;
    }

    .countdown-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-shell {
        padding: 120px 0 92px;
    }
}

@media (max-width: 768px) {
    .story-parallax {
        height: 64vh;
        min-height: 420px;
        max-height: 620px;
    }

    .story-parallax-media {
        background-position: center 32%;
    }

    .story-parallax-text {
        font-size: clamp(2.6rem, 13vw, 4.2rem);
    }

    .page-section {
        padding: 96px 0 82px;
        min-height: auto;
    }

    .hero.page-section {
        min-height: 100svh;
        padding: 0;
        align-items: stretch;
    }

    .section-shell {
        width: min(100vw - 24px, 420px);
    }

    .top-hud {
        width: min(calc(100vw - var(--hud-side-inset-mobile)), 100%);
        padding: 2px 10px 4px;
        gap: 6px;
    }

    .hud-brand-logo {
        height: 58px;
    }

    .floating-countdown {
        flex: 1 1 auto;
    }

    .floating-countdown-label {
        font-size: 0.58rem;
        letter-spacing: 0.08em;
    }

    .floating-countdown-line {
        gap: 8px;
    }

    .floating-countdown-value-inline {
        padding: 4px 10px;
        font-size: 0.86rem;
    }

    .audio-btn {
        width: 34px;
        height: 34px;
        font-size: 0.88rem;
    }

    .volume-slider-wrap {
        height: 34px;
    }

    .audio-controls:hover .volume-slider-wrap,
    .audio-controls.is-expanded .volume-slider-wrap {
        width: 82px;
        padding: 0 10px;
    }

    .cover {
        background:
            radial-gradient(circle at center, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0) 70%),
            linear-gradient(180deg, rgba(250, 244, 239, 0.99), rgba(246, 237, 232, 0.98));
    }

    .cover::before {
        background: radial-gradient(circle at center, rgba(255, 249, 244, 0.3), rgba(255, 249, 244, 0.5));
    }

    .cover-brand {
        top: 10px;
        max-width: min(46vw, 176px);
    }

    .cover-brand-logo {
        width: min(46vw, 176px);
        height: auto;
    }

    .cover-ornament {
        opacity: 0.36;
    }

    .cover-ornament-top-left {
        width: 24vw;
        height: 24vw;
    }

    .cover-ornament-top-right {
        width: 24vw;
        height: 24vw;
    }

    .cover-ornament-bottom-left {
        width: 28vw;
        height: 28vw;
    }

    .cover-ornament-bottom-right {
        width: 28vw;
        height: 28vw;
    }

    .cover-content {
        width: min(84vw, 340px);
        min-height: 62vh;
        padding: 34px 22px;
        border-radius: 24px;
        background: linear-gradient(180deg, rgba(255, 250, 246, 0.3), rgba(255, 246, 241, 0.22));
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .cover-petals {
        inset: -10%;
        overflow: hidden;
    }

    .cover-petal {
        top: -14vh;
    }

    .cover-split {
        width: 50%;
        opacity: 1;
    }

    .cover-split-left {
        box-shadow:
            inset -18px 0 24px -22px rgba(90, 74, 74, 0.16),
            inset 0 0 0 1px rgba(196, 170, 160, 0.06);
    }

    .cover-split-right {
        box-shadow:
            inset 18px 0 24px -22px rgba(90, 74, 74, 0.16),
            inset 0 0 0 1px rgba(196, 170, 160, 0.06);
    }

    .cover::after {
        display: none;
    }

    .cover-kicker,
    .eyebrow {
        font-size: 0.68rem;
        letter-spacing: 0.24em;
    }

    .cover-title {
        font-size: clamp(2.3rem, 10.6vw, 3.3rem);
    }

    .cover-title span {
        font-size: 0.88rem;
        letter-spacing: 0.18em;
    }

    .cover-guest {
        font-size: 0.95rem;
        margin-top: 20px;
    }

    .cover-poem,
    .hero-copy,
    .section-copy p,
    .closing-copy {
        font-size: 0.92rem;
        line-height: 1.7;
    }

    .cover-open-btn {
        width: 94px;
        height: 94px;
        font-size: 1.65rem;
    }

    .seal-ring-text {
        font-size: 5.6px;
        letter-spacing: 0.24em;
    }

    .seal-classic-text {
        font-size: 1.65rem;
    }

    .seal-initials {
        margin-top: 5px;
        gap: 0.14em;
        font-size: 1.14rem;
    }

    .hero h1 {
        font-size: clamp(2.45rem, 11.2vw, 3.7rem);
    }

    .hero {
        align-items: flex-end;
    }

    .hero-shell {
        width: 100%;
        max-width: none;
        min-height: 100svh;
        padding: 0;
        margin: 0;
        justify-content: flex-end;
        align-items: stretch;
    }

    .hero-card {
        margin-top: auto;
        width: calc(100% - 40px);
        margin-left: auto;
        margin-right: auto;
        padding: var(--hero-mobile-card-padding);
        text-align: center;
        align-items: center;
        border-radius: var(--hero-mobile-card-radius-top) var(--hero-mobile-card-radius-top) 0 0;
        overflow: hidden;
        clip-path: inset(0 round var(--hero-mobile-card-radius-top) var(--hero-mobile-card-radius-top) 0 0);
    }

    .hero-card::before {
        inset: 0;
        border-radius: var(--hero-mobile-card-radius-top) var(--hero-mobile-card-radius-top) 0 0;
        background:
            linear-gradient(120deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.05) 40%, rgba(255, 255, 255, 0) 60%),
            rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: 0;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow:
            inset 0 1px 1px rgba(255, 255, 255, 0.12),
            0 -8px 24px rgba(0, 0, 0, 0.08);
        opacity: 1;
        transform: none;
        animation: none;
    }

    .hero-card::after {
        inset: 10px 10px 0;
        border-radius: calc(var(--hero-mobile-card-radius-top) - 6px) calc(var(--hero-mobile-card-radius-top) - 6px) 0 0;
        opacity: 1;
        transform: none;
        animation: none;
    }

    .hero-date,
    .hero-copy,
    .hero .eyebrow {
        color: rgba(255, 247, 242, 0.98);
    }

    .hero-slide {
        background-position: center, var(--hero-slide-mobile-position, var(--hero-slide-position, center 30%)), center, center center;
    }

    .hero[data-hero-align="left"] .hero-shell,
    .hero[data-hero-align="right"] .hero-shell {
        margin-left: auto;
        margin-right: auto;
        justify-content: flex-end;
    }

    .hero[data-hero-align="left"] .hero-card,
    .hero[data-hero-align="right"] .hero-card {
        text-align: center;
        align-items: center;
    }

    .hero[data-hero-align="left"] .hero-support,
    .hero[data-hero-align="right"] .hero-support {
        margin-left: auto;
        margin-right: auto;
    }

    .hero[data-hero-align="left"] .hero-cta,
    .hero[data-hero-align="left"] .hero-carousel-controls,
    .hero[data-hero-align="right"] .hero-cta,
    .hero[data-hero-align="right"] .hero-carousel-controls {
        align-self: center;
    }

    .hero .eyebrow {
        width: 100%;
        margin-bottom: 12px;
        font-size: 0.54rem;
        letter-spacing: 0.24em;
    }

    .hero-date {
        font-size: 0.82rem;
        letter-spacing: 1.4px;
        line-height: 1.48;
    }

    .hero-location {
        font-size: 0.74rem;
        letter-spacing: 0.06em;
        line-height: 1.5;
    }

    .hero-support {
        width: calc(100% - 32px);
        max-width: min(var(--hero-mobile-support-max-width), calc(100% - 32px));
        margin-top: 14px;
        padding: 14px 18px 16px;
        border-radius: 22px;
    }

    .hero-copy {
        margin-top: 10px;
        font-size: 0.86rem;
        line-height: 1.78;
    }

    body[data-hero-mobile-cta="hide"] .hero-cta {
        display: none;
    }

    .hero-carousel-controls {
        gap: 6px;
        margin-top: 10px;
        padding: 5px 8px;
        background: rgba(90, 58, 46, 0.12);
    }

    .hero-carousel-btn {
        min-width: 28px;
        height: 28px;
        padding: 0 8px;
        font-size: 0.74rem;
    }

    .hero-carousel-pause {
        min-width: 28px;
        font-size: 0.76rem;
    }

    .hero-carousel-dot {
        width: 7px;
        height: 7px;
    }

    .location-card {
        padding: 24px;
    }

    .event-card {
        padding: 24px;
    }

    .event-card-head {
        grid-template-columns: 44px 1fr;
        gap: 12px;
        margin-bottom: 18px;
    }

    .event-summary-item {
        padding: 12px 14px;
    }

    .map-card iframe,
    .map-static-image {
        min-height: 300px;
    }

    .map-static-image {
        height: 300px;
    }

    .attendance-toggle {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gift-dialog {
        padding: 24px;
    }

    .event-actions {
        flex-direction: column;
    }

    .message-pagination {
        gap: 8px;
    }

    .message-page-btn {
        padding: 9px 12px;
        font-size: 0.82rem;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
    }

    .section-nav {
        right: 10px;
        gap: 8px;
    }

    .section-nav-label {
        display: none;
    }

    .section-nav-dot {
        width: 8px;
        height: 8px;
    }
}

/* Hero carousel control variants */
.hero-carousel-controls[data-variant="minimal"] {
    gap: 0;
    margin-top: 12px;
    padding: 2px 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.hero-carousel-controls[data-variant="minimal"] .hero-carousel-dots {
    gap: 7px;
}

.hero-carousel-controls[data-variant="minimal"] .hero-carousel-dot {
    position: relative;
    width: 34px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.hero-carousel-controls[data-variant="minimal"] .hero-carousel-dot::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 248, 244, 0.42);
    box-shadow: 0 1px 5px rgba(20, 10, 7, 0.16);
    transform: translateY(-50%);
    transition: background-color 0.28s ease, box-shadow 0.28s ease, opacity 0.28s ease;
}

.hero-carousel-controls[data-variant="minimal"] .hero-carousel-dot.is-active {
    background: transparent;
    transform: none;
}

.hero-carousel-controls[data-variant="minimal"] .hero-carousel-dot.is-active::before {
    background: var(--color-accent);
    box-shadow: 0 1px 8px rgba(201, 123, 132, 0.38);
}

.hero-carousel-controls[data-variant="minimal"] .hero-carousel-dot:focus-visible {
    outline: 2px solid rgba(255, 248, 244, 0.9);
    outline-offset: 2px;
}

/* Couple and family introduction */
.family-introduction {
    position: relative;
    overflow: hidden;
}

.family-introduction::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 0;
    width: min(820px, 92vw);
    aspect-ratio: 1.8;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 123, 132, 0.08), transparent 68%);
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.family-shell {
    position: relative;
    z-index: 1;
    width: min(1040px, 100%);
}

.family-opening {
    max-width: 680px;
    margin-inline: auto;
    text-wrap: balance;
}

.family-profiles {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr);
    align-items: center;
    width: min(960px, 100%);
    margin: clamp(44px, 7vw, 72px) auto 0;
}

.family-profile {
    position: relative;
    padding: clamp(34px, 5vw, 54px) clamp(24px, 4vw, 44px);
    border-top: 1px solid rgba(154, 112, 96, 0.22);
    border-bottom: 1px solid rgba(154, 112, 96, 0.16);
    border-radius: 44% 44% 28px 28px;
    background:
        radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.72), transparent 38%),
        linear-gradient(180deg, rgba(255, 250, 246, 0.5), rgba(255, 245, 240, 0.2));
    text-align: center;
}

.family-monogram {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 22px;
    border: 1px solid rgba(154, 112, 96, 0.22);
    border-radius: 50%;
    color: var(--color-accent);
    font-family: var(--font-primary);
    font-size: 2rem;
    line-height: 1;
    background: rgba(255, 250, 246, 0.58);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.74),
        0 12px 28px rgba(90, 74, 74, 0.08);
}

.family-profile h3 {
    margin: 0;
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: clamp(2.35rem, 4.6vw, 4rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.family-relation {
    margin: 24px 0 12px;
    color: var(--color-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.family-parents {
    display: grid;
    gap: 5px;
    margin: 0;
    color: rgba(90, 70, 63, 0.84);
    font-size: 0.98rem;
    line-height: 1.5;
}

.family-parent-joiner {
    color: var(--color-accent);
    font-family: var(--font-primary);
    font-size: 1.35rem;
    line-height: 1;
}

.family-divider {
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    justify-items: center;
    align-self: stretch;
    gap: 12px;
    color: var(--color-accent);
}

.family-divider::before,
.family-divider::after {
    content: "";
    width: 1px;
    min-height: 42px;
    background: linear-gradient(to bottom, transparent, rgba(154, 112, 96, 0.38), transparent);
}

.family-divider span {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-style: italic;
}

.family-profiles > * {
    opacity: 0;
    transition:
        opacity 0.9s ease,
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.family-profile:first-child {
    transform: translateX(-24px) scale(0.985);
}

.family-profile:last-child {
    transform: translateX(24px) scale(0.985);
}

.family-divider {
    transform: scaleY(0.72);
}

.family-introduction.show .family-profiles > * {
    opacity: 1;
    transform: translate(0) scale(1);
}

.family-introduction.show .family-profile:first-child {
    transition-delay: 0.18s;
}

.family-introduction.show .family-divider {
    transition-delay: 0.28s;
}

.family-introduction.show .family-profile:last-child {
    transition-delay: 0.38s;
}

@media (max-width: 720px) {
    .family-profiles {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-top: 38px;
    }

    .family-profile {
        width: min(100%, 390px);
        margin-inline: auto;
        padding: 34px 22px;
        border-radius: 42% 42% 24px 24px;
    }

    .family-profile:first-child,
    .family-profile:last-child {
        transform: translateY(24px) scale(0.985);
    }

    .family-divider {
        grid-template-columns: 1fr auto 1fr;
        grid-template-rows: auto;
        align-items: center;
        align-self: auto;
        width: min(240px, 72%);
        margin-inline: auto;
        transform: scaleX(0.72);
    }

    .family-divider::before,
    .family-divider::after {
        width: 100%;
        height: 1px;
        min-height: 0;
        background: linear-gradient(to right, transparent, rgba(154, 112, 96, 0.38), transparent);
    }

    .family-introduction.show .family-divider {
        transform: scaleX(1);
    }

    .family-profile h3 {
        font-size: clamp(2.6rem, 13vw, 3.65rem);
    }
}

/* Family enclosure geometry refinement */
@media (min-width: 721px) {
    .family-profiles {
        grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr);
        align-items: stretch;
        width: min(1040px, 100%);
    }

    .family-profile {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
        min-width: 0;
        min-height: 390px;
        border: 1px solid rgba(154, 112, 96, 0.18);
    }

    .family-profile:first-child {
        border-radius: 50% 22px 22px 50% / 50% 22px 22px 50%;
    }

    .family-profile:last-child {
        border-radius: 22px 50% 50% 22px / 22px 50% 50% 22px;
    }

    .family-profile h3 {
        font-size: clamp(2.35rem, 3.6vw, 3.5rem);
    }
}

@media (max-width: 720px) {
    .family-profile {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: min(100%, 390px);
        min-height: 320px;
        border: 1px solid rgba(154, 112, 96, 0.18);
    }

    .family-profile:first-child {
        border-radius: 50% 50% 22px 22px / 32% 32% 22px 22px;
    }

    .family-profile:last-child {
        border-radius: 22px 22px 50% 50% / 22px 22px 32% 32%;
    }
}

/* Family connector orientation correction */
.family-shell > .family-eyebrow,
.family-shell > .family-opening {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.family-divider span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(154, 112, 96, 0.18);
    border-radius: 50%;
    background: rgba(255, 250, 246, 0.82);
    box-shadow: 0 7px 18px rgba(90, 74, 74, 0.08);
    font-style: normal;
    line-height: 1;
}

@media (min-width: 721px) {
    .family-divider {
        grid-template-columns: 1fr auto 1fr;
        grid-template-rows: auto;
        align-items: center;
        align-self: center;
        gap: 6px;
        width: 74px;
        transform: scaleX(0.72);
    }

    .family-divider::before,
    .family-divider::after {
        width: 100%;
        height: 1px;
        min-height: 0;
        background: linear-gradient(to right, rgba(154, 112, 96, 0.2), rgba(154, 112, 96, 0.42));
    }

    .family-divider::after {
        background: linear-gradient(to right, rgba(154, 112, 96, 0.42), rgba(154, 112, 96, 0.2));
    }

    .family-introduction.show .family-divider {
        transform: scaleX(1);
    }
}

@media (max-width: 720px) {
    .family-profiles {
        gap: 0;
    }

    .family-divider {
        grid-template-columns: auto;
        grid-template-rows: 1fr auto 1fr;
        align-items: stretch;
        align-self: center;
        gap: 5px;
        width: 34px;
        height: 76px;
        margin: -1px auto;
        transform: scaleY(0.72);
    }

    .family-divider::before,
    .family-divider::after {
        width: 1px;
        height: 100%;
        min-height: 20px;
        background: linear-gradient(to bottom, rgba(154, 112, 96, 0.2), rgba(154, 112, 96, 0.42));
    }

    .family-divider::after {
        background: linear-gradient(to bottom, rgba(154, 112, 96, 0.42), rgba(154, 112, 96, 0.2));
    }

    .family-introduction.show .family-divider {
        transform: scaleY(1);
    }
}

/* Desktop family shared enclosure */
@media (min-width: 721px) {
    .family-shell > .family-opening {
        width: min(680px, 100%);
        text-align: center;
    }

    .family-profiles {
        gap: 0;
        overflow: hidden;
        border: 1px solid rgba(154, 112, 96, 0.2);
        border-radius: 999px;
        background:
            radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.7), transparent 34%),
            radial-gradient(circle at 76% 18%, rgba(255, 255, 255, 0.7), transparent 34%),
            linear-gradient(180deg, rgba(255, 250, 246, 0.5), rgba(255, 245, 240, 0.2));
    }

    .family-profile,
    .family-profile:first-child,
    .family-profile:last-child {
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .family-divider {
        grid-template-columns: auto;
        grid-template-rows: 1fr auto 1fr;
        align-items: stretch;
        align-self: stretch;
        justify-self: stretch;
        width: 74px;
        height: auto;
        margin: 0;
        transform: scaleY(0.72);
    }

    .family-divider::before,
    .family-divider::after {
        width: 1px;
        height: 100%;
        min-height: 0;
        background: linear-gradient(to bottom, transparent, rgba(154, 112, 96, 0.38));
    }

    .family-divider::after {
        background: linear-gradient(to bottom, rgba(154, 112, 96, 0.38), transparent);
    }

    .family-introduction.show .family-divider {
        transform: scaleY(1);
    }
}

/* Mathematically center the desktop family divider */
@media (min-width: 721px) {
    .family-profiles {
        position: relative;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .family-divider {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        z-index: 2;
        height: 100%;
        transform: translateX(-50%) scaleY(0.72);
        transform-origin: center;
        pointer-events: none;
    }

    .family-introduction.show .family-divider {
        transform: translateX(-50%) scaleY(1);
    }
}

/* Balance desktop family content toward the center */
@media (min-width: 721px) {
    .family-profile:first-child {
        align-items: flex-end;
        padding-right: clamp(54px, 6vw, 90px);
        padding-left: clamp(40px, 5vw, 72px);
        text-align: right;
    }

    .family-profile:last-child {
        align-items: flex-start;
        padding-right: clamp(40px, 5vw, 72px);
        padding-left: clamp(54px, 6vw, 90px);
        text-align: left;
    }

    .family-profile:first-child .family-monogram {
        margin-right: 0;
        margin-left: auto;
    }

    .family-profile:last-child .family-monogram {
        margin-right: auto;
        margin-left: 0;
    }
}

/* Lock desktop family profiles to equal grid columns */
@media (min-width: 721px) {
    .family-profile:first-child {
        grid-column: 1;
        grid-row: 1;
    }

    .family-profile:last-child {
        grid-column: 2;
        grid-row: 1;
    }
}

/* Deterministic family profile placement */
@media (min-width: 721px) {
    .family-profile.family-profile-position-1 {
        grid-column: 1;
        grid-row: 1;
        align-items: flex-end;
        padding-right: clamp(54px, 6vw, 90px);
        padding-left: clamp(40px, 5vw, 72px);
        text-align: right;
        transform: translateX(-24px) scale(0.985);
    }

    .family-profile.family-profile-position-2 {
        grid-column: 2;
        grid-row: 1;
        align-items: flex-start;
        padding-right: clamp(40px, 5vw, 72px);
        padding-left: clamp(54px, 6vw, 90px);
        text-align: left;
        transform: translateX(24px) scale(0.985);
    }

    .family-profile-position-1 .family-monogram {
        margin-right: 0;
        margin-left: auto;
    }

    .family-profile-position-2 .family-monogram {
        margin-right: auto;
        margin-left: 0;
    }

    .family-introduction.show .family-profile.family-profile-position-1,
    .family-introduction.show .family-profile.family-profile-position-2 {
        transform: translateX(0) scale(1);
    }
}

@media (max-width: 720px) {
    .family-profiles {
        grid-template-columns: 1fr;
        grid-template-rows: auto 76px auto;
    }

    .family-profile.family-profile-position-1 {
        grid-column: 1;
        grid-row: 1;
        border-radius: 50% 50% 22px 22px / 32% 32% 22px 22px;
        transform: translateY(24px) scale(0.985);
    }

    .family-profile.family-profile-position-2 {
        grid-column: 1;
        grid-row: 3;
        border-radius: 22px 22px 50% 50% / 22px 22px 32% 32%;
        transform: translateY(24px) scale(0.985);
    }

    .family-divider {
        grid-column: 1;
        grid-row: 2;
    }

    .family-introduction.show .family-profile.family-profile-position-1,
    .family-introduction.show .family-profile.family-profile-position-2 {
        transform: translateY(0) scale(1);
    }
}

/* Keep family padding inside its grid tracks */
.family-profiles,
.family-profile {
    box-sizing: border-box;
}

.rsvp-honeypot {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
