/* ============================================================
   Endless Horizon × Grainy Mesh
   Deep navy · steel/ice mesh · heavy film grain · soft light leaks
   ============================================================ */

@font-face {
    font-family: 'Forum';
    src: url('fonts/Forum/Forum-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Philosopher';
    src: url('fonts/Philosopher/Philosopher-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Czizh';
    src: url('fonts/Czizh/Czizh.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('fonts/Manrope/Manrope.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kindentosca';
    src: url('fonts/Kindentosca/Kindentosca.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-deep: #141516;
    --bg-mid: #1e2022;
    --azurite: #2b2b2b;
    --mountain: #3a3d3a;
    --contrail: #8a8a8a;
    --silver: #d4d3d1;
    --dove: #e8e7e5;
    --warm-glow: #f0efed;
    --white: #f2f1ef;
    --text: #e8e7e5;
    --text-soft: rgba(242, 241, 239, 0.72);
    --text-muted: rgba(242, 241, 239, 0.42);
    --glow: rgba(242, 241, 239, 0.5);
    --frost: rgba(242, 241, 239, 0.08);
    --max: 560px;
    --sheet-radius: 32px;
    /* Single source of truth for the page plate photo */
    --page-plate-image: url('images/bg-continiation2.png');
    --page-plate:
        radial-gradient(ellipse 26% 68% at 50% -4%, rgba(255, 255, 255, 0.16), transparent 72%),
        radial-gradient(ellipse 40% 34% at 64% 40%, rgba(236, 244, 250, 0.2), transparent 68%),
        radial-gradient(ellipse 38% 32% at 16% 18%, rgba(186, 204, 222, 0.14), transparent 70%),
        radial-gradient(ellipse 48% 36% at 40% 74%, rgba(210, 226, 238, 0.12), transparent 72%),
        radial-gradient(ellipse 30% 26% at 88% 82%, rgba(168, 192, 214, 0.1), transparent 65%),
        linear-gradient(180deg, rgba(28, 46, 66, 0.22), rgba(18, 32, 48, 0.38)),
        var(--page-plate-image) center top / 125% 125% no-repeat,
        #1e2f42;
    /* Extra paint below the viewport for Android URL-bar collapse */
    --page-bg-bleed: 96px;
}

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

html {
    height: 100%;
    overflow: hidden;
    scrollbar-width: none;
    background-color: #1e2f42;
}

html::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

html.is-scroll-locked .page-scroll {
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
}

body {
    height: 100%;
    height: 100dvh;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    color: var(--text);
    line-height: 1.75;
    letter-spacing: 0.01em;
    /* Document does not scroll; plate lives on .page-scroll */
    background: transparent;
    overflow: hidden;
}

/*
 * App-style scrollport: document itself does not bounce.
 * Plate is painted on this scrollport so iOS rubber-band / overscroll
 * always reveals the same background image (fixed layers alone cannot).
 */
.page-scroll {
    position: relative;
    z-index: 1;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    /*
     * Background is on the scrollport (not the content), so it stays put while
     * children scroll — and it is what iOS paints during rubber-band / PTR.
     */
    background: var(--page-plate);
    scrollbar-width: none;
}

.page-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* ============================================================
   Page load gate — show content only when assets are ready
   ============================================================ */
html.is-loading,
html.is-loading body {
    overflow: hidden;
    overscroll-behavior: none;
}

html.is-loading .page-scroll {
    overflow: hidden;
    overscroll-behavior: none;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 1.1rem;
    background:
        radial-gradient(ellipse 40% 34% at 64% 40%, rgba(236, 244, 250, 0.14), transparent 68%),
        radial-gradient(ellipse 38% 32% at 16% 18%, rgba(186, 204, 222, 0.1), transparent 70%),
        linear-gradient(180deg, rgba(28, 46, 66, 0.22), rgba(18, 32, 48, 0.38)),
        #1e2f42;
    opacity: 1;
    visibility: visible;
    transition:
        opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.75s linear;
}

html.is-ready .page-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader__stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.45rem;
}

.page-loader__mark {
    position: relative;
    width: 72px;
    height: 96px;
    flex-shrink: 0;
}

.page-loader__lens {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 0;
    width: 42px;
    height: 20px;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        ellipse at center,
        #334b63 0%,
        #2a3e54 58%,
        #24364a 82%,
        transparent 100%
    );
    pointer-events: none;
}

.page-loader__ring {
    position: absolute;
    left: 50%;
    z-index: 1;
    width: 56px;
    height: 56px;
    border: 1px solid rgba(245, 249, 252, 0.62);
    border-radius: 50%;
    transform: translateX(-50%);
}

.page-loader__ring--top {
    top: 0;
    animation: page-loader-breathe 2.4s ease-in-out infinite;
}

.page-loader__ring--bottom {
    bottom: 0;
    animation: page-loader-breathe 2.4s ease-in-out infinite;
}

.page-loader__names {
    position: relative;
    width: 72px;
    height: 1.6em;
    margin: 0;
    font-family: 'Philosopher', 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1.15rem;
    color: rgba(242, 241, 239, 0.88);
    text-shadow:
        0 0 28px rgba(255, 255, 255, 0.45),
        0 0 64px rgba(220, 236, 246, 0.35),
        0 1px 18px rgba(0, 0, 0, 0.28);
}

.page-loader__names > span:first-child,
.page-loader__names > span:last-child {
    position: absolute;
    top: 50%;
    white-space: nowrap;
    letter-spacing: 0.26em;
    transform: translateY(-50%);
}

.page-loader__names > span:first-child {
    right: calc(50% + 1.45em);
}

.page-loader__names > span:last-child {
    left: calc(50% + 1.45em);
}

.page-loader__amp {
    position: absolute;
    left: 50%;
    top: 50%;
    font-family: 'Czizh', cursive;
    font-size: 1.55em;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.12);
    -webkit-text-stroke: 0.9px rgba(245, 249, 252, 1);
    paint-order: stroke fill;
    opacity: 0.85;
    font-weight: 400;
    line-height: 1;
    text-shadow: none;
    transform: translate(-50%, -50%);
}

.page-loader__label {
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
    font-size: 0.68rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: rgba(242, 241, 239, 0.58);
}

@keyframes page-loader-breathe {
    0%, 100% {
        opacity: 0.55;
        box-shadow:
            0 0 10px rgba(255, 255, 255, 0.28),
            0 0 22px rgba(220, 236, 246, 0.2);
    }
    50% {
        opacity: 1;
        box-shadow:
            0 0 14px rgba(255, 255, 255, 0.7),
            0 0 32px rgba(232, 244, 252, 0.5),
            0 0 54px rgba(210, 230, 244, 0.32);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-loader__ring--top,
    .page-loader__ring--bottom {
        animation: none;
        opacity: 0.85;
        box-shadow:
            0 0 12px rgba(255, 255, 255, 0.45),
            0 0 28px rgba(220, 236, 246, 0.28);
    }

    .page-loader {
        transition-duration: 0.2s;
    }
}

/* ============================================================
   Fixed page background — grainy steel mesh continuation
   ============================================================ */
.page-bg {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    /*
     * Sits behind .page-scroll. Document does not bounce; iOS rubber-band
     * happens inside the scrollport and reveals this stationary plate.
     * Extra height still covers Android Chrome URL-bar collapse frames.
     */
    height: 100vh;
    height: 100dvh;
    height: 100lvh;
    min-height: calc(100lvh + var(--page-bg-bleed));
    background: var(--page-plate);
    pointer-events: none;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Full-viewport soft light leak behind content */
.page-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 22% 58% at 50% -8%, rgba(255, 255, 255, 0.2), transparent 70%),
        radial-gradient(ellipse 58% 20% at 50% 70%, rgba(255, 236, 220, 0.09), transparent 72%);
    mix-blend-mode: screen;
    opacity: 0.55;
    filter: blur(52px);
    pointer-events: none;
}

/* Hero-local bloom — soft beam, under hero content */
.page-bloom {
    display: block;
    position: absolute;
    inset: -8% 0 20%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 24% 55% at 50% 0%, rgba(255, 255, 255, 0.16), transparent 72%),
        radial-gradient(ellipse 60% 22% at 50% 68%, rgba(255, 236, 220, 0.08), transparent 70%);
    mix-blend-mode: screen;
    opacity: 0.32;
    filter: blur(40px);
}

/* Paper grain — nearly silent so film grain leads */
.paper-grain {
    position: fixed;
    inset: 0;
    z-index: 48;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.02;
    mix-blend-mode: soft-light;
    background-image:
        linear-gradient(
            180deg,
            rgba(232, 238, 244, 0.02) 0%,
            rgba(20, 30, 42, 0) 40%,
            rgba(20, 30, 42, 0.03) 100%
        ),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.35' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: auto, 320px 320px;
    transform: translateZ(0);
}

/* Film grain — dense frosted / high-ISO texture */
.film-grain {
    position: fixed;
    inset: 0;
    z-index: 50;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.07;
    mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.25' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 120px 120px;
    transform: translateZ(0);
}

@media (prefers-reduced-motion: reduce) {
    .film-grain {
        opacity: 0.04;
    }

    .paper-grain {
        opacity: 0.015;
    }

    .page-bloom {
        opacity: 0.3;
        filter: blur(28px);
    }
}

/* ============================================================
   Hero — overlapping lens circles (Venn)
   ============================================================ */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 20px 88px;
    text-align: center;
    overflow: visible;
}

.hero::before {
    content: none;
}

.hero-venn {
    position: relative;
    z-index: 1;
    width: min(92vw, 400px);
    aspect-ratio: 400 / 520;
    flex-shrink: 0;
    isolation: isolate;
    container-type: inline-size;
}

.hero-rings {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.hero-ring {
    mix-blend-mode: screen;
    opacity: 0.85;
    filter: blur(0.6px);
}

.hero-ring-halo {
    stroke: rgba(255, 255, 255, 0.42);
    stroke-width: 22;
    opacity: 0.7;
}

.hero-intersection-glow {
    fill: rgba(30, 47, 66, 0.55);
    opacity: 1;
}

.hero-ring-edge {
    stroke: rgba(255, 255, 255, 0.72);
    stroke-width: 3.2;
    opacity: 0.95;
}

.hero-ring-edge--top {
    stroke: rgba(255, 255, 255, 0.78);
}

.hero-ring-edge--bottom {
    stroke: rgba(255, 255, 255, 0.64);
}

.hero-ring-core {
    stroke: rgba(255, 255, 255, 0.55);
    stroke-width: 1.6;
    opacity: 0.85;
}

.hero-ring-core--top {
    stroke: rgba(255, 255, 255, 0.62);
}

.hero-ring-core--bottom {
    stroke: rgba(255, 255, 255, 0.48);
}

.hero-arc-text {
    font-family: 'Cormorant Garamond', 'Jost', serif;
    font-size: 11px;
    letter-spacing: 0.28em;
    fill: rgba(184, 189, 191, 0.72);
    text-transform: uppercase;
}

.hero-arc-text--foot {
    font-size: 10px;
    letter-spacing: 0.22em;
    fill: rgba(122, 128, 127, 0.85);
}

.hero-venn-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* Zones match SVG: top cy=168, lens@260, bottom cy=352 (viewBox 520).
   Size tracks the venn (cqi); width stays inside the top-circle chord. */
.hero-names {
    position: absolute;
    left: 50%;
    top: 25%;
    transform: translate(-50%, -50%);
    width: 54%;
    max-width: none;
    margin: 0;
    font-family: 'Philosopher', 'Cormorant Garamond', serif;
    font-weight: 400;
    /* Scales with circle; capped so «ВЕРОНИКА» clears the ring on narrow + wide */
    font-size: clamp(1.38rem, 7.2cqi, 2.25rem);
    line-height: 1.15;
    letter-spacing: 0.26em;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.28em;
    text-shadow:
        0 0 28px rgba(255, 255, 255, 0.45),
        0 0 64px rgba(220, 236, 246, 0.35),
        0 1px 18px rgba(0, 0, 0, 0.28);
}

.hero-names > span:not(.hero-cross) {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 100%;
    overflow: visible;
    white-space: nowrap;
}

.hero-names .hero-cross {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -36%);
    z-index: 0;
    font-family: 'Czizh', cursive;
    font-size: 1.85em;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.12);
    -webkit-text-stroke: 0.9px rgba(245, 249, 252, 1);
    paint-order: stroke fill;
    opacity: 0.85;
    font-weight: 400;
    line-height: 1;
    text-shadow: none;
    pointer-events: none;
}

/* Lens center (y=260): width ≤ ~58% of venn; keep clear of the arcs */
.hero-wedding-day {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 48%;
    max-width: none;
    margin: 0;
    font-family: 'Forum', 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: clamp(0.92rem, 4.5cqi, 1.4rem);
    line-height: 1.15;
    letter-spacing: 0.36em;
    text-indent: 0.36em;
    text-transform: uppercase;
    color: var(--white);
    text-shadow:
        0 0 24px rgba(255, 255, 255, 0.4),
        0 0 56px rgba(210, 228, 240, 0.28),
        0 1px 14px rgba(0, 0, 0, 0.28);
    white-space: nowrap;
    overflow: visible;
    text-align: center;
    opacity: 0.92;
}

/* Bottom circle (cy=352): same cqi scaling as names, stays inside the ring */
.hero-date {
    position: absolute;
    left: 50%;
    top: 72%;
    transform: translate(-50%, -50%);
    width: 54%;
    max-width: none;
    margin: 0;
    font-family: 'Philosopher', 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: clamp(1.38rem, 7.2cqi, 2.25rem);
    letter-spacing: 0.26em;
    color: var(--dove);
    text-shadow:
        0 0 28px rgba(255, 255, 255, 0.4),
        0 0 56px rgba(210, 228, 240, 0.3),
        0 1px 18px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    overflow: visible;
    text-align: center;
}

@container (max-width: 320px) {
    .hero-names,
    .hero-date {
        font-size: clamp(1.22rem, 6.5cqi, 1.85rem);
        letter-spacing: 0.22em;
    }

    .hero-wedding-day {
        font-size: clamp(0.82rem, 4cqi, 1.15rem);
        letter-spacing: 0.3em;
        text-indent: 0.3em;
    }
}

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    display: grid;
    place-items: start center;
    padding-top: 8px;
    z-index: 2;
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.08);
}

.hero-scroll span {
    width: 3px;
    height: 8px;
    border-radius: 2px;
    background: var(--dove);
    animation: scroll-nudge 1.8s ease-in-out infinite;
}

@keyframes scroll-nudge {
    0%, 100% { opacity: 0.35; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(8px); }
}

/* ============================================================
   Sheet — content container over page background (no frost)
   ============================================================ */
.sheet {
    position: relative;
    z-index: 2;
    margin-top: -48px;
    width: 100%;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border-top: none;
    overflow: visible;
}

.sheet::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.045;
    mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.4' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    /* Fade grain in so its top edge doesn't read as a seam */
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 64px);
    mask-image: linear-gradient(180deg, transparent 0%, #000 64px);
}

.sheet-inner {
    position: relative;
    z-index: 1;
    width: min(100%, var(--max));
    margin: 0 auto;
    padding: 48px 28px 88px;
}

.section {
    text-align: center;
    padding: 56px 0;
}

.section + .section {
    border-top: 1px solid rgba(232, 231, 229, 0.12);
}

.section-label {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.68rem;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.6rem;
}

.section-text {
    font-size: 0.95rem;
    color: var(--white);
    max-width: 34em;
    margin: 0 auto;
}

.section-text strong {
    color: var(--white);
    font-weight: 500;
}

.icon-wrap {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.2rem;
    color: var(--silver);
}

.icon-wrap svg {
    width: 100%;
    height: 100%;
}

.ornament {
    width: 120px;
    margin: 0 auto;
    color: var(--contrail);
    opacity: 0.85;
}

.ornament svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   Reveal motion
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Location is scroll-gated — skip translate so reveal doesn't fight the lock. */
.location.reveal,
.gifts.reveal {
    transform: none;
}

.location.reveal.is-visible,
.gifts.reveal.is-visible {
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .snake-item,
    .snake-line,
    .snake-line-bloom {
        opacity: 1;
        transform: none;
        transition: none;
        animation: none;
    }

    .snake-line,
    .snake-line-bloom {
        stroke-dashoffset: 0;
    }

    .hero-scroll span {
        animation: none;
    }
}

/* ============================================================
   Intro
   ============================================================ */
.intro {
    --intro-heading-size: clamp(37.64px, 9.78cqi + 1.41rem, 52.27px);
    /* Body tracks heading: 20px when heading is at its 52.27px cap */
    --intro-body-size: calc(var(--intro-heading-size) * 20 / 52.27);
    padding-top: 36px;
    container-type: inline-size;
}

.intro p.intro-greeting {
    font-family: 'Kindentosca', cursive;
    font-weight: 400;
    font-size: var(--intro-heading-size);
    letter-spacing: 0.06em;
    line-height: 1.15;
    text-align: left;
    color: var(--white);
    margin-bottom: 3.2rem !important;
    text-shadow: 0 0 48px rgba(242, 241, 239, 0.1);
}

.intro-greeting__line {
    display: block;
    white-space: nowrap;
}

/*
 * Invisible twin of «Дорогие н» (~1 letter past «наши» start, at 80%).
 * max-width collapses the indent on narrow containers so line 2 fits.
 */
.intro-greeting__pad {
    visibility: hidden;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.8em;
    max-width: clamp(0px, 60cqi - 9rem, 4.2em);
    vertical-align: baseline;
}

.intro p:not(.intro-greeting) {
    font-family: 'Manrope', sans-serif;
    font-size: var(--intro-body-size);
    color: var(--white);
    margin-bottom: 1.2rem;
}

/*
 * Narrow phones: shrink heading + body together.
 * After base font-size rules so these overrides win in the cascade.
 * Must target descendants — @container cannot style the container (.intro) itself.
 */
@container (max-width: 380px) {
    .intro p.intro-greeting {
        font-size: clamp(28px, 8.2cqi + 0.9rem, 43.91px);
    }

    .intro p:not(.intro-greeting) {
        font-size: calc(clamp(28px, 8.2cqi + 0.9rem, 43.91px) * 20 / 52.27);
    }

    .intro-greeting__pad {
        max-width: clamp(0px, 56cqi - 9.25rem, 3.6em);
        font-size: 0.74em;
    }

    .gifts-arc__title {
        font-size: calc(clamp(28px, 8.2cqi + 0.9rem, 43.91px) * 0.728);
    }
}

.intro-step {
    text-align: left;
    line-height: 1.35;
    margin-left: 0;
    white-space: normal;
    overflow-wrap: break-word;
}

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

.intro strong {
    color: var(--white);
    font-weight: 500;
}

/* ============================================================
   Calendar / Date
   ============================================================ */
.calendar {
    margin: 0 auto 1rem;
    max-width: 260px;
}

.calendar-month {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 0.48em;
    color: var(--white);
    margin-bottom: 1.15rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px 4px;
    justify-items: center;
}

.calendar-grid span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--contrail);
    letter-spacing: 0.02em;
}

.calendar-grid .is-empty {
    visibility: hidden;
    pointer-events: none;
}

.calendar-grid .is-active {
    color: var(--bg-deep);
    background: var(--white);
    border-radius: 50%;
    font-weight: 500;
    box-shadow: 0 0 24px rgba(242, 241, 239, 0.28);
    animation: pulse-date 2.8s ease-in-out infinite;
}

@keyframes pulse-date {
    0%, 100% { box-shadow: 0 0 0 0 rgba(242, 241, 239, 0.28); }
    50% { box-shadow: 0 0 0 12px rgba(242, 241, 239, 0); }
}

.date-strip {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: min(100%, 540px);
    margin: 3.2rem auto 0;
    padding: 1.7rem 1.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px) saturate(0.9);
    -webkit-backdrop-filter: blur(16px) saturate(0.9);
    border: 1.1px solid rgba(255, 255, 255, 0.92);
    box-shadow:
        inset 0 0 18px rgba(255, 255, 255, 0.12),
        0 0 8px rgba(255, 255, 255, 0.95),
        0 0 22px rgba(255, 255, 255, 0.72),
        0 0 48px rgba(210, 230, 245, 0.45),
        0 0 86px rgba(210, 230, 245, 0.22);
}

.date-strip-month,
.date-strip-weekday {
    font-family: 'Philosopher', 'Cormorant Garamond', serif;
    font-size: clamp(0.92rem, 2.9cqi + 0.4rem, 1.18rem);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--dove);
    text-align: center;
    line-height: 1.2;
}

.date-strip-month {
    padding-right: 0.9rem;
}

.date-strip-weekday {
    padding-left: 0.9rem;
}

.date-strip-day {
    position: relative;
    font-family: 'Philosopher', 'Cormorant Garamond', serif;
    font-size: clamp(2.95rem, 8.2cqi + 0.8rem, 4.25rem);
    font-weight: 300;
    line-height: 0.9;
    color: var(--white);
    text-align: center;
    padding: 0 0.95rem;
    text-shadow: 0 0 28px rgba(242, 241, 239, 0.22);
}

.date-strip-day::before,
.date-strip-day::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 1.5px;
    height: 2.25rem;
    background: rgba(255, 255, 255, 0.88);
    transform: translateY(-50%);
}

.date-strip-day::before {
    left: 0;
}

.date-strip-day::after {
    right: 0;
}

@media (max-width: 480px) {
    .date-strip {
        grid-template-columns: 1fr;
        justify-items: center;
        width: max-content;
        max-width: min(100%, 18rem);
        padding: 3rem 1.35rem;
        gap: 1.35rem;
    }

    .date-strip-month,
    .date-strip-weekday {
        padding: 0;
        white-space: nowrap;
    }

    .date-strip-day {
        padding: 0.45rem 0;
    }

    .date-strip-day::before,
    .date-strip-day::after {
        left: 50%;
        right: auto;
        width: 2.6rem;
        height: 1.5px;
        transform: translateX(-50%);
    }

    .date-strip-day::before {
        top: 0;
    }

    .date-strip-day::after {
        top: auto;
        bottom: 0;
    }
}

/* ============================================================
   Location — twin circles: merge → split → reveal
   ============================================================ */
.location-stage {
    /*
     * Single scale unit — desktop composition at 248px.
     * Cap so orb width always fits the viewport; everything else
     * is expressed as a fraction of --circle-size and scales with it.
     * --split-ratio / --split-extra are unitless so JS can read them.
     */
    --circle-size: min(74vw, 268px, calc((100vw - 2.75rem) / 1.88));
    --split-ratio: 0.75;
    --split-extra: 0;
    --split: calc(var(--circle-size) * var(--split-ratio));
    --orb-w: calc(var(--circle-size) * 1.88);
    --orb-h: calc(var(--circle-size) * 2.42);
    --orb-aura-w: calc(var(--circle-size) * 2.1);
    --orb-aura-h: calc(var(--circle-size) * 2.7);
    --orb-shift: calc(var(--circle-size) * 0.7);
    --orb-aura-shift: calc(var(--circle-size) * 0.93);
    --stage-ratio: 3.1;
    position: relative;
    width: 100%;
    height: calc(var(--circle-size) * var(--stage-ratio));
    margin: 0 auto;
    overflow: visible;
}

/* Atmospheric orbs — directional beams (Expo-style, not circular) */
.location-orbs {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

.location-orb {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 0;
    /* Capsule / stadium — not a pure ellipse */
    border-radius: 999px;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

/* White beam: rides with photo circle — no separate split animation */
.location-orb--top {
    width: var(--orb-w);
    height: var(--orb-h);
    background:
        radial-gradient(
            ellipse 72% 48% at 50% 18%,
            #ffffff 0%,
            #ffffff 10%,
            rgba(255, 255, 255, 0.98) 22%,
            rgba(248, 252, 255, 0.72) 40%,
            rgba(220, 235, 255, 0.32) 58%,
            transparent 78%
        );
    -webkit-mask-image: linear-gradient(
        180deg,
        #000 0%,
        #000 22%,
        #000 40%,
        rgba(0, 0, 0, 0.45) 68%,
        transparent 95%
    );
    mask-image: linear-gradient(
        180deg,
        #000 0%,
        #000 22%,
        #000 40%,
        rgba(0, 0, 0, 0.45) 68%,
        transparent 95%
    );
    filter: blur(28px);
    opacity: 0;
    /* Fixed offset vs photo center — moves only via parent circle transform */
    transform: translate(-50%, calc(-50% + var(--orb-shift)));
    transition: opacity 1.35s cubic-bezier(0.33, 0.05, 0.2, 1) 0.2s;
}

.location.is-expanded .location-orb--top {
    opacity: 1;
}

/* Soft outer aura — same parent as top, mirrors bottom aura offset */
.location-orb--aura-top {
    width: var(--orb-aura-w);
    height: var(--orb-aura-h);
    background:
        radial-gradient(
            ellipse 78% 52% at 50% 16%,
            rgba(255, 255, 255, 0.5) 0%,
            rgba(240, 248, 255, 0.22) 38%,
            transparent 72%
        );
    -webkit-mask-image: linear-gradient(
        180deg,
        #000 0%,
        #000 22%,
        #000 40%,
        rgba(0, 0, 0, 0.35) 68%,
        transparent 95%
    );
    mask-image: linear-gradient(
        180deg,
        #000 0%,
        #000 22%,
        #000 40%,
        rgba(0, 0, 0, 0.35) 68%,
        transparent 95%
    );
    filter: blur(44px);
    opacity: 0;
    transform: translate(-50%, calc(-50% + var(--orb-aura-shift)));
    transition: opacity 1.35s cubic-bezier(0.33, 0.05, 0.2, 1) 0.2s;
}

.location.is-expanded .location-orb--aura-top {
    opacity: 0.5;
}

/* Narrow vertical bridge where beams meet */
.location-orb--bridge {
    width: calc(var(--circle-size) * 0.5);
    height: calc(var(--circle-size) * 1.4);
    border-radius: 50%;
    background:
        radial-gradient(
            ellipse 60% 80% at 50% 50%,
            rgba(110, 150, 190, 0.24) 0%,
            rgba(40, 75, 115, 0.14) 40%,
            transparent 70%
        );
    filter: blur(36px);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition:
        height 1.7s cubic-bezier(0.33, 0.05, 0.2, 1),
        opacity 1.55s cubic-bezier(0.33, 0.05, 0.2, 1);
}

.location.is-expanded .location-orb--bridge {
    width: calc(var(--circle-size) * 0.55);
    height: calc(var(--circle-size) * 1.8);
    opacity: 0.48;
    filter: blur(38px);
}

/* Blue beam: rides with text circle — mirror of white */
.location-orb--bottom {
    width: var(--orb-w);
    height: var(--orb-h);
    background:
        radial-gradient(
            ellipse 72% 48% at 50% 82%,
            #7a9ec0 0%,
            rgba(90, 130, 175, 0.96) 10%,
            rgba(50, 90, 135, 0.88) 24%,
            rgba(30, 55, 90, 0.62) 42%,
            rgba(20, 40, 70, 0.28) 60%,
            transparent 78%
        );
    -webkit-mask-image: linear-gradient(
        0deg,
        #000 0%,
        #000 22%,
        #000 40%,
        rgba(0, 0, 0, 0.45) 68%,
        transparent 95%
    );
    mask-image: linear-gradient(
        0deg,
        #000 0%,
        #000 22%,
        #000 40%,
        rgba(0, 0, 0, 0.45) 68%,
        transparent 95%
    );
    filter: blur(28px);
    opacity: 0;
    transform: translate(-50%, calc(-50% - var(--orb-shift)));
    transition: opacity 1.35s cubic-bezier(0.33, 0.05, 0.2, 1) 0.2s;
}

.location.is-expanded .location-orb--bottom {
    opacity: 1;
}

/* Soft outer aura — same parent as bottom */
.location-orb--aura {
    width: var(--orb-aura-w);
    height: var(--orb-aura-h);
    background:
        radial-gradient(
            ellipse 78% 52% at 50% 84%,
            rgba(100, 145, 190, 0.5) 0%,
            rgba(40, 80, 125, 0.3) 38%,
            transparent 72%
        );
    -webkit-mask-image: linear-gradient(
        0deg,
        #000 0%,
        #000 22%,
        #000 40%,
        rgba(0, 0, 0, 0.35) 68%,
        transparent 95%
    );
    mask-image: linear-gradient(
        0deg,
        #000 0%,
        #000 22%,
        #000 40%,
        rgba(0, 0, 0, 0.35) 68%,
        transparent 95%
    );
    filter: blur(44px);
    opacity: 0;
    transform: translate(-50%, calc(-50% - var(--orb-aura-shift)));
    transition: opacity 1.35s cubic-bezier(0.33, 0.05, 0.2, 1) 0.2s;
}

.location.is-expanded .location-orb--aura {
    opacity: 0.75;
}

.location-circle {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: var(--circle-size);
    height: var(--circle-size);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition:
        transform 1.7s cubic-bezier(0.33, 0.05, 0.2, 1),
        border-color 1.45s ease,
        background 1.45s ease,
        box-shadow 1.45s ease;
}

.location.is-expanded .location-circle--top {
    transform: translate(-50%, calc(-50% - var(--split) - var(--circle-size) * var(--split-extra)));
}

.location.is-expanded .location-circle--bottom {
    transform: translate(-50%, calc(-50% + var(--split)));
}

.location-circle--top {
    z-index: 2;
    overflow: visible;
}

.location-circle--bottom {
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    border: 1px solid rgba(247, 248, 245, 0.22);
    background: rgba(255, 255, 255, 0.04);
    box-shadow:
        0 0 0 1px rgba(247, 248, 245, 0.05),
        inset 0 0 24px rgba(247, 248, 245, 0.04);
}

/* After split: no circle — soft uplight from below */
.location.is-expanded .location-circle--bottom {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

/* Photo rim glow — appears with split, not in folded state */
.location-photo-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
    transition: box-shadow 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.location-photo-wrap::before {
    content: '';
    position: absolute;
    inset: calc(var(--circle-size) * -0.05);
    border-radius: 50%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 70%
    );
    filter: blur(calc(var(--circle-size) * 0.03));
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    transition: opacity 1.7s cubic-bezier(0.33, 0.05, 0.2, 1);
}

.location.is-expanded .location-photo-wrap {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.8),
        0 0 20px 6px rgba(255, 255, 255, 0.5),
        0 0 44px 14px rgba(240, 248, 255, 0.28);
}

.location.is-expanded .location-photo-wrap::before {
    opacity: 1;
}

.location-photo {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    opacity: 0;
    background: url('images/location.jpg') center / cover no-repeat;
    filter: none;
    transition: opacity 1.35s cubic-bezier(0.33, 0.05, 0.2, 1) 0.6s;
}

.location.is-expanded .location-photo {
    opacity: 1;
}

.location-arc {
    position: absolute;
    left: 50%;
    top: calc(var(--circle-size) * 0.087);
    z-index: 3;
    width: 148%;
    height: auto;
    overflow: visible;
    pointer-events: none;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 1.3s cubic-bezier(0.33, 0.05, 0.2, 1) 0.85s;
}

.location.is-expanded .location-arc {
    opacity: 1;
}

.location-arc-text {
    fill: var(--white);
    font-family: 'Philosopher', 'Cormorant Garamond', serif;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* Arc type scales with the photo circle (+25% vs prior sizes) */
.location-arc-text--1 {
    font-size: calc(var(--circle-size) * 0.058);
}

.location-arc-text--2 {
    font-size: calc(var(--circle-size) * 0.0555);
}

.location-arc-text--3 {
    font-size: calc(var(--circle-size) * 0.0529);
}

.location-details {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 118%;
    max-width: none;
    height: auto;
    min-height: 100%;
    padding:
        calc(var(--circle-size) * 0.055)
        calc(var(--circle-size) * 0.038)
        calc(var(--circle-size) * 0.065);
    box-sizing: border-box;
    text-align: center;
    opacity: 0;
    transform: translateY(calc(var(--circle-size) * 0.048));
    transition:
        opacity 1.35s cubic-bezier(0.33, 0.05, 0.2, 1) 0.7s,
        transform 1.5s cubic-bezier(0.33, 0.05, 0.2, 1) 0.65s;
}

.location.is-expanded .location-details {
    opacity: 1;
    transform: translateY(calc(var(--circle-size) * 0.06));
}

@media (min-width: 481px) {
    .location.is-expanded .location-details {
        transform: translateY(calc(var(--circle-size) * -0.02));
    }
}

.section.location {
    padding-top: 28px;
}

.location-heading {
    position: relative;
    z-index: 2;
}

.location-note {
    margin: 0 auto calc(var(--circle-size) * 0.1);
    max-width: 18em;
    font-family: 'Manrope', sans-serif;
    font-size: calc(var(--circle-size) * 0.0726);
    font-weight: 300;
    line-height: 1.45;
    color: var(--white);
}

.location-note__keep {
    white-space: nowrap;
}

.location-stage .btn-map {
    font-family: 'Manrope', sans-serif;
}

.btn-map {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: calc(var(--circle-size) * 0.016);
    margin-top: 0;
    appearance: none;
    border: 1px solid rgba(247, 248, 245, 0.42);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-family: 'Jost', sans-serif;
    font-size: calc(var(--circle-size) * 0.04);
    font-weight: 300;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    text-decoration: none;
    padding: calc(var(--circle-size) * 0.036) calc(var(--circle-size) * 0.065);
    cursor: pointer;
    box-shadow:
        inset 0 0 28px rgba(247, 248, 245, 0.08),
        0 0 36px rgba(45, 100, 180, 0.3);
    transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.btn-map-pin {
    flex-shrink: 0;
    width: calc(var(--circle-size) * 0.048);
    height: calc(var(--circle-size) * 0.048);
    opacity: 0.9;
}

.btn-map-pin--flower {
    width: calc(var(--circle-size) * 0.155);
    height: calc(var(--circle-size) * 0.155);
    object-fit: contain;
    opacity: 1;
    transform: translateY(-0.22em);
}

.btn-map:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(249, 249, 246, 0.72);
    color: var(--white);
    box-shadow:
        inset 0 0 32px rgba(250, 250, 247, 0.12),
        0 0 40px rgba(50, 110, 190, 0.4);
    transform: none;
}

.btn-map:active {
    background: rgba(255, 255, 255, 0.12);
}

/* Light bands (gifts): ink variant of the map pill */
.btn-map.btn-map--ink {
    --circle-size: min(74vw, 268px, calc((100vw - 2.75rem) / 1.88));
    margin-top: 1.1rem;
    border-color: rgba(18, 26, 34, 0.28);
    background: rgba(255, 255, 255, 0.35);
    color: #0e141c;
    letter-spacing: 0.12em;
    box-shadow:
        inset 0 0 28px rgba(255, 255, 255, 0.35),
        0 0 28px rgba(45, 100, 180, 0.14);
}

.btn-map.btn-map--ink:hover {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(18, 26, 34, 0.48);
    color: #0e141c;
    box-shadow:
        inset 0 0 32px rgba(255, 255, 255, 0.45),
        0 0 34px rgba(50, 110, 190, 0.22);
}

.btn-map.btn-map--ink:active {
    background: rgba(255, 255, 255, 0.42);
}

.btn-map.btn-map--ink:focus-visible {
    outline: 1px solid rgba(18, 26, 34, 0.72);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .location-circle,
    .location-orb,
    .location-photo-wrap,
    .location-photo-wrap::before,
    .location-photo,
    .location-arc,
    .location-details {
        transition: none;
    }

    .location.is-expanded .location-circle--top,
    .location-circle--top {
        transform: translate(-50%, calc(-50% - var(--split) - var(--circle-size) * var(--split-extra)));
    }

    .location.is-expanded .location-circle--bottom,
    .location-circle--bottom {
        transform: translate(-50%, calc(-50% + var(--split)));
        border-color: transparent;
        background: transparent;
        box-shadow: none;
    }

    .location-orb--top,
    .location.is-expanded .location-orb--top {
        opacity: 1;
        transform: translate(-50%, calc(-50% + var(--orb-shift)));
    }

    .location-orb--aura-top,
    .location.is-expanded .location-orb--aura-top {
        opacity: 0.5;
        transform: translate(-50%, calc(-50% + var(--orb-aura-shift)));
    }

    .location-orb--bridge,
    .location.is-expanded .location-orb--bridge {
        width: calc(var(--circle-size) * 0.55);
        height: calc(var(--circle-size) * 1.8);
        opacity: 0.48;
        filter: blur(38px);
        transform: translate(-50%, -50%);
    }

    .location-orb--bottom,
    .location.is-expanded .location-orb--bottom {
        opacity: 1;
        transform: translate(-50%, calc(-50% - var(--orb-shift)));
    }

    .location-orb--aura,
    .location.is-expanded .location-orb--aura {
        opacity: 0.75;
        transform: translate(-50%, calc(-50% - var(--orb-aura-shift)));
    }

    .location-photo,
    .location-arc,
    .location-details {
        opacity: 1;
        transform: none;
    }

    .location-photo-wrap::before {
        opacity: 1;
    }
}

/* ============================================================
   Snake schedule
   ============================================================ */
.schedule-heading,
.location-heading,
.dresscode-heading,
.rsvp-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: min(100%, 460px);
    margin: 0 auto 1.6rem;
    container-type: inline-size;
    overflow: visible;
}

.schedule-heading .gifts-arc__subtitle,
.location-heading .gifts-arc__subtitle,
.rsvp-heading .gifts-arc__subtitle {
    color: rgba(242, 241, 239, 0.76);
    -webkit-text-stroke: 0;
    paint-order: normal;
}

/* «План» короче «Детали» — нужен больший сдвиг, иначе на широких экранах
   отступ слева у «мероприятия» визуально пропадает.
   Размер через cqi (не vw), чтобы пропорции с заголовком не ломались на десктопе. */
.schedule-heading .gifts-arc__subtitle {
    font-size: calc(clamp(1.755rem, 7.15cqi, 2.405rem) * 1.32);
    transform: translateX(1.25em);
}

.location-heading .gifts-arc__subtitle,
.rsvp-heading .gifts-arc__subtitle {
    font-family: 'Kindentosca', cursive;
}

.rsvp-heading .gifts-arc__subtitle {
    margin-top: -0.08em;
    transform: translateX(1.35em);
}

@media (max-width: 480px) {
    .rsvp-heading .gifts-arc__subtitle {
        transform: translateX(1.7em);
    }
}

.location-heading {
    margin-bottom: 0.2rem;
}

.snake {
    --snake-w: 1000;
    --snake-h: 977;
    --snake-y0: 0;
    --snake-r: 82;
    position: relative;
    width: min(100%, 380px);
    margin: 12px auto 0;
    aspect-ratio: var(--snake-w) / var(--snake-h);
    container-type: inline-size;
}

.snake-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 0;
}

.snake-line,
.snake-line-bloom {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}

.snake-line-bloom {
    stroke: rgba(255, 255, 255, 0.7);
    stroke-width: 26;
    filter: url(#snakeGlow);
}

.snake-line {
    stroke: #fff;
    stroke-width: 5.5;
    /* SVG filter with fixed userSpaceOnUse region — CSS drop-shadow grows with the stroke bbox */
    filter: url(#snakeLineGlow);
}

.snake.is-drawn .snake-line,
.snake.is-drawn .snake-line-bloom {
    animation: snake-draw 2.8s linear forwards;
}

@keyframes snake-draw {
    from {
        stroke-dashoffset: 100;
    }
    to {
        stroke-dashoffset: 0;
    }
}

.snake-list {
    list-style: none;
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    z-index: 1;
}

.snake-item {
    position: absolute;
    left: calc(var(--x) / var(--snake-w) * 100%);
    top: calc((var(--y) - var(--snake-y0)) / var(--snake-h) * 100%);
    width: 0;
    height: 0;
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    transition:
        opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.snake-item.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    will-change: auto;
}

.snake-node {
    position: absolute;
    left: 0;
    top: 0;
    /* 2r in viewBox units → fraction of snake width (cqi; parent item is width:0) */
    width: 62px;
    height: 62px;
    width: calc(var(--snake-r) * 2 / var(--snake-w) * 100cqi);
    height: calc(var(--snake-r) * 2 / var(--snake-w) * 100cqi);
    border-radius: 50%;
    border: 3.5px solid #fff;
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: grid;
    place-items: center;
    color: #fff;
    box-shadow:
        0 0 8px rgba(255, 255, 255, 1),
        0 0 20px rgba(255, 255, 255, 0.9),
        0 0 42px rgba(255, 255, 255, 0.55),
        0 0 72px rgba(255, 255, 255, 0.28);
    transform: translate3d(-50%, -50%, 0) scale(0.72);
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.snake-item.is-visible .snake-node {
    transform: translate3d(-50%, -50%, 0) scale(1);
}

.snake-node svg {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.7));
}

.snake-body {
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transform: translateY(-50%);
    white-space: nowrap;
}

.snake-item--left .snake-body {
    left: 48px;
    left: calc(var(--snake-r) / var(--snake-w) * 100cqi + 14px);
    text-align: left;
}

.snake-item--right .snake-body {
    right: 48px;
    right: calc(var(--snake-r) / var(--snake-w) * 100cqi + 14px);
    text-align: right;
}

.snake-body .time {
    font-family: 'Kindentosca', cursive;
    font-weight: 300;
    font-size: 1.35rem;
    letter-spacing: 0.12em;
    color: var(--white);
    line-height: 1.2;
}

.snake-body .event {
    font-family: 'Manrope', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--white);
    line-height: 1.3;
}

/* ============================================================
   Dress code
   ============================================================ */
.dresscode {
    position: relative;
    z-index: 0;
    isolation: isolate;
    overflow: visible;
    border-top-color: transparent;
    background: transparent;
    container-type: inline-size;
}

.dresscode-stage {
    position: relative;
    z-index: 0;
    overflow: visible;
}

.dresscode-mist {
    position: absolute;
    top: 34%;
    bottom: -60px;
    left: 50%;
    z-index: 0;
    width: 100vw;
    margin-left: -50vw;
    pointer-events: none;
    overflow: visible;
    -webkit-mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 55%,
        rgba(0, 0, 0, 0.35) 78%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 55%,
        rgba(0, 0, 0, 0.35) 78%,
        transparent 100%
    );
}

.dresscode-mist-svg {
    display: block;
    width: 100%;
    height: 108%;
}

.dresscode-stage > :not(.dresscode-mist) {
    position: relative;
    z-index: 1;
}

.dresscode-heading {
    margin-bottom: 3.6rem;
}

.dresscode-heading .gifts-arc__title {
    text-indent: 0.28em;
    transform: none;
}

.dresscode-copy,
.dresscode-more {
    --intro-heading-size: clamp(37.64px, 9.78cqi + 1.41rem, 52.27px);
    --intro-body-size: calc(var(--intro-heading-size) * 20 / 52.27);
}

.dresscode-copy {
    width: min(100%, 34em);
    margin: 0 auto 2.6rem;
    font-family: 'Manrope', sans-serif;
    font-size: var(--intro-body-size);
    line-height: 1.35;
    color: var(--white);
}

.dresscode-intro {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    text-align: left;
}

.dresscode-intro .section-text {
    margin: 0;
    max-width: none;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.dresscode-asterisk-wrap {
    white-space: nowrap;
}

.dresscode-asterisk {
    font-size: 1.2em;
    font-weight: 600;
    line-height: 0;
    vertical-align: super;
    margin-inline: 0.02em;
    color: inherit;
}

.dresscode-intro .dresscode-asterisk {
    vertical-align: 0.11em;
}

.dresscode-footnote {
    margin: 3.2rem 0 0 auto;
    max-width: 16.5em;
    text-align: right;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.dresscode-footnote .dresscode-asterisk {
    margin-right: 0.08em;
    margin-left: 0;
}

@container (max-width: 380px) {
    .dresscode-copy,
    .dresscode-more {
        --intro-heading-size: clamp(28px, 8.2cqi + 0.9rem, 43.91px);
    }
}

.dresscode-circles {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3.6rem;
    margin-bottom: 2.6rem;
    overflow: visible;
}

.dresscode-more {
    --circle-size: min(74vw, 268px, calc((100vw - 2.75rem) / 1.88));
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.35rem;
    width: min(100%, 28em);
    margin: 0 auto 0.6rem;
    text-align: center;
}

.dresscode-more-text {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: var(--intro-body-size);
    line-height: 1.35;
    color: var(--white);
}

.dresscode-download {
    margin-top: 0.15rem;
}

.dresscode-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.15rem;
    width: 100%;
}

.dresscode-block-title {
    margin: 0;
    font-family: 'Philosopher', 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: calc(clamp(37.64px, 9.78cqi + 1.41rem, 52.27px) * 0.4);
    letter-spacing: 0.28em;
    line-height: 1;
    text-transform: uppercase;
    text-indent: 0.28em;
    color: var(--white);
    text-align: center;
}

.dresscode-palette {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.95rem;
    margin: 0.85rem 0 0.55rem;
    padding: 0;
    list-style: none;
    position: relative;
    z-index: 2;
    width: min(92vw, 420px);
}

.dresscode-swatch {
    flex: 1 1 0;
    width: auto;
    max-width: 4.1rem;
    aspect-ratio: 1;
    height: auto;
    border-radius: 50%;
    background-color: transparent;
    background-image: var(--swatch-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-clip: padding-box;
    border: none;
    box-shadow:
        0 0 0 3px rgba(242, 241, 239, 0.58),
        0 0 12px rgba(242, 241, 239, 0.22),
        0 0 24px rgba(242, 241, 239, 0.1);
}

.dresscode-swatch--black {
    background-image: none;
    background-color: #000;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dresscode-circle {
    position: relative;
    z-index: 1;
    width: min(78vw, 280px);
    aspect-ratio: 1;
    display: block;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(242, 241, 239, 0.42);
    background:
        radial-gradient(circle at 50% 42%, rgba(242, 241, 239, 0.07) 0%, rgba(20, 21, 22, 0.22) 62%, rgba(14, 16, 18, 0.45) 100%);
    box-shadow:
        0 0 0 1px rgba(242, 241, 239, 0.06),
        0 0 28px rgba(242, 241, 239, 0.22),
        0 0 64px rgba(242, 241, 239, 0.1),
        inset 0 0 36px rgba(242, 241, 239, 0.04);
    overflow: visible;
}

.dresscode-circle-glow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 2;
}

.dresscode-gallery {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 50%;
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
}

.dresscode-gallery.is-dragging {
    cursor: grabbing;
}

.dresscode-gallery::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    height: 42%;
    background: linear-gradient(
        to top,
        rgba(12, 14, 16, 0.52) 0%,
        rgba(12, 14, 16, 0.18) 48%,
        transparent 100%
    );
    pointer-events: none;
}

.dresscode-gallery-viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 50%;
}

.dresscode-gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.dresscode-gallery.is-dragging .dresscode-gallery-track,
.dresscode-gallery.is-jumping .dresscode-gallery-track {
    transition: none;
}

.dresscode-gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    margin: 0;
}

.dresscode-gallery-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    -webkit-user-drag: none;
}

.dresscode-gallery-btn {
    display: grid;
    place-items: center;
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 2.15rem;
    height: 2.15rem;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(242, 241, 239, 0.45);
    border-radius: 50%;
    background: rgba(18, 22, 26, 0.38);
    color: rgba(242, 241, 239, 0.92);
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    -webkit-tap-highlight-color: transparent;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.dresscode-gallery-btn svg {
    display: block;
    width: 1.05rem;
    height: 1.05rem;
    margin: 0 auto;
}

.dresscode-gallery-btn--prev {
    left: 0.55rem;
}

.dresscode-gallery-btn--next {
    right: 0.55rem;
}

.dresscode-gallery-btn:focus-visible {
    outline: 1px solid rgba(242, 241, 239, 0.75);
    outline-offset: 2px;
}

.dresscode-gallery-btn:active {
    background: rgba(18, 22, 26, 0.55);
    border-color: rgba(242, 241, 239, 0.7);
    color: #fff;
}

@media (hover: hover) and (pointer: fine) {
    .dresscode-gallery-btn:hover {
        background: rgba(18, 22, 26, 0.55);
        border-color: rgba(242, 241, 239, 0.7);
        color: #fff;
    }
}

.dresscode-glow-halo {
    stroke: rgba(255, 255, 255, 0.28);
    stroke-width: 18;
    opacity: 0.45;
}

.dresscode-glow-edge {
    stroke: rgba(255, 255, 255, 0.5);
    stroke-width: 2.4;
    opacity: 0.55;
}

.dresscode-glow-core {
    stroke: rgba(255, 255, 255, 0.38);
    stroke-width: 1.2;
    opacity: 0.5;
}

.dresscode-circle--her .dresscode-glow-edge {
    stroke: rgba(255, 255, 255, 0.78);
}

.dresscode-circle--her .dresscode-glow-core {
    stroke: rgba(255, 255, 255, 0.62);
}

.dresscode-circle--him .dresscode-glow-halo {
    stroke: rgba(56, 88, 122, 0.9);
    stroke-width: 10;
    opacity: 0.62;
}

.dresscode-circle--him .dresscode-glow-edge {
    stroke: rgba(78, 116, 156, 1);
    stroke-width: 2.8;
    opacity: 0.88;
}

.dresscode-circle--him .dresscode-glow-core {
    stroke: rgba(102, 140, 178, 0.98);
    stroke-width: 1.45;
    opacity: 0.82;
}

.dresscode-circle--her {
    box-shadow:
        0 0 0 1px rgba(242, 241, 239, 0.08),
        0 0 32px rgba(242, 241, 239, 0.34),
        0 0 72px rgba(242, 241, 239, 0.16),
        inset 0 0 36px rgba(242, 241, 239, 0.05);
}

.dresscode-circle--him {
    border-color: rgba(78, 116, 156, 0.6);
    background:
        radial-gradient(circle at 50% 40%, #3a4654 0%, #2a3440 52%, #1e2832 100%);
    box-shadow:
        0 0 0 1px rgba(56, 88, 122, 0.42),
        0 0 14px rgba(42, 78, 118, 0.86),
        0 0 32px rgba(24, 42, 62, 0.62),
        0 18px 36px rgba(20, 28, 36, 0.22),
        inset 0 0 28px rgba(0, 0, 0, 0.2);
}

@media (prefers-reduced-motion: reduce) {
    .dresscode-gallery-track {
        transition: none;
    }
}

@media (max-width: 480px) {
    .dresscode-copy {
        width: 100%;
        margin-bottom: 2.2rem;
    }

    .dresscode-footnote {
        margin-top: 2.4rem;
        max-width: min(15.5em, 78%);
    }

    .dresscode-gallery-btn {
        width: 1.7rem;
        height: 1.7rem;
    }

    .dresscode-gallery-btn svg {
        width: 0.85rem;
        height: 0.85rem;
    }

    .dresscode-gallery-btn--prev {
        left: 0.38rem;
    }

    .dresscode-gallery-btn--next {
        right: 0.38rem;
    }
}

/* ============================================================
   Gifts — full circle + U-shaped layers (constant width)
   ============================================================ */
.gifts {
    overflow: visible;
    padding-bottom: 1.5rem;
}

.gifts-arcs {
    /*
      Layer 1: full circle.
      Layers 2+: U-shapes — semicircle bottom, straight sides up.
      --peek-N are fixed lengths (rem) so U bands never track viewport width.
      Width is capped to the sheet so nothing clips horizontally.

      IMPORTANT: do not set height with cqw on this same element.
      An element cannot be its own query container — 100cqw on .gifts-arcs
      falls back to vw and the stack grows with the viewport forever.
      Height comes from ::after (a descendant), where 100cqw is real.
    */
    --peek-2: 22.5rem;
    --peek-3: 36rem;
    --peek-4: 24.5rem;
    --content-w: min(19em, 68%);
    --band-pad: 0.55rem;
    /* Reference stacked arcs: dark navy circle, cool light U bands */
    --circle-fill: #2a4158;
    /* Slight lift clears rim seams without opening a bottom navy crescent */
    --circle-lift: 2px;
    position: relative;
    width: min(100%, 460px);
    container-type: inline-size;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 9999px;
    /* Last-layer tip: matches arc 4 light end so no empty navy capsule */
    background: #d6dee8;
}

/* In-flow strut: 100cqw here resolves against .gifts-arcs (not the viewport) */
.gifts-arcs::after {
    content: '';
    display: block;
    height: calc(100cqw + var(--peek-2) + var(--peek-3) + var(--peek-4));
    pointer-events: none;
}

/* Navy underpaint only under the title circle — seals AA without a bottom rim */
.gifts-arcs::before {
    content: '';
    position: absolute;
    left: 50%;
    top: calc(50cqw - var(--circle-lift));
    width: calc(100cqw + 4px);
    height: calc(100cqw + 4px);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--circle-fill);
    z-index: 0;
    pointer-events: none;
}

.gifts-arc {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    overflow: hidden;
}

/* Full circle — title */
.gifts-arc--1 {
    top: calc(-1 * var(--circle-lift));
    height: 100cqw;
    border-radius: 50%;
    z-index: 4;
    overflow: visible;
    background: var(--circle-fill);
    /* Soft contact shadow + same-color rim seal against subpixel fringing */
    box-shadow:
        0 14px 32px rgba(18, 32, 48, 0.32),
        0 0 0 1.5px var(--circle-fill);
}

/* Rim glow — same stack as location/dresscode circles, upper semicircle only */
.gifts-arc__glow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 1;
}

.gifts-glow-halo {
    stroke: rgba(255, 255, 255, 0.22);
    stroke-width: 18;
    opacity: 0.28;
}

.gifts-glow-edge {
    stroke: rgba(255, 255, 255, 0.55);
    stroke-width: 2.4;
    opacity: 0.4;
}

.gifts-glow-core {
    stroke: rgba(255, 255, 255, 0.45);
    stroke-width: 1.2;
    opacity: 0.38;
}

.gifts-arc--1 .gifts-arc__content {
    z-index: 2;
}

/* U-layers: round only at the bottom, straight sides upward */
.gifts-arc--2,
.gifts-arc--3,
.gifts-arc--4 {
    border-radius: 0 0 50cqw 50cqw;
    /* Let arc titles paint in the peek under the previous circle */
    overflow: visible;
}

.gifts-arc--2,
.gifts-arc--3 {
    /*
      Punch out the navy circle area so light fills never sit under its rim
      (that stacking is what caused the white AA hairlines).
      Layer 4 keeps mask on ::before so phone/content aren’t trapped under U fills.
    */
    -webkit-mask-image: radial-gradient(
        circle 51.5cqw at 50% calc(50cqw - var(--circle-lift)),
        transparent 99.5%,
        #000 100%
    );
    mask-image: radial-gradient(
        circle 51.5cqw at 50% calc(50cqw - var(--circle-lift)),
        transparent 99.5%,
        #000 100%
    );
}

.gifts-arc--2 {
    --peek: var(--peek-2);
    height: calc(100cqw + var(--peek-2));
    z-index: 3;
    /* Dark → light across this U; ~25% stronger than prior step */
    background: linear-gradient(
        180deg,
        rgba(191, 206, 224, 0.97) 0%,
        rgba(191, 206, 224, 0.97) calc(100% - var(--peek)),
        rgba(226, 236, 246, 0.96) calc(100% - var(--peek) * 0.55),
        rgba(255, 255, 255, 0.98) 100%
    );
    box-shadow: 0 -18px 36px rgba(18, 32, 48, 0.26);
}

.gifts-arc--3 {
    --peek: var(--peek-3);
    height: calc(100cqw + var(--peek-2) + var(--peek-3));
    z-index: 2;
    /* Own dark → light band; starts darker than the U above tip */
    background: linear-gradient(
        180deg,
        rgba(194, 205, 218, 0.96) 0%,
        rgba(194, 205, 218, 0.96) calc(100% - var(--peek)),
        rgba(214, 222, 232, 0.93) calc(100% - var(--peek) * 0.55),
        rgba(236, 241, 247, 0.96) 100%
    );
    box-shadow: 0 -16px 32px rgba(18, 32, 48, 0.2);
}

.gifts-arc--4 {
    --peek: var(--peek-4);
    height: calc(100cqw + var(--peek-2) + var(--peek-3) + var(--peek-4));
    /*
      No z-index / mask on the layer itself — those create a stacking context
      that traps the phone under neighboring U fills. Paint the silver U on
      ::before; keep copy + tel above all gifts backdrops.
    */
    z-index: auto;
}

.gifts-arc--4::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 0 0 50cqw 50cqw;
    /* Own dark → light band for the last U */
    background: linear-gradient(
        180deg,
        rgba(170, 184, 200, 0.96) 0%,
        rgba(170, 184, 200, 0.96) calc(100% - var(--peek)),
        rgba(188, 198, 212, 0.93) calc(100% - var(--peek) * 0.55),
        rgba(214, 222, 232, 0.95) 100%
    );
    box-shadow: 0 -14px 28px rgba(18, 32, 48, 0.18);
    pointer-events: none;
    -webkit-mask-image: radial-gradient(
        circle 51.5cqw at 50% calc(50cqw - var(--circle-lift)),
        transparent 99.5%,
        #000 100%
    );
    mask-image: radial-gradient(
        circle 51.5cqw at 50% calc(50cqw - var(--circle-lift)),
        transparent 99.5%,
        #000 100%
    );
}

.gifts-arc--3 .btn-map,
.gifts-arc--4 .btn-map {
    position: relative;
    z-index: 7;
}

.gifts-arc--4 .btn-map {
    font-family: 'Manrope', sans-serif;
    font-size: calc(var(--circle-size) * 0.04);
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
}

.gifts-arc--3 .btn-map {
    max-width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    font-size: calc(var(--circle-size) * 0.04);
    letter-spacing: 0.05em;
    gap: 0;
    /* Tight vertical pad so the flower can fill most of the pill height */
    padding: 0.12em 1.2em 0.12em 0.35em;
}

.gifts-arc--3 .btn-map-pin--flower {
    width: 2.85em;
    height: 2.85em;
    transform: translateY(-0.12em);
    margin-right: -0.2em;
}

/*
  Arc titles: letters fanned from the previous circle's center
  along its bottom edge (just outside the radius).
*/
.gifts-arc__curve {
    /* Just under the circle rim (50cqw), nudged down for breathing room */
    --radius: 52.4cqw;
    /* Lowercase script vs former caps: 1.4×, then ×2, then −30% */
    --arc-title-scale: 1.96;
    position: absolute;
    left: 50%;
    width: 0;
    height: 0;
    z-index: 8;
    pointer-events: none;
}

.gifts-arc--2 .gifts-arc__curve {
    top: calc(50cqw - var(--circle-lift));
}

.gifts-arc--3 .gifts-arc__curve {
    top: calc(50cqw + var(--peek-2));
}

.gifts-arc--4 .gifts-arc__curve {
    top: calc(50cqw + var(--peek-2) + var(--peek-3));
}

.gifts-arc__curve span {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    font-family: 'Kindentosca', cursive;
    font-weight: 400;
    font-size: calc(clamp(18px, 5.1cqw, 24px) * var(--arc-title-scale));
    line-height: 1;
    color: rgba(18, 26, 34, 0.78);
    text-transform: none;
    transform-origin: 0 0;
    transform:
        rotate(calc((var(--mid) - var(--i)) * var(--step)))
        /* Slight pull-up so glyph body still reads against the semicircle */
        translateY(calc(var(--radius) - 0.2em))
        translateX(-50%);
}

.gifts-arc__curve--long span {
    font-size: calc(clamp(16px, 4.5cqw, 21px) * var(--arc-title-scale));
}

.gifts-arc__content {
    position: absolute;
    left: 0;
    right: 0;
    width: var(--content-w);
    max-width: calc(100% - 3.5rem);
    margin-inline: auto;
    /* Visible band under the layer above */
    top: calc(100% - var(--peek));
    height: var(--peek);
    box-sizing: border-box;
    /* Top pad clears larger script arc titles; bottom pad clears the semicircle tip */
    padding: calc(var(--band-pad) + 3.6rem + 0.5cm) 0.85rem calc(var(--band-pad) + 3.75rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    overflow: visible;
}

.gifts-arc--3 .gifts-arc__content {
    padding-top: calc(var(--band-pad) + 3.8rem + 0.5cm);
}

.gifts-arc--4 .gifts-arc__content {
    /* Above U fills (z 1–4) so the phone is never covered at the seam */
    z-index: 5;
    padding-bottom: calc(var(--band-pad) + 3.5rem);
}

.gifts-arc__content--hero {
    top: 0;
    height: 100%;
    /* Full circle width — narrow --content-w was clipping translated title/subtitle */
    width: 100%;
    max-width: none;
    padding: 1.5rem clamp(0.75rem, 4cqw, 1.5rem) 2rem;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: visible;
}

.gifts-arc__title {
    font-family: 'Philosopher', 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: calc(clamp(37.64px, 9.78cqi + 1.41rem, 52.27px) * 0.728);
    letter-spacing: 0.28em;
    line-height: 1;
    text-transform: uppercase;
    color: var(--white);
    margin: 0;
    text-indent: 0.28em;
    transform: translateX(-0.55em);
    white-space: nowrap;
    flex-shrink: 0;
}

.gifts-arc__subtitle {
    font-family: 'Kindentosca', cursive;
    font-weight: 400;
    font-synthesis: none;
    font-size: calc(clamp(1.755rem, 7.15vw, 2.405rem) * 1.32);
    letter-spacing: 0.06em;
    line-height: 0.9;
    text-transform: none;
    color: rgba(242, 241, 239, 0.76);
    -webkit-text-stroke: 0.045em var(--circle-fill, #2a4158);
    paint-order: stroke fill;
    margin: 0.08em 0 0;
    text-indent: 0;
    transform: translateX(0.7em);
    white-space: nowrap;
    flex-shrink: 0;
}

.gifts-arc__label {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.62rem;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    margin: 0 0 0.35rem;
    flex-shrink: 0;
}

.gifts-arc__text {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(16px, 4.2vw, 20px);
    line-height: 1.35;
    margin: 0;
    max-width: 100%;
}

.gifts-arc__text strong {
    font-weight: 500;
}

.gifts-arc__name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(1.05rem, 3.6vw, 1.25rem);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    margin-top: 0.3rem;
    flex-shrink: 0;
}

/* Light bands — ink matches dresscode-note */
.gifts-arc--2 .gifts-arc__label,
.gifts-arc--3 .gifts-arc__label,
.gifts-arc--4 .gifts-arc__label,
.gifts-arc--2 .gifts-arc__curve span,
.gifts-arc--3 .gifts-arc__curve span,
.gifts-arc--4 .gifts-arc__curve span {
    color: rgba(18, 26, 34, 0.78);
}

.gifts-arc--2 .gifts-arc__text,
.gifts-arc--3 .gifts-arc__text,
.gifts-arc--4 .gifts-arc__text {
    color: rgba(14, 20, 28, 0.92);
}

.gifts-arc--2 .gifts-arc__text strong,
.gifts-arc--3 .gifts-arc__text strong,
.gifts-arc--4 .gifts-arc__text strong,
.gifts-arc--4 .gifts-arc__name {
    color: #0e141c;
}

/* ============================================================
   RSVP
   ============================================================ */
.rsvp {
    --intro-heading-size: clamp(37.64px, 9.78cqi + 1.41rem, 52.27px);
    --intro-body-size: calc(var(--intro-heading-size) * 20 / 52.27);
    container-type: inline-size;
    font-family: 'Manrope', sans-serif;
    font-size: var(--intro-body-size);
    line-height: 1.35;
    color: var(--white);
}

.rsvp .section-text {
    margin-bottom: 1.4rem;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: var(--white);
}

@container (max-width: 380px) {
    .rsvp .section-text,
    .rsvp-status,
    .rsvp-form {
        font-size: calc(clamp(28px, 8.2cqi + 0.9rem, 43.91px) * 20 / 52.27);
    }
}

.rsvp-date {
    font-family: inherit;
    font-weight: 300;
    font-size: 1.75rem;
    letter-spacing: 0.28em;
    color: var(--white);
    margin-bottom: 1.8rem;
    text-shadow: 0 0 40px rgba(242, 241, 239, 0.14);
}

.rsvp-status {
    display: none;
    max-width: 28rem;
    margin: 0 auto 1.4rem;
    padding: 0.85rem 1rem;
    font-family: inherit;
    font-size: inherit;
    font-weight: 300;
    line-height: inherit;
    letter-spacing: 0.02em;
    border: 1px solid rgba(242, 241, 239, 0.18);
    background: rgba(242, 241, 239, 0.05);
}

.rsvp-status--success {
    color: var(--white);
    border-color: rgba(242, 241, 239, 0.28);
}

.rsvp-status--error {
    color: #f0c9c4;
    border-color: rgba(220, 140, 130, 0.35);
}

.rsvp-form {
    width: min(100%, 26rem);
    margin: 0 auto;
    text-align: left;
}

.rsvp-field {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin: 0 0 1.55rem;
    border: 0;
    min-inline-size: 0;
}

.rsvp-field > label,
.rsvp-field > legend {
    font-family: inherit;
    font-weight: 300;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: 0.02em;
    color: var(--white);
}

.rsvp-field > legend {
    float: left;
    width: 100%;
    margin-bottom: 0.55rem;
    padding: 0;
}

.rsvp-field > legend + * {
    clear: both;
}

.rsvp-form input[type="text"],
.rsvp-form input[type="number"],
.rsvp-form textarea {
    width: 100%;
    appearance: none;
    border: 1px solid rgba(242, 241, 239, 0.28);
    border-radius: 999px;
    background: rgba(242, 241, 239, 0.04);
    color: var(--white);
    font-family: inherit;
    font-weight: 300;
    font-size: inherit;
    line-height: 1.4;
    letter-spacing: 0.01em;
    padding: 0.85rem 1.25rem;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.rsvp-form textarea {
    border-radius: 1.5rem;
    resize: none;
    overflow: hidden;
    field-sizing: content;
    min-height: calc(1.4em + 1.7rem);
}

.rsvp-form input[type="text"]::placeholder,
.rsvp-form textarea::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.rsvp-form input[type="text"]:hover,
.rsvp-form input[type="number"]:hover,
.rsvp-form textarea:hover {
    border-color: rgba(242, 241, 239, 0.42);
    background: rgba(242, 241, 239, 0.06);
}

.rsvp-form input[type="text"]:focus,
.rsvp-form input[type="number"]:focus,
.rsvp-form textarea:focus {
    border-color: rgba(242, 241, 239, 0.62);
    background: rgba(242, 241, 239, 0.07);
    box-shadow: 0 0 0 3px rgba(242, 241, 239, 0.08);
}

.rsvp-choice {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.rsvp-choice__option {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    cursor: pointer;
    font-family: inherit;
    font-weight: 300;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: 0.01em;
    color: var(--white);
}

.rsvp-choice__option span {
    padding-top: 0.05rem;
}

.rsvp-choice__option input {
    appearance: none;
    flex-shrink: 0;
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.12rem;
    border: 1px solid rgba(242, 241, 239, 0.45);
    background: transparent;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.rsvp-choice__option input[type="radio"] {
    border-radius: 50%;
}

.rsvp-choice__option input[type="checkbox"] {
    border-radius: 2px;
}

.rsvp-choice__option input:hover {
    border-color: rgba(242, 241, 239, 0.7);
}

.rsvp-choice__option input[type="radio"]:checked {
    border-color: rgba(242, 241, 239, 0.9);
    background:
        radial-gradient(circle at center, var(--white) 0 35%, transparent 37%);
    box-shadow: 0 0 18px rgba(242, 241, 239, 0.12);
}

.rsvp-choice__option input[type="checkbox"]:checked {
    border-color: rgba(242, 241, 239, 0.9);
    background-color: rgba(242, 241, 239, 0.16);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23f2f1ef' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.2l2.8 2.8 6.2-6.4'/%3E%3C/svg%3E");
    background-size: 0.72rem 0.72rem;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 0 18px rgba(242, 241, 239, 0.12);
}

.rsvp-choice__option input:focus-visible {
    outline: 1px solid rgba(255, 255, 255, 0.9);
    outline-offset: 3px;
}

.rsvp-field-error {
    min-height: 0;
    font-family: inherit;
    font-size: 0.85em;
    font-weight: 300;
    color: #f0c9c4;
}

.rsvp-field-error:empty {
    display: none;
}

.rsvp-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.btn-rsvp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    appearance: none;
    margin-top: 0.85rem;
    border: 1.1px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    font-family: inherit;
    font-size: 0.85em;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    padding: 17px 44px;
    cursor: pointer;
    box-shadow:
        inset 0 0 18px rgba(255, 255, 255, 0.12),
        0 0 8px rgba(255, 255, 255, 0.95),
        0 0 22px rgba(255, 255, 255, 0.72),
        0 0 48px rgba(210, 230, 245, 0.45),
        0 0 86px rgba(210, 230, 245, 0.22);
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.btn-rsvp:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.98);
    transform: none;
    box-shadow:
        inset 0 0 22px rgba(255, 255, 255, 0.18),
        0 0 10px rgba(255, 255, 255, 1),
        0 0 28px rgba(255, 255, 255, 0.82),
        0 0 56px rgba(210, 230, 245, 0.55),
        0 0 96px rgba(210, 230, 245, 0.3);
}

.btn-rsvp:active {
    transform: none;
    background: rgba(255, 255, 255, 0.09);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
    text-align: center;
    padding-top: 48px;
    border-top: 1px solid rgba(232, 231, 229, 0.12);
}

.footer p {
    margin-top: 1.6rem;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 720px) {
    .sheet-inner {
        padding-top: 52px;
        padding-bottom: 96px;
    }

    .section {
        padding: 56px 0;
    }

    .gifts-arcs {
        width: min(100%, 480px);
        /* Fixed peeks: width is capped, so U lengths must not track vw */
        --peek-2: 23rem;
        --peek-3: 37rem;
        /* Room for organizer copy + phone under the U above */
        --peek-4: 24rem;
        --content-w: min(20em, 66%);
        --band-pad: 0.65rem;
    }

    .gifts-arc--4 .gifts-arc__content {
        padding-bottom: calc(var(--band-pad) + 2.25rem);
    }

    .gifts-arc__label {
        letter-spacing: 0.5em;
    }

    .gifts-arc__curve {
        --radius: 52.4cqw;
    }

    .gifts-arc__curve span {
        font-size: calc(24px * var(--arc-title-scale));
    }

    .gifts-arc__curve--long span {
        font-size: calc(21px * var(--arc-title-scale));
    }

    .gifts-arc__text {
        font-size: 20px;
        line-height: 1.35;
    }

    .hero-venn {
        width: min(88vw, 440px);
    }

    .sheet {
        margin-inline: 0;
        width: 100%;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .gifts-arcs {
        width: 100%;
        --peek-2: 22rem;
        --peek-3: 36rem;
        --peek-4: 25rem;
        --content-w: min(17.5em, 72%);
        --band-pad: 0.55rem;
    }

    .gifts-arc__curve span {
        font-size: calc(19px * var(--arc-title-scale));
    }

    .gifts-arc__curve--long span {
        font-size: calc(17px * var(--arc-title-scale));
    }

    .gifts-arc__text {
        font-size: 17px;
        line-height: 1.34;
    }

    .gifts-arc__name {
        font-size: 1.1rem;
        letter-spacing: 0.2em;
    }

    .location-heading {
        margin-bottom: 0.55rem;
    }

    /*
     * Small screens: keep a readable circle, but pull orbs and copy
     * closer so heading + photo + details fit in one viewport.
     */
    .location-stage {
        --circle-size: min(72vw, 230px);
        --split-ratio: 0.7;
        --split-extra: 0.08;
        --split: calc(var(--circle-size) * var(--split-ratio));
        --orb-w: min(calc(var(--circle-size) * 1.78), 92vw);
        --orb-aura-w: min(calc(var(--circle-size) * 1.95), 96vw);
        --orb-h: calc(var(--circle-size) * 2.52);
        --orb-aura-h: calc(var(--circle-size) * 2.8);
        --orb-shift: calc(var(--circle-size) * 0.6);
        --orb-aura-shift: calc(var(--circle-size) * 0.8);
        --stage-ratio: 3.02;
        height: calc(var(--circle-size) * var(--stage-ratio));
    }

    .section.location {
        padding-top: 22px;
    }

    .location.is-expanded .location-orb--bridge {
        height: calc(var(--circle-size) * 1.7);
    }

    .location-arc-text {
        letter-spacing: 0.06em;
    }

    .location-arc-text--1 {
        font-size: calc(var(--circle-size) * 0.078);
    }

    .location-arc-text--2 {
        font-size: calc(var(--circle-size) * 0.074);
    }

    .location-details {
        width: 122%;
        padding:
            calc(var(--circle-size) * 0.055)
            calc(var(--circle-size) * 0.03)
            calc(var(--circle-size) * 0.04);
    }

    .location.is-expanded .location-details {
        transform: translateY(calc(var(--circle-size) * 0.1));
    }

    .location-note {
        max-width: 16.5em;
        font-size: calc(var(--circle-size) * 0.074);
        line-height: 1.32;
        margin-bottom: calc(var(--circle-size) * 0.075);
    }

    .location-stage .btn-map {
        font-size: calc(var(--circle-size) * 0.05);
        letter-spacing: 0.12em;
        padding: calc(var(--circle-size) * 0.026) calc(var(--circle-size) * 0.05);
        gap: calc(var(--circle-size) * 0.014);
    }

    .dresscode-download,
    .gifts-arc--3 .btn-map,
    .gifts-arc--4 .btn-map {
        --circle-size: min(72vw, 230px);
        font-size: calc(var(--circle-size) * 0.05);
    }

    .location-stage .btn-map-pin {
        width: calc(var(--circle-size) * 0.05);
        height: calc(var(--circle-size) * 0.05);
    }

    /* Softer blur only — layout proportions come from --circle-size */
    .location-orb--top,
    .location-orb--bottom {
        filter: blur(22px);
    }

    .location-orb--aura-top,
    .location-orb--aura {
        filter: blur(34px);
    }

    .location-orb--bridge {
        filter: blur(30px);
    }

    .location.is-expanded .location-orb--bridge {
        filter: blur(32px);
    }
}

@media (max-width: 380px) {
    .sheet-inner {
        padding-left: 18px;
        padding-right: 18px;
    }

    .gifts-arcs {
        width: 100%;
        --peek-2: 23rem;
        --peek-3: 39rem;
        --peek-4: 26rem;
        --content-w: min(16.5em, 74%);
        --band-pad: 0.5rem;
    }

    .gifts-arc__label {
        letter-spacing: 0.32em;
        font-size: 0.56rem;
    }

    .gifts-arc__curve span {
        font-size: calc(18px * var(--arc-title-scale));
    }

    .gifts-arc__curve--long span {
        font-size: calc(16px * var(--arc-title-scale));
    }

    .gifts-arc__text {
        font-size: 16px;
        line-height: 1.32;
    }

    .location-stage {
        --circle-size: min(75vw, 228px);
        --split-ratio: 0.66;
        --split-extra: 0.09;
        --split: calc(var(--circle-size) * var(--split-ratio));
        --orb-w: min(calc(var(--circle-size) * 1.7), 90vw);
        --orb-aura-w: min(calc(var(--circle-size) * 1.88), 94vw);
        --orb-h: calc(var(--circle-size) * 2.45);
        --orb-aura-h: calc(var(--circle-size) * 2.72);
        --orb-shift: calc(var(--circle-size) * 0.56);
        --orb-aura-shift: calc(var(--circle-size) * 0.76);
        --stage-ratio: 2.9;
        height: calc(var(--circle-size) * var(--stage-ratio));
    }

    .location.is-expanded .location-orb--bridge {
        height: calc(var(--circle-size) * 1.62);
    }

    .location-arc-text {
        letter-spacing: 0.045em;
    }

    .location-arc-text--1 {
        font-size: calc(var(--circle-size) * 0.08);
    }

    .location-arc-text--2 {
        font-size: calc(var(--circle-size) * 0.076);
    }

    .location.is-expanded .location-details {
        transform: translateY(calc(var(--circle-size) * 0.11));
    }

    .location-note {
        max-width: 15.5em;
        font-size: calc(var(--circle-size) * 0.076);
        line-height: 1.3;
        margin-bottom: calc(var(--circle-size) * 0.07);
    }

    .location-stage .btn-map {
        font-size: calc(var(--circle-size) * 0.05);
        letter-spacing: 0.1em;
        padding: calc(var(--circle-size) * 0.024) calc(var(--circle-size) * 0.048);
    }

    .dresscode-download,
    .gifts-arc--3 .btn-map,
    .gifts-arc--4 .btn-map {
        --circle-size: min(74vw, 220px);
        font-size: calc(var(--circle-size) * 0.05);
    }

    .location-orb--top,
    .location-orb--bottom {
        filter: blur(18px);
    }

    .location.is-expanded .location-orb--top {
        filter: blur(20px);
    }

    .location-orb--bridge {
        filter: blur(26px);
    }

    .location.is-expanded .location-orb--bridge {
        filter: blur(28px);
    }

    .location-orb--bottom {
        filter: blur(20px);
    }

    .location.is-expanded .location-orb--bottom {
        filter: blur(22px);
    }

    .location-orb--aura-top,
    .location-orb--aura {
        filter: blur(30px);
    }

    .location.is-expanded .location-orb--aura-top,
    .location.is-expanded .location-orb--aura {
        filter: blur(32px);
    }

    .dresscode-circle {
        width: min(84vw, 260px);
    }

    .dresscode-block {
        gap: 1rem;
    }

    .dresscode-palette {
        gap: 0.8rem;
        width: min(94vw, 400px);
    }

    .dresscode-swatch {
        max-width: 3.75rem;
    }

    .snake-node svg {
        width: 28px;
        height: 28px;
    }

    .snake-body .time {
        font-size: 1.05rem;
    }

    .snake-body .event {
        font-size: 0.65rem;
        letter-spacing: 0.1em;
    }

    .countdown {
        gap: 4px;
    }
}

/* Fallback when backdrop-filter is unsupported */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .location-circle--bottom {
        background: rgba(30, 32, 34, 0.55);
    }

    .location.is-expanded .location-circle--bottom {
        background: transparent;
    }

    .date-strip {
        background: rgba(36, 38, 40, 0.55);
    }

    .snake-node {
        background: rgba(28, 30, 32, 0.6);
    }
}

/* ============================================================
   Silver mist art direction
   ============================================================ */
:root {
    --bg-deep: #8d98a3;
    --bg-mid: #b6c0c8;
    --azurite: #4d5b67;
    --mountain: #77848e;
    --contrail: #aab4bc;
    --silver: #d7e0e6;
    --dove: #edf2f5;
    --warm-glow: #f7fafc;
    --white: #f8fbfd;
    --text: #eef3f5;
    --text-soft: rgba(238, 243, 245, 0.78);
    --text-muted: rgba(232, 240, 244, 0.48);
    --glow: rgba(235, 245, 251, 0.72);
    --frost: rgba(231, 238, 243, 0.3);
}

body {
    color: var(--text);
    background: transparent;
    text-rendering: geometricPrecision;
}

.page-bg {
    filter: none;
}

.page-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 22% 58% at 50% -8%, rgba(255, 255, 255, 0.2), transparent 70%),
        radial-gradient(ellipse 58% 20% at 50% 70%, rgba(255, 236, 220, 0.09), transparent 72%);
    mix-blend-mode: screen;
    opacity: 0.55;
    filter: blur(52px);
    pointer-events: none;
}

.page-bg::after {
    content: none;
}

.page-bloom {
    display: block;
    position: absolute;
    inset: -8% 0 20%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 24% 55% at 50% 0%, rgba(255, 255, 255, 0.16), transparent 72%),
        radial-gradient(ellipse 60% 22% at 50% 68%, rgba(255, 236, 220, 0.08), transparent 70%);
    mix-blend-mode: screen;
    opacity: 0.32;
    filter: blur(40px);
}

.paper-grain {
    opacity: 0.025;
    mix-blend-mode: soft-light;
}

.film-grain {
    opacity: 0.07;
    mix-blend-mode: soft-light;
}

.hero::before {
    content: none;
}

.hero-venn::before {
    content: '';
    position: absolute;
    inset: 4% 2%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 31%, rgba(61, 78, 91, 0.5), transparent 38%),
        radial-gradient(circle at 50% 68%, rgba(55, 73, 87, 0.5), transparent 39%);
    filter: blur(20px);
}

.hero-ring {
    mix-blend-mode: screen;
    opacity: 0.9;
    filter: blur(0.8px);
}

.hero-ring-halo {
    stroke: rgba(247, 251, 255, 0.5);
    stroke-width: 24;
    opacity: 0.75;
}

.hero-ring-edge {
    stroke: rgba(250, 253, 255, 0.88);
    stroke-width: 3.4;
    opacity: 1;
}

.hero-ring-edge--top {
    stroke: rgba(255, 255, 255, 0.94);
}

.hero-ring-edge--bottom {
    stroke: rgba(239, 247, 252, 0.8);
}

.hero-ring-core {
    stroke: rgba(255, 255, 255, 0.7);
    stroke-width: 1.8;
    opacity: 0.9;
}

.hero-ring-core--top {
    stroke: rgba(255, 255, 255, 0.78);
}

.hero-ring-core--bottom {
    stroke: rgba(239, 247, 252, 0.62);
}

.hero-intersection-glow {
    fill: rgba(30, 47, 66, 0.5);
}

.hero-names,
.hero-wedding-day,
.hero-date {
    color: #fbfdff;
    text-transform: uppercase;
    text-shadow:
        0 0 22px rgba(255, 255, 255, 0.55),
        0 0 56px rgba(220, 238, 250, 0.4),
        0 1px 14px rgba(40, 54, 66, 0.45);
}

.hero-names {
    letter-spacing: 0.26em;
}

.hero-wedding-day {
    font-family: 'Forum', serif;
    font-weight: 400;
    width: 48%;
    max-width: none;
    letter-spacing: 0.36em;
    text-indent: 0.36em;
    overflow: visible;
}

.hero-date {
    letter-spacing: 0.26em;
}

.hero-names .hero-cross {
    color: rgba(245, 249, 252, 0.12);
    -webkit-text-stroke: 0.9px rgba(245, 249, 252, 1);
    opacity: 0.85;
    text-shadow: none;
}

.hero-scroll {
    border-color: rgba(246, 251, 255, 0.58);
    background: rgba(226, 236, 243, 0.08);
    box-shadow: 0 0 28px rgba(245, 251, 255, 0.22);
}

.sheet {
    margin-inline: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-top: none;
    box-shadow: none;
}

.sheet::before {
    opacity: 0.08;
    mix-blend-mode: soft-light;
}

.section + .section,
.footer {
    border-color: rgba(39, 54, 65, 0.14);
}

.section-label {
    color: var(--text-muted);
    letter-spacing: 0.5em;
}

.gifts-arc__label {
    letter-spacing: 0.5em;
}

.intro p.intro-greeting,
.intro strong,
.calendar-month,
.date-strip-day,
.snake-body .time,
.rsvp-date,
.section-text strong {
    color: var(--white);
    text-shadow: 0 0 34px rgba(248, 252, 255, 0.34);
}

.intro p:not(.intro-greeting),
.section-text,
.location-note {
    color: var(--white);
}

.calendar-grid span {
    color: var(--text-soft);
}

.calendar-grid .is-active {
    color: #2a3842;
    background: rgba(246, 250, 252, 0.92);
    box-shadow: 0 0 25px rgba(248, 252, 255, 0.72);
}

@keyframes pulse-date {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 251, 255, 0.58); }
    50% { box-shadow: 0 0 0 12px rgba(245, 251, 255, 0); }
}

.date-strip {
    background: rgba(238, 244, 248, 0.24);
    border-color: rgba(255, 255, 255, 0.94);
    box-shadow:
        inset 0 0 18px rgba(255, 255, 255, 0.18),
        0 0 8px rgba(255, 255, 255, 0.95),
        0 0 22px rgba(248, 252, 255, 0.75),
        0 0 48px rgba(210, 230, 245, 0.48),
        0 0 86px rgba(210, 230, 245, 0.24);
}

.date-strip-month,
.date-strip-weekday {
    color: var(--dove);
}

.date-strip-day::before,
.date-strip-day::after {
    background: rgba(248, 252, 255, 0.88);
}

.location-circle--bottom {
    border-color: rgba(248, 252, 255, 0.28);
    background: rgba(255, 255, 255, 0.05);
    box-shadow:
        0 0 0 1px rgba(248, 252, 255, 0.06),
        inset 0 0 24px rgba(255, 255, 255, 0.06);
}

.location.is-expanded .location-circle--bottom {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.location-photo-wrap {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.location.is-expanded .location-photo-wrap {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.84),
        0 0 0 2px rgba(133, 151, 164, 0.2),
        0 0 18px 5px rgba(255, 255, 255, 0.48),
        0 0 40px 12px rgba(235, 245, 255, 0.26);
}

.location-photo-wrap::before {
    background: radial-gradient(
        circle at 50% 50%,
        rgba(255, 255, 255, 0.22) 0%,
        transparent 70%
    );
}

.location-photo {
    background: url('images/location.jpg') center / cover no-repeat;
    background-blend-mode: normal;
    filter: none;
}

.btn-map,
.btn-rsvp {
    color: var(--white);
    border-color: rgba(249, 252, 254, 0.42);
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 28px rgba(243, 250, 253, 0.1);
}

.btn-rsvp {
    border-color: rgba(255, 255, 255, 0.94);
    background: rgba(238, 244, 248, 0.24);
    box-shadow:
        inset 0 0 18px rgba(255, 255, 255, 0.18),
        0 0 8px rgba(255, 255, 255, 0.95),
        0 0 22px rgba(248, 252, 255, 0.75),
        0 0 48px rgba(210, 230, 245, 0.48),
        0 0 86px rgba(210, 230, 245, 0.24);
}

.btn-map {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 36px rgba(45, 100, 180, 0.3);
}

.btn-map:hover,
.btn-rsvp:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.16);
    box-shadow:
        inset 0 0 30px rgba(255, 255, 255, 0.12),
        0 0 34px rgba(246, 251, 254, 0.22);
}

.btn-rsvp:hover {
    border-color: rgba(255, 255, 255, 0.98);
    background: rgba(238, 244, 248, 0.32);
    box-shadow:
        inset 0 0 22px rgba(255, 255, 255, 0.22),
        0 0 10px rgba(255, 255, 255, 1),
        0 0 28px rgba(248, 252, 255, 0.85),
        0 0 56px rgba(210, 230, 245, 0.55),
        0 0 96px rgba(210, 230, 245, 0.3);
}

.btn-map:hover {
    box-shadow:
        inset 0 0 30px rgba(255, 255, 255, 0.12),
        0 0 40px rgba(50, 110, 190, 0.4);
}

.snake-line {
    stroke: #fff;
    stroke-width: 5.5;
}

.snake-node {
    color: #fff;
    border-color: #fff;
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow:
        0 0 8px rgba(255, 255, 255, 1),
        0 0 20px rgba(255, 255, 255, 0.9),
        0 0 42px rgba(255, 255, 255, 0.55),
        0 0 72px rgba(255, 255, 255, 0.28);
}

.snake-body .event,
.footer p {
    color: var(--text-muted);
}

.snake-body .event {
    color: var(--white);
}

.icon-wrap,
.ornament {
    color: var(--contrail);
}

.dresscode {
    background: transparent;
}

.dresscode-circle--her {
    border-color: rgba(248, 252, 255, 0.52);
    box-shadow:
        0 0 0 1px rgba(248, 252, 255, 0.1),
        0 0 36px rgba(245, 251, 254, 0.36),
        0 0 80px rgba(245, 251, 254, 0.16),
        inset 0 0 40px rgba(248, 252, 255, 0.06);
}

.dresscode-circle--him {
    border-color: rgba(78, 116, 156, 0.6);
    background:
        radial-gradient(circle at 50% 40%, #405060 0%, #2e3c4a 52%, #22303c 100%);
    box-shadow:
        0 0 0 1px rgba(56, 88, 122, 0.42),
        0 0 14px rgba(42, 78, 118, 0.88),
        0 0 32px rgba(24, 42, 62, 0.64),
        0 18px 36px rgba(20, 28, 36, 0.22),
        inset 0 0 28px rgba(0, 0, 0, 0.2);
}

.dresscode-glow-halo {
    stroke: rgba(247, 251, 255, 0.32);
    stroke-width: 18;
    opacity: 0.45;
}

.dresscode-glow-edge {
    stroke: rgba(250, 253, 255, 0.55);
    stroke-width: 2.4;
    opacity: 0.55;
}

.dresscode-glow-core {
    stroke: rgba(255, 255, 255, 0.42);
    stroke-width: 1.2;
    opacity: 0.5;
}

.dresscode-circle--her .dresscode-glow-edge {
    stroke: rgba(255, 255, 255, 0.94);
}

.dresscode-circle--her .dresscode-glow-core {
    stroke: rgba(255, 255, 255, 0.78);
}

.dresscode-circle--him .dresscode-glow-halo {
    stroke: rgba(56, 88, 122, 0.9);
    stroke-width: 10;
    opacity: 0.62;
}

.dresscode-circle--him .dresscode-glow-edge {
    stroke: rgba(78, 116, 156, 1);
    stroke-width: 2.8;
    opacity: 0.88;
}

.dresscode-circle--him .dresscode-glow-core {
    stroke: rgba(102, 140, 178, 0.98);
    stroke-width: 1.45;
    opacity: 0.82;
}

@media (min-width: 720px) {
    .hero-venn {
        width: min(72vw, 540px);
    }
}

.btn-map:focus-visible,
.btn-rsvp:focus-visible {
    outline: 1px solid rgba(255, 255, 255, 0.96);
    outline-offset: 4px;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .location-circle--bottom,
    .date-strip,
    .snake-node {
        background: rgba(40, 52, 60, 0.55);
    }

    .location.is-expanded .location-circle--bottom {
        background: transparent;
    }
}

/* ============================================================
   Moonlight editorial — final visual language
   Paint-only overrides: interaction and motion remain unchanged
   ============================================================ */
:root {
    --bg-deep: #6d7a85;
    --bg-mid: #98a5ae;
    --azurite: #4a5862;
    --mountain: #6f7d87;
    --contrail: #9aa7b0;
    --silver: #d4dde3;
    --dove: #e8eef1;
    --warm-glow: #f2f4f3;
    --white: #f5f7f6;
    --text: #eef3f5;
    --text-soft: rgba(238, 243, 245, 0.78);
    --text-muted: rgba(232, 240, 244, 0.48);
    --glow: rgba(232, 240, 244, 0.68);
    --frost: rgba(210, 220, 226, 0.26);
}

body {
    color: var(--text);
    background: transparent;
    font-weight: 300;
    letter-spacing: 0.025em;
}

.page-bg {
    filter: none;
}

.page-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 22% 58% at 50% -8%, rgba(255, 255, 255, 0.2), transparent 70%),
        radial-gradient(ellipse 58% 20% at 50% 70%, rgba(255, 236, 220, 0.09), transparent 72%);
    mix-blend-mode: screen;
    opacity: 0.55;
    filter: blur(52px);
    pointer-events: none;
}

.page-bg::after {
    content: none;
}

.page-bloom {
    display: block;
    position: absolute;
    inset: -8% 0 20%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 24% 55% at 50% 0%, rgba(255, 255, 255, 0.16), transparent 72%),
        radial-gradient(ellipse 60% 22% at 50% 68%, rgba(255, 236, 220, 0.08), transparent 70%);
    mix-blend-mode: screen;
    opacity: 0.32;
    filter: blur(40px);
}

.paper-grain {
    opacity: 0.03;
    mix-blend-mode: soft-light;
    background-image:
        linear-gradient(
            180deg,
            rgba(236, 242, 246, 0.04) 0%,
            rgba(210, 222, 232, 0) 42%,
            rgba(30, 46, 66, 0.04) 100%
        ),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.35' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
}

.film-grain {
    opacity: 0.03;
    mix-blend-mode: soft-light;
}

.hero::before {
    content: none;
}

.hero-venn::before {
    inset: -8% -14%;
    background:
        radial-gradient(ellipse 48% 22% at 50% 50%, rgba(30, 47, 66, 0.58) 0%, rgba(28, 46, 66, 0.32) 42%, transparent 74%),
        radial-gradient(circle at 50% 30%, rgba(42, 56, 68, 0.55) 0 10%, rgba(58, 74, 88, 0.38) 34%, transparent 58%),
        radial-gradient(circle at 50% 70%, rgba(36, 50, 62, 0.58) 0 10%, rgba(52, 68, 82, 0.4) 34%, transparent 58%);
    filter: blur(28px);
}

.hero-ring {
    mix-blend-mode: screen;
    opacity: 1;
    filter: none;
}

.hero-ring-halo {
    stroke: rgba(255, 255, 255, 0.95);
    stroke-width: 26;
    opacity: 1;
}

.hero-ring-edge,
.hero-ring-edge--top,
.hero-ring-edge--bottom {
    stroke: #ffffff;
    stroke-width: 1.1;
    opacity: 1;
}

.hero-ring-core,
.hero-ring-core--top,
.hero-ring-core--bottom {
    stroke: #ffffff;
    stroke-width: 0.65;
    opacity: 1;
}

.hero-intersection-glow {
    fill: rgba(30, 47, 66, 0.55);
}

.hero-names,
.hero-wedding-day,
.hero-date {
    color: #ffffff;
    text-shadow:
        0 0 12px rgba(255, 255, 255, 0.95),
        0 0 36px rgba(255, 255, 255, 0.7),
        0 0 72px rgba(210, 230, 245, 0.55),
        0 2px 16px rgba(10, 18, 26, 0.65);
}

.hero-names {
    font-weight: 400;
    letter-spacing: 0.26em;
}

.hero-wedding-day {
    font-family: 'Forum', serif;
    font-style: normal;
    font-weight: 550;
    letter-spacing: 0.36em;
    text-indent: 0.36em;
    text-transform: uppercase;
    width: 48%;
    max-width: none;
    overflow: visible;
    opacity: 1;
}

.hero-date {
    letter-spacing: 0.26em;
    font-weight: 400;
    color: #ffffff;
}

.hero-names .hero-cross {
    color: rgba(255, 255, 255, 0.12);
    -webkit-text-stroke: 0.9px rgba(255, 255, 255, 1);
    opacity: 0.85;
    text-shadow: none;
}

.hero-scroll {
    border-color: rgba(232, 242, 246, 0.42);
    background: transparent;
    box-shadow: 0 0 30px rgba(220, 234, 240, 0.2);
}

.hero-scroll span {
    background: rgba(232, 242, 246, 0.8);
}

.sheet {
    margin-inline: 0;
    width: 100%;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-top: none;
    box-shadow: none;
}

.sheet::before {
    opacity: 0.07;
    mix-blend-mode: soft-light;
}

.sheet::after {
    content: none;
}

.section {
    padding-top: 68px;
    padding-bottom: 68px;
}

.section.gifts {
    /* Gap between last U tip and the divider before RSVP */
    padding-bottom: 3rem;
}

.section + .section,
.footer {
    border-color: rgba(232, 242, 246, 0.12);
}

.section-label {
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.52em;
}

.gifts-arc__label {
    letter-spacing: 0.52em;
}

.section-text,
.intro p:not(.intro-greeting),
.location-note {
    color: var(--white);
}

.intro p.intro-greeting,
.intro strong,
.calendar-month,
.date-strip-day,
.snake-body .time,
.rsvp-date,
.section-text strong {
    color: var(--white);
    font-weight: 300;
    text-shadow: 0 0 28px rgba(245, 251, 255, 0.35);
}

.intro p.intro-greeting {
    font-weight: 400;
    letter-spacing: 0.03em;
}

.calendar-grid span {
    color: var(--text-soft);
}

.calendar-grid .is-active {
    color: #2a3842;
    background: rgba(245, 246, 243, 0.92);
    box-shadow:
        0 0 20px rgba(246, 248, 246, 0.55),
        0 0 48px rgba(235, 241, 242, 0.35);
}

.date-strip {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: #ffffff;
    box-shadow:
        inset 0 0 20px rgba(247, 248, 245, 0.1),
        0 0 8px rgba(255, 255, 255, 1),
        0 0 20px rgba(255, 255, 255, 0.88),
        0 0 42px rgba(255, 255, 255, 0.5),
        0 0 78px rgba(210, 230, 245, 0.28);
}

.date-strip-month,
.date-strip-weekday {
    color: var(--dove);
    font-weight: 400;
}

.date-strip-day::before,
.date-strip-day::after {
    background: rgba(247, 248, 245, 0.9);
}

.location-circle--bottom {
    border-color: rgba(245, 247, 245, 0.25);
    background: rgba(255, 255, 255, 0.05);
    box-shadow:
        0 0 0 1px rgba(247, 248, 245, 0.06),
        inset 0 0 24px rgba(247, 248, 245, 0.05);
}

.location.is-expanded .location-circle--bottom {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.location-photo-wrap {
    box-shadow: 0 0 0 1px rgba(247, 248, 245, 0.3);
}

.location.is-expanded .location-photo-wrap {
    box-shadow:
        0 0 0 1px rgba(247, 248, 245, 0.7),
        0 0 18px 5px rgba(255, 255, 255, 0.48),
        0 0 40px 12px rgba(235, 245, 255, 0.26);
}

.location-photo-wrap::before {
    filter: blur(10px);
}

.location-photo {
    background: url('images/location.jpg') center / cover no-repeat;
    background-blend-mode: normal;
    filter: none;
}

.location-arc-text {
    fill: var(--white);
}

.btn-map,
.btn-rsvp {
    color: var(--white);
    border-color: rgba(247, 248, 245, 0.42);
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 0 28px rgba(247, 248, 245, 0.08),
        0 0 30px rgba(239, 244, 243, 0.12);
}

.btn-rsvp {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 0 20px rgba(247, 248, 245, 0.1),
        0 0 8px rgba(255, 255, 255, 1),
        0 0 20px rgba(255, 255, 255, 0.88),
        0 0 42px rgba(255, 255, 255, 0.5),
        0 0 78px rgba(210, 230, 245, 0.28);
}

.btn-map {
    box-shadow:
        inset 0 0 28px rgba(247, 248, 245, 0.08),
        0 0 36px rgba(45, 100, 180, 0.3);
}

.btn-map:hover,
.btn-rsvp:hover {
    color: var(--white);
    border-color: rgba(249, 249, 246, 0.72);
    background: rgba(255, 255, 255, 0.16);
    box-shadow:
        inset 0 0 32px rgba(250, 250, 247, 0.12),
        0 0 38px rgba(245, 247, 245, 0.28);
}

.btn-rsvp:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow:
        inset 0 0 24px rgba(247, 248, 245, 0.14),
        0 0 10px rgba(255, 255, 255, 1),
        0 0 26px rgba(255, 255, 255, 0.92),
        0 0 50px rgba(255, 255, 255, 0.58),
        0 0 90px rgba(210, 230, 245, 0.34);
}

.btn-map:hover {
    box-shadow:
        inset 0 0 32px rgba(250, 250, 247, 0.12),
        0 0 40px rgba(50, 110, 190, 0.4);
}

.snake-line {
    stroke: #fff;
    stroke-width: 5.5;
}

.snake-node {
    color: #fff;
    border-color: #fff;
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow:
        0 0 8px rgba(255, 255, 255, 1),
        0 0 20px rgba(255, 255, 255, 0.9),
        0 0 42px rgba(255, 255, 255, 0.55),
        0 0 72px rgba(255, 255, 255, 0.28);
}

.snake-body .event,
.footer p {
    color: var(--text-muted);
}

.snake-body .event {
    color: var(--white);
}

.icon-wrap,
.ornament {
    color: var(--contrail);
}

.dresscode {
    background: transparent;
}

.dresscode-circle--her {
    border-color: rgba(247, 248, 245, 0.54);
    box-shadow:
        0 0 0 1px rgba(247, 248, 245, 0.1),
        0 0 36px rgba(239, 243, 242, 0.36),
        0 0 80px rgba(205, 216, 221, 0.16),
        inset 0 0 40px rgba(248, 248, 245, 0.06);
}

.dresscode-circle--him {
    border-color: rgba(78, 116, 156, 0.6);
    background:
        radial-gradient(circle at 50% 40%, #3c4a56 0%, #2c3844 52%, #1e2a34 100%);
    box-shadow:
        0 0 0 1px rgba(56, 88, 122, 0.42),
        0 0 14px rgba(42, 78, 118, 0.86),
        0 0 32px rgba(24, 42, 62, 0.62),
        0 18px 36px rgba(20, 28, 36, 0.22),
        inset 0 0 28px rgba(0, 0, 0, 0.2);
}

.dresscode-glow-halo {
    stroke: rgba(255, 255, 255, 0.55);
    stroke-width: 20;
    opacity: 0.45;
}

.dresscode-glow-edge,
.dresscode-circle--her .dresscode-glow-edge {
    stroke: rgba(255, 255, 255, 0.72);
    stroke-width: 1.1;
    opacity: 0.55;
}

.dresscode-glow-core,
.dresscode-circle--her .dresscode-glow-core {
    stroke: rgba(255, 255, 255, 0.55);
    stroke-width: 0.65;
    opacity: 0.5;
}

.dresscode-circle--him .dresscode-glow-halo {
    stroke: rgba(56, 88, 122, 0.9);
    stroke-width: 10;
    opacity: 0.62;
}

.dresscode-circle--him .dresscode-glow-edge {
    stroke: rgba(78, 116, 156, 1);
    stroke-width: 1.8;
    opacity: 0.82;
}

.dresscode-circle--him .dresscode-glow-core {
    stroke: rgba(102, 140, 178, 0.95);
    stroke-width: 0.95;
    opacity: 0.75;
}

.btn-map:focus-visible,
.btn-rsvp:focus-visible {
    outline-color: rgba(245, 251, 255, 0.72);
}

@media (min-width: 720px) {
    .section {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .section.gifts {
        padding-bottom: 3.25rem;
    }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .location-circle--bottom,
    .date-strip,
    .snake-node {
        background-color: rgba(40, 52, 60, 0.55);
    }

    .location.is-expanded .location-circle--bottom {
        background: transparent;
        background-color: transparent;
    }
}

