/* ═══════════════════════════════════════════════════════════════
   GLASSHOUSE GARDEN — rumah kaca Victoria di bawah cahaya bulan.
   Pintu kaca berembun diusap dengan jari, lalu tamu melangkah
   ke taman anggrek, mawar, hortensia, pakis & wisteria.
   ═══════════════════════════════════════════════════════════════ */
:root {
    --ink: #06161a;
    --teal: #0b2a30;
    --teal-2: #12404a;
    --iron: #e4ece9;
    --silver: #c3d3d6;
    --moon: #eef3f2;
    --ivory: #f6f1e6;
    --gold: #d9b46a;
    --gold-l: #f0d79c;
    --gold-d: #a8813a;
    --muted: rgba(234, 240, 238, .68);
    --line: rgba(220, 234, 236, .24);
    --f-script: 'Pinyon Script', 'Snell Roundhand', cursive;
    --f-disp: 'Italiana', 'Cormorant Garamond', serif;
    --f-body: 'Cormorant Garamond', Georgia, serif;
    --f-ar: 'Amiri', 'Traditional Arabic', serif;
    --ease: cubic-bezier(.22, .8, .24, 1);
    --arch: 50% 50% 20px 20px / 120px 120px 20px 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--f-body); color: var(--ivory); background: var(--ink);
    -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}
body.no-scroll { overflow: hidden; height: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.ico { width: 1em; height: 1em; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ══════════ NIGHT SKY (fixed) ══════════ */
.sky {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
    background:
        radial-gradient(ellipse 80% 55% at 18% 6%, rgba(170, 205, 215, .20), transparent 60%),
        radial-gradient(ellipse 90% 60% at 50% 110%, rgba(255, 190, 120, .10), transparent 60%),
        linear-gradient(180deg, #0a2329 0%, #0b2a30 40%, #071a1f 100%);
}
.stars {
    position: absolute; inset: 0; opacity: .55;
    background:
        radial-gradient(1px 1px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 8%, #fff, transparent),
        radial-gradient(1.4px 1.4px at 44% 22%, #fff, transparent), radial-gradient(1px 1px at 63% 12%, #fff, transparent),
        radial-gradient(1px 1px at 72% 30%, #fff, transparent), radial-gradient(1.2px 1.2px at 8% 40%, #fff, transparent),
        radial-gradient(1px 1px at 92% 46%, #fff, transparent), radial-gradient(1px 1px at 36% 52%, #fff, transparent),
        radial-gradient(1.3px 1.3px at 56% 4%, #fff, transparent), radial-gradient(1px 1px at 18% 64%, #fff, transparent);
    background-size: 100% 100%;
    animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: .3; } }
.moon {
    position: absolute; top: 7vh; left: max(9vw, calc(50vw - 300px)); width: 78px; height: 78px; border-radius: 50%;
    background: radial-gradient(circle at 38% 36%, #fdfdf8 0%, #e9eeec 45%, #bfcbcb 100%);
    box-shadow: 0 0 34px 8px rgba(225, 238, 242, .32), 0 0 140px 50px rgba(160, 205, 220, .14);
    will-change: transform;
}
.moon i {
    position: absolute; inset: 0; border-radius: 50%; opacity: .5;
    background:
        radial-gradient(circle at 62% 30%, rgba(150, 165, 168, .55) 0 7%, transparent 9%),
        radial-gradient(circle at 34% 64%, rgba(150, 165, 168, .45) 0 10%, transparent 12%),
        radial-gradient(circle at 70% 70%, rgba(150, 165, 168, .35) 0 5%, transparent 7%);
}
.rays { position: absolute; inset: 0; mix-blend-mode: screen; }
.rays i {
    position: absolute; top: calc(7vh + 39px); left: calc(max(9vw, calc(50vw - 300px)) + 4px);
    width: 70px; height: 170vh; transform-origin: 50% 0; filter: blur(10px);
    background: linear-gradient(180deg, rgba(215, 235, 240, .16), rgba(215, 235, 240, .04) 55%, transparent 85%);
    animation: ray 9s ease-in-out infinite alternate;
}
.rays i:nth-child(1) { transform: rotate(-24deg); }
.rays i:nth-child(2) { transform: rotate(-38deg); width: 40px; animation-delay: -3s; }
.rays i:nth-child(3) { transform: rotate(-52deg); width: 110px; animation-delay: -6s; opacity: .7; }
.rays i:nth-child(4) { transform: rotate(-66deg); width: 30px; animation-delay: -1.5s; }
@keyframes ray { from { opacity: .45; } to { opacity: 1; } }
.roof { position: absolute; left: 0; top: 0; width: 100%; height: 125%; opacity: .085; will-change: transform; }

.fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
body:not(.inside) .fx { z-index: 150; }

/* ══════════ COVER ══════════ */
.cover {
    position: fixed; inset: 0; z-index: 100; overflow: hidden; touch-action: none;
    display: flex; flex-direction: column; align-items: center;
    padding: calc(18px + env(safe-area-inset-top)) 0 0;
    transform-origin: 50% 46%;
}
.facade {
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse 46% 40% at 50% 50%, rgba(255, 200, 135, .20), transparent 70%),
        repeating-linear-gradient(90deg, rgba(223, 233, 234, .10) 0 2px, transparent 2px 74px),
        repeating-linear-gradient(0deg, rgba(223, 233, 234, .07) 0 2px, transparent 2px 98px),
        radial-gradient(ellipse 70% 40% at 16% 4%, rgba(170, 205, 215, .22), transparent 60%),
        linear-gradient(180deg, #08202a 0%, #0c2c33 55%, #071a1f 100%);
    background-position: center, center top, center bottom, 0 0, 0 0;
}
.facade::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 24%;
    background:
        linear-gradient(180deg, rgba(228, 236, 233, .35) 0 1px, transparent 1px 7px, rgba(228, 236, 233, .14) 7px 8px, transparent 8px),
        linear-gradient(180deg, #102a2c, #071416);
}
.cv-crest { position: relative; z-index: 2; text-align: center; margin-bottom: 14px; }
.cv-crest span { display: block; font-family: var(--f-disp); font-size: 13px; letter-spacing: .48em; text-transform: uppercase; color: var(--silver); padding-left: .48em; }
.cv-crest i { display: block; margin-top: 2px; font-size: 15px; color: rgba(240, 215, 156, .85); }

.door {
    position: relative; z-index: 2; flex: none;
    width: min(78vw, 360px); height: clamp(360px, calc(100vh - 286px), 640px); height: clamp(360px, calc(100dvh - 286px), 640px);
    border-radius: 999px 999px 0 0; overflow: hidden; touch-action: none; cursor: crosshair;
    box-shadow: 0 0 0 1px rgba(228, 236, 233, .35), 0 0 90px 10px rgba(255, 196, 120, .16), 0 30px 60px -20px rgba(0, 0, 0, .7);
    user-select: none; -webkit-user-select: none;
}
.inside {
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse 80% 46% at 50% 78%, rgba(255, 196, 120, .36), transparent 70%),
        radial-gradient(ellipse 70% 50% at 50% 26%, rgba(170, 210, 222, .14), transparent 65%),
        linear-gradient(180deg, #0f3038, #0a2026 60%, #13261f);
}
.in-spray { position: absolute; left: 14%; width: 72%; bottom: 17%; opacity: .75; filter: blur(1px) saturate(.9); }
.candle {
    position: absolute; bottom: 22%; width: 10px; height: 10px; border-radius: 50%;
    background: #ffe2a6; box-shadow: 0 0 12px 6px rgba(255, 196, 110, .55), 0 0 40px 18px rgba(255, 180, 90, .2);
    animation: flicker 2.6s ease-in-out infinite alternate;
}
.candle.c1 { left: 20%; } .candle.c2 { left: 50%; bottom: 26%; animation-delay: -1s; } .candle.c3 { right: 20%; animation-delay: -1.7s; }
@keyframes flicker { 0% { opacity: .8; transform: scale(.9); } 40% { opacity: 1; transform: scale(1.06); } 70% { opacity: .85; } 100% { opacity: 1; transform: scale(1); } }

.leaves { position: absolute; inset: 0; z-index: 1; perspective: 900px; }
.leaf { position: absolute; width: 50%; backface-visibility: hidden; transition: transform 1.7s cubic-bezier(.55, .05, .25, 1) .45s; }
.leaf svg { display: block; width: 100%; height: 100%; }
.leaf.l { left: 0; transform-origin: 0 50%; }
.leaf.r { right: 0; transform-origin: 100% 50%; }
.door-frame { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
.door-frame .seam { transition: opacity .3s .45s; }

.plaque {
    position: absolute; inset: 0; z-index: 4; pointer-events: none;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: calc(var(--spring, 150px) + 16px) 18px 0;
    text-shadow: 0 0 14px rgba(6, 22, 26, .95), 0 0 3px rgba(6, 22, 26, .8);
    -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    transition: opacity .7s;
}
.plaque.blurred { z-index: 5; filter: blur(5px); opacity: .95; }
.pq-kicker { font-family: var(--f-disp); font-size: 11.5px; letter-spacing: .36em; text-transform: uppercase; color: var(--silver); padding-left: .36em; }
.pq-names { font-family: var(--f-script); font-weight: 400; font-size: clamp(44px, 13vw, 58px); line-height: .98; color: var(--gold-l); margin: 8px 0 8px; }
.pq-names span { display: block; }
.pq-names em { display: block; font-family: var(--f-body); font-style: italic; font-size: 24px; line-height: 1.2; color: var(--ivory); }
.pq-date { font-family: var(--f-disp); font-size: 14px; letter-spacing: .32em; color: var(--ivory); padding-left: .32em; }
.plaque .orn { width: 150px; margin: 10px auto; }
.pq-to { font-size: 14px; font-style: italic; color: var(--muted); }
.pq-guest { margin-top: 2px; font-size: 22px; font-weight: 600; color: var(--ivory); max-width: 92%; line-height: 1.2; }

.fog { position: absolute; inset: 0; z-index: 6; width: 100%; height: 100%; transition: opacity .8s; }
.finger {
    position: absolute; left: 0; top: 0; z-index: 7; width: 34px; height: 34px; margin: -6px 0 0 -10px; pointer-events: none;
    color: #fff; opacity: 0; transition: opacity .35s; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5));
}
.finger .ico { width: 34px; height: 34px; }
.finger.show { opacity: .95; }

.cover .bq { position: absolute; z-index: 8; bottom: 132px; width: min(44vw, 220px); pointer-events: none; }
.cover .cv-l { left: -16px; }
.cover .cv-r { right: -16px; transform: scaleX(-1); }

.cv-foot { position: relative; z-index: 9; width: 100%; margin-top: auto; padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); text-align: center; }
.cv-hint { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 15px; font-style: italic; color: var(--moon); margin-bottom: 12px; transition: opacity .5s; }
.cv-hint .ico { width: 18px; height: 18px; color: var(--gold-l); animation: wave 2.4s ease-in-out infinite; }
@keyframes wave { 0%, 100% { transform: translateX(-3px) rotate(-8deg); } 50% { transform: translateX(3px) rotate(8deg); } }
.cv-note { margin-top: 10px; font-size: 12.5px; font-style: italic; color: rgba(234, 240, 238, .5); }

/* opening sequence */
.cover.opening .fog, .cover.opening .plaque, .cover.opening .finger { opacity: 0; }
.cover.opening .leaf.l { transform: rotateY(80deg); }
.cover.opening .leaf.r { transform: rotateY(-80deg); }
.cover.opening .seam { opacity: 0; }
.cover.opening .cv-foot, .cover.opening .cv-crest { opacity: 0; transition: opacity .6s; }
.cover.opening .door { cursor: default; }
.cover.gliding { transform: scale(2.8); opacity: 0; transition: transform 1.9s cubic-bezier(.55, 0, .2, 1), opacity 1.1s .7s; }

/* ══════════ BUTTONS ══════════ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px; margin-top: 16px;
    padding: 13px 24px; border-radius: 999px; font-family: var(--f-body); font-weight: 600; font-size: 14.5px;
    letter-spacing: .16em; text-transform: uppercase; transition: transform .25s var(--ease), box-shadow .25s, background .25s;
}
.btn .ico { width: 17px; height: 17px; }
.btn-gold {
    color: #0d2529; background: linear-gradient(180deg, #f8e7b8 0%, #d9b46a 55%, #b88e42 100%);
    box-shadow: 0 12px 30px -12px rgba(217, 180, 106, .8), inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -1px 0 rgba(120, 85, 30, .4);
}
.btn-gold:hover { transform: translateY(-2px); }
.btn-ghost { color: var(--ivory); border: 1px solid rgba(228, 236, 233, .45); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); }
.btn.wide { width: 100%; }
.btn.loading { opacity: .6; pointer-events: none; }
#openBtn { margin-top: 0; }
#openBtn.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 12px 30px -12px rgba(217, 180, 106, .8), 0 0 0 0 rgba(240, 215, 156, .5); } 50% { box-shadow: 0 12px 30px -12px rgba(217, 180, 106, .8), 0 0 0 12px rgba(240, 215, 156, 0); } }

/* ══════════ MUSIC ══════════ */
.music-toggle-btn {
    position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 16px; z-index: 1001;
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-l);
    background: rgba(8, 30, 35, .62); border: 1px solid rgba(228, 236, 233, .4);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .6);
    opacity: 0; pointer-events: none; transition: opacity .8s 1.2s;
}
body.opened .music-toggle-btn { opacity: 1; pointer-events: auto; }
.music-toggle-btn svg { width: 17px; height: 17px; }
.music-toggle-btn.playing svg { animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════ BOTANICALS ══════════ */
.fl {
    transform-box: fill-box; transform-origin: 50% 50%; opacity: 0;
    transform: scale(.05) rotate(-50deg);
    transition: transform 1.6s cubic-bezier(.2, .9, .25, 1.08) var(--d, 0s), opacity .7s ease var(--d, 0s);
}
.fl-b { transform-origin: 50% 100%; transform: scale(.1) rotate(-16deg); }
.fl-t { transform-origin: 50% 0; transform: scaleY(.05); }
.in .fl, .in.fl { opacity: 1; transform: none; }
.sway { transform-box: fill-box; transform-origin: 50% 0; animation: sway var(--sw, 6s) ease-in-out var(--sd, 0s) infinite alternate; }
@keyframes sway { from { transform: rotate(-2.6deg); } to { transform: rotate(2.6deg); } }

.orn { display: block; width: 180px; max-width: 70%; margin: 12px auto 18px; color: rgba(217, 180, 106, .75); }
.orn svg { display: block; width: 100%; height: auto; overflow: visible; }

/* ══════════ GARDEN ══════════ */
.garden { position: relative; z-index: 2; }
body:not(.inside) .garden { visibility: hidden; }

/* reveal */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.glass .rv { transition-delay: .15s; }

/* ── Hero ── */
.hero {
    position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 150px 16px 120px;
}
.curtain { position: absolute; left: 0; top: -6px; width: 100%; height: 200px; pointer-events: none; z-index: 1; will-change: transform; opacity: .92; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); overflow: hidden;
    --s: max(.25%, .8696px); /* = preserveAspectRatio xMidYMin slice of a 400×230 viewBox in a W×200px box */ }
.curtain .cur-b { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.curtain .cur-w { position: absolute; top: 0; display: block; overflow: visible;
    left: calc(50% + (var(--x) - 200) * var(--s)); margin-top: calc(var(--y) * var(--s)); width: calc(var(--w) * var(--s)); height: auto; }
.curtain .cur-w.sway { transform-box: border-box; transform-origin: 50% var(--o); }
.curtain .cur-w svg { display: block; width: 100%; height: auto; overflow: visible; }
.curtain .cur-w .fl { transform-box: border-box; transform-origin: 50% var(--o); }
/* bouquets/sprays: one small svg per botanical (see $uh) — clip like the former single svg viewport */
.bq, .spray { overflow: hidden; }
.bqi { position: absolute; top: 0; display: block; height: auto; aspect-ratio: 1; overflow: visible; }
.bqi.fl { transform-box: border-box; transform-origin: 50% 50%; }
.hero-arch {
    position: relative; z-index: 2; width: min(84vw, 380px); aspect-ratio: 300 / 470;
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    padding: 34% 22px 16%; color: rgba(228, 236, 233, .7);
    border-radius: 50% 50% 0 0 / 31.5% 31.5% 0 0;
    background: linear-gradient(180deg, rgba(20, 56, 64, .42), rgba(8, 28, 33, .62));
    -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 0 60px rgba(255, 200, 135, .08);
}
.ha-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.h-kicker { font-family: var(--f-disp); font-size: 13px; letter-spacing: .4em; text-transform: uppercase; color: var(--silver); padding-left: .4em; }
.h-names, .names {
    font-family: var(--f-script); font-weight: 400; font-size: clamp(56px, 17vw, 80px); line-height: .96; margin: 14px 0 10px;
    background: linear-gradient(180deg, #fff1cc 0%, #f0d79c 40%, #c9a35a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 18px rgba(240, 215, 156, .25));
}
.h-names span, .names span { display: block; }
.h-names em, .names em {
    display: block; font-family: var(--f-body); font-style: italic; font-size: 28px; line-height: 1.3;
    -webkit-text-fill-color: var(--ivory); color: var(--ivory);
}
.h-date { font-family: var(--f-disp); font-size: 15px; letter-spacing: .14em; color: var(--ivory); }
.h-quote { font-size: 16.5px; font-style: italic; line-height: 1.5; color: var(--muted); max-width: 270px; }
.hero .bq { position: absolute; bottom: -4px; width: min(46vw, 250px); z-index: 3; pointer-events: none; }
.hero-l { left: -18px; }
.hero-r { right: -18px; transform: scaleX(-1); }
.scroll-cue {
    position: absolute; z-index: 4; bottom: calc(14px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; font-style: italic; color: var(--moon);
}
.scroll-cue .ico { width: 20px; height: 20px; color: var(--gold-l); animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }

/* ── Glass cards ── */
.sec { position: relative; padding: 44px 16px; }
.glass {
    position: relative; max-width: 460px; margin: 0 auto; text-align: center;
    padding: 154px 24px 36px; border-radius: var(--arch);
    background: linear-gradient(180deg, rgba(24, 62, 70, .5) 0%, rgba(10, 32, 38, .64) 60%, rgba(8, 26, 30, .7) 100%);
    -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid rgba(220, 234, 236, .3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 40px 80px -36px rgba(0, 0, 0, .8);
}
.glass::before {
    content: ''; position: absolute; inset: 8px; border-radius: 50% 50% 14px 14px / 112px 112px 14px 14px;
    border: 1px solid rgba(217, 180, 106, .3); pointer-events: none;
}
.glass::after {
    /* a single moonlit reflection sliding across the pane */
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .06) 42%, transparent 50%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .glass, .hero-arch { background: rgba(10, 34, 40, .94); }
}
.fan { position: absolute; left: 0; right: 0; top: 0; height: 120px; color: rgba(228, 236, 233, .42); pointer-events: none; }
.fan-svg { display: block; width: 100%; height: 100%; }
.hub {
    position: absolute; left: 50%; top: 96px; width: 48px; height: 48px; margin-left: -24px; padding: 5px; border-radius: 50%;
    background: radial-gradient(circle, #143a40, #08202a); border: 1px solid rgba(217, 180, 106, .55);
    box-shadow: 0 0 22px rgba(240, 215, 156, .2);
}
.hub svg { display: block; width: 100%; height: 100%; }

.kicker { font-family: var(--f-disp); font-size: 12.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--silver); padding-left: .32em; }
.title { margin-top: 6px; font-family: var(--f-body); font-weight: 500; font-style: italic; font-size: 38px; line-height: 1.1; color: var(--ivory); }
.title small { display: block; margin-top: 6px; font-family: var(--f-disp); font-style: normal; font-size: 12.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--silver); }
.txt { font-size: 18px; line-height: 1.6; color: rgba(240, 240, 234, .86); }
.txt.sm { font-size: 15.5px; color: var(--muted); }
.arabic { font-family: var(--f-ar); font-size: 22px; line-height: 1.9; color: var(--gold-l); direction: rtl; }
.arabic.big { font-size: 27px; margin-bottom: 4px; }
.ayat { margin-top: 22px; padding: 22px 16px 18px; border-radius: 80px 80px 16px 16px / 40px 40px 16px 16px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(217, 180, 106, .28); }
.ayat .arabic { font-size: 21px; }
.ayat blockquote { margin-top: 10px; font-size: 16.5px; font-style: italic; line-height: 1.55; color: rgba(240, 240, 234, .84); }
.ayat figcaption { margin-top: 10px; font-family: var(--f-disp); font-size: 12px; letter-spacing: .24em; color: var(--gold); }

/* ── Mempelai ── */
.couple { display: grid; gap: 6px; margin-top: 8px; }
.person { display: flex; flex-direction: column; align-items: center; }
.portrait {
    position: relative; width: 190px; height: 250px; margin-bottom: 60px; border-radius: 999px 999px 14px 14px;
    background: radial-gradient(ellipse at 50% 30%, #1e4c52, #0a2228);
    border: 1px solid rgba(228, 236, 233, .55);
    box-shadow: 0 0 0 6px rgba(8, 28, 33, .55), 0 0 0 7px rgba(217, 180, 106, .5), 0 24px 50px -20px #000;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.portrait .mono {
    display: grid; place-items: center; height: 100%; font-family: var(--f-script); font-size: 120px; line-height: 1;
    background: linear-gradient(180deg, #fff1cc, #c9a35a); -webkit-background-clip: text; background-clip: text; color: transparent; padding-top: 10px;
}
.pt-spray { position: absolute; left: 50%; bottom: -44px; width: 230px; margin-left: -115px; pointer-events: none; }
.role { font-family: var(--f-disp); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--silver); padding-left: .3em; }
.p-name { margin: 2px 0 6px; font-family: var(--f-script); font-weight: 400; font-size: 42px; line-height: 1.15; color: var(--gold-l); }
.parent { font-size: 16.5px; line-height: 1.5; color: var(--muted); }
.parent b { font-weight: 600; color: var(--ivory); }
.amp { font-family: var(--f-body); font-style: italic; font-size: 54px; line-height: 1; color: var(--gold); margin: 18px 0 10px; }

/* ── Kisah ── */
.story { list-style: none; text-align: left; margin-top: 6px; }
.story li { position: relative; display: grid; grid-template-columns: 58px 1fr; column-gap: 16px; padding-bottom: 26px; }
.story li:last-child { padding-bottom: 0; }
.story li::before {
    content: ''; position: absolute; left: 28px; top: 62px; bottom: 4px; width: 2px; border-radius: 2px;
    background: linear-gradient(180deg, #5e8c75, rgba(94, 140, 117, .1));
}
.story li:last-child::before { display: none; }
.st-node {
    grid-row: span 2; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
    background: radial-gradient(circle, #143a40, #08202a); border: 1px solid rgba(217, 180, 106, .5);
    box-shadow: 0 0 20px rgba(240, 215, 156, .12);
}
.st-node svg { width: 40px; height: 40px; overflow: visible; }
.story b { align-self: end; font-size: 23px; font-weight: 600; font-style: italic; color: var(--gold-l); }
.story p { font-size: 16.5px; line-height: 1.55; color: rgba(240, 240, 234, .82); }

/* ── Countdown ── */
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px auto 0; padding-bottom: 26px; max-width: 360px; }
.cloche { position: relative; aspect-ratio: 80 / 104; }
.cloche:nth-child(2) { transition-delay: .25s; } .cloche:nth-child(3) { transition-delay: .35s; } .cloche:nth-child(4) { transition-delay: .45s; }
.cloche svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cloche b { position: absolute; left: 0; right: 0; top: 40%; font-size: clamp(24px, 7.4vw, 32px); font-weight: 600; line-height: 1; color: var(--ivory); text-shadow: 0 0 14px rgba(240, 215, 156, .35); font-variant-numeric: tabular-nums; }
.cloche span { position: absolute; left: 0; right: 0; top: calc(100% + 8px); font-family: var(--f-disp); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--silver); }
.cd-date { margin-top: 18px; font-size: 19px; font-style: italic; color: var(--gold-l); }

/* ── Acara ── */
.ev { margin-top: 18px; padding: 24px 18px 22px; border-radius: 80px 80px 18px 18px / 44px 44px 18px 18px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(220, 234, 236, .2); }
.ev + .ev { transition-delay: .3s; }
.ev-ico { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 4px; border-radius: 50%; color: var(--gold-l); border: 1px solid rgba(217, 180, 106, .55); background: rgba(8, 28, 33, .5); }
.ev-ico .ico { width: 26px; height: 26px; }
.ev h3 { font-family: var(--f-script); font-weight: 400; font-size: 42px; line-height: 1.2; color: var(--gold-l); margin-bottom: 6px; }
.ev p { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16.5px; line-height: 1.45; color: rgba(240, 240, 234, .88); padding: 2px 0; }
.ev p .ico { width: 16px; height: 16px; color: var(--gold); }

/* ── Lokasi ── */
.map-frame {
    position: relative; height: 290px; margin: 4px 4px 18px; border-radius: 999px 999px 16px 16px; overflow: hidden;
    border: 1px solid rgba(228, 236, 233, .5); box-shadow: 0 0 0 6px rgba(8, 28, 33, .55), 0 0 0 7px rgba(217, 180, 106, .45);
    background: #0e2c31; isolation: isolate;
}
.leaflet-map { width: 100%; height: 100%; }
.map-illu { display: block; height: 100%; }
.map-illu svg { width: 100%; height: 100%; display: block; }
.gg-marker span { display: block; width: 42px; height: 42px; padding: 3px; border-radius: 50%; background: #0b2329; border: 1.5px solid var(--gold); box-shadow: 0 6px 14px rgba(0, 0, 0, .4); }
.gg-marker svg { display: block; width: 100%; height: 100%; }
.loc-name { font-size: 25px; font-weight: 600; font-style: italic; color: var(--ivory); margin-bottom: 4px; }

/* ── Galeri ── */
.gal { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.pane {
    position: relative; aspect-ratio: 3 / 4; padding: 0; overflow: hidden; border-radius: 999px 999px 10px 10px;
    border: 1px solid rgba(228, 236, 233, .42); background: rgba(255, 255, 255, .04);
    box-shadow: inset 0 0 0 4px rgba(8, 28, 33, .4);
}
.gal:not(.ph) .pane:nth-child(3n+1) { grid-column: span 2; aspect-ratio: 4 / 3; }
.pane img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pane:hover img { transform: scale(1.05); }
.gal.ph .pane { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: radial-gradient(ellipse at 50% 40%, rgba(255, 210, 150, .12), rgba(255, 255, 255, .03) 70%); }
.gal.ph .pane:nth-child(2), .gal.ph .pane:nth-child(4) { transition-delay: .25s; }
.gal.ph svg { width: 66%; height: auto; overflow: visible; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .35)); }
.pn-cap { font-size: 15px; font-style: italic; color: var(--moon); }

/* ── Hadiah (restyle injected gift UI) ── */
.gift-wrap { margin: 10px -24px 0; text-align: left; }
.gift-wrap:not(:has(#gift-section)) { display: none; }
.gift-wrap #gift-section { background: transparent !important; padding: 4px 0 0 !important; font-family: var(--f-body) !important; }
.gift-wrap .gs-heading { display: none; }
.gift-wrap .gs-wrap { padding: 0 24px !important; }
.gift-wrap .gs-track { padding: 4px 24px 12px !important; }
.gift-wrap .gs-bank-track { padding: 0 24px 8px !important; }
.gift-wrap .gs-card, .gift-wrap .gs-bank-card { background: rgba(246, 241, 230, .94) !important; border: 1px solid rgba(217, 180, 106, .55) !important; box-shadow: 0 14px 26px -18px rgba(0, 0, 0, .8) !important; }
.gift-wrap .gs-card { border-radius: 60px 60px 12px 12px / 34px 34px 12px 12px !important; }
.gift-wrap .gs-bank-card { border-radius: 14px !important; }
.gift-wrap .gs-img-ph { background: linear-gradient(135deg, #e3ece9, #cfdedb) !important; }
.gift-wrap .gs-btn, .gift-wrap .gs-bank-copy { border-radius: 999px !important; font-family: var(--f-body) !important; font-weight: 600 !important; letter-spacing: .08em !important; }
.gift-wrap .gs-btn-buy { background: linear-gradient(180deg, #17444c, #0b2a30) !important; color: var(--gold-l) !important; border: 0 !important; }
.gift-wrap .gs-bank-copy { background: #0b2a30 !important; color: var(--gold-l) !important; border: 0 !important; }
.gift-wrap .gs-price { color: #8a6a2e !important; font-weight: 600 !important; }
.gift-wrap .gs-name, .gift-wrap .gs-bank-name-text, .gift-wrap .gs-bank-holder { font-family: var(--f-body) !important; color: #12333a !important; font-size: 15.5px !important; }
.gift-wrap .gs-bank-number { color: #0b2a30 !important; letter-spacing: .06em !important; }
.gift-wrap .gs-sub-label { display: block; padding: 0 24px; font-family: var(--f-disp) !important; font-size: 12px !important; letter-spacing: .24em !important; text-transform: uppercase; color: var(--silver) !important; text-align: center; }
.gift-wrap .gs-dot.taken { background: var(--gold) !important; }

/* ── RSVP ── */
.rsvp-form { text-align: left; margin-top: 8px; }
.f-l { display: block; margin: 16px 0 7px; font-family: var(--f-disp); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--silver); }
.f-in {
    width: 100%; padding: 13px 15px; border-radius: 14px; border: 1px solid rgba(220, 234, 236, .26); background: rgba(4, 18, 22, .45);
    color: var(--ivory); font-family: var(--f-body); font-size: 17.5px; outline: none; transition: border-color .2s, background .2s, box-shadow .2s;
}
.f-in::placeholder { color: rgba(234, 240, 238, .42); font-style: italic; }
.f-in:focus { border-color: var(--gold); background: rgba(4, 18, 22, .6); box-shadow: 0 0 0 3px rgba(217, 180, 106, .15); }
textarea.f-in { resize: none; min-height: 100px; }
.att { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.att input { position: absolute; opacity: 0; pointer-events: none; }
.att span {
    display: block; padding: 11px 4px; border-radius: 999px; text-align: center; cursor: pointer;
    border: 1px solid rgba(220, 234, 236, .26); font-size: 15.5px; color: var(--muted); transition: all .25s;
}
.att input:checked + span { background: linear-gradient(180deg, #f8e7b8, #d9b46a); color: #0d2529; border-color: transparent; font-weight: 600; }
.att input:focus-visible + span { outline: 2px solid var(--gold-l); outline-offset: 2px; }
.rsvp-form .btn { margin-top: 20px; }

/* ── Ucapan ── */
.wishes-list { display: flex; flex-direction: column; gap: 10px; text-align: left; margin-top: 4px; max-height: 560px; overflow-y: auto; padding-right: 2px; scrollbar-width: thin; scrollbar-color: rgba(217, 180, 106, .4) transparent; }
.wish-item { display: flex; gap: 11px; padding: 13px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(220, 234, 236, .18); }
.wish-item.new { animation: wishIn .7s var(--ease); }
@keyframes wishIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.wish-avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--av, #2f6a5c); color: var(--ivory); font-size: 18px; font-weight: 600; border: 1px solid rgba(240, 215, 156, .5); }
.wish-body { min-width: 0; flex: 1; }
.wish-header { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.wish-name { font-size: 17px; font-weight: 600; color: var(--ivory); }
.wish-badge { font-size: 12px; padding: 1px 9px; border-radius: 999px; border: 1px solid currentColor; }
.wish-badge.hadir { color: #9fd6b9; }
.wish-badge.tidak { color: #f0a99a; }
.wish-badge.ragu { color: #f0d48e; }
.wish-message { font-size: 16.5px; line-height: 1.45; margin-top: 3px; color: rgba(240, 240, 234, .88); overflow-wrap: anywhere; }
.wish-time { font-size: 13px; font-style: italic; color: var(--muted); }
.wish-empty { text-align: center; padding: 22px 10px; color: var(--muted); font-style: italic; font-size: 16.5px; }
.we-ico { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; border: 1px solid rgba(217, 180, 106, .5); color: var(--gold-l); }
.we-ico .ico { width: 24px; height: 24px; }

/* ── Penutup ── */
.closing { position: relative; padding: 210px 16px 210px; overflow: hidden; }
.closing .glass { z-index: 2; }
.end-curtain { top: -6px; }
.names { font-size: clamp(50px, 15vw, 66px); margin-top: 10px; }
.closing .kicker { margin-top: 4px; }
.fam { display: grid; gap: 10px; width: 100%; margin: 16px 0 14px; }
.fam p { padding: 12px; border-radius: 14px; border: 1px solid rgba(220, 234, 236, .2); background: rgba(255, 255, 255, .045); font-size: 16.5px; line-height: 1.4; color: var(--ivory); }
.fam span { display: block; font-family: var(--f-disp); font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--silver); margin-bottom: 3px; }
.salam { font-style: italic; font-size: 18px; color: var(--gold-l); }
.closing .bq { position: absolute; bottom: 48px; width: min(44vw, 240px); z-index: 3; pointer-events: none; }
.end-l { left: -18px; }
.end-r { right: -18px; transform: scaleX(-1); }
.credit { position: absolute; left: 0; right: 0; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 4; text-align: center; font-size: 13px; color: var(--muted); letter-spacing: .02em; }

/* ── Toast ── */
.toast {
    position: fixed; left: 50%; bottom: calc(30px + env(safe-area-inset-bottom)); z-index: 9995;
    transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
    padding: 12px 20px; border-radius: 999px; background: rgba(8, 30, 35, .95); border: 1px solid rgba(217, 180, 106, .55);
    color: var(--ivory); font-size: 15.5px; white-space: nowrap; transition: opacity .3s, transform .35s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.has-qr .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ── Lightbox ── */
.gallery-lightbox {
    position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center;
    background: rgba(4, 14, 17, .95); opacity: 0; transition: opacity .3s;
}
.lb-img-wrap { max-width: 92vw; max-height: 80vh; }
.lb-img-wrap img { max-width: 92vw; max-height: 80vh; border-radius: 14px; object-fit: contain; border: 1px solid rgba(228, 236, 233, .5); }
.lb-close, .lb-prev, .lb-next {
    position: absolute; width: 46px; height: 46px; border-radius: 50%; color: var(--gold-l); font-size: 26px; line-height: 1;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(217, 180, 106, .45); display: grid; place-items: center;
}
.lb-close { top: 18px; right: 18px; font-size: 18px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: rgba(246, 241, 230, .7); font-family: var(--f-disp); font-size: 13px; letter-spacing: .2em; }

/* ── Desktop ── */
@media (min-width: 760px) {
    .sec { padding: 60px 24px; }
    .glass { padding-left: 34px; padding-right: 34px; }
    .gift-wrap { margin-left: -34px; margin-right: -34px; }
    .hero .bq, .closing .bq { width: 300px; }
    .cover .bq { width: 260px; }
    .curtain { width: 620px; left: 50%; margin-left: -310px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
    .hero { padding-top: 170px; }
    .cover .cv-l { left: calc(50% - 360px); }
    .cover .cv-r { right: calc(50% - 360px); }
}

/* ── Short phones ── */
@media (max-height: 700px) {
    .cv-crest { margin-bottom: 8px; }
    .cv-crest i { display: none; }
    .cv-note { display: none; }
    .door { height: calc(100vh - 210px); height: calc(100dvh - 210px); }
    .cover .bq { bottom: 104px; }
    .pq-names { font-size: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
    .fl { opacity: 1; transform: none; }
}
