/* ═══════════════════════════════════════════════════════════
   ART NOUVEAU PEACOCK — Vellora Template
   Mucha-poster elegance · stained glass · peacock feathers
═══════════════════════════════════════════════════════════ */
:root {
    --paper:     #f4ecdc;
    --paper-2:   #efe4cf;
    --ivory:     #fffaf0;
    --emerald:   #1f4a3e;
    --emerald-d: #12302a;
    --sage:      #8fa58c;
    --teal:      #1f7a7a;
    --peacock:   #1f8a84;
    --blue:      #2a5c8f;
    --gold:      #b8924a;
    --gold-l:    #e3c98a;
    --gold-d:    #8a6a2c;
    --plum:      #4a2540;
    --plum-l:    #6b3a5e;
    --text:      #2f2a22;
    --muted:     #7a6e5c;
    --display:   'Cinzel Decorative', 'Cinzel', serif;
    --caps:      'Cinzel', serif;
    --serif:     'Cormorant Garamond', Georgia, serif;
    --script:    'Italianno', cursive;
    --sans:      'Jost', system-ui, sans-serif;
    --foil:      linear-gradient(100deg, #8a6a2c 15%, #e8cf8f 38%, #b8924a 50%, #f3e2b0 62%, #8a6a2c 85%);
    --shadow:    0 22px 50px rgba(31, 74, 62, .14);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--sans);
    font-weight: 300;
    color: var(--text);
    line-height: 1.75;
    background: var(--paper);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; height: 100vh; }
img { max-width: 100%; display: block; }
main { position: relative; }
.container { position: relative; z-index: 2; width: min(100% - 32px, 860px); margin: 0 auto; }
section { position: relative; padding: 104px 0; overflow: hidden; }

/* shared paper texture */
section:not(.hero) { background: radial-gradient(ellipse closest-side at 50% 50%, rgba(255, 251, 240, .85) 0%, rgba(255, 251, 240, 0) 100%); }
body, .cv-paper, .h-paper {
    background:
        radial-gradient(ellipse at 50% 18%, rgba(255, 251, 240, .95) 0%, transparent 55%),
        radial-gradient(ellipse at 8% 92%, rgba(143, 165, 140, .20) 0%, transparent 45%),
        radial-gradient(ellipse at 94% 88%, rgba(107, 58, 94, .10) 0%, transparent 45%),
        repeating-linear-gradient(0deg, rgba(138, 106, 44, .025) 0 1px, transparent 1px 4px),
        var(--paper);
}

/* gold-foil text */
.foil-text {
    background: var(--foil); background-size: 250% 100%;
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    animation: foil 7s linear infinite;
}
@keyframes foil { from { background-position: 120% 0; } to { background-position: -130% 0; } }
@keyframes spin  { to { transform: rotate(360deg); } }
@keyframes spinR { to { transform: rotate(-360deg); } }
@keyframes sway  { from { transform: rotate(-1.8deg); } to { transform: rotate(1.8deg); } }
@keyframes flutter { from { transform: rotate(-1.4deg) scaleY(1); } to { transform: rotate(1.4deg) scaleY(.985); } }

/* mosaic tile band */
.mosaic-band {
    height: 18px; position: relative; z-index: 3;
    border-top: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='15'><rect width='32' height='15' fill='%23fffaf0'/><rect x='3' y='3.5' width='8' height='8' fill='%231f8a84' transform='rotate(45 7 7.5)'/><rect x='19' y='3.5' width='8' height='8' fill='%23d9b45f' transform='rotate(45 23 7.5)'/><circle cx='15' cy='7.5' r='1.6' fill='%236b3a5e'/><circle cx='31' cy='7.5' r='1.6' fill='%236b3a5e'/></svg>") repeat-x center / 32px 15px;
}

/* ════════════════════════════
   BUTTON
════════════════════════════ */
.btn-nouveau {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 34px; border: none; border-radius: 100px; cursor: pointer;
    background: linear-gradient(135deg, #2a6152 0%, var(--emerald) 55%, var(--emerald-d) 100%);
    color: var(--gold-l); text-decoration: none;
    font-family: var(--caps); font-weight: 500; font-size: .8rem; letter-spacing: .24em; text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(227, 201, 138, .55), inset 0 0 0 4px var(--emerald), inset 0 0 0 5px rgba(227, 201, 138, .35),
                0 0 0 1.5px var(--gold), 0 14px 30px rgba(18, 48, 42, .3);
    transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s;
}
.btn-nouveau::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255, 244, 210, .35), transparent);
    transform: skewX(-20deg); animation: btnShine 4.5s ease-in-out infinite;
}
@keyframes btnShine { 0%, 60% { transform: translateX(0) skewX(-20deg); } 100% { transform: translateX(475%) skewX(-20deg); } }
.btn-nouveau:hover  { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(227, 201, 138, .7), inset 0 0 0 4px var(--emerald), inset 0 0 0 5px rgba(227, 201, 138, .45), 0 0 0 1.5px var(--gold-l), 0 18px 36px rgba(18, 48, 42, .36); }
.btn-nouveau:active { transform: translateY(0); }
.btn-nouveau.sm   { padding: 11px 22px; font-size: .7rem; letter-spacing: .18em; }
.btn-nouveau.full { width: 100%; }
.btn-nouveau.sent { background: linear-gradient(135deg, #b8924a, #8a6a2c); color: var(--ivory); }
.btn-nouveau:disabled { cursor: default; }

/* ════════════════════════════
   INTRO — stained-glass window
════════════════════════════ */
.intro {
    position: fixed; inset: 0; z-index: 9999; overflow-x: hidden; overflow-y: auto;
    scrollbar-width: none;
}
.intro::-webkit-scrollbar { display: none; }
.cv-paper { position: fixed; inset: 0; }
.cv-paper::after {
    content: ""; position: absolute; inset: 10px;
    border: 1px solid rgba(184, 146, 74, .55);
    box-shadow: inset 0 0 0 5px transparent, inset 0 0 0 6px rgba(184, 146, 74, .3);
}
.cv-corner { position: fixed; width: 92px; height: 92px; z-index: 2; pointer-events: none; }
.cv-corner.tl { top: 8px; left: 8px; }
.cv-corner.tr { top: 8px; right: 8px; transform: scaleX(-1); }
.cv-corner.bl { bottom: 8px; left: 8px; transform: scaleY(-1); }
.cv-corner.br { bottom: 8px; right: 8px; transform: scale(-1, -1); }

.cv-inner {
    position: relative; z-index: 3; min-height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 16px; padding: 40px 22px 34px; text-align: center;
}
.cv-eyebrow {
    font-family: var(--caps); font-size: .7rem; letter-spacing: .45em; text-transform: uppercase;
    color: var(--teal); padding-left: .45em;
}
.cv-names {
    font-family: var(--script); font-weight: 400; line-height: 1.05;
    font-size: clamp(2.9rem, 12vw, 4rem); margin-top: 2px;
    background: var(--foil); background-size: 250% 100%;
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    animation: foil 7s linear infinite; padding: 0 .1em;
}
.cv-names em {
    font-family: var(--serif); font-style: italic; font-size: .5em;
    -webkit-text-fill-color: var(--teal); padding: 0 .1em;
}

.cv-window {
    position: relative; flex: 0 0 auto;
    height: clamp(300px, 50vh, 520px); aspect-ratio: 300 / 460;
    perspective: 1500px;
    filter: drop-shadow(0 22px 34px rgba(18, 48, 42, .28));
}
.cv-light {
    position: absolute; left: 4.7%; right: 4.7%; top: 3%; bottom: 3%;
    border-radius: 999px 999px 0 0; opacity: 0;
    background: radial-gradient(ellipse at 50% 35%, #fffef6 0%, #fbeab8 40%, #e9c77c 75%, #c99a4f 100%);
    box-shadow: 0 0 80px 30px rgba(251, 234, 184, .7);
}
.leaf {
    position: absolute; top: 0; bottom: 0; width: 50%; overflow: hidden;
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.leaf-l { left: 0;  transform-origin: 0% 50%; }
.leaf-r { right: 0; transform-origin: 100% 50%; }
.leaf-in { width: 200%; height: 100%; }
.leaf-r .leaf-in { margin-left: -100%; }
.leaf-in svg { width: 100%; height: 100%; display: block; overflow: visible; }

.cv-glint {
    position: absolute; left: 4.7%; right: 4.7%; top: 3%; bottom: 3%;
    border-radius: 999px 999px 0 0; overflow: hidden; pointer-events: none; z-index: 2;
}
.cv-glint i { position: absolute; top: 0; bottom: 0; left: 0; width: 45%; transform: translateX(-160%); }
.cv-glint i::before {
    content: ""; position: absolute; inset: -10% 0;
    background: linear-gradient(90deg, transparent, rgba(255, 252, 235, .75), transparent);
    transform: skewX(-18deg); mix-blend-mode: screen;
}

.cv-cartouche {
    position: absolute; left: 29%; width: 42%; top: 32.6%; margin-top: -21%;
    aspect-ratio: 1; z-index: 3;
    display: flex; align-items: center; justify-content: center;
    filter: drop-shadow(0 6px 14px rgba(18, 48, 42, .35));
}
.cv-cartouche svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cv-cartouche .mono, .ft-mono span {
    position: relative; font-family: var(--display); font-weight: 700;
    font-size: clamp(1.4rem, 4.2vh, 2.3rem); color: var(--emerald); letter-spacing: .02em;
}
.cv-cartouche .mono i, .ft-mono span i {
    font-family: var(--serif); font-style: italic; font-weight: 500; font-size: .7em; color: var(--gold); margin: 0 .08em;
}

.cv-flower { position: absolute; bottom: -14px; height: 58%; aspect-ratio: 90 / 280; z-index: 4; pointer-events: none; overflow: visible; }
.cv-flower.l { left: -20%; }
.cv-flower.r { right: -20%; }
.cv-flower use, .h-flower use, .p-flower use {
    transform-box: fill-box; transform-origin: 50% 100%;
    animation: sway 5.5s ease-in-out infinite alternate;
}
.cv-flower.r use, .h-flower.f-r1 use, .h-flower.f-l2 use { animation-delay: -2.7s; }

.cv-bottom { display: flex; flex-direction: column; align-items: center; }
.to-label { font-size: .76rem; color: var(--muted); letter-spacing: .04em; }
.guest-name {
    font-family: var(--serif); font-weight: 600; font-size: 1.55rem; line-height: 1.3;
    color: var(--plum); margin: 2px 0 16px;
}

/* ════════════════════════════
   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 .9s cubic-bezier(.16, 1, .3, 1), opacity .9s 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(255, 250, 240, .92);
    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 rgba(184, 146, 74, .6);
    box-shadow: inset 0 0 0 3px rgba(255, 250, 240, .9), inset 0 0 0 4px rgba(184, 146, 74, .25), 0 12px 30px rgba(18, 48, 42, .18);
}
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 .4s, background-color .4s;
}
nav a svg { width: 20px; height: 20px; }
nav a.active { color: var(--gold-l); background: var(--emerald); box-shadow: inset 0 0 0 1px rgba(227, 201, 138, .5); }
nav a:hover:not(.active) { color: var(--teal); }
nav a:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }

.music-toggle-btn {
    position: fixed; top: calc(16px + env(safe-area-inset-top)); right: 16px; z-index: 1001;
    width: 46px; height: 46px; border-radius: 50%; cursor: pointer; border: none;
    display: flex; align-items: center; justify-content: center;
    background: var(--emerald); color: var(--gold-l);
    box-shadow: inset 0 0 0 1px rgba(227, 201, 138, .6), 0 0 0 1.5px var(--gold), 0 8px 20px rgba(18, 48, 42, .3);
}
.music-toggle-btn svg { width: 19px; height: 19px; }
.music-toggle-btn::before {
    content: ""; position: absolute; inset: -6px; border-radius: 50%;
    border: 1px dashed rgba(184, 146, 74, .8); opacity: 0; transition: opacity .4s;
}
.music-toggle-btn.playing::before { opacity: 1; animation: spin 12s linear infinite; }

/* ════════════════════════════
   HERO — Mucha poster
════════════════════════════ */
.hero {
    min-height: 100vh; min-height: 100svh; padding: 0;
    --fan: 640px; --halo: 340px;
}
.h-paper { position: absolute; inset: 0; }
.h-stage { position: absolute; left: 50%; top: 44%; width: 0; height: 0; z-index: 2; }
.h-rays { position: absolute; width: 980px; height: 980px; left: -490px; top: -490px; pointer-events: none; }
.h-rays::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, rgba(217, 180, 95, .16) 0deg 3deg, transparent 3deg 10deg);
    -webkit-mask: radial-gradient(circle, #000 18%, transparent 68%); mask: radial-gradient(circle, #000 18%, transparent 68%);
    animation: spin 160s linear infinite;
}
.h-fan {
    position: absolute; width: var(--fan); height: var(--fan);
    left: calc(var(--fan) / -2); top: calc(var(--fan) / -2); overflow: visible;
}
.fan-layer.back { opacity: .7; }
.fan-f use { transform-box: fill-box; transform-origin: 50% 100%; animation: flutter 4.6s ease-in-out infinite alternate; }
.h-halo {
    position: absolute; width: var(--halo); height: var(--halo);
    left: calc(var(--halo) / -2); top: calc(var(--halo) / -2);
    filter: drop-shadow(0 10px 30px rgba(138, 106, 44, .22));
}
.h-halo svg, .p-halo svg, .ft-halo svg { width: 100%; height: 100%; display: block; overflow: visible; }
.halo-a { transform-origin: 200px 200px; animation: spin 110s linear infinite; }
.halo-b { transform-origin: 200px 200px; animation: spinR 160s linear infinite; }
.halo-c { transform-origin: 200px 200px; animation: spin 240s linear infinite; }

.h-content {
    position: absolute; left: -140px; width: 280px; top: -150px; height: 300px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
}
.h-eyebrow {
    font-family: var(--caps); font-size: .62rem; letter-spacing: .42em; text-transform: uppercase;
    color: var(--teal); padding-left: .42em; margin-bottom: 4px;
}
.h-names { font-weight: 400; display: flex; flex-direction: column; align-items: center; line-height: .98; }
.h-names .nm {
    font-family: var(--script); font-size: 3.7rem; white-space: nowrap; color: #9a7432;
    padding: 0 .3em;
}
.h-names .nm .ch { display: inline-block; }
.h-names.foil .nm {
    background: var(--foil); background-size: 250% 100%;
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    animation: foil 7s linear infinite;
}
.h-names .amp { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--teal); margin: -2px 0; }
.h-divider { width: 168px; height: 22px; margin-top: 10px; }

.h-under {
    position: absolute; left: -120px; width: 240px; top: calc(var(--halo) / 2 + 22px);
    text-align: center; padding: 10px 14px 12px;
    background: rgba(255, 250, 240, .9);
    border: 1px solid rgba(184, 146, 74, .7);
    box-shadow: inset 0 0 0 4px rgba(255, 250, 240, .9), inset 0 0 0 5px rgba(184, 146, 74, .3), 0 10px 26px rgba(31, 74, 62, .12);
    border-radius: 60px 60px 6px 6px;
}
.h-date { font-family: var(--caps); font-size: 1.12rem; letter-spacing: .2em; color: var(--plum); line-height: 1.4; }
.h-day  { font-family: var(--serif); font-style: italic; font-size: 1.02rem; color: var(--muted); line-height: 1.3; }

.h-flower { position: absolute; bottom: 14px; aspect-ratio: 90 / 280; z-index: 1; pointer-events: none; overflow: visible; }
.f-l1 { left: -18px;  height: min(46vh, 480px); }
.f-l2 { left: 30px;   height: min(30vh, 320px); bottom: 4px; opacity: .92; }
.f-r1 { right: -18px; height: min(46vh, 480px); }
.f-r2 { right: 30px;  height: min(30vh, 320px); bottom: 4px; opacity: .92; }

.h-corner, .sec-corner { position: absolute; width: 96px; height: 96px; z-index: 3; pointer-events: none; overflow: visible; }
.h-corner.tl { top: 12px; left: 12px; }
.h-corner.tr { top: 12px; right: 12px; transform: scaleX(-1); }
.h-corner.bl { bottom: 24px; left: 12px; transform: scaleY(-1); }
.h-corner.br { bottom: 24px; right: 12px; transform: scale(-1, -1); }
.h-mosaic { position: absolute; left: 0; right: 0; bottom: 0; }

.scroll-hint {
    position: absolute; bottom: 40px; left: 50%; margin-left: -11px; z-index: 4;
    width: 22px; height: 36px; border: 1.5px solid var(--gold); 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(--teal); animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ════════════════════════════
   SECTION HEAD
════════════════════════════ */
.section-head { text-align: center; margin-bottom: 44px; }
.sh-eye { width: 38px; height: 44px; display: block; margin: 0 auto 10px; filter: drop-shadow(0 4px 6px rgba(31, 74, 62, .2)); }
.section-title {
    font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 7vw, 2.4rem);
    color: var(--emerald); letter-spacing: .08em; line-height: 1.2;
}
.sh-divider { width: 220px; height: 28px; display: block; margin: 10px auto 6px; }
.section-sub { font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: var(--plum-l); }
.section-intro { text-align: center; max-width: 540px; margin: -20px auto 48px; color: var(--muted); font-size: .94rem; }

/* corner ornaments for panels */
.pc { position: absolute; width: 74px; height: 74px; z-index: 3; pointer-events: none; overflow: visible; }
.pc.tl { top: -8px; left: -8px; }
.pc.tr { top: -8px; right: -8px; transform: scaleX(-1); }
.pc.bl { bottom: -8px; left: -8px; transform: scaleY(-1); }
.pc.br { bottom: -8px; right: -8px; transform: scale(-1, -1); }
.sec-corner { width: 120px; height: 120px; opacity: .9; z-index: 1; }
.sec-corner.tl { top: 18px; left: 10px; }
.sec-corner.tr { top: 18px; right: 10px; transform: scaleX(-1); }

.nv-panel {
    position: relative; background: var(--ivory);
    border: 1px solid rgba(184, 146, 74, .75);
    box-shadow: inset 0 0 0 7px var(--ivory), inset 0 0 0 8px rgba(184, 146, 74, .35), var(--shadow);
}

/* ════════════════════════════
   QUOTE
════════════════════════════ */
.quote { padding: 90px 0; }
.quote-panel { max-width: 620px; margin: 0 auto; text-align: center; padding: 54px 34px 44px; }
.quote-eye { width: 44px; height: 52px; display: block; margin: 0 auto 18px; }
.quote-text { font-family: var(--serif); font-style: italic; font-size: 1.22rem; line-height: 1.8; color: var(--text); }
.quote-text .w { display: inline-block; }
.quote cite {
    display: block; margin-top: 18px; font-style: normal; font-family: var(--caps);
    font-size: .74rem; letter-spacing: .32em; color: var(--teal);
}

/* ════════════════════════════
   COUPLE
════════════════════════════ */
.couple-flex { display: flex; align-items: center; justify-content: center; gap: 30px; }
.couple-item { flex: 1; max-width: 320px; text-align: center; }
.portrait { position: relative; width: 240px; height: 320px; margin: 0 auto 30px; }
.p-halo { position: absolute; width: 290px; height: 290px; left: -25px; top: -14px; }
.p-halo .halo-disc { fill: rgba(255, 250, 240, .6); }
.p-arch {
    position: absolute; left: 35px; top: 40px; width: 170px; height: 262px;
    border-radius: 999px 999px 8px 8px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(ellipse at 50% 25%, rgba(255, 244, 210, .35) 0%, transparent 55%),
        linear-gradient(170deg, #2f6b4f 0%, var(--peacock) 55%, var(--blue) 100%);
    box-shadow: 0 0 0 3px var(--ivory), 0 0 0 4.5px var(--gold), 0 0 0 9px rgba(255, 250, 240, .8), 0 0 0 10px rgba(184, 146, 74, .4), 0 22px 44px rgba(18, 48, 42, .3);
}
.p-arch::before {
    content: ""; position: absolute; inset: 0; opacity: .18;
    background: repeating-conic-gradient(from 0deg at 50% 0%, #fff 0 2deg, transparent 2deg 9deg);
}
.p-arch span {
    position: relative; font-family: var(--script); font-size: 8rem; line-height: 1;
    background: var(--foil); background-size: 250% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
    animation: foil 7s linear infinite;
}
.p-flower { position: absolute; bottom: -16px; height: 190px; aspect-ratio: 90 / 280; z-index: 2; overflow: visible; }
.p-flower.l { left: -6px; }
.p-flower.r { right: -6px; }
.couple .name {
    font-family: var(--script); font-weight: 400; font-size: 3.4rem; line-height: 1.1;
    color: var(--gold-d); margin-bottom: 4px;
}
.couple .parent { font-size: .9rem; color: var(--muted); }
.couple-amp { position: relative; width: 92px; height: 92px; flex: 0 0 92px; display: flex; align-items: center; justify-content: center; }
.couple-amp svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.couple-amp span { position: relative; font-family: var(--serif); font-style: italic; font-size: 2.3rem; color: var(--teal); }

/* ════════════════════════════
   EVENT
════════════════════════════ */
.event { background:
    radial-gradient(ellipse at 50% 0%, rgba(31, 122, 122, .10) 0%, transparent 60%),
    repeating-linear-gradient(0deg, rgba(138, 106, 44, .025) 0 1px, transparent 1px 4px),
    var(--paper-2) !important; }
.countdown { display: flex; justify-content: center; gap: 12px; margin-bottom: 56px; }
.cd-box { position: relative; width: 78px; height: 100px; }
.cd-frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 8px 14px rgba(31, 74, 62, .12)); }
.cd-num {
    position: absolute; left: 0; right: 0; top: 30%; height: 2.3rem; overflow: hidden;
    font-family: var(--caps); font-weight: 500; font-size: 1.8rem; line-height: 2.3rem; color: var(--emerald); text-align: center;
}
.cd-num i { position: absolute; inset: 0; font-style: normal; }
.cd-num i.in  { animation: rollIn .65s cubic-bezier(.2, .8, .2, 1) both; }
.cd-num i.out { animation: rollOut .65s cubic-bezier(.4, 0, .6, 1) both; }
@keyframes rollIn  { from { transform: translateY(105%); opacity: 0; filter: blur(3px); } to { transform: none; opacity: 1; filter: none; } }
@keyframes rollOut { from { transform: none; opacity: 1; } to { transform: translateY(-105%); opacity: 0; filter: blur(3px); } }
.cd-box label {
    position: absolute; left: 0; right: 0; bottom: 16px; text-align: center;
    font-family: var(--caps); font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; color: var(--teal);
}

.event-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 34px; }
.glass-card { position: relative; filter: drop-shadow(0 20px 30px rgba(18, 48, 42, .15)); }
.lunette { display: block; width: 100%; height: auto; overflow: visible; }
.gc-body {
    position: relative; margin: -1px 0 0; padding: 24px 24px 32px; text-align: center;
    background: var(--ivory);
    border: 2px solid #c9a45a; border-top: none;
    box-shadow: inset 0 0 0 6px var(--ivory), inset 0 0 0 7px rgba(184, 146, 74, .3);
}
.gc-title { font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: .06em; color: var(--emerald); }
.gc-divider { width: 160px; height: 22px; display: block; margin: 6px auto 12px; }
.gc-date { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; color: var(--text); }
.gc-time { color: var(--teal); font-weight: 400; margin: 2px 0 10px; letter-spacing: .04em; }
.gc-loc { font-size: .9rem; color: var(--muted); }

/* ════════════════════════════
   MAP
════════════════════════════ */
.map-frame { position: relative; padding: 0; }
.map-card {
    position: relative; background: var(--ivory); overflow: hidden;
    border: 1px solid rgba(184, 146, 74, .75);
    box-shadow: inset 0 0 0 6px var(--ivory), inset 0 0 0 7px rgba(184, 146, 74, .35), var(--shadow);
    padding: 8px;
}
.map-info { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; flex-wrap: wrap; }
.map-detail { display: flex; align-items: flex-start; gap: 12px; flex: 1; min-width: 200px; }
.map-icon {
    flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--emerald); color: var(--gold-l); box-shadow: 0 0 0 1.5px var(--gold);
}
.map-venue { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; color: var(--text); line-height: 1.4; }
.map-address { font-size: .84rem; color: var(--muted); line-height: 1.6; }
.leaflet-map { height: 300px; width: 100%; z-index: 1; border-top: 1px solid rgba(184, 146, 74, .5); }
.map-embed-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    height: 220px; background: var(--paper-2); color: var(--teal); text-decoration: none; font-size: .9rem;
}

/* ════════════════════════════
   GALLERY
════════════════════════════ */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-item {
    position: relative; aspect-ratio: 3 / 4; margin: 0; cursor: pointer; overflow: hidden;
    border-radius: 999px 999px 6px 6px;
    border: 1.5px solid var(--gold);
    box-shadow: 0 0 0 5px var(--ivory), 0 0 0 6px rgba(184, 146, 74, .45), 0 18px 34px rgba(18, 48, 42, .16);
    background: var(--ivory);
}
.gallery-item::after {
    content: ""; position: absolute; inset: 6px; border-radius: inherit; pointer-events: none;
    border: 1px solid rgba(227, 201, 138, .85);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item.placeholder {
    cursor: default; display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(255, 244, 210, .35) 0%, transparent 60%),
        linear-gradient(170deg, #2f6b4f 0%, var(--peacock) 60%, var(--blue) 100%);
}
.gallery-item.placeholder svg { width: 46px; height: 54px; opacity: .95; }

.gallery-lightbox {
    display: none; position: fixed; inset: 0; z-index: 10000; opacity: 0;
    align-items: center; justify-content: center;
    background: rgba(12, 30, 26, .94); transition: opacity .3s;
}
.lb-img-wrap img { max-width: 90vw; max-height: 82vh; object-fit: contain; border: 1px solid var(--gold); padding: 6px; background: var(--ivory); }
.lb-close, .lb-prev, .lb-next {
    position: absolute; background: rgba(227, 201, 138, .14); color: var(--gold-l); border: 1px solid rgba(227, 201, 138, .4); 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.05rem; }
.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-l); font-family: var(--caps); font-size: .8rem; letter-spacing: .2em; }

/* ════════════════════════════
   GIFT (shared partial, restyled)
════════════════════════════ */
#gift-section { background: var(--paper-2) !important; font-family: var(--sans) !important; }
#gift-section .gs-heading h2 { font-family: var(--display) !important; color: var(--emerald) !important; letter-spacing: .06em !important; }
#gift-section .gs-heading h2::after { background: var(--gold) !important; }
#gift-section .gs-heading p { font-family: var(--serif) !important; font-style: italic !important; color: var(--plum-l) !important; font-size: 1.1rem !important; }
#gift-section .gs-sub-label { font-family: var(--caps) !important; color: var(--teal) !important; letter-spacing: .2em !important; }
#gift-section .gs-card, #gift-section .gs-bank-card {
    background: var(--ivory) !important; border: 1px solid rgba(184, 146, 74, .6) !important;
    box-shadow: inset 0 0 0 4px var(--ivory), inset 0 0 0 5px rgba(184, 146, 74, .25), 0 10px 24px rgba(18, 48, 42, .08) !important;
}
#gift-section .gs-name, #gift-section .gs-bank-name-text { font-family: var(--serif) !important; font-weight: 600 !important; color: var(--text) !important; }
#gift-section .gs-price { font-family: var(--caps) !important; color: var(--gold-d) !important; }
#gift-section .gs-btn-buy, #gift-section .gs-bank-copy {
    background: var(--emerald) !important; color: var(--gold-l) !important;
    box-shadow: 0 0 0 1px var(--gold) !important; border: none !important;
}
#gift-section .gs-bank-logo { background: var(--emerald) !important; color: var(--gold-l) !important; }

/* ════════════════════════════
   WISHES / RSVP
════════════════════════════ */
.rsvp-panel { padding: 40px 28px 30px; margin-bottom: 44px; }
.nv-form .input-row { margin-bottom: 20px; }
.nv-form label {
    display: block; font-family: var(--caps); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
    color: var(--teal); margin-bottom: 8px; font-weight: 500;
}
.nv-form input[type="text"],
.nv-form textarea {
    width: 100%; padding: 12px 4px; background: transparent;
    border: none; border-bottom: 1px solid rgba(184, 146, 74, .7); border-radius: 0;
    font-family: var(--serif); font-size: 1.1rem; color: var(--text);
    transition: border-color .4s, box-shadow .4s; resize: vertical;
}
.nv-form textarea { border: 1px solid rgba(184, 146, 74, .5); padding: 12px 14px; }
.nv-form input:focus, .nv-form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 2px 0 0 var(--teal); }
.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(--sans) !important; }
.attend-opt input { position: absolute; opacity: 0; pointer-events: none; }
.attend-opt span {
    display: inline-block; padding: 8px 18px; border-radius: 100px; font-size: .88rem; color: var(--text);
    border: 1px solid rgba(184, 146, 74, .7); background: var(--ivory); transition: .4s;
}
.attend-opt input:checked + span { background: var(--emerald); color: var(--gold-l); border-color: var(--gold); }
.attend-opt input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.rsvp-flourish { display: block; width: 200px; height: 26px; margin: 14px auto 0; opacity: 0; stroke-dashoffset: 1; overflow: visible; }

.wishes-list {
    display: flex; flex-direction: column; gap: 14px;
    max-height: 540px; overflow-y: auto; padding: 4px 6px 4px 0;
    scrollbar-width: thin; scrollbar-color: rgba(184, 146, 74, .6) transparent;
}
.wish-item {
    display: flex; gap: 14px; padding: 18px 18px 16px; background: var(--ivory);
    border: 1px solid rgba(184, 146, 74, .35); border-left: 3px solid var(--gold);
}
.wish-avatar {
    flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--emerald); color: var(--gold-l); box-shadow: 0 0 0 1.5px var(--gold);
    font-family: var(--caps); font-weight: 600; font-size: 1.05rem;
}
.wish-body { flex: 1; min-width: 0; }
.wish-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wish-name { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; color: var(--text); }
.wish-badge { font-size: .64rem; padding: 2px 10px; border-radius: 100px; letter-spacing: .06em; font-family: var(--caps); }
.wish-badge.hadir { background: rgba(31, 122, 122, .12); color: var(--teal); }
.wish-badge.tidak { background: rgba(107, 58, 94, .12); color: var(--plum-l); }
.wish-badge.ragu  { background: rgba(184, 146, 74, .16); color: var(--gold-d); }
.wish-message { font-size: .92rem; margin: 6px 0 4px; line-height: 1.65; word-wrap: break-word; }
.wish-time { font-size: .72rem; color: var(--muted); }
.wish-empty { text-align: center; padding: 30px; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 1.1rem; }

/* ════════════════════════════
   FOOTER
════════════════════════════ */
.footer {
    position: relative; overflow: hidden; text-align: center; color: var(--ivory);
    padding: 0 0 350px;
    background:
        radial-gradient(ellipse at 50% 30%, #2a5f50 0%, transparent 65%),
        linear-gradient(180deg, var(--emerald) 0%, var(--emerald-d) 100%);
}
.ft-halo { position: absolute; width: 460px; height: 460px; left: 50%; margin-left: -230px; top: 50px; opacity: .3; pointer-events: none; }
.ft-halo .halo-disc { fill: transparent; }
.ft-peacocks { position: absolute; left: 0; right: 0; bottom: 96px; height: 250px; pointer-events: none; z-index: 1; }
.ft-peacocks::after {
    content: ""; position: absolute; left: 6%; right: 6%; bottom: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-l) 20%, var(--gold) 50%, var(--gold-l) 80%, transparent);
}
.ft-pea { position: absolute; bottom: 0; width: 210px; height: 248px; overflow: visible; }
.ft-pea.l { left: -26px; }
.ft-pea.r { right: -26px; }
.ft-pea.r use { transform-box: fill-box; transform-origin: 50% 50%; transform: scaleX(-1); }
.ft-content { position: relative; z-index: 2; padding: 96px 22px 0; max-width: 620px; margin: 0 auto; }
.ft-mono { position: relative; width: 116px; height: 116px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; }
.ft-mono svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ft-mono span { font-size: 1.9rem; }
.ft-thanks {
    font-family: var(--script); font-size: 3.8rem; line-height: 1.1;
    background: var(--foil); background-size: 250% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
    animation: foil 7s linear infinite;
}
.ft-copy { margin: 10px auto 26px; opacity: .82; font-size: .94rem; max-width: 480px; }
.ft-names { font-family: var(--display); font-weight: 400; font-size: 1.5rem; letter-spacing: .06em; color: var(--gold-l); }
.ft-names em { font-family: var(--serif); font-style: italic; }
.ft-divider { width: 220px; height: 28px; display: block; margin: 14px auto; }
.ft-credit { margin-top: 18px; font-size: .7rem; letter-spacing: .08em; opacity: .55; }

/* light motes */
.nv-motes { position: fixed; inset: 0; pointer-events: none; z-index: 60; }

/* ════════════════════════════
   RESPONSIVE
════════════════════════════ */
@media (min-width: 900px) {
    .cv-window { height: clamp(300px, 58vh, 600px); }
    .cv-names { font-size: 4.6rem; }
    .cv-corner { width: 130px; height: 130px; }
    .hero { --fan: 900px; --halo: 440px; }
    .h-content { left: -180px; width: 360px; top: -190px; height: 380px; }
    .h-names .nm { font-size: 4.8rem; }
    .h-names .amp { font-size: 1.9rem; }
    .h-eyebrow { font-size: .72rem; }
    .h-corner { width: 140px; height: 140px; }
    .h-under { left: -150px; width: 300px; }
    .h-date { font-size: 1.35rem; }
    .f-l2 { left: 90px; } .f-r2 { right: 90px; }
    .sec-corner { width: 160px; height: 160px; }
}
@media (max-width: 640px) {
    section { padding: 86px 0; }
    .couple-flex { flex-direction: column; gap: 22px; }
    .couple-amp { width: 78px; height: 78px; flex-basis: 78px; }
    .event-grid { grid-template-columns: minmax(0, 360px); gap: 40px; }
    .countdown { gap: 8px; }
    .cd-box { width: 72px; height: 94px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .map-info { flex-direction: column; align-items: stretch; }
    .sec-corner { width: 84px; height: 84px; }
    .quote-panel { padding: 50px 24px 38px; }
    .ft-pea { width: 176px; height: 208px; }
    .ft-pea.l { left: -34px; } .ft-pea.r { right: -34px; }
    .footer { padding-bottom: 320px; }
}
@media (max-height: 700px) {
    .cv-window { height: clamp(260px, 46vh, 420px); }
}

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