/* ═══════════════════════════════════════════════════════════
   LAVENDER PROVENCE — French countryside romance
   Lavender fields at sunset · lilac · sage · cream · soft gold
   Fonts: Pinyon Script (script) · Cormorant Garamond (serif) · Jost (light sans)
═══════════════════════════════════════════════════════════ */
:root {
    --bg:           #fbf8f2;
    --bg-2:         #f4eff7;
    --surface:      #fffdf8;
    --surface-2:    #f7f2fa;
    --text:         #3b2f4c;
    --muted:        #6c607c;
    --accent:       #7e62a8;
    --accent-light: #b9a5d6;
    --accent-dark:  #574079;
    --lilac:        #d9cdec;
    --sage:         #8fa58a;
    --sage-dark:    #56704f;
    --gold:         #c9a96a;
    --gold-soft:    rgba(201,169,106,.5);
    --peach:        #f4d3bf;
    --line:         rgba(126,98,168,.24);
    --line-soft:    rgba(126,98,168,.14);
    --shadow:       0 22px 44px -22px rgba(87,64,121,.32);
    --sky:          linear-gradient(180deg, #e6dcf2 0%, #eee2f1 26%, #f7e3e2 50%, #fbe4d3 64%, #fde9d6 72%);
    --lav-grad:     linear-gradient(135deg, #a189cf 0%, #7e62a8 55%, #604688 100%);
    --script:       'Pinyon Script', cursive;
    --serif:        'Cormorant Garamond', Georgia, serif;
    --sans:         'Jost', 'Helvetica Neue', Arial, sans-serif;
    --frame-w:      min(100vw, 640px);
    --pad-top:      calc(var(--frame-w) * .37 + 12px);
    --pad-bot:      calc(var(--frame-w) * .31 + 12px);
    --radius:       20px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--serif);
    font-size: 1.1rem;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    width: 100%;
}
body.no-scroll { overflow: hidden; height: 100vh; }
img { max-width: 100%; display: block; }
main { overflow: hidden; position: relative; }
::selection { background: var(--accent-light); color: var(--text); }
.lp-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ── Paper background: cream laid paper + faint lilac haze ── */
.paper-bg {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 90% 45% at 50% 0%, rgba(217,205,236,.45), transparent 70%),
        radial-gradient(ellipse 80% 40% at 50% 100%, rgba(188,203,179,.28), transparent 70%),
        repeating-linear-gradient(0deg, rgba(126,98,168,.025) 0 1px, transparent 1px 5px),
        var(--bg);
}

/* ════════════════════════════
   SCENE: sunset sky, horizon rows, swaying field
════════════════════════════ */
.scene { position: absolute; inset: 0; overflow: hidden; z-index: 0; background: var(--sky); pointer-events: none; }
.horizon { position: absolute; left: 0; bottom: 0; width: 100%; height: 34%; display: block; }
.sun {
    position: absolute; left: 50%; bottom: calc(34% * .69);
    width: 86vmin; height: 86vmin; max-width: 640px; max-height: 640px;
    transform: translate(-50%, 50%);
    background: radial-gradient(circle, rgba(255,240,214,.98) 0 9%, rgba(253,222,190,.7) 20%, rgba(249,214,204,.28) 40%, rgba(249,214,204,0) 64%);
    animation: sunGlow 9s ease-in-out infinite alternate;
}
@keyframes sunGlow { to { opacity: .82; transform: translate(-50%, 50%) scale(1.06); } }
.lav-field {
    position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
    transform-origin: 50% 100%;
}
.stalk {
    position: absolute; bottom: -3%;
    width: auto; aspect-ratio: 40 / 240; overflow: visible;
    transform-origin: 50% 100%;
    transform: translateX(-50%);
    animation: sway 5.4s ease-in-out infinite;
    animation-play-state: paused;
}
.stalk.back { opacity: .55; }
.lav-field.in-view .stalk { animation-play-state: running; will-change: transform; }
@keyframes sway {
    0%, 100% { transform: translateX(-50%) rotate(-3.2deg); }
    50%      { transform: translateX(-50%) rotate(4.6deg); }
}
body.is-paused .stalk, body.is-paused .bf-r, body.is-paused .sun { animation-play-state: paused !important; }

/* ── Butterflies + gust layer ── */
.bf-layer, .gust-layer { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.bf-layer { z-index: 10001; }
.bf-layer.behind { z-index: 1; } /* after opening: butterflies drift behind content */
.gust-layer { z-index: 10002; }
/* kupu-kupu: tiap sayap lapisan HTML sendiri agar kepakan (scaleX) & ayunan ter-komposit */
.bf { position: absolute; left: 0; top: 0; width: 30px; height: 30px; opacity: 0; will-change: transform; }
.bf-bob { position: absolute; inset: 0; animation: bob 1.7s ease-in-out infinite alternate; }
.bf-alt .bf-bob { animation-duration: 2.1s; }
.bf-bob > * { position: absolute; inset: 0; }
.bf svg { width: 100%; height: 100%; overflow: visible; display: block; }
.bf-r { transform-origin: 50% 50%; animation: flap .27s ease-in-out infinite alternate; }
@keyframes flap { to { transform: scaleX(.16); } }
@keyframes bob { to { transform: translateY(-6px); } }
.gust-bud {
    position: absolute; left: 0; top: 0; width: 7px; height: 12px;
    border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
    background: linear-gradient(180deg, #a993d4, #6c529c);
    will-change: transform;
}
.gust-bud.light { background: linear-gradient(180deg, #ddd2f0, #a58fd0); }
.gust-bud.deep  { background: linear-gradient(180deg, #8a6bc0, #4f3a78); width: 6px; height: 10px; }

/* ════════════════════════════
   SECTION FRAME + injected bingkai
════════════════════════════ */
.section-frame {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex; flex-direction: column; justify-content: center;
    padding: var(--pad-top) 0 var(--pad-bot);
}
.section-frame-top, .section-frame-bottom,
.intro-frame-top, .intro-frame-bottom {
    position: absolute; left: 50%; transform: translateX(-50%);
    width: var(--frame-w); line-height: 0;
    pointer-events: none; user-select: none; z-index: 1;
    display: block;
}
.section-frame-top, .intro-frame-top { top: 0; }
.section-frame-bottom, .intro-frame-bottom { bottom: 0; }
.section-frame-top img, .section-frame-bottom img { width: 100%; height: auto; display: block; }
.intro-frame-top, .intro-frame-bottom { height: auto; max-height: 38vh; object-fit: cover; }
.intro-frame-top { object-position: top; }
.intro-frame-bottom { object-position: bottom; }
.divider { display: block; width: min(260px, 76%); height: auto; margin: 0 auto; }

/* watercolour wash blooming behind each section */
.wash {
    position: absolute; inset: 4% -12%; z-index: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 42% 26% at 18% 28%, rgba(205,187,232,.5), transparent 70%),
        radial-gradient(ellipse 40% 26% at 84% 64%, rgba(188,203,179,.42), transparent 70%),
        radial-gradient(ellipse 34% 18% at 62% 14%, rgba(246,213,194,.5), transparent 70%);
}
.wash-1 {
    background:
        radial-gradient(ellipse 40% 24% at 80% 26%, rgba(205,187,232,.5), transparent 70%),
        radial-gradient(ellipse 44% 26% at 16% 70%, rgba(205,187,232,.38), transparent 70%),
        radial-gradient(ellipse 30% 20% at 44% 50%, rgba(246,213,194,.38), transparent 70%);
}
.wash-2 {
    background:
        radial-gradient(ellipse 46% 24% at 50% 36%, rgba(217,205,236,.55), transparent 70%),
        radial-gradient(ellipse 34% 22% at 12% 20%, rgba(188,203,179,.4), transparent 70%),
        radial-gradient(ellipse 34% 22% at 90% 80%, rgba(246,213,194,.42), transparent 70%);
}

/* ── Container ── */
.container {
    width: 100%; max-width: 760px; margin: 0 auto; padding: 0 1.5rem;
    position: relative; z-index: 2;
}

/* ── Section heading ── */
.section-head { text-align: center; margin-bottom: 2.1rem; }
.eyebrow {
    display: block;
    font-family: var(--sans); font-weight: 400;
    font-size: .72rem; letter-spacing: .4em; text-transform: uppercase;
    color: var(--sage-dark); margin-bottom: .2rem;
}
.section-title {
    font-family: var(--script); font-weight: 400;
    font-size: clamp(2.4rem, 10vw, 3.3rem);
    line-height: 1.25; color: var(--accent-dark);
    margin-bottom: .35rem;
}

/* ════════════════════════════
   BUTTONS
════════════════════════════ */
.btn-lav {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    position: relative; overflow: hidden;
    padding: .95rem 2.1rem;
    background: var(--lav-grad);
    color: #fff;
    border: none; border-radius: 999px; cursor: pointer;
    font-family: var(--sans); font-weight: 500;
    font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
    box-shadow: 0 0 0 1px rgba(255,255,255,.4) inset, 0 12px 26px -8px rgba(96,70,136,.55);
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, filter .35s;
}
.btn-lav::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
    transform: skewX(-20deg);
    animation: btnSheen 5s ease-in-out infinite;
}
@keyframes btnSheen { 0%, 64% { transform: translateX(0) skewX(-20deg); } 100% { transform: translateX(475%) skewX(-20deg); } }
.btn-lav:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 0 0 1px rgba(255,255,255,.4) inset, 0 16px 30px -8px rgba(96,70,136,.6); }
.btn-lav:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent-light), 0 12px 26px -8px rgba(96,70,136,.55); }
.btn-lav:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.btn-lav.is-sent { background: linear-gradient(135deg, #9db594, #6f8c68); }
.btn-block { width: 100%; }

/* ════════════════════════════
   INTRO / COVER
════════════════════════════ */
/* --dissolve tidak diwariskan → animasinya tidak memicu hitung ulang style seluruh isi cover */
@property --dissolve { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.intro {
    position: fixed; inset: 0; z-index: 10000;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden auto;
    --dissolve: 0%;
}
.intro.is-opening {
    -webkit-mask-image: linear-gradient(to top, transparent calc(var(--dissolve) - 30%), #000 var(--dissolve));
    mask-image: linear-gradient(to top, transparent calc(var(--dissolve) - 30%), #000 var(--dissolve));
}
.intro .scene { position: fixed; }
.intro .lav-field { height: 36%; }
.intro-content {
    position: relative; z-index: 2;
    width: 100%; max-width: 420px;
    padding: calc(var(--frame-w) * .16) 20px calc(var(--frame-w) * .2); margin: auto;
    animation: introRise 1.4s cubic-bezier(.16,1,.3,1) both .15s;
}
@keyframes introRise { from { opacity: 0; transform: translateY(26px); } }
.intro-frame { padding: 0 .5rem; }
.wreath { position: relative; width: min(52vw, 196px); margin: 0 auto .4rem; }
.wreath img { width: 100%; height: auto; }
.wreath.small { width: 150px; margin-bottom: .6rem; }
.wax-seal {
    position: absolute; left: 50%; top: 47.5%;
    width: 30%; aspect-ratio: 1;
    transform: translate(-50%, -50%);
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 36% 30%, #b29be0 0%, #7e62a8 46%, #4f3a78 100%);
    border-radius: 47% 53% 51% 49% / 52% 47% 53% 48%;
    box-shadow: 0 0 0 3px rgba(126,98,168,.28), 0 6px 14px -4px rgba(63,45,90,.55), inset 0 2px 5px rgba(255,255,255,.35), inset 0 -4px 7px rgba(40,26,64,.35);
}
.wax-seal::before {
    content: ''; position: absolute; inset: 14%;
    border-radius: 50%; border: 1px solid rgba(255,255,255,.3);
    box-shadow: inset 0 1px 2px rgba(40,26,64,.35);
}
.wax-seal span {
    position: relative;
    font-family: var(--serif); font-style: italic; font-weight: 600;
    font-size: clamp(.95rem, 4.4vw, 1.25rem); letter-spacing: .02em;
    color: #f6efff; text-shadow: 0 1px 0 rgba(40,26,64,.45), 0 -1px 0 rgba(255,255,255,.2);
}
.wreath.small .wax-seal span { font-size: 1rem; }

.intro-subtitle {
    font-family: var(--sans); font-weight: 400;
    font-size: .7rem; letter-spacing: .42em; text-transform: uppercase;
    color: var(--sage-dark); margin-bottom: .1rem;
}
.intro-names {
    font-family: var(--script); font-weight: 400;
    font-size: clamp(2.6rem, 12vw, 3.6rem); line-height: 1.15;
    color: var(--accent-dark);
    margin-bottom: 1.1rem; overflow-wrap: anywhere;
    text-shadow: 0 2px 18px rgba(255,248,240,.9);
}
.intro-names em {
    font-family: var(--serif); font-style: italic; font-weight: 500;
    font-size: .52em; display: block; line-height: 1.1; color: var(--gold);
}
.guest-card {
    margin: 0 auto 1.4rem; padding: 1rem 1.3rem;
    max-width: 310px;
    background: rgba(255,253,248,.82);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    border: 1px solid var(--gold-soft);
    border-radius: 6px;
    box-shadow: inset 0 0 0 4px rgba(255,253,248,.8), inset 0 0 0 5px rgba(201,169,106,.32), 0 14px 30px -18px rgba(87,64,121,.4);
}
.to-label { font-size: .95rem; color: var(--muted); font-style: italic; }
.guest-name {
    font-family: var(--serif); font-weight: 600;
    font-size: clamp(1.3rem, 5.4vw, 1.6rem); line-height: 1.3;
    margin-top: .2rem; color: var(--accent-dark);
    overflow-wrap: anywhere;
}

/* ════════════════════════════
   NAVIGATION
════════════════════════════ */
nav {
    position: fixed; left: 0; right: 0; margin: 0 auto;
    width: max-content; max-width: calc(100% - 24px);
    bottom: calc(16px + env(safe-area-inset-bottom));
    transform: translateY(140px);
    z-index: 1000; opacity: 0;
    transition: .9s cubic-bezier(.16,1,.3,1);
}
nav.visible { transform: translateY(0); opacity: 1; }
/* lift above the guest QR button (#qr-fab, bottom-right) only when it exists */
body:has(#qr-fab) nav, body.has-qr nav { bottom: calc(84px + env(safe-area-inset-bottom)); }
.nav-inner {
    display: flex; gap: 2px; align-items: center;
    padding: 6px 10px;
    background: rgba(255,253,248,.9);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 14px 34px -14px rgba(87,64,121,.45);
}
nav a {
    flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
    color: var(--muted); display: flex; align-items: center; justify-content: center; position: relative;
    text-decoration: none; transition: color .3s, background .3s;
}
nav a svg { width: 21px; height: 21px; flex: none; }
nav a::after {
    content: ''; position: absolute; left: 50%; bottom: 3px;
    width: 4px; height: 7px; border-radius: 50%;
    background: var(--accent);
    transform: translateX(-50%) scale(0); transition: transform .35s cubic-bezier(.2,.8,.2,1.4);
}
nav a.active { color: var(--accent-dark); background: rgba(126,98,168,.1); }
nav a.active::after { transform: translateX(-50%) scale(1); }
nav a:hover { color: var(--accent); }
nav a:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 2px; }
/* keep the last block clear of the fixed nav */
main > .footer { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
body:has(#qr-fab) main > .footer, body.has-qr main > .footer { padding-bottom: calc(168px + env(safe-area-inset-bottom)); }

/* ════════════════════════════
   MUSIC BUTTON
════════════════════════════ */
.music-toggle-btn {
    position: fixed; top: calc(16px + env(safe-area-inset-top)); right: 16px; z-index: 1001;
    width: 44px; height: 44px;
    border: 1px solid var(--line); border-radius: 50%;
    background: rgba(255,253,248,.9); color: var(--accent-dark);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px -8px rgba(87,64,121,.45);
    transition: background .3s, color .3s;
}
.music-toggle-btn::before {
    content: ''; position: absolute; inset: -5px; border-radius: 50%;
    border: 1px dashed rgba(126,98,168,.45);
    opacity: 0; transition: opacity .4s;
}
.music-toggle-btn.is-playing::before { opacity: 1; animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.music-toggle-btn svg { width: 18px; height: 18px; }
.music-toggle-btn:hover { background: var(--accent); color: #fff; }
.music-toggle-btn:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 4px; }

/* ════════════════════════════
   HERO
════════════════════════════ */
.hero { align-items: center; padding-left: 16px; padding-right: 16px; }
.hero .section-frame-bottom { z-index: 1; }
.hero-frame {
    width: min(100%, 420px);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    padding: 1rem 1rem 1.6rem;
    position: relative; z-index: 2;
    margin-bottom: 8vh;
}
.hero-frame::before {
    content: ''; position: absolute; inset: -6% -12%; z-index: -1;
    background: radial-gradient(ellipse at 50% 52%, rgba(255,251,246,.78) 0%, rgba(255,251,246,.45) 42%, rgba(255,251,246,0) 70%);
}
.hero-ornamen { display: block; width: min(46vw, 170px); height: auto; margin: 0 auto .4rem; }
.hero-content { position: relative; }
.hero-label {
    font-family: var(--sans); font-weight: 400;
    font-size: .72rem; letter-spacing: .45em; text-transform: uppercase;
    color: var(--sage-dark); margin-bottom: .5rem;
}
.hero-names {
    font-family: var(--script); font-weight: 400;
    font-size: clamp(3rem, 14vw, 4.4rem); line-height: 1.12;
    color: var(--accent-dark);
    display: flex; flex-direction: column; align-items: center;
    margin-bottom: .9rem; overflow-wrap: anywhere;
}
.hero-names .nm { display: block; padding: 0 .1em; }
.hero-names .w { display: inline-block; white-space: nowrap; }
.hero-names .ch { display: inline-block; }
.hero-names .amp {
    font-family: var(--serif); font-style: italic; font-weight: 500;
    font-size: .46em; color: var(--gold); line-height: 1.2; display: block;
}
.hero-date {
    display: flex; align-items: center; justify-content: center; gap: 1rem;
    margin-top: 1.1rem;
}
.hero-date .day {
    font-family: var(--serif); font-weight: 600;
    font-size: clamp(2.7rem, 11vw, 3.4rem); line-height: 1; color: var(--accent);
}
.month-year {
    text-align: left; border-left: 1px solid var(--gold-soft);
    padding-left: 1rem; line-height: 1.35;
}
.month-year .month {
    display: block; font-family: var(--sans); font-weight: 500; font-size: .92rem;
    letter-spacing: .24em; text-transform: uppercase; color: var(--accent-dark);
}
.month-year .year { font-family: var(--sans); font-weight: 300; font-size: .95rem; color: var(--muted); letter-spacing: .32em; }

/* ════════════════════════════
   QUOTE
════════════════════════════ */
.quote > .container { text-align: center; max-width: 600px; }
.ribbon-curl { width: min(220px, 64%); height: auto; display: block; margin: 0 auto 1.1rem; overflow: visible; }
.quote p {
    font-style: italic; font-size: clamp(1.2rem, 4.8vw, 1.45rem);
    color: var(--text); line-height: 1.65; margin: 0 auto 1.3rem;
}
.quote p .wd { display: inline-block; }
.quote cite {
    display: block; font-style: normal;
    font-family: var(--sans); font-weight: 500;
    font-size: .76rem; letter-spacing: .34em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 1.4rem;
}

/* ════════════════════════════
   COUPLE
════════════════════════════ */
.couple-flex {
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: start; gap: 1.2rem;
    max-width: 640px; margin: 0 auto;
}
.couple-item { text-align: center; min-width: 0; }
.portrait-arch {
    width: 132px; height: 184px; margin: 0 auto 1.5rem;
    border-radius: 999px 999px 10px 10px;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(143,165,138,.35), transparent 70%),
        radial-gradient(ellipse 90% 60% at 50% 30%, rgba(217,205,236,.9), transparent 75%),
        linear-gradient(180deg, #f3ecfa, #fbf2ea);
    border: 1px solid var(--gold-soft);
    box-shadow: var(--shadow);
}
.portrait-arch::before {
    content: ''; position: absolute; inset: 6px;
    border: 1px solid var(--line); border-radius: 999px 999px 6px 6px;
}
.portrait-arch::after {
    content: ''; position: absolute; left: 50%; bottom: -16px;
    width: 128%; height: 34px; transform: translateX(-50%);
    background: url('divider.svg') center / contain no-repeat;
}
.portrait-arch span {
    font-family: var(--script); font-size: 3.6rem; line-height: 1;
    color: var(--accent-dark); padding-top: .2em;
}
.name {
    font-family: var(--script); font-weight: 400;
    font-size: clamp(1.75rem, 7.6vw, 2.3rem); line-height: 1.25;
    color: var(--accent-dark);
    margin-bottom: .5rem; overflow-wrap: anywhere;
}
.ampersand {
    font-family: var(--serif); font-style: italic; font-size: clamp(2.2rem, 8vw, 3rem);
    color: var(--gold); align-self: center; line-height: 1;
    padding-bottom: 3rem;
}
.parent { font-size: 1rem; color: var(--muted); line-height: 1.55; }

/* ════════════════════════════
   EVENT — postage-stamp countdown + stationery cards
════════════════════════════ */
.countdown-stamps {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem;
    max-width: 420px; margin: 0 auto 2.4rem;
    filter: drop-shadow(0 8px 12px rgba(87,64,121,.16));
}
.time-box {
    --r: 3.5px;
    position: relative;
    text-align: center; padding: 1rem .2rem .8rem;
    background:
        radial-gradient(ellipse 90% 60% at 50% 0%, rgba(217,205,236,.7), transparent 70%),
        var(--surface);
    perspective: 300px;
    -webkit-mask:
        radial-gradient(var(--r) at var(--r) var(--r), #0000 97%, #000) calc(-1 * var(--r)) calc(-1 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)) round,
        linear-gradient(#000 0 0) center / calc(100% - 2 * var(--r)) calc(100% - 2 * var(--r)) no-repeat;
    mask:
        radial-gradient(var(--r) at var(--r) var(--r), #0000 97%, #000) calc(-1 * var(--r)) calc(-1 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)) round,
        linear-gradient(#000 0 0) center / calc(100% - 2 * var(--r)) calc(100% - 2 * var(--r)) no-repeat;
}
.time-box::before {
    content: ''; position: absolute; inset: 7px;
    border: 1px solid rgba(126,98,168,.28);
    pointer-events: none;
}
.time-box span {
    display: block;
    font-family: var(--serif); font-weight: 600;
    font-size: clamp(1.65rem, 7vw, 2.3rem); line-height: 1.1;
    color: var(--accent-dark);
    transform-origin: 50% 0;
}
.time-box label {
    display: block; margin-top: .2rem;
    font-family: var(--sans); font-weight: 400;
    font-size: .6rem; letter-spacing: .24em; text-transform: uppercase;
    color: var(--muted);
}
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.4rem;
}
.event-card {
    position: relative;
    text-align: center; padding: 2rem 1.5rem 2.2rem;
    background:
        radial-gradient(ellipse 80% 40% at 50% 0%, rgba(217,205,236,.55), transparent 70%),
        var(--surface);
    border: 1px solid var(--gold-soft);
    border-radius: 22px;
    box-shadow: var(--shadow);
}
.event-card::before {
    content: ''; position: absolute; inset: 8px; border-radius: 16px;
    border: 1px solid var(--line-soft); pointer-events: none;
}
.event-sprig { width: 82px; height: 41px; margin: 0 auto .5rem; display: block; overflow: visible; }
.event-title {
    font-family: var(--script); font-weight: 400;
    font-size: 2.3rem; line-height: 1.2; color: var(--accent-dark);
    margin-bottom: .6rem;
}
.event-date { font-weight: 600; font-size: 1.14rem; color: var(--text); margin-bottom: .2rem; }
.event-time { font-family: var(--sans); color: var(--accent); font-weight: 500; letter-spacing: .14em; margin-bottom: .7rem; font-size: .9rem; }
.event-location { color: var(--muted); font-size: 1.05rem; line-height: 1.55; }

/* ════════════════════════════
   MAP
════════════════════════════ */
.map-card {
    background: var(--surface);
    border: 1px solid var(--gold-soft);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.map-info {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    padding: 1.4rem 1.4rem 1.2rem;
    border-bottom: 1px solid var(--line-soft);
    background: radial-gradient(ellipse 70% 100% at 0% 0%, rgba(217,205,236,.45), transparent 70%);
}
.map-detail { display: flex; align-items: flex-start; gap: .75rem; flex: 1; min-width: 180px; }
.map-icon {
    color: var(--accent); flex-shrink: 0; margin-top: 2px; display: flex;
    width: 38px; height: 38px; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(217,205,236,.6);
}
.map-venue { font-weight: 600; font-size: 1.14rem; color: var(--text); margin-bottom: .15rem; line-height: 1.4; }
.map-address { font-size: 1rem; color: var(--muted); line-height: 1.55; }
.btn-map-nav {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .7rem 1.3rem;
    background: transparent; color: var(--accent-dark);
    border: 1px solid var(--accent); border-radius: 999px;
    font-family: var(--sans); font-weight: 500; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
    text-decoration: none; white-space: nowrap; flex-shrink: 0;
    transition: background .3s, color .3s;
}
.btn-map-nav:hover, .btn-map-nav:focus-visible { background: var(--accent); color: #fff; outline: none; }
.leaflet-map { width: 100%; height: 260px; display: block; filter: saturate(.8) hue-rotate(-6deg); }
.map-embed-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .6rem; height: 180px;
    background: var(--surface-2); color: var(--accent);
    text-decoration: none; font-weight: 600; letter-spacing: .06em;
    transition: background .3s, color .3s;
}
.map-embed-placeholder:hover { background: var(--accent); color: #fff; }

/* ════════════════════════════
   GALLERY
════════════════════════════ */
.gallery-subtitle {
    text-align: center; font-style: italic; color: var(--muted);
    font-size: 1.08rem; margin: -1rem 0 1.7rem;
}
.gallery-layout {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 7px;
    padding: 8px; background: var(--surface);
    border: 1px solid var(--gold-soft); border-radius: 22px;
    box-shadow: var(--shadow);
}
.gallery-featured, .gallery-grid-item, .gallery-extra-item {
    position: relative; overflow: hidden; cursor: pointer;
    background: linear-gradient(160deg, #efe7f7, #f8efe8);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
}
.gallery-featured { aspect-ratio: 3/4; border-radius: 16px 10px 10px 16px; }
.gallery-grid-side { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 7px; }
.gallery-grid-item { min-height: 0; border-radius: 10px; }
.gallery-extra-item { aspect-ratio: 1; }
.gallery-featured img, .gallery-grid-item img, .gallery-extra-item img {
    width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.gallery-featured:hover img, .gallery-grid-item:hover img, .gallery-extra-item:hover img { transform: scale(1.07); }
.gallery-featured-overlay, .gallery-item-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(87,64,121,0);
    transition: background .35s;
}
.gallery-featured:hover .gallery-featured-overlay,
.gallery-grid-item:hover .gallery-item-overlay,
.gallery-extra-item:hover .gallery-item-overlay { background: rgba(87,64,121,.32); }
.gallery-featured-overlay svg, .gallery-item-overlay svg { opacity: 0; transition: opacity .3s; }
.gallery-featured:hover svg, .gallery-grid-item:hover svg, .gallery-extra-item:hover svg { opacity: 1; }
.gallery-row-extra {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 110px), 1fr));
    gap: 7px; margin-top: 12px;
}
.gallery-featured.placeholder, .gallery-grid-item.placeholder { color: var(--accent); cursor: default; }
.gallery-featured.placeholder svg, .gallery-grid-item.placeholder svg { opacity: .5; }

/* Lightbox */
.gallery-lightbox {
    display: none; position: fixed; inset: 0; z-index: 10003;
    background: rgba(40,30,56,.92);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    align-items: center; justify-content: center;
    opacity: 0; transition: opacity .3s;
}
.lb-img-wrap { max-width: min(90vw, 600px); max-height: 85vh; display: flex; align-items: center; justify-content: center; }
.lb-img-wrap img {
    max-width: 100%; max-height: 80vh; object-fit: contain;
    border: 6px solid var(--surface); border-radius: 6px;
    box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lb-close, .lb-prev, .lb-next {
    position: fixed; display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(255,253,248,.14);
    color: #fff; cursor: pointer; transition: background .2s, color .2s;
}
.lb-close { top: 1.25rem; right: 1.25rem; width: 42px; height: 42px; font-size: 1rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 44px; height: 44px; font-size: 1.8rem; line-height: 1; }
.lb-prev { left: .75rem; }
.lb-next { right: .75rem; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--accent-light); color: var(--text); }
.lb-counter {
    position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    color: #fff; font-family: var(--sans); font-size: .8rem; letter-spacing: .25em;
    padding: 4px 16px; border-radius: 999px; background: rgba(255,253,248,.14);
}

/* ════════════════════════════
   GIFT SECTION OVERRIDE
════════════════════════════ */
#gift-section {
    position: relative;
    background:
        radial-gradient(ellipse 60% 30% at 20% 30%, rgba(217,205,236,.5), transparent 70%),
        radial-gradient(ellipse 60% 30% at 80% 75%, rgba(188,203,179,.35), transparent 70%),
        transparent !important;
    padding: var(--pad-top) 0 var(--pad-bot) !important;
    min-height: auto !important;
    z-index: 2;
}
#gift-section .gs-heading h2 {
    color: var(--accent-dark) !important;
    font-family: var(--script) !important; font-weight: 400 !important;
    font-size: clamp(2.3rem, 10vw, 3rem) !important;
}
#gift-section .gs-heading h2::after { background: var(--gold) !important; width: 60px !important; }
#gift-section .gs-heading p { color: var(--muted) !important; font-family: var(--serif) !important; font-size: 1.05rem !important; }
#gift-section .gs-sub-label { color: var(--sage-dark) !important; }
#gift-section .gs-card, #gift-section .gs-bank-card {
    border-color: var(--gold-soft) !important;
    box-shadow: 0 16px 34px -20px rgba(87,64,121,.35) !important;
}

/* ════════════════════════════
   WISHES
════════════════════════════ */
.rsvp-form-container {
    position: relative;
    max-width: 560px; margin: 0 auto 2.4rem;
    padding: 2rem 1.5rem 1.8rem;
    background: var(--surface);
    border: 1px solid var(--gold-soft);
    border-radius: 22px;
    box-shadow: var(--shadow);
}
.rsvp-form-container::before {
    content: ''; position: absolute; inset: 8px; border-radius: 16px;
    border: 1px solid var(--line-soft); pointer-events: none;
}
.lav-form { position: relative; }
.input-row { margin-bottom: 1.3rem; }
.input-row > label {
    display: block; margin-bottom: .45rem;
    font-family: var(--sans); font-weight: 500;
    font-size: .7rem; letter-spacing: .26em; text-transform: uppercase;
    color: var(--accent);
}
.input-row input[type="text"], .input-row textarea {
    width: 100%; padding: .8rem 1rem;
    background: #fff; color: var(--text);
    border: 1px solid var(--line); border-radius: 12px;
    font-family: var(--serif); font-size: 1.08rem;
    transition: border-color .3s, box-shadow .3s;
}
.input-row input::placeholder, .input-row textarea::placeholder { color: rgba(108,96,124,.65); }
.input-row input:focus, .input-row textarea:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(185,165,214,.32);
}
.attend-options { display: flex; gap: .5rem; flex-wrap: wrap; }
.attend-opt {
    display: flex; align-items: center; gap: .4rem; cursor: pointer;
    padding: .42rem .85rem; border: 1px solid var(--line); border-radius: 999px;
    font-size: 1rem; color: var(--text); background: #fff;
    transition: border-color .3s, background .3s;
}
.attend-opt:hover { border-color: var(--accent); }
.attend-opt:has(input:checked) { border-color: var(--accent); background: rgba(217,205,236,.5); }
.attend-opt input[type="radio"] { accent-color: var(--accent); width: 15px; height: 15px; }

.wishes-list { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: .85rem; }
.wish-item {
    display: flex; gap: .9rem; align-items: flex-start;
    padding: 1.05rem 1.1rem 1rem;
    background: rgba(255,253,248,.92);
    border: 1px solid var(--line-soft); border-radius: 16px;
    box-shadow: 0 10px 24px -18px rgba(87,64,121,.4);
}
.wish-avatar {
    width: 42px; height: 42px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 35% 30%, #b29be0, #7e62a8 60%, #604688);
    color: #fff; border-radius: 47% 53% 51% 49% / 52% 47% 53% 48%;
    font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.15rem;
    box-shadow: 0 0 0 3px rgba(185,165,214,.35);
}
.wish-body { flex: 1; min-width: 0; }
.wish-header { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .25rem; }
.wish-name { font-weight: 600; font-size: 1.1rem; color: var(--accent-dark); }
.wish-badge {
    font-family: var(--sans); font-size: .66rem; font-weight: 500; letter-spacing: .08em;
    padding: 2px 9px; border-radius: 999px;
}
.wish-badge.hadir { color: #3f6b3c; background: rgba(143,165,138,.25); }
.wish-badge.tidak { color: #9a3e4f; background: rgba(229,140,150,.2); }
.wish-badge.ragu  { color: #8a6420; background: rgba(201,169,106,.25); }
.wish-message { font-size: 1.06rem; color: var(--text); line-height: 1.55; margin-bottom: .25rem; word-break: break-word; }
.wish-time { font-size: .88rem; color: var(--muted); font-style: italic; }
.wish-empty { text-align: center; color: var(--muted); font-style: italic; padding: 2rem 0; }

/* ════════════════════════════
   FOOTER
════════════════════════════ */
.footer { text-align: center; align-items: center; padding-left: 1.5rem; padding-right: 1.5rem; }
.footer-inner { position: relative; z-index: 2; max-width: 460px; margin: 0 auto; }
.footer-names {
    font-family: var(--script); font-weight: 400;
    font-size: clamp(2.5rem, 11vw, 3.4rem); line-height: 1.2;
    color: var(--accent-dark);
    margin-bottom: .8rem; overflow-wrap: anywhere;
}
.footer-names .amp { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: .48em; color: var(--gold); line-height: 1.2; }
.footer-copy { font-style: italic; color: var(--muted); font-size: 1.14rem; margin-bottom: 1.4rem; }
.footer-credit { margin-top: 2rem; font-family: var(--sans); font-size: .78rem; color: var(--muted); letter-spacing: .04em; }

/* ════════════════════════════
   RESPONSIVE
════════════════════════════ */
@media (max-width: 520px) {
    .container { padding: 0 1.4rem; }
    .couple-flex { gap: .5rem; }
    .portrait-arch { width: 100px; height: 140px; }
    .portrait-arch span { font-size: 2.8rem; }
    .ampersand { font-size: 2.2rem; padding-bottom: 4rem; }
    .parent { font-size: .96rem; }
    .countdown-stamps { gap: .45rem; }
    .map-info { flex-direction: column; align-items: stretch; }
    .btn-map-nav { width: 100%; }
    .rsvp-form-container { padding: 1.8rem 1.2rem 1.6rem; }
}
@media (max-width: 360px) {
    .portrait-arch { width: 86px; height: 122px; }
}
@media (max-height: 700px) {
    .wreath { width: 150px; }
    .intro-names { font-size: 2.5rem; margin-bottom: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .stalk, .sun, .btn-lav::after, .bf-bob, .bf-r, .intro-content, .music-toggle-btn.is-playing::before { animation: none !important; }
    .btn-lav::after { display: none; }
    .bf-layer, .gust-layer { display: none; }
    nav, nav a, nav a::after { transition: none !important; }
}
