/* ═══════════════════════════════════════════════════════════
   ENCHANTED FOREST — moonlit woods, fireflies & wisteria
   Fonts: Cinzel (display) · Parisienne (script) · Cormorant Garamond (body)
═══════════════════════════════════════════════════════════ */
:root {
    --bg:          #0c231b;
    --bg-2:        #0a1d16;
    --surface:     rgba(18, 48, 37, .62);
    --surface-2:   rgba(24, 60, 46, .78);
    --text:        #f4ecd8;
    --muted:       #b9cdb9;
    --gold:        #e9c46a;
    --gold-soft:   #f6dc93;
    --gold-deep:   #c99a3e;
    --moss:        #6fae74;
    --sage:        #9cc5a1;
    --pink:        #f2b6cc;
    --lavender:    #c7b3e6;
    --line:        rgba(233, 196, 106, .32);
    --line-soft:   rgba(233, 196, 106, .16);
    --glow:        0 0 18px rgba(246, 220, 147, .45);
    --display:     'Cinzel', 'Cormorant Garamond', Georgia, serif;
    --script:      'Parisienne', cursive;
    --serif:       'Cormorant Garamond', Georgia, serif;
}

*, *::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.08rem;
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; height: 100vh; }
img { max-width: 100%; display: block; }
em { font-family: var(--serif); font-style: italic; }

.container { width: min(100% - 32px, 760px); margin: 0 auto; position: relative; z-index: 2; }
main { position: relative; z-index: 1; }
main > section { position: relative; padding: 110px 0 120px; overflow: hidden; }

/* fixed forest backdrop */
.forest-bg {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(111, 174, 116, .14), transparent 70%),
        radial-gradient(ellipse 70% 40% at 80% 100%, rgba(199, 179, 230, .08), transparent 70%),
        linear-gradient(180deg, #0f2c22 0%, #0b2119 55%, #08180f 100%);
}

/* ambient canvas */
.ef-particles {
    position: fixed; inset: 0; z-index: 60; pointer-events: none;
    opacity: 0; transition: opacity 1s ease;
}
.ef-particles.on { opacity: 1; }
.ef-particles.over { z-index: 10002; }

/* ════════════════════════════
   SHARED SCENE PIECES (sky, moon, rays, ridges, fog, trees, ferns)
════════════════════════════ */
.sky {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 50% 22%, rgba(246, 220, 147, .16), transparent 70%),
        linear-gradient(180deg, #13263a 0%, #173a3a 30%, #14382b 62%, #0b2119 100%);
}
.stars {
    position: absolute; inset: 0 0 45% 0; opacity: .8;
    background-image:
        radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 28% 8%, #fff 50%, transparent 51%),
        radial-gradient(1.4px 1.4px at 44% 26%, #fff6c9 50%, transparent 51%),
        radial-gradient(1px 1px at 66% 12%, #fff 50%, transparent 51%),
        radial-gradient(1.3px 1.3px at 82% 22%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 92% 6%, #fff6c9 50%, transparent 51%),
        radial-gradient(1px 1px at 6% 36%, #fff 50%, transparent 51%),
        radial-gradient(1.2px 1.2px at 58% 38%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 74% 44%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 36% 48%, #fff 50%, transparent 51%);
    animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .45; } to { opacity: 1; } }

.moon { position: absolute; left: 50%; top: 9%; width: 120px; height: 120px; margin-left: -60px; }
.moon-glow {
    position: absolute; inset: -110%; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 246, 201, .4) 0%, rgba(246, 220, 147, .14) 35%, transparent 65%);
    animation: moonPulse 6s ease-in-out infinite;
}
.moon-disc {
    position: absolute; inset: 0; border-radius: 50%;
    background: radial-gradient(circle at 38% 36%, #fffdf0 0%, #fbefc6 45%, #e9d49a 100%);
    box-shadow: 0 0 40px rgba(255, 246, 201, .7), inset -12px -10px 24px rgba(201, 154, 62, .25);
}
.moon-disc::before, .moon-disc::after {
    content: ""; position: absolute; border-radius: 50%; background: rgba(201, 154, 62, .14);
}
.moon-disc::before { width: 22%; height: 22%; left: 56%; top: 30%; }
.moon-disc::after  { width: 14%; height: 14%; left: 30%; top: 60%; }
@keyframes moonPulse { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }

.rays { position: absolute; inset: 0; overflow: hidden; pointer-events: none; mix-blend-mode: screen; }
.rays i {
    position: absolute; top: -10%; left: 50%; width: 90px; height: 120%;
    background: linear-gradient(180deg, rgba(255, 246, 201, .16), rgba(255, 246, 201, 0) 70%);
    transform-origin: 50% 0; filter: blur(14px);
    animation: rayShift 9s ease-in-out infinite alternate;
}
.rays i:nth-child(1) { transform: rotate(30deg);  width: 120px; margin-left: -60px; animation-delay: -1s; }
.rays i:nth-child(2) { transform: rotate(12deg);  width: 170px; margin-left: -85px; animation-delay: -3s; }
.rays i:nth-child(3) { transform: rotate(-10deg); width: 140px; margin-left: -70px; animation-delay: -5s; }
.rays i:nth-child(4) { transform: rotate(-28deg); width: 110px; margin-left: -55px; animation-delay: -7s; }
@keyframes rayShift { from { opacity: .35; } to { opacity: 1; } }

.ridge { position: absolute; left: -5%; width: 110%; }
.ridge-far { bottom: 22%; height: 34%; fill: #1d4a3a; opacity: .85; }
.ridge-mid { bottom: 8%;  height: 36%; fill: #0f2c21; }

.fog {
    position: absolute; left: -50%; width: 200%; height: 26%; pointer-events: none;
    background:
        radial-gradient(ellipse 25% 50% at 20% 50%, rgba(214, 232, 220, .16), transparent 70%),
        radial-gradient(ellipse 30% 55% at 55% 50%, rgba(214, 232, 220, .12), transparent 70%),
        radial-gradient(ellipse 22% 45% at 85% 50%, rgba(214, 232, 220, .16), transparent 70%);
    animation: fogDrift 26s linear infinite alternate;
}
.fog-1 { bottom: 26%; }
.fog-2 { bottom: 4%; height: 30%; animation-duration: 34s; animation-direction: alternate-reverse; opacity: .9; }
@keyframes fogDrift { from { transform: translateX(0); } to { transform: translateX(22%); } }

.big-tree { position: absolute; bottom: -2%; height: 96%; width: auto; aspect-ratio: 240 / 700; }

.fern { position: absolute; bottom: -4%; width: 34vw; max-width: 200px; height: auto; aspect-ratio: 120 / 320; transform-origin: 50% 100%; animation: fernSway 5s ease-in-out infinite alternate; }
@keyframes fernSway { from { rotate: -4deg; } to { rotate: 4deg; } }
.mush { position: absolute; bottom: 1%; width: 22vw; max-width: 120px; aspect-ratio: 120 / 100; filter: drop-shadow(0 0 14px rgba(242, 182, 204, .55)); }
/* glow pulse: a static strong-glow copy (.mush-glow, behind the real mushroom) fades in/out via opacity
   instead of animating the drop-shadow filter every frame */
.mush.mush-glow { pointer-events: none; opacity: 0; filter: drop-shadow(0 0 18px rgba(242, 182, 204, .75)); }
.mush-glow-wrap { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.mush-glow-wrap .mush.mush-glow { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
    .mush { filter: drop-shadow(0 0 6px rgba(242, 182, 204, .35)); }
    .mush.mush-glow, .mush-glow-wrap { animation: mushGlow 3s ease-in-out infinite alternate; }
    .mush-glow-wrap .mush.mush-glow { animation: none; }
}
@keyframes mushGlow { from { opacity: 0; } to { opacity: 1; } }

.divider { display: block; width: 210px; height: 30px; margin: 14px auto; }

/* ════════════════════════════
   INTRO / COVER
════════════════════════════ */
.intro {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 24px 18px; overflow: hidden;
    background-color: #0b2119;
}
.intro-scene { position: absolute; inset: 0; }
.intro .moon { top: 6%; }
.intro .tree-l { left: -18%; }
.intro .tree-r { right: -18%; transform: scaleX(-1); }
.hang-vine { position: absolute; top: -4%; width: 15vw; max-width: 70px; height: auto; aspect-ratio: 80 / 660; transform-origin: 50% 0; animation: vineSway 6s ease-in-out infinite alternate; }
.hang-vine.v1 { left: 4%; height: 48vh; width: auto; }
.hang-vine.v2 { left: 72%; height: 62vh; width: auto; animation-delay: -2s; }
.hang-vine.v3 { left: 86%; height: 40vh; width: auto; animation-delay: -4s; }
@keyframes vineSway { from { rotate: -3deg; } to { rotate: 3deg; } }
.intro .fern-l  { left: -12%; }
.intro .fern-l2 { left: 6%; width: 26vw; animation-delay: -2s; }
.intro .fern-r  { right: -12%; transform: scaleX(-1); animation-delay: -1s; }
.intro .fern-r2 { right: 6%; width: 26vw; transform: scaleX(-1); animation-delay: -3s; }
.intro .mush-l { left: 16%; }
.intro .mush-r { right: 14%; width: 16vw; transform: scaleX(-1); animation-delay: -1.5s; }

.css-flies i {
    position: absolute; width: 6px; height: 6px; border-radius: 50%;
    background: #fff6c9; box-shadow: 0 0 10px 4px rgba(235, 240, 140, .55);
    animation: fly 9s ease-in-out infinite alternate, blink 2.2s ease-in-out infinite;
}
.css-flies i:nth-child(1)  { left: 12%; top: 30%; }
.css-flies i:nth-child(2)  { left: 82%; top: 24%; animation-delay: -2s, -.4s; }
.css-flies i:nth-child(3)  { left: 22%; top: 62%; animation-delay: -4s, -1s; }
.css-flies i:nth-child(4)  { left: 70%; top: 70%; animation-delay: -1s, -1.4s; }
.css-flies i:nth-child(5)  { left: 46%; top: 82%; animation-delay: -6s, -.8s; }
.css-flies i:nth-child(6)  { left: 90%; top: 52%; animation-delay: -3s, -1.8s; }
.css-flies i:nth-child(7)  { left: 6%;  top: 76%; animation-delay: -5s, -.2s; }
.css-flies i:nth-child(8)  { left: 58%; top: 16%; animation-delay: -7s, -1.2s; }
.css-flies i:nth-child(9)  { left: 34%; top: 42%; animation-delay: -8s, -.6s; width: 4px; height: 4px; }
.css-flies i:nth-child(10) { left: 64%; top: 46%; animation-delay: -2.5s, -1.6s; width: 4px; height: 4px; }
@keyframes fly {
    0%   { transform: translate(0, 0); }
    33%  { transform: translate(26px, -34px); }
    66%  { transform: translate(-18px, -12px); }
    100% { transform: translate(14px, 28px); }
}
@keyframes blink { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }

.intro-content {
    position: relative; z-index: 3; text-align: center;
    width: min(100%, 400px); padding: 34px 26px 34px;
    background: linear-gradient(180deg, rgba(13, 38, 29, .84), rgba(9, 28, 21, .92));
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    border: 1px solid var(--line); border-radius: 200px 200px 22px 22px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .45), inset 0 0 0 6px rgba(233, 196, 106, .05);
    animation: introIn 1.4s .2s cubic-bezier(.16, 1, .3, 1) both;
}
.intro-content::before {
    content: ""; position: absolute; inset: 8px; pointer-events: none;
    border: 1px solid var(--line-soft); border-radius: 192px 192px 16px 16px;
}
@keyframes introIn { from { opacity: 0; transform: translateY(28px) scale(.97); } to { opacity: 1; transform: none; } }

.intro-emblem { position: relative; width: 150px; height: 150px; margin: 0 auto 6px; }
.emblem-wreath { position: absolute; inset: 0; width: 100%; height: 100%; animation: spinSlow 60s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.emblem-mono {
    position: absolute; inset: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; gap: 2px;
    font-family: var(--display); font-size: 1.7rem; color: var(--gold-soft);
    text-shadow: var(--glow);
    background: radial-gradient(circle, rgba(246, 220, 147, .12), transparent 70%);
}
.emblem-mono em { font-size: 1.1rem; color: var(--pink); }
.intro-subtitle { font-family: var(--display); font-size: .72rem; letter-spacing: .4em; text-transform: uppercase; color: var(--sage); }
.intro-names {
    font-family: var(--script); font-weight: 400; color: var(--gold-soft);
    font-size: clamp(2.3rem, 10.5vw, 3.1rem); line-height: 1.2; margin: 6px 0 14px;
    text-shadow: 0 0 22px rgba(246, 220, 147, .35);
}
.intro-names em { font-size: .7em; color: var(--pink); }
.guest-card {
    margin: 0 auto 24px; padding: 12px 14px; border-radius: 14px;
    background: rgba(255, 255, 255, .04); border: 1px dashed var(--line);
}
.to-label { display: block; font-size: .86rem; color: var(--muted); font-style: italic; }
.guest-name { font-family: var(--display); font-weight: 500; font-size: 1.25rem; color: var(--text); letter-spacing: .04em; line-height: 1.4; }

.btn-glow {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 30px; border-radius: 100px; cursor: pointer; text-decoration: none;
    border: 1px solid rgba(255, 246, 201, .6);
    background: linear-gradient(135deg, #f6dc93 0%, #e9c46a 45%, #c99a3e 100%);
    color: #1b3a2a; font-family: var(--display); font-weight: 600; font-size: .8rem;
    letter-spacing: .16em; text-transform: uppercase;
    box-shadow: 0 0 0 0 rgba(246, 220, 147, .5), 0 10px 26px rgba(0, 0, 0, .35);
    transition: transform .25s, box-shadow .25s, filter .25s;
}
.btn-glow:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 0 26px rgba(246, 220, 147, .55), 0 14px 30px rgba(0, 0, 0, .35); }
@media (prefers-reduced-motion: no-preference) {
    .intro .btn-glow { box-shadow: 0 10px 26px rgba(0, 0, 0, .35); }
    /* pulse ring: compositor-only (transform/opacity) instead of animating box-shadow spread */
    .intro .btn-glow::before {
        content: ""; position: absolute; inset: -12px; z-index: -1; pointer-events: none;
        border-radius: 100px; background: rgba(246, 220, 147, .45); opacity: 0;
        animation: btnPulse 2.4s ease-in-out infinite;
    }
    /* hover adds filter (own stacking context) — keep the original shadow pulse there */
    .intro .btn-glow:hover { animation: btnPulseShadow 2.4s ease-in-out infinite; }
    .intro .btn-glow:hover::before { display: none; }
}
@keyframes btnPulse {
    0%, 100% { transform: scale(.907, .652); opacity: 1; }
    50%      { transform: none; opacity: 0; }
}
@keyframes btnPulseShadow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(246, 220, 147, .45), 0 10px 26px rgba(0, 0, 0, .35); }
    50%      { box-shadow: 0 0 0 12px rgba(246, 220, 147, 0), 0 10px 26px rgba(0, 0, 0, .35); }
}
.btn-glow.sm   { padding: 10px 20px; font-size: .72rem; }
.btn-glow.full { width: 100%; }
.btn-glow.sent { background: linear-gradient(135deg, #9cc5a1, #6fae74); }
.btn-glow:disabled { cursor: default; }

/* curtain */
.vine-curtain { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.vine-curtain .cv {
    position: absolute; top: 0; left: var(--x); width: var(--w); height: var(--h);
    transform: translateY(-110%); will-change: transform;
}
.vine-curtain .cv svg { width: 100%; height: 100%; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35)); }
.vine-curtain .cb {
    position: absolute; top: var(--top); width: var(--w); max-width: 900px;
    rotate: var(--r); will-change: transform;
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .4));
}
.vine-curtain .cb-l { left: -12vw; transform: translateX(-105%); }
.vine-curtain .cb-r { right: -12vw; transform: translateX(105%); }
.vine-curtain .cb-r svg { transform: scaleX(-1); }
.vine-curtain .cb svg { width: 100%; height: auto; display: block; }
.intro.opening { pointer-events: none; }

/* ════════════════════════════
   NAVIGATION & MUSIC
════════════════════════════ */
nav {
    position: fixed; bottom: calc(16px + env(safe-area-inset-bottom)); left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 1000; opacity: 0; pointer-events: none;
    width: max-content; max-width: calc(100% - 24px);
    transition: transform .8s cubic-bezier(.16,1,.3,1), opacity .8s cubic-bezier(.16,1,.3,1), bottom .4s ease;
}
nav.visible { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
body:has(#qr-fab) nav#mainNav,
body.has-qr nav#mainNav { bottom: calc(84px + env(safe-area-inset-bottom)); }
.nav-inner {
    background: rgba(10, 30, 23, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    padding: 6px 8px; border-radius: 100px;
    display: flex; align-items: center; gap: 4px;
    border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
nav a {
    color: var(--muted); display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%;
    text-decoration: none; -webkit-tap-highlight-color: transparent;
    transition: color .3s, background-color .3s, box-shadow .3s;
}
nav a svg { width: 20px; height: 20px; }
nav a.active { color: #1b3a2a; background: var(--gold); box-shadow: 0 0 16px rgba(246, 220, 147, .55); }
nav a:hover:not(.active) { color: var(--gold-soft); }
nav a:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }

.music-toggle-btn {
    position: fixed; top: calc(16px + env(safe-area-inset-top)); right: 16px; z-index: 1001;
    width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    background: rgba(10, 30, 23, .8); color: var(--gold-soft); border: 1px solid var(--line);
    box-shadow: 0 0 16px rgba(246, 220, 147, .25); transition: transform .2s;
}
.music-toggle-btn svg { width: 20px; height: 20px; }
.music-toggle-btn:hover { transform: scale(1.08); }
.music-toggle-btn.playing { animation: spinSlow 7s linear infinite; }

/* ════════════════════════════
   SECTION HEADINGS & DÉCOR
════════════════════════════ */
.section-head { text-align: center; margin-bottom: 40px; }
.eyebrow { display: block; font-family: var(--script); font-size: 1.6rem; color: var(--pink); line-height: 1.3; }
.section-title {
    font-family: var(--display); font-weight: 500; letter-spacing: .12em;
    font-size: clamp(1.8rem, 7.5vw, 2.6rem); color: var(--gold-soft); line-height: 1.25;
    text-shadow: 0 0 24px rgba(246, 220, 147, .25);
}
.section-title em { font-size: .8em; color: var(--pink); letter-spacing: 0; }
.section-intro { text-align: center; max-width: 520px; margin: -14px auto 44px; color: var(--muted); font-style: italic; }

.sec-decor { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.sd-vine { position: absolute; top: -40px; height: 300px; width: auto; aspect-ratio: 80 / 660; transform-origin: 50% 0; animation: vineSway 7s ease-in-out infinite alternate; opacity: .9; }
.sd-vine.l { left: 2%; }
.sd-vine.r { right: 2%; animation-delay: -3s; height: 220px; }
.sd-fern { position: absolute; bottom: -30px; height: 220px; width: auto; aspect-ratio: 120 / 320; transform-origin: 50% 100%; animation: fernSway 6s ease-in-out infinite alternate; }
.sd-fern.l { left: -30px; }
.sd-fern.r { right: -30px; }
.sd-fern.back { height: 170px; opacity: .8; animation-delay: -2.5s; }
.sd-fern.l.back { left: 40px; }
.sd-fern.r.back { right: 40px; }

/* ════════════════════════════
   HERO
════════════════════════════ */
main > .hero {
    min-height: 100vh; min-height: 100svh; padding: 110px 18px 120px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hero-scene { position: absolute; inset: 0; overflow: hidden; }
.hero-moon { top: 7%; }
.hero-tree-l { left: -20%; }
.hero-tree-r { right: -20%; }
.hero-garland { position: absolute; top: -10px; left: -4%; width: 108%; height: 90px; }
.hero-garland .fl, .fl { animation: blink 2.4s ease-in-out infinite; }
.hero-fern-l  { left: -14%; }
.hero-fern-l2 { left: 8%; width: 24vw; animation-delay: -2s; }
.hero-fern-r  { right: -14%; animation-delay: -1s; }
.hero-fern-r2 { right: 8%; width: 24vw; animation-delay: -3s; }
.hero-mush { right: 22%; width: 18vw; }

.hero-frame {
    position: relative; z-index: 3; width: min(100%, 380px);
    padding: 70px 24px 40px; text-align: center;
    background: linear-gradient(180deg, rgba(13, 38, 29, .84), rgba(9, 28, 21, .92));
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    border: 1px solid var(--line); border-radius: 190px 190px 22px 22px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}
.hero-frame::before {
    content: ""; position: absolute; inset: 8px; pointer-events: none;
    border: 1px solid var(--line-soft); border-radius: 182px 182px 16px 16px;
}
.hero-wreath {
    position: absolute; top: -52px; left: 50%; width: 112px; height: 112px; margin-left: -56px;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .4));
}
.hero-label { font-family: var(--display); font-size: .72rem; letter-spacing: .38em; text-transform: uppercase; color: var(--sage); }
.hero-names {
    font-family: var(--script); font-weight: 400; color: var(--gold-soft);
    font-size: clamp(2.9rem, 13vw, 4rem); line-height: 1.1; margin-top: 12px;
    text-shadow: 0 0 26px rgba(246, 220, 147, .4);
}
.hero-names .nm { display: block; }
.hero-names .amp { display: block; font-family: var(--serif); font-style: italic; font-size: .5em; color: var(--pink); margin: 2px 0; }
.hero-names .w { display: inline-block; white-space: nowrap; }
.hero-names .ch { display: inline-block; }
.hero-date { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 4px; }
.hd-side {
    font-family: var(--display); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text);
    padding: 6px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 96px;
}
.hd-day { font-family: var(--display); font-size: 2.6rem; color: var(--gold); line-height: 1; text-shadow: var(--glow); }

.scroll-hint {
    position: absolute; bottom: 92px; left: 50%; transform: translateX(-50%); z-index: 3;
    width: 22px; height: 36px; border: 1.5px solid var(--line); border-radius: 12px;
}
.scroll-hint span {
    position: absolute; top: 6px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px;
    border-radius: 2px; background: var(--gold); animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ════════════════════════════
   QUOTE
════════════════════════════ */
main > .quote { padding: 90px 0 100px; text-align: center; }
.quote .container { max-width: 600px; }
.vine-draw { width: 220px; height: 56px; display: block; margin: 0 auto 18px; }
.quote-text { font-style: italic; font-size: 1.22rem; line-height: 1.8; color: var(--text); }
.quote-text .wd { display: inline-block; }
.quote cite {
    display: inline-block; margin-top: 16px; font-style: normal; font-family: var(--display);
    font-size: .76rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
}

/* ════════════════════════════
   COUPLE
════════════════════════════ */
.couple-flex { display: flex; align-items: center; justify-content: center; gap: 28px; }
.couple-item { flex: 1; max-width: 300px; text-align: center; }
.portrait { position: relative; width: 190px; height: 252px; margin: 0 auto 28px; }
.portrait-arch {
    position: absolute; inset: 0; overflow: hidden;
    border-radius: 100px 100px 16px 16px;
    border: 1px solid var(--line);
    outline: 1px solid var(--line-soft); outline-offset: 6px;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 246, 201, .35), transparent 45%),
        linear-gradient(180deg, #1d4a3a 0%, #143528 55%, #0d261c 100%);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .4), inset 0 -30px 50px rgba(0, 0, 0, .3);
}
.portrait-arch::after {
    content: ""; position: absolute; left: -10%; right: -10%; bottom: -6%; height: 40%;
    background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(111, 174, 116, .35), transparent 70%);
}
.portrait-arch span {
    font-family: var(--script); font-size: 6rem; color: var(--gold-soft); line-height: 1;
    text-shadow: 0 0 30px rgba(246, 220, 147, .55);
    position: relative; z-index: 1;
}
.portrait-wis { position: absolute; top: -10px; width: 44px; height: 124px; z-index: 2; transform-origin: 50% 0; animation: vineSway 5s ease-in-out infinite alternate; }
.portrait-wis.l { left: 10px; }
.portrait-wis.r { right: 10px; animation-delay: -2.5s; height: 100px; width: 36px; }
.portrait-mush { position: absolute; bottom: -22px; right: -26px; width: 82px; height: 68px; z-index: 3; filter: drop-shadow(0 0 12px rgba(242, 182, 204, .5)); }
.portrait-mush.flip { right: auto; left: -26px; }
.couple .name {
    font-family: var(--script); font-weight: 400; font-size: 2.5rem; line-height: 1.2;
    color: var(--gold-soft); margin-bottom: 6px; text-shadow: 0 0 20px rgba(246, 220, 147, .3);
}
.couple .parent { color: var(--muted); font-size: 1rem; }
.ampersand { font-family: var(--serif); font-style: italic; font-size: 3.6rem; color: var(--pink); line-height: 1; text-shadow: 0 0 20px rgba(242, 182, 204, .4); }

/* ════════════════════════════
   EVENT
════════════════════════════ */
.countdown { display: flex; justify-content: center; gap: 12px; margin-bottom: 52px; perspective: 400px; }
.time-box {
    position: relative; width: 76px; padding: 16px 0 10px; text-align: center;
    background: linear-gradient(180deg, rgba(246, 220, 147, .14), rgba(14, 40, 31, .7));
    border: 1px solid var(--line); border-radius: 38px 38px 14px 14px;
    box-shadow: 0 0 22px rgba(246, 220, 147, .15), inset 0 0 18px rgba(246, 220, 147, .08);
}
/* lantern glow: static glow on ::after whose opacity pulses (compositor-only) instead of animating box-shadow */
@media (prefers-reduced-motion: no-preference) {
    .time-box { z-index: 0; box-shadow: 0 0 16px rgba(246, 220, 147, .12), inset 0 0 14px rgba(246, 220, 147, .06); }
    .time-box::after {
        content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
        box-shadow: 0 0 30px rgba(246, 220, 147, .24), inset 0 0 22px rgba(246, 220, 147, .09);
        opacity: 0; animation: lantern 3.2s ease-in-out infinite;
    }
}
.time-box:nth-child(2)::after { animation-delay: -.8s; }
.time-box:nth-child(3)::after { animation-delay: -1.6s; }
.time-box:nth-child(4)::after { animation-delay: -2.4s; }
.time-box::before {
    content: ""; position: absolute; top: -14px; left: 50%; width: 1px; height: 14px; background: var(--line);
}
@keyframes lantern { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.time-box span { display: block; font-family: var(--display); font-size: 1.85rem; font-weight: 500; color: var(--gold-soft); line-height: 1.1; text-shadow: var(--glow); }
.time-box label { font-family: var(--display); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.event-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.glass-card {
    position: relative; overflow: hidden;
    background: var(--surface); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--line); border-radius: 24px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 246, 201, .08);
}
.wipe-orb {
    position: absolute; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; z-index: 5; pointer-events: none;
    background: radial-gradient(circle, rgba(255, 250, 210, 1) 0%, rgba(235, 240, 140, .6) 25%, rgba(235, 240, 140, 0) 70%);
}
.event-card { text-align: center; padding: 38px 22px 34px; }
.card-fern { position: absolute; bottom: -24px; width: 70px; height: 186px; opacity: .55; z-index: 0; transform-origin: 50% 100%; }
.card-fern.l { left: -18px; rotate: -18deg; }
.card-fern.r { right: -18px; rotate: 18deg; }
.card-content { position: relative; z-index: 1; }
.event-icon {
    display: inline-flex; width: 52px; height: 52px; border-radius: 50%; align-items: center; justify-content: center;
    color: var(--gold-soft); border: 1px solid var(--line); background: rgba(246, 220, 147, .08);
    box-shadow: 0 0 20px rgba(246, 220, 147, .2); margin-bottom: 12px;
}
.event-icon svg { width: 24px; height: 24px; }
.event-title { font-family: var(--display); font-weight: 500; font-size: 1.4rem; letter-spacing: .1em; color: var(--gold-soft); }
.event-date { font-size: 1.12rem; font-weight: 500; color: var(--text); margin-top: 6px; }
.event-time {
    display: inline-block; margin: 8px 0 12px; padding: 3px 14px; border-radius: 100px;
    background: rgba(242, 182, 204, .12); color: var(--pink); font-family: var(--display); font-size: .82rem; letter-spacing: .08em;
}
.event-location { color: var(--muted); font-style: italic; }

/* ════════════════════════════
   MAP
════════════════════════════ */
.map-info { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; flex-wrap: wrap; position: relative; z-index: 1; }
.map-detail { display: flex; align-items: flex-start; gap: 12px; flex: 1; min-width: 200px; }
.map-icon {
    flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(246, 220, 147, .1); color: var(--gold-soft); border: 1px solid var(--line);
}
.map-venue { font-family: var(--display); font-size: 1.02rem; letter-spacing: .05em; color: var(--gold-soft); line-height: 1.4; }
.map-address { font-size: .98rem; color: var(--muted); line-height: 1.55; }
.leaflet-map { height: 300px; width: 100%; z-index: 1; filter: saturate(.85) brightness(.92); }
.map-embed-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    height: 220px; color: var(--gold-soft); text-decoration: none;
}

/* ════════════════════════════
   GALLERY
════════════════════════════ */
.gallery-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; }
.gallery-featured, .gallery-grid-item, .gallery-extra-item {
    position: relative; overflow: hidden; cursor: pointer;
    border: 1px solid var(--line); background: #133528;
}
.gallery-featured { border-radius: 140px 140px 14px 14px; min-height: 340px; }
.gallery-grid-side { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery-grid-item { border-radius: 14px; aspect-ratio: 3 / 4; }
.gallery-grid-item:nth-child(1) { border-top-left-radius: 60px; }
.gallery-grid-item:nth-child(2) { border-top-right-radius: 60px; }
.gallery-featured img, .gallery-grid-item img, .gallery-extra-item img {
    width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.16, 1, .3, 1);
}
.gallery-featured:hover img, .gallery-grid-item:hover img, .gallery-extra-item:hover img { transform: scale(1.06); }
.gallery-row-extra { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.gallery-extra-item { border-radius: 14px; aspect-ratio: 1; }
.placeholder {
    cursor: default; display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 246, 201, .14), transparent 55%),
        linear-gradient(180deg, #1a4535, #0f2a20);
}
.gallery-featured.placeholder svg { width: 38%; height: 70%; opacity: .55; }
.gallery-grid-item.placeholder svg { width: 32%; height: 62%; opacity: .7; }

.gallery-lightbox {
    display: none; position: fixed; inset: 0; z-index: 10000; opacity: 0;
    align-items: center; justify-content: center;
    background: rgba(5, 16, 11, .94); transition: opacity .3s;
}
.lb-img-wrap img { max-width: 90vw; max-height: 82vh; border-radius: 14px; object-fit: contain; border: 1px solid var(--line); }
.lb-close, .lb-prev, .lb-next {
    position: absolute; background: rgba(246, 220, 147, .14); color: var(--gold-soft); border: none; cursor: pointer;
    width: 46px; height: 46px; border-radius: 50%; font-size: 1.4rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
}
.lb-close { top: 20px; right: 20px; font-size: 1.1rem; }
.lb-prev  { left: 14px; top: 50%; transform: translateY(-50%); font-size: 2rem; }
.lb-next  { right: 14px; top: 50%; transform: translateY(-50%); font-size: 2rem; }
.lb-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: var(--gold-soft); font-family: var(--display); font-size: .8rem; letter-spacing: .15em; }

/* ════════════════════════════
   GIFT SECTION OVERRIDE (dark forest)
════════════════════════════ */
#gift-section {
    position: relative; z-index: 2;
    background: radial-gradient(ellipse 75% 40% at 50% 50%, rgba(246, 220, 147, .08), transparent 70%), transparent !important;
    padding: 90px 0 !important;
}
#gift-section .gs-heading h2 {
    color: var(--gold-soft) !important; font-family: var(--display) !important; font-weight: 500 !important;
    letter-spacing: .1em; font-size: clamp(1.6rem, 6.5vw, 2.2rem) !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(--gold) !important; }
#gift-section .gs-bank-card { color: #2b2418; }
#gift-section .gs-card, #gift-section .gs-bank-card { border-radius: 20px !important; box-shadow: 0 0 0 1px var(--line), 0 14px 30px rgba(0, 0, 0, .35) !important; }

/* ════════════════════════════
   WISHES / RSVP
════════════════════════════ */
.rsvp-card { padding: 30px 24px; margin-bottom: 34px; }
.ef-form { position: relative; z-index: 1; }
.ef-form .input-row { margin-bottom: 18px; }
.ef-form label {
    display: block; font-family: var(--display); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
    color: var(--sage); margin-bottom: 8px;
}
.ef-form input[type="text"], .ef-form textarea {
    width: 100%; padding: 13px 16px; border-radius: 14px;
    border: 1px solid var(--line); background: rgba(5, 18, 12, .45);
    font-family: var(--serif); font-size: 1.05rem; color: var(--text);
    transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.ef-form input::placeholder, .ef-form textarea::placeholder { color: rgba(185, 205, 185, .55); font-style: italic; }
.ef-form input:focus, .ef-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(233, 196, 106, .14), 0 0 18px rgba(246, 220, 147, .15); }
.attend-options { display: flex; gap: 10px; flex-wrap: wrap; }
.attend-opt { margin: 0 !important; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; font-family: var(--serif) !important; }
.attend-opt input { position: absolute; opacity: 0; pointer-events: none; }
.attend-opt span {
    display: inline-block; padding: 7px 18px; border-radius: 100px; font-size: 1rem;
    border: 1px solid var(--line); background: rgba(5, 18, 12, .35); color: var(--text); transition: .25s;
}
.attend-opt input:checked + span { background: var(--gold); border-color: var(--gold); color: #1b3a2a; box-shadow: 0 0 14px rgba(246, 220, 147, .4); }
.attend-opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.wishes-list {
    display: flex; flex-direction: column; gap: 14px;
    max-height: 520px; overflow-y: auto; padding: 4px 4px 4px 0;
    scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.wish-item {
    display: flex; gap: 14px; padding: 18px; border-radius: 18px;
    background: var(--surface); border: 1px solid var(--line-soft);
}
.wish-avatar {
    flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 40% 35%, #f6dc93, #c99a3e); color: #1b3a2a;
    font-family: var(--display); font-weight: 600; font-size: 1.05rem;
    box-shadow: 0 0 14px rgba(246, 220, 147, .35);
}
.wish-body { flex: 1; min-width: 0; }
.wish-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wish-name { font-family: var(--display); font-size: .92rem; letter-spacing: .04em; color: var(--gold-soft); }
.wish-badge { font-size: .7rem; padding: 1px 10px; border-radius: 100px; font-family: var(--display); letter-spacing: .05em; }
.wish-badge.hadir { background: rgba(156, 197, 161, .18); color: #b9e0bd; }
.wish-badge.tidak { background: rgba(242, 182, 204, .16); color: var(--pink); }
.wish-badge.ragu  { background: rgba(233, 196, 106, .16); color: var(--gold-soft); }
.wish-message { margin: 6px 0 4px; line-height: 1.6; word-wrap: break-word; }
.wish-time { font-size: .82rem; color: var(--muted); font-style: italic; }
.wish-empty { text-align: center; padding: 30px; color: var(--muted); font-style: italic; font-size: 1.1rem; }

/* ════════════════════════════
   FOOTER
════════════════════════════ */
.footer { position: relative; overflow: hidden; text-align: center; padding: 120px 20px 300px; z-index: 1; }
.footer-scene { position: absolute; inset: 0; pointer-events: none; }
.footer-scene .moon { top: auto; bottom: 10%; width: 200px; height: 200px; margin-left: -100px; opacity: .85; }
.footer-scene .ridge-far { bottom: 8%; height: 30%; }
.footer-scene .ridge-mid { bottom: -2%; height: 28%; }
.footer-inner { position: relative; z-index: 2; max-width: 520px; margin: 0 auto; }
.ef-seal { position: relative; width: 130px; height: 130px; margin: 0 auto 10px; }
.ef-seal svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ef-seal span {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-family: var(--display); font-size: 1.5rem; color: var(--gold-soft); text-shadow: var(--glow);
}
.ef-seal em { font-size: 1rem; color: var(--pink); margin: 0 2px; }
.footer .eyebrow { font-size: 2.4rem; color: var(--gold-soft); }
.footer-copy { color: var(--muted); margin: 8px auto 22px; font-style: italic; }
.footer-names { font-family: var(--display); font-weight: 500; font-size: 1.5rem; letter-spacing: .1em; color: var(--text); }
.footer-names em { color: var(--pink); letter-spacing: 0; }
.footer-credit { margin-top: 30px; font-size: .82rem; color: var(--muted); opacity: .7; letter-spacing: .06em; }

/* ════════════════════════════
   RESPONSIVE
════════════════════════════ */
@media (min-width: 900px) {
    .intro .tree-l { left: -6%; }
    .intro .tree-r { right: -6%; }
    .hero-tree-l { left: -4%; }
    .hero-tree-r { right: -4%; }
    .fern { width: 200px; }
    .mush { width: 120px; }
    .hang-vine.v2 { left: 66%; }
}
@media (max-width: 640px) {
    main > section { padding: 96px 0 110px; }
    .couple-flex { flex-direction: column; gap: 22px; }
    .ampersand { font-size: 3rem; }
    .event-grid { grid-template-columns: 1fr; gap: 22px; }
    .countdown { gap: 8px; }
    .time-box { width: 70px; }
    .gallery-layout { grid-template-columns: 1fr; }
    .gallery-featured { min-height: 300px; }
    .gallery-row-extra { grid-template-columns: repeat(2, 1fr); }
    .map-info { flex-direction: column; align-items: stretch; }
    .hd-side { min-width: 82px; font-size: .7rem; }
    .sd-vine { height: 210px; }
    .sd-vine.r { height: 160px; }
    .sd-fern { height: 170px; }
    .sd-fern.back { height: 130px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .ef-particles, .vine-curtain { display: none; }
}
