/* ════════════════════════════════════════════════════════════════
   KRISTAL BALLROOM — ballroom Eropa saat senja: lampu gantung kristal,
   pilar marmer, tirai sutra sampanye, gading, blush & emas antik
   ════════════════════════════════════════════════════════════════ */
:root {
    --ink: #3b2a20;
    --ink-s: #6b5546;
    --ivory: #fbf6ee;
    --champ: #f3e6d1;
    --blush: #efd9cf;
    --rose: #b9776f;
    --rose-d: #8e4f49;
    --gold: #c49a5c;
    --gold-d: #946d32;
    --gold-l: #f2dcaa;
    --night: #26170f;
    --night-m: #3d281f;
    --col: 490px;
    --w: min(100vw, var(--col));
    --f-h: 'Italiana', 'Didot', 'Times New Roman', serif;
    --f-n: 'Pinyon Script', 'Snell Roundhand', cursive;
    --f-b: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --ease: cubic-bezier(.22, .8, .24, 1);
    --gold-g: linear-gradient(135deg, #f6e4b4, #c99f55 35%, #f3dca2 55%, #a67c3c 80%, #e9cf91);
    --gold-t: linear-gradient(180deg, #d0a95f 0%, #8c642a 48%, #b98e47 72%, #7a5522 100%);
    --arch: 50% 50% 0 0 / 34.6% 34.6% 0 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; min-height: 100vh;
    font: 500 17px/1.7 var(--f-b);
    color: var(--ink); background: #e9dcc7;
    -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body.no-scroll { overflow: hidden; height: 100vh; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }
svg { display: block; }
.ico { width: 17px; height: 17px; flex: none; }

/* ── Kolom & bagian ── */
.stage { max-width: var(--col); margin: 0 auto; position: relative; overflow: hidden; background: var(--ivory); }
.sec { position: relative; padding: 96px 26px 88px; text-align: center; overflow: hidden; }
.sec > * { position: relative; z-index: 2; }
.sec-in { max-width: 380px; margin: 0 auto; }
.sec:not(.hero)::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 16px; z-index: 3; pointer-events: none; background: url('list-emas.svg') repeat-x left top / auto 16px; filter: drop-shadow(0 3px 4px rgba(90, 60, 30, .25)); }
.gading { background: url('latar-terang.svg') center top / 72px auto, radial-gradient(ellipse 90% 60% at 50% 0, #fffdf8, transparent 70%), var(--ivory); }
.sampanye { background: url('latar-terang.svg') center top / 72px auto, linear-gradient(180deg, #f6eadb, #efd9cf); }
.malam { color: #f5e9d8; background: url('latar-gelap.svg') center top / 90px auto, radial-gradient(ellipse 80% 45% at 50% 0, rgba(255, 214, 150, .2), transparent 70%), linear-gradient(180deg, var(--night-m), var(--night)); }
.sec-head { margin-bottom: 36px; }
.sec-sub { margin: 14px auto 0; max-width: 320px; font-size: 16.5px; color: var(--ink-s); }

/* ── Tipografi ── */
.h-k { font: 400 12.5px/1.4 var(--f-h); letter-spacing: .38em; text-transform: uppercase; color: var(--rose-d); }
.malam .h-k { color: var(--gold-l); }
.h-t { margin-top: 4px; font: 400 45px/1.18 var(--f-n); color: var(--ink); }
.gading .h-t, .sampanye .h-t { background: var(--gold-t); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 8px; }
.malam .h-t { background: var(--gold-g); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 8px; }
.h-t::after { content: ''; display: block; width: 210px; height: 26px; margin: 4px auto 0; background: url('pembatas.svg') center / contain no-repeat; }
.names-xl, .cv-names { font-family: var(--f-n); font-weight: 400; background: var(--gold-t); -webkit-background-clip: text; background-clip: text; color: transparent; }
.names-xl { margin: 4px 0 6px; font-size: 58px; line-height: 1.3; padding: 0 10px; }
.names-xl i, .cv-names i, .bk-mono i, .sd-n i, .and span { font-family: var(--f-b); font-style: italic; font-weight: 400; }
.names-xl i, .cv-names i { font-size: .6em; padding: 0 .1em; }
.bk-mono i { font-size: .62em; }
.salam { margin: 16px 0 8px; font: 400 14px/1.55 var(--f-h); letter-spacing: .03em; color: var(--rose-d); }
.body-c { max-width: 340px; margin: 0 auto 10px; color: var(--ink-s); font-size: 17px; line-height: 1.65; }
.date-l { display: inline-block; margin-top: 8px; padding: 9px 20px; font: 400 13.5px/1.4 var(--f-h); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-d); border-top: 1px solid rgba(196, 154, 92, .7); border-bottom: 1px solid rgba(196, 154, 92, .7); }

/* ── Bingkai lengkung emas ── */
.bk { position: relative; width: 168px; aspect-ratio: 240 / 340; margin: 0 auto; filter: drop-shadow(0 14px 16px rgba(90, 58, 30, .3)); }
.bk-ph { position: absolute; top: 11.76%; left: 11.67%; right: 11.67%; bottom: 10%; display: grid; place-items: center; overflow: hidden; border-radius: var(--arch);
    background: url('latar-terang.svg') center / 46px auto, radial-gradient(ellipse 70% 50% at 50% 30%, #fffaf1, transparent 75%), linear-gradient(175deg, #f8eddc, #ecd5c2); }
.bk-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bk::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: url('bingkai.svg') center / 100% 100% no-repeat; }
.bk-mono { position: relative; padding-top: 14%; font: 400 44px/1 var(--f-n); background: var(--gold-t); -webkit-background-clip: text; background-clip: text; color: transparent; padding-inline: 6px; }
.bk.rose .bk-ph.none { background: url('latar-terang.svg') center / 46px auto, radial-gradient(ellipse 70% 50% at 50% 30%, #fff5f1, transparent 75%), linear-gradient(175deg, #f6e2da, #e3bfb3); }

/* ── Tombol ── */
.btn, .btn-buka {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    margin: 4px; padding: 14px 30px; border: 0; border-radius: 999px;
    font: 600 13px/1 var(--f-b); letter-spacing: .24em; text-transform: uppercase; text-decoration: none; cursor: pointer;
    color: var(--ivory); background: linear-gradient(180deg, #4d3427, #2e1d15);
    box-shadow: inset 0 0 0 1px rgba(242, 220, 170, .7), 0 0 0 2px #fbf6ee, 0 0 0 3.2px var(--gold), 0 14px 20px -12px rgba(60, 35, 20, .6);
    transition: transform .25s var(--ease), filter .25s; -webkit-tap-highlight-color: transparent; overflow: hidden;
}
.btn::after, .btn-buka::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: sheen 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes sheen { 0%, 55% { transform: translateX(0) skewX(-20deg); } 100% { transform: translateX(480%) skewX(-20deg); } }
.btn:hover, .btn-buka:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-buka, .btn.emas { color: #2a1a10; text-shadow: 0 1px 0 rgba(255, 244, 214, .55); background: var(--gold-g); box-shadow: inset 0 0 0 1px rgba(255, 248, 225, .9), 0 0 0 2px rgba(251, 246, 238, .9), 0 0 0 3.2px #b98e47, 0 16px 22px -12px rgba(80, 50, 20, .6); }
.btn.sm { padding: 12px 22px; font-size: 11.5px; }
.btn.full { width: calc(100% - 8px); }
.btn:disabled { opacity: .7; cursor: default; transform: none; }
.btn-buka .ico { animation: beat 1.8s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.16); } }

/* ── Musik, kilau, toast ── */
.music-toggle-btn { position: fixed; bottom: 22px; right: max(14px, calc(50vw - var(--col) / 2 + 14px)); z-index: 1002; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: linear-gradient(180deg, #4d3427, #2e1d15); color: var(--gold-l); box-shadow: 0 0 0 2px #fbf6ee, 0 0 0 3.2px var(--gold), 0 8px 18px -6px rgba(60, 35, 20, .6); opacity: 0; pointer-events: none; transition: opacity .3s; -webkit-tap-highlight-color: transparent; }
body.opened .music-toggle-btn { opacity: 1; pointer-events: auto; }
.music-toggle-btn svg { width: 18px; height: 18px; }
.music-toggle-btn.playing { animation: spinSlow 4s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.petals { position: fixed; inset: 0; z-index: 900; pointer-events: none; overflow: hidden; }
.petals i { position: absolute; top: -30px; width: var(--s); height: var(--s); background: url('kilau.svg') center / contain no-repeat; opacity: 0; animation: glintFall var(--d) linear var(--w) infinite; will-change: transform, opacity; }
@keyframes glintFall {
    0% { transform: translate3d(0, 0, 0) scale(.6) rotate(0); opacity: 0; }
    10% { opacity: .95; }
    30% { transform: translate3d(calc(var(--x) * .3), 32vh, 0) scale(1) rotate(45deg); opacity: .5; }
    50% { transform: translate3d(calc(var(--x) * .6), 54vh, 0) scale(.7) rotate(90deg); opacity: 1; }
    75% { transform: translate3d(calc(var(--x) * .8), 80vh, 0) scale(1.05) rotate(135deg); opacity: .45; }
    100% { transform: translate3d(var(--x), 108vh, 0) scale(.6) rotate(180deg); opacity: 0; }
}
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 8000; transform: translate(-50%, 24px); padding: 11px 24px; border-radius: 999px; background: #2e1d15; color: var(--gold-l); box-shadow: 0 0 0 1.5px var(--gold); font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* muncul perlahan saat digulir */
[data-reveal] { opacity: 0; transform: translateY(26px) scale(.96); transition: opacity .95s ease var(--dl, 0s), transform 1s cubic-bezier(.2, .85, .25, 1) var(--dl, 0s); }
[data-reveal].shown { opacity: 1; transform: none; }
body.settled [data-reveal] { --dl: 0s !important; }

/* ════════════════════════════════════════════════════════════════
   COVER — pintu ballroom, tirai sutra & lampu gantung
   ════════════════════════════════════════════════════════════════ */
.side { display: none; }
.cover { position: fixed; inset: 0; z-index: 6000; display: grid; place-items: end center; padding-bottom: max(36px, 8vh); overflow: hidden; transition: opacity 1.25s ease, transform 1.4s cubic-bezier(.3, .6, .2, 1); background: #ecdcc2; }
.cover.open { opacity: 0; transform: scale(1.08); pointer-events: none; }
.cv-bg { position: absolute; inset: 0; animation: cvDrift 10s cubic-bezier(.2, .6, .2, 1) both; }
@keyframes cvDrift { from { transform: scale(1.12); } to { transform: none; } }
.cv-l { position: absolute; display: block; opacity: 0; background-repeat: no-repeat; background-size: 100% 100%; animation: cvFade 1.8s ease var(--dl, 0s) forwards; }
@keyframes cvFade { from { opacity: 0; } to { opacity: var(--o, 1); } }
.cv-dinding { left: -12%; width: 124%; top: 0; aspect-ratio: 400 / 500; background-image: url('dinding.svg'); --dl: 0s; }
.cv-lantai { left: 0; right: 0; top: calc(var(--w) * 1.55 - 4px); bottom: 0; background: radial-gradient(ellipse 50% 40% at 50% 0, rgba(255, 244, 220, .9), transparent 70%), linear-gradient(180deg, #d9bf97, #efe2cc 10%, #f7efe2 40%, #fbf6ee); --dl: 0s; }
.cv-pilar { top: 16%; width: 12%; aspect-ratio: 60 / 420; background-image: url('pilar.svg'); --dl: .2s; }
.cv-pilar.l { left: 13%; }
.cv-pilar.r { right: 13%; }
.cv-sisi { top: 0; width: 30%; aspect-ratio: 130 / 600; background-image: url('tirai-sisi.svg'); --dl: .35s; }
.cv-sisi.l { left: -3%; }
.cv-sisi.r { right: -3%; transform: scaleX(-1); }
.cv-tirai { left: -2%; width: 104%; top: -6px; aspect-ratio: 400 / 124; background-image: url('tirai.svg'); --dl: .5s; }
.cv-lampu { left: 31%; width: 38%; top: 6%; aspect-ratio: 200 / 220; --dl: .7s; }
.cv-lampu b { position: absolute; inset: 0; background: url('lampu-gantung.svg') center top / 100% 100% no-repeat; transform-origin: 50% 0; animation: sway 7s ease-in-out infinite; }
.cv-bunga { bottom: -2%; width: 60%; aspect-ratio: 300 / 172; background-image: url('bunga.svg'); --dl: .9s; }
.cv-bunga.l { left: -22%; }
.cv-bunga.r { right: -22%; transform: scaleX(-1); }
.cv-kilau { width: 6%; aspect-ratio: 1; background-image: url('kilau.svg'); --dl: 1.3s; }
.cv-kilau.k1 { left: 30%; top: 15%; }
.cv-kilau.k2 { right: 29%; top: 20%; width: 4.5%; --dl: 1.5s; }
.cv-kilau.k3 { left: 47%; top: 27%; width: 4%; --dl: 1.7s; }
.cover .cv-kilau { animation: cvFade 1s ease var(--dl) forwards, twinkle 3.4s ease-in-out calc(var(--dl) + 1s) infinite; }
.cover-in { position: relative; z-index: 3; width: 100%; max-width: 340px; padding: 0 14px; text-align: center; }
.cover-in::before { content: ''; position: absolute; inset: -40px -50px -30px; z-index: -1; background: radial-gradient(ellipse 56% 54% at 50% 54%, rgba(251, 246, 238, .97) 30%, rgba(251, 246, 238, .7) 58%, transparent 78%); }
.cover-in > * { animation: cvRise 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.cv-bk { width: 136px; animation-delay: .4s; }
.cv-k { margin-top: 12px; font: 400 12.5px/1.4 var(--f-h); letter-spacing: .4em; text-transform: uppercase; color: var(--rose-d); animation-delay: .7s; }
.cv-names { margin: 2px 0 10px; font-size: 52px; line-height: 1.04; display: flex; flex-direction: column; align-items: center; animation-delay: .85s; padding: 0 10px; }
.cv-to { margin-bottom: 18px; font-size: 15.5px; line-height: 1.55; color: var(--ink-s); animation-delay: 1s; }
.cv-to b { display: block; font: 400 19px/1.4 var(--f-h); letter-spacing: .06em; color: var(--ink); overflow-wrap: anywhere; }
.btn-buka { animation-delay: 1.2s; }
@keyframes cvRise { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes sway { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.6deg); } }

/* ════════════════════════════════════════════════════════════════
   BAGIAN PERTAMA: kamera menjauh dari balik tetes kristal ke ballroom,
   lalu ornamen muncul satu per satu
   ════════════════════════════════════════════════════════════════ */
.hero { min-height: 100svh; padding: calc(var(--w) * 1.06) 22px 70px; background: var(--ivory); }
.hero-in { position: relative; width: 100%; }
.hero-in::before { content: ''; position: absolute; inset: -60px -40px -30px; z-index: -1; background: radial-gradient(ellipse 62% 58% at 50% 50%, rgba(255, 252, 245, .95), transparent 76%); }
.hero-bk { width: 112px; margin-bottom: 4px; }

/* panggung dengan rasio tetap agar susunan sama di semua lebar */
.dp { position: absolute !important; left: 0; right: 0; top: 0; aspect-ratio: 390 / 1000; z-index: 0 !important; pointer-events: none; overflow: hidden; }
.dp-mid, .dp-front { z-index: 1 !important; }
.dp-l { position: absolute; display: block; opacity: 0; background-repeat: no-repeat; background-size: 100% 100%; transform: scale(var(--sx, 1), var(--sy, 1)); }
.dp-l > b { position: absolute; inset: 0; background-repeat: no-repeat; background-size: 100% 100%; }
body.opened:not(.settled) .dp-l { will-change: transform, opacity; }

/* jauh → dekat */
.d-glow { left: 0; right: 0; top: 0; height: 56%; background: radial-gradient(ellipse 60% 40% at 50% 30%, rgba(255, 236, 190, .9), transparent 70%), #ecdcc2; transform-origin: 50% 40%; --k: 1.3; --dur: 6.4s; --dl: 0s; }
.d-dinding { left: -10%; width: 120%; top: 0; aspect-ratio: 400 / 500; background-image: url('dinding.svg'); transform-origin: 50% 70%; --k: 1.35; --dur: 6.6s; --dl: .05s; }
.d-lantai { left: 0; right: 0; top: 54.5%; bottom: 0; background: radial-gradient(ellipse 46% 16% at 50% 0, rgba(255, 244, 218, .95), transparent 72%), linear-gradient(180deg, #d4b88e 0, #ead9bf 2%, #f5ecdd 12%, #fbf6ee 30%); transform-origin: 50% 0; --k: 1.3; --dur: 6.4s; --dl: .05s; }
.d-tangga { left: 6%; width: 88%; top: 36.8%; aspect-ratio: 400 / 222; background-image: url('tangga.svg'); transform-origin: 50% 100%; --k: 1.55; --dur: 6.4s; --dl: .12s; }
.d-pilar { top: 13%; width: 13%; aspect-ratio: 60 / 420; background-image: url('pilar.svg'); --k: 1.9; --dur: 6.2s; --dl: .14s; }
.d-pilar.l { left: 12%; transform-origin: 0 100%; }
.d-pilar.r { right: 12%; transform-origin: 100% 100%; }
.d-lampu-k { top: 9.5%; width: 21%; aspect-ratio: 200 / 220; --o: .9; --k: 1.8; --dur: 6.2s; --dl: .2s; }
.d-lampu-k.l { left: 6%; transform-origin: 0 0; }
.d-lampu-k.r { right: 6%; transform-origin: 100% 0; }
.d-lampu-k b, .d-lampu b { background-image: url('lampu-gantung.svg'); transform-origin: 50% 0; }
.d-bunga { top: 42%; width: 54%; aspect-ratio: 300 / 172; background-image: url('bunga.svg'); --k: 2.2; --dur: 6.2s; --dl: .16s; }
.d-bunga.l { left: -12%; transform-origin: 0 100%; }
.d-bunga.r { right: -12%; --sx: -1; transform-origin: 50% 100%; }
.d-sisi { top: 0; width: 25%; aspect-ratio: 130 / 600; background-image: url('tirai-sisi.svg'); --k: 2.4; --dur: 6.1s; --dl: .1s; }
.d-sisi.l { left: -3%; transform-origin: 0 0; }
.d-sisi.r { right: -3%; --sx: -1; transform-origin: 50% 0; }

/* ornamen: muncul bergiliran setelah zoom berjalan */
.d-tirai { left: -2%; width: 104%; top: -4px; aspect-ratio: 400 / 124; background-image: url('tirai.svg'); transform-origin: 50% 0; --ty: -26px; --dl: 2.4s; }
.d-lampu { left: 26%; width: 48%; top: 6.5%; aspect-ratio: 200 / 220; transform-origin: 50% 0; --ty: -40px; --dl: 2.8s; }
.d-kilau { width: 6%; aspect-ratio: 1; background-image: url('kilau.svg'); }
.d-kilau.s1 { left: 33%; top: 13%; --dl: 4.2s; }
.d-kilau.s2 { right: 31%; top: 17%; width: 4.5%; --dl: 4.5s; }
.d-kilau.s3 { left: 47.5%; top: 24.5%; width: 5%; --dl: 4.9s; }
.d-kilau.s4 { left: 15%; top: 21%; width: 3.6%; --dl: 5.2s; }

/* tetes kristal terdekat: buram → hilang, seolah kamera menjauh dari lampu */
.d-kristal.bl { top: -4%; width: 44%; aspect-ratio: 160 / 400; filter: blur(6px); background-image: url('kristal-dekat.svg'); transform-origin: 50% 0; }
.d-kristal.bl.l { left: -10%; }
.d-kristal.bl.r { right: -10%; --sx: -1; }
.d-kristal.bl.c { left: 30%; width: 40%; top: -8%; filter: blur(9px); }

body.opened :is(.d-glow, .d-dinding, .d-lantai, .d-tangga, .d-pilar, .d-lampu-k, .d-bunga, .d-sisi) { animation: dpZoom var(--dur, 6s) cubic-bezier(.22, .62, .2, 1) var(--dl, 0s) both; }
body.opened :is(.d-tirai, .d-lampu) { animation: dpPop 1.8s cubic-bezier(.2, .8, .2, 1) var(--dl, 0s) both; }
body.opened .d-kilau { animation: dpPop 1.2s cubic-bezier(.2, .8, .2, 1) var(--dl, 0s) both, twinkle 3.2s ease-in-out calc(var(--dl) + 1.2s) infinite; }
body.opened .d-kristal.bl { animation: dpLeafBlur 4.6s cubic-bezier(.22, .62, .2, 1) both; }
body.opened :is(.d-lampu, .d-lampu-k) b { animation: sway 7s ease-in-out 5s infinite; }
body.opened .d-lampu-k.r b { animation-delay: 6.4s; }

@keyframes dpZoom { from { opacity: 0; transform: scale(calc(var(--sx, 1) * var(--k, 1.5)), calc(var(--sy, 1) * var(--k, 1.5))); } 30% { opacity: var(--o, 1); } to { opacity: var(--o, 1); transform: scale(var(--sx, 1), var(--sy, 1)); } }
@keyframes dpPop { from { opacity: 0; transform: translateY(var(--ty, 12px)) scale(calc(var(--sx, 1) * .6), calc(var(--sy, 1) * .6)); } to { opacity: var(--o, 1); transform: scale(var(--sx, 1), var(--sy, 1)); } }
@keyframes dpLeafBlur { from { opacity: .95; transform: scale(calc(var(--sx, 1) * 2.2), 2.2); } 70% { opacity: 0; } to { opacity: 0; visibility: hidden; transform: scale(var(--sx, 1), 1); } }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1) rotate(0); } 50% { opacity: .3; transform: scale(.55) rotate(45deg); } }

/* ════════════════════════════════════════════════════════════════
   ISI
   ════════════════════════════════════════════════════════════════ */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: -6px 0 42px; align-items: end; }
.tr-i { position: relative; padding: 4px; border: 0; aspect-ratio: 1 / 1.5; border-radius: 50% 50% 6px 6px / 33.3% 33.3% 6px 6px; background: var(--gold-g); cursor: pointer; box-shadow: 0 14px 20px -14px rgba(90, 58, 30, .6); -webkit-tap-highlight-color: transparent; }
.tr-i::after { content: ''; position: absolute; inset: 7px; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 250, 235, .9); pointer-events: none; }
.tr-i img, .tr-i.ph::before { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: cover; border-radius: 50% 50% 4px 4px / 33.3% 33.3% 4px 4px; }
.tr-i img { transition: transform .6s var(--ease); }
.tr-i.t1 { aspect-ratio: 1 / 1.75; }
.tr-i.t1, .tr-i.t1 img, .tr-i.t1.ph::before { border-radius: 50% 50% 6px 6px / 28.6% 28.6% 6px 6px; }
.tr-i.ph { display: grid; place-items: center; cursor: default; }
.tr-i.ph::before { content: ''; background: url('latar-terang.svg') center / 46px auto, linear-gradient(175deg, #fbf3e6, #ecd5c2); }
.tr-i.ph svg { position: relative; z-index: 1; width: 52%; height: 52%; margin-top: 18%; color: var(--gold-d); }
.verse-t { margin-top: 20px; font: italic 500 18px/1.8 var(--f-b); color: var(--ink); }
.verse-s { margin-top: 16px; font: 400 13px/1.4 var(--f-h); letter-spacing: .3em; color: var(--rose-d); }

.sec-bunga { position: absolute !important; z-index: 1 !important; width: 120px; aspect-ratio: 1; top: 18px; background: url('bunga-sudut.svg') center / contain no-repeat; pointer-events: none; }
.sec-bunga.tl { left: -6px; }
.sec-bunga.tr { right: -6px; transform: scaleX(-1); }
.sec-sudut { position: absolute !important; z-index: 1 !important; width: 84px; aspect-ratio: 1; top: 30px; background: url('sudut.svg') center / contain no-repeat; opacity: .85; pointer-events: none; }
.sec-sudut.tl { left: 12px; }
.sec-sudut.tr { right: 12px; transform: scaleX(-1); }
.person { max-width: 320px; margin: 0 auto; }
.p-bk { width: 184px; }
.p-bk .bk-mono { font-size: 76px; }
.p-name { margin: 16px 0 6px; font: 400 42px/1.3 var(--f-n); color: var(--ink); }
.p-par { color: var(--ink-s); font-size: 17px; line-height: 1.65; }
.p-par b { font: 400 12px/1.5 var(--f-h); letter-spacing: .3em; text-transform: uppercase; color: var(--rose-d); }
.and { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 30px auto; max-width: 280px; }
.and i { flex: 1; height: 26px; background: url('pembatas.svg') center / auto 26px no-repeat; }
.and i:first-child { background-position: right center; }
.and i:last-child { background-position: left center; }
.and span { font: italic 400 56px/1 var(--f-b); background: var(--gold-t); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 8px; }

/* hitung mundur: malam ballroom */
#countdown { padding-top: 220px; }
.cd-lampu { position: absolute !important; z-index: 1 !important; top: 8px; left: 50%; width: 170px; margin-left: -85px; aspect-ratio: 200 / 220; background: url('lampu-gantung.svg') center top / 100% 100% no-repeat; transform-origin: 50% 0; animation: sway 7s ease-in-out infinite; }
.cd-sisi { position: absolute !important; z-index: 1 !important; top: 0; width: 96px; aspect-ratio: 130 / 600; background: url('tirai-sisi.svg') center top / 100% 100% no-repeat; opacity: .9; filter: brightness(.8); -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 92%); mask-image: linear-gradient(180deg, #000 55%, transparent 92%); }
.cd-sisi.l { left: -14px; }
.cd-sisi.r { right: -14px; transform: scaleX(-1); }
.arch-photo { position: relative; width: 100%; max-width: 240px; aspect-ratio: 240 / 340; margin: 0 auto 40px; filter: drop-shadow(0 20px 24px rgba(0, 0, 0, .45)); }
.arch-photo::after { content: ''; position: absolute; inset: 0; background: url('bingkai.svg') center / 100% 100% no-repeat; pointer-events: none; }
.arch-photo .bk-ph { background: radial-gradient(ellipse 70% 50% at 50% 30%, rgba(255, 220, 160, .35), transparent 75%), linear-gradient(175deg, #5a3a2c, #2a1a12); }
.arch-photo svg { position: relative; z-index: 1; width: 46%; height: 46%; margin-top: 14%; color: var(--gold-l); }
.quote-s { margin: 16px auto 28px; max-width: 320px; font: italic 500 17.5px/1.7 var(--f-b); color: #f0e2cf; }
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 340px; margin: 0 auto 30px; }
.cd > div { position: relative; aspect-ratio: 1 / 1.45; display: grid; place-content: center; padding-top: 18%; border-radius: 50% 50% 6px 6px / 34.5% 34.5% 6px 6px; background: var(--gold-g); box-shadow: 0 14px 22px -14px rgba(0, 0, 0, .7); }
.cd > div::before { content: ''; position: absolute; inset: 2.5px; border-radius: 50% 50% 4px 4px / 34.5% 34.5% 4px 4px; background: linear-gradient(115deg, rgba(255, 255, 255, .12) 0 30%, transparent 30% 46%, rgba(255, 255, 255, .06) 46% 54%, transparent 54%), linear-gradient(180deg, #4a3126, #24160f); }
.cd > div::after { content: ''; position: absolute; inset: 6px; border-radius: 50% 50% 3px 3px / 34.5% 34.5% 3px 3px; box-shadow: inset 0 0 0 1px rgba(242, 220, 170, .45); }
.cd > div > * { position: relative; z-index: 1; }
.cd b { display: block; font: 600 28px/1.1 var(--f-b); font-variant-numeric: lining-nums tabular-nums; color: var(--gold-l); }
.cd span { display: block; margin-top: 5px; font: 400 10px/1 var(--f-h); letter-spacing: .18em; text-transform: uppercase; color: rgba(245, 233, 216, .85); }

/* kartu acara: cermin berlengkung */
.event { position: relative; max-width: 360px; margin: 0 auto 44px; padding: 70px 26px 34px; border-radius: 200px 200px 10px 10px / 120px 120px 10px 10px; background: linear-gradient(180deg, #fffdf8, #f8eee0); box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 7px #fbf6ee, 0 0 0 8px rgba(196, 154, 92, .6), 0 26px 34px -24px rgba(90, 58, 30, .55); }
.event::before { content: ''; position: absolute; inset: 9px; border-radius: 190px 190px 6px 6px / 112px 112px 6px 6px; border: 1px solid rgba(196, 154, 92, .5); pointer-events: none; }
.event::after { content: ''; position: absolute; right: -14px; bottom: -14px; width: 96px; aspect-ratio: 1; background: url('bunga-sudut.svg') center / contain no-repeat; transform: scale(-1, -1); pointer-events: none; }
.event > * { position: relative; z-index: 1; }
.ev-ico { position: absolute !important; left: 50%; top: -30px; width: 60px; height: 60px; margin-left: -30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #4d3427, #2e1d15); box-shadow: 0 0 0 2px var(--gold), 0 0 0 6px #fbf6ee, 0 0 0 7px rgba(196, 154, 92, .6); }
.ev-ico svg { width: 36px; height: 36px; color: var(--gold-l); }
.ev-t { font: 400 46px/1.2 var(--f-n); background: var(--gold-t); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px; padding: 0 8px; }
.ev-l { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; font-size: 17px; color: var(--ink-s); }
.ev-l li { display: flex; align-items: flex-start; justify-content: center; gap: 10px; text-align: left; }
.ev-l .ico { margin-top: 5px; color: var(--rose); }
.loc { max-width: 380px; margin: 44px auto 0; }
.map { height: 210px; border-radius: 120px 120px 8px 8px / 70px 70px 8px 8px; border: 3px solid var(--gold); box-shadow: 0 0 0 4px #fbf6ee, 0 0 0 5px rgba(196, 154, 92, .6); overflow: hidden; margin-bottom: 22px; z-index: 0; }
.loc-name { font: 400 19px/1.4 var(--f-h); letter-spacing: .08em; color: var(--ink); }
.loc-addr { margin: 4px 0 18px; font-size: 16.5px; color: var(--ink-s); }

/* kisah: bab-bab dansa */
.tline { list-style: none; margin: 0 auto; padding: 0; max-width: 360px; position: relative; text-align: left; }
.tline::before { content: ''; position: absolute; left: 25px; top: 12px; bottom: 12px; width: 1.5px; background: linear-gradient(180deg, transparent, var(--gold) 10%, var(--gold) 90%, transparent); opacity: .85; }
.tl-i { position: relative; display: flex; gap: 18px; margin-bottom: 26px; }
.tl-i:last-child { margin-bottom: 0; }
.tl-dot { position: relative; flex: none; width: 52px; height: 52px; display: grid; place-items: center; margin-top: 6px; }
.tl-dot::before { content: ''; position: absolute; inset: 7px; transform: rotate(45deg); background: linear-gradient(180deg, #4d3427, #2e1d15); box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 4px var(--night-m), 0 0 0 5px rgba(196, 154, 92, .5); }
.tl-dot svg { position: relative; width: 26px; height: 26px; color: var(--gold-l); }
.tl-c { flex: 1; padding: 16px 18px 18px; background: linear-gradient(180deg, rgba(255, 240, 215, .08), rgba(255, 240, 215, .03)); border: 1px solid rgba(196, 154, 92, .55); border-radius: 60px 10px 10px 10px / 40px 10px 10px 10px; box-shadow: inset 0 0 0 4px rgba(38, 23, 15, .4), inset 0 0 0 5px rgba(196, 154, 92, .2); }
.tl-n { font: 400 11px/1 var(--f-h); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.tl-c h3 { font: 400 34px/1.25 var(--f-n); background: var(--gold-g); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 2px 0 4px; padding-right: 6px; }
.tl-c p { font-size: 16.5px; line-height: 1.65; color: #efe1cd; }

/* galeri: cermin aula */
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 400px; margin: 0 auto; padding: 0 4px; }
.gal-i { position: relative; padding: 0; border: 3px solid transparent; border-radius: 8px; overflow: hidden; aspect-ratio: 1 / 1.2; background: linear-gradient(#f8eee0, #f8eee0) padding-box, var(--gold-g) border-box; cursor: pointer; box-shadow: 0 0 0 3px #fbf6ee, 0 0 0 4px rgba(196, 154, 92, .55), 0 18px 24px -18px rgba(90, 58, 30, .7); -webkit-tap-highlight-color: transparent; }
.gal-i.g0 { grid-column: span 2; aspect-ratio: 16 / 11; border-radius: 300px 300px 8px 8px / 160px 160px 8px 8px; }
.gal-i.g1, .gal-i.g5 { border-radius: 50%; aspect-ratio: 1 / 1.3; }
.gal-i.g2, .gal-i.g4 { border-radius: 50% 50% 8px 8px / 41.7% 41.7% 8px 8px; }
.gal-i:nth-child(even):last-child { grid-column: span 2; aspect-ratio: 16 / 10; border-radius: 8px; }
.gal-i img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gal-i:hover img { transform: scale(1.05); }
.gal-i.ph { display: grid; place-items: center; cursor: default; background: url('latar-terang.svg') center / 46px auto padding-box, linear-gradient(175deg, #fbf3e6, #ecd5c2) padding-box, var(--gold-g) border-box; }
.gal-i.ph svg { width: 40%; height: 40%; color: var(--gold-d); opacity: .9; }

/* ── Form & ucapan ── */
.card { max-width: 400px; margin: 0 auto; padding: 30px 22px; background: linear-gradient(180deg, #fffdf8, #f9f0e3); border-radius: 10px; box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 6px #fbf6ee, 0 0 0 7px rgba(196, 154, 92, .55), 0 24px 32px -24px rgba(90, 58, 30, .55); text-align: left; }
.f-l { display: block; margin: 16px 0 6px; font: 400 12px/1.3 var(--f-h); letter-spacing: .24em; text-transform: uppercase; color: var(--rose-d); }
.form label.f-l:first-of-type { margin-top: 0; }
.f-in { width: 100%; padding: 11px 14px; border: 1px solid #dcc394; border-radius: 8px; background: #fffefa; color: var(--ink); font: 500 17px/1.5 var(--f-b); outline: none; transition: border-color .2s, box-shadow .2s; resize: vertical; }
.f-in:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196, 154, 92, .22); }
.choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ch input { position: absolute; opacity: 0; pointer-events: none; }
.ch span { display: block; padding: 11px 4px; text-align: center; font: 400 11.5px/1.3 var(--f-h); letter-spacing: .08em; border: 1px solid #dcc394; border-radius: 999px; background: #fffefa; color: var(--ink-s); cursor: pointer; transition: all .2s; }
.ch input:checked + span { background: linear-gradient(180deg, #4d3427, #2e1d15); border-color: #2e1d15; color: var(--gold-l); }
.ch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(196, 154, 92, .35); }
.form .btn { margin-top: 24px; }

.wish-head { display: flex; align-items: center; justify-content: space-between; max-width: 400px; margin: 50px auto 14px; }
.wish-head h3 { font: 400 38px/1.2 var(--f-n); background: var(--gold-t); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 6px; }
.wh-live { display: inline-flex; align-items: center; gap: 6px; font: 400 11px/1 var(--f-h); letter-spacing: .18em; text-transform: uppercase; color: var(--rose-d); }
.wh-live i { width: 7px; height: 7px; border-radius: 50%; background: #b9776f; animation: live 1.6s ease-in-out infinite; }
@keyframes live { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.wishes { max-width: 400px; margin: 0 auto; display: grid; gap: 12px; max-height: 480px; overflow-y: auto; padding: 2px 4px 2px 0; text-align: left; overscroll-behavior: contain; }
.wish-item { --av: var(--gold-d); display: flex; gap: 12px; padding: 14px 16px; background: #fffdf8; border: 1px solid rgba(196, 154, 92, .4); border-radius: 30px 8px 8px 8px; box-shadow: 0 10px 18px -16px rgba(90, 58, 30, .6); }
.wish-item.new { animation: wishIn .7s var(--ease) both; }
@keyframes wishIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.wish-avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--av); color: #fffaf0; font: 400 18px/1 var(--f-h); box-shadow: 0 0 0 2px #fffdf8, 0 0 0 3px rgba(196, 154, 92, .6); }
.wish-body { min-width: 0; flex: 1; }
.wish-header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wish-name { font: 600 17px/1.3 var(--f-b); overflow-wrap: anywhere; }
.wish-badge { padding: 2px 10px; border-radius: 999px; font: 400 10px/1.6 var(--f-h); letter-spacing: .1em; text-transform: uppercase; }
.wish-badge.hadir { background: #f1e3c4; color: #7d5a22; }
.wish-badge.tidak { background: #f2dcd7; color: #8e4f49; }
.wish-badge.ragu  { background: #ece4da; color: #6b5546; }
.wish-message { margin-top: 4px; font-size: 16.5px; line-height: 1.55; color: var(--ink-s); overflow-wrap: anywhere; }
.wish-time { display: block; margin-top: 6px; font-size: 14px; color: #9a8676; }
.wish-empty { text-align: center; padding: 20px; color: #9a8676; font-style: italic; }

/* ── Kado (partial) ── */
.gift-box { max-width: 420px; margin: 0 auto; border-radius: 10px; background: #fffdf8; overflow: hidden; color: var(--ink); text-align: left; box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 6px #fbf6ee, 0 0 0 7px rgba(196, 154, 92, .55), 0 22px 36px -26px rgba(90, 58, 30, .7); }
.gift-wrap .gs-heading h2 { font-family: var(--f-n) !important; font-weight: 400 !important; font-size: 38px !important; color: var(--gold-d) !important; }
.gift-wrap .gs-heading h2::after { background: var(--gold) !important; }
.gift-wrap .gs-card, .gift-wrap .gs-bank-card { border: 1px solid rgba(196, 154, 92, .45) !important; border-radius: 10px !important; }
.gift-wrap .gs-btn, .gift-wrap .gs-bank-copy { border-radius: 999px !important; font-family: var(--f-h) !important; letter-spacing: .08em; }
.gift-wrap .gs-btn-buy { background: #2e1d15 !important; color: var(--gold-l) !important; }
.gift-wrap .gs-bank-logo { background: #f1e3c4 !important; color: var(--gold-d) !important; }

/* ── Penutup: tangga ballroom ── */
.end { padding-top: 100px; padding-bottom: calc(var(--w) * 1.42); background: radial-gradient(ellipse 80% 40% at 50% 100%, rgba(255, 236, 196, .8), transparent 70%), url('latar-terang.svg') center top / 72px auto, var(--ivory); }
.end > i { position: absolute !important; z-index: 0 !important; pointer-events: none; background-repeat: no-repeat; background-size: 100% 100%; }
.end-dinding { left: -10%; width: 120%; bottom: 0; aspect-ratio: 400 / 500; background-image: url('dinding.svg'); -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%); mask-image: linear-gradient(180deg, transparent 4%, #000 30%); }
.end-tangga { left: 6%; width: 88%; bottom: 0; aspect-ratio: 400 / 222; background-image: url('tangga.svg'); }
.end-lampu { left: 30%; width: 40%; bottom: calc(var(--w) * .62); aspect-ratio: 200 / 220; background-image: url('lampu-gantung.svg'); }
.end-bunga { bottom: -4px; width: 54%; aspect-ratio: 300 / 172; background-image: url('bunga.svg'); z-index: 1 !important; }
.end-bunga.l { left: -14%; }
.end-bunga.r { right: -14%; transform: scaleX(-1); }
.end .sec-in { position: relative; }
.end-pembatas { display: block; width: 220px; height: 30px; margin: 0 auto 18px; background: url('pembatas.svg') center / contain no-repeat; }
.fam { margin: 22px 0 24px; display: grid; gap: 14px; font-size: 16.5px; color: var(--ink-s); }
.fam span { display: block; margin-bottom: 2px; font: 400 11.5px/1.5 var(--f-h); letter-spacing: .28em; text-transform: uppercase; color: var(--rose-d); }
.end-credit { font-size: 14px; color: #9a8676; }

/* ── Lightbox ── */
.gallery-lightbox { display: none; position: fixed; inset: 0; z-index: 7000; align-items: center; justify-content: center; background: rgba(30, 18, 12, .94); opacity: 0; transition: opacity .3s; }
.lb-img-wrap img { max-width: 92vw; max-height: 80vh; border: 3px solid var(--gold); border-radius: 8px; box-shadow: 0 0 0 4px rgba(251, 246, 238, .2); }
.lb-close, .lb-prev, .lb-next { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--gold-g); color: #2e1d15; font: 400 22px/1 var(--f-b); cursor: pointer; }
.lb-close { top: 18px; right: 18px; font-size: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: var(--gold-l); font: 400 13px/1 var(--f-h); letter-spacing: .16em; }

/* ════════════════════════════════════════════════════════════════
   DESKTOP: foto di kiri (tetap), undangan di kolom kanan
   ════════════════════════════════════════════════════════════════ */
@media (min-width: 900px) {
    :root { --w: var(--col); }
    .side { display: block; position: fixed; top: 0; bottom: 0; left: 0; right: var(--col); z-index: 1; overflow: hidden; background: #ecdcc2; }
    .side-photo { position: absolute; inset: 0; background: center / cover no-repeat; animation: zoomSlow 20s ease-in-out infinite alternate; }
    .side-photo.none { background: url('tirai.svg') center top / 100% auto no-repeat, url('lampu-gantung.svg') center top 14vh / auto 34vh no-repeat, url('tangga.svg') center bottom / min(80%, 900px) auto no-repeat, url('dinding.svg') center bottom / cover no-repeat; animation: none; }
    .side-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(38, 23, 15, .05) 30%, rgba(38, 23, 15, .78)); }
    .side-in { position: absolute; left: 0; right: 0; bottom: 11vh; padding: 0 40px; text-align: center; color: var(--ivory); }
    .side-photo.none ~ .side-shade { background: radial-gradient(ellipse 46% 30% at 50% 58%, rgba(251, 246, 238, .96) 40%, rgba(251, 246, 238, .6) 70%, transparent 90%); }
    .side-photo.none ~ .side-in { bottom: 30vh; color: var(--ink); }
    .sd-k { font: 400 15px/1.4 var(--f-h); letter-spacing: .44em; text-transform: uppercase; color: var(--gold-l); }
    .side-photo.none ~ .side-in .sd-k { color: var(--rose-d); }
    .sd-n { margin: 10px 0 14px; font: 400 clamp(60px, 6.6vw, 110px)/1.25 var(--f-n); background: var(--gold-g); -webkit-background-clip: text; background-clip: text; color: transparent; }
    .side-photo.none ~ .side-in .sd-n { background: var(--gold-t); -webkit-background-clip: text; background-clip: text; }
    .sd-n i { font-style: normal; font-size: .62em; }
    .sd-d { font: 400 16px/1.4 var(--f-h); letter-spacing: .24em; text-transform: uppercase; }
    .stage { margin-left: auto; margin-right: 0; width: var(--col); position: relative; z-index: 2; box-shadow: -12px 0 40px -18px rgba(60, 35, 20, .6); }
    .cover { left: auto; right: 0; width: var(--col); }
    .music-toggle-btn { right: 18px; }
    .toast { left: calc(100% - var(--col) / 2); }
    .petals { left: auto; width: var(--col); }
}
@keyframes zoomSlow { to { transform: scale(1.07); } }

@media (max-height: 720px) {
    .cv-bk { width: 104px; }
    .cv-names { font-size: 40px; margin: 0 0 6px; }
    .cv-to { margin-bottom: 12px; }
    .cv-lampu { width: 30%; left: 35%; top: 4%; }
}
@media (max-width: 360px) {
    .names-xl { font-size: 48px; }
    .cd b { font-size: 23px; }
    .h-t { font-size: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
    .petals { display: none; }
    .dp-l, .cv-l { opacity: var(--o, 1); animation: none !important; }
    .d-kristal.bl { opacity: 0; visibility: hidden; }
    .cover-in > * { animation: none !important; opacity: 1; }
}

/* kisah cinta dinamis */
.tl-n { line-height: 1.5; }
.tl-c h3 { overflow-wrap: anywhere; }
