/* ════════════════════════════════════════════════════════════════
   BOUGAINVILLEA RIVIERA — dinding kapur, laut teal, bougainvillea
   ════════════════════════════════════════════════════════════════ */
:root {
    --chalk: #fffaf3;
    --sand: #f6ead7;
    --teal: #1f7a8c;
    --teal-d: #145a68;
    --mag: #c2185b;
    --fuc: #d81b7a;
    --coral: #ff7a59;
    --olive: #4f6b3a;
    --gold: #c9a24a;
    --ink: #2a2d3a;
    --ink-s: #5b5f6e;
    --col: 490px;
    --f-n: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --f-s: 'Parisienne', 'Brush Script MT', cursive;
    --f-b: 'Jost', 'Helvetica Neue', Arial, sans-serif;
    --ease: cubic-bezier(.22, .8, .24, 1);
    --glide: cubic-bezier(.22, .65, .2, 1);
    --grad: linear-gradient(135deg, #d81b7a, #ff7a59);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; min-height: 100vh;
    font: 400 14.5px/1.8 var(--f-b);
    color: var(--ink); background: var(--chalk);
    -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; }
body.paused *, body.paused *::before, body.paused *::after { animation-play-state: paused !important; }

/* ── Kolom ── */
.stage { max-width: var(--col); margin: 0 auto; position: relative; overflow: hidden; background: var(--chalk); }
.sec { position: relative; padding: 84px 26px; text-align: center; overflow: hidden; }
.sec > * { position: relative; z-index: 2; }
.sec-in { max-width: 380px; margin: 0 auto; }
.sec-head { margin-bottom: 30px; }
.sec-sub { margin: 10px auto 0; max-width: 320px; font-size: 13.5px; opacity: .9; }
.eyebrow { font: 500 11px/1.4 var(--f-b); letter-spacing: .34em; text-transform: uppercase; color: var(--coral); margin-bottom: 4px; }

/* warna bagian */
.chalk { background:
    radial-gradient(rgba(150, 120, 80, .06) 1px, transparent 1.3px) 0 0 / 11px 11px,
    linear-gradient(180deg, var(--chalk), #fdf3e6); }
.sand { background:
    radial-gradient(rgba(150, 110, 70, .07) 1px, transparent 1.3px) 0 0 / 11px 11px,
    linear-gradient(180deg, var(--sand), #f1e0c6); }
.sea { background: linear-gradient(180deg, #1f7a8c, #18697a 55%, var(--teal-d)); color: var(--chalk); }
.dusk { background: linear-gradient(180deg, var(--teal-d) 0%, #3d3a78 42%, #8e1f63 82%, var(--mag) 100%); color: #fff; }
.tiled::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: url('tile.svg') 0 0 / 54px 54px; opacity: .22; }

/* tenda (awning) bergerigi sebagai pembatas antar bagian */
.sec::before { content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 26px; z-index: 3; pointer-events: none; background: url('awning.svg') 0 0 / 80px 26px repeat-x; }
#hero::before { display: none; }
#mempelai::before, #acara::before, #kado::before { background-image: url('awning-teal.svg'); }
#kisah::before, #rsvp::before { background-image: url('awning-sand.svg'); }

/* hiasan bougainvillea statis */
.dec { position: absolute !important; z-index: 1 !important; pointer-events: none; background: no-repeat center / contain; }
.dec-vl, .dec-vr { top: 14px; width: min(21%, 84px); aspect-ratio: 328 / 532; background-image: url('vine.svg'); }
.dec-vl { left: 0; }
.dec-vr { right: 0; transform: scaleX(-1); }
.dec-cl, .dec-cr { bottom: 0; width: min(46%, 190px); aspect-ratio: 468 / 372; background-image: url('corner.svg'); background-position: left bottom; }
.dec-cl { left: 0; }
.dec-cr { right: 0; transform: scaleX(-1); }

/* ── Tipografi ── */
.script-xl { font: 400 54px/1.15 var(--f-s); color: var(--mag); }
#hero .script-xl { font-size: 50px; white-space: nowrap; }
.script-xl.w { color: #fff; }
.script-l { font: 400 40px/1.2 var(--f-s); color: var(--chalk); }
.script-l.dark { color: var(--mag); }
.salam { margin: 24px 0 10px; font: italic 500 18px/1.5 var(--f-n); color: var(--teal-d); }
.salam.w { color: #ffe3d6; }
.body-c { max-width: 330px; margin: 0 auto 18px; color: var(--ink-s); font-size: 14px; }
.body-c.w { color: #fff; opacity: .92; }
.date-l { margin-top: 8px; font: 600 17px/1.5 var(--f-n); letter-spacing: .22em; text-transform: uppercase; color: var(--teal-d); }
.vdiv { display: block; width: 240px; height: 28px; margin: 6px auto 0; background: url('vine-div.svg') center / contain no-repeat; }
.vdiv.light { filter: brightness(1.12); opacity: .95; }

/* ── Tombol ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 28px; border: 0; border-radius: 99px;
    font: 500 12px/1 var(--f-b); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; cursor: pointer;
    color: #fff; background: var(--grad);
    box-shadow: 0 10px 20px -10px rgba(194, 24, 91, .85);
    transition: transform .25s var(--ease), filter .25s; -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn.teal { background: linear-gradient(135deg, #2a8fa3, var(--teal-d)); box-shadow: 0 10px 20px -10px rgba(20, 90, 104, .9); }
.btn.cream { background: var(--chalk); color: var(--teal-d); box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .45); }
.btn.sm { padding: 11px 20px; font-size: 11px; }
.btn.full { width: 100%; }
.btn:disabled { opacity: .7; cursor: default; transform: none; }

/* ── Musik, kelopak, toast ── */
.music-toggle-btn { position: fixed; bottom: 22px; right: max(14px, calc(50vw - var(--col) / 2 + 14px)); z-index: 1002; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: var(--chalk); color: var(--mag); box-shadow: 0 6px 16px -6px rgba(20, 60, 70, .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: calc(var(--s) * 1.2); background: currentColor; border-radius: 55% 45% 60% 40% / 65% 55% 45% 35%; opacity: 0; animation: petalFall var(--d) linear var(--w) infinite; will-change: transform; }
@keyframes petalFall { 0% { transform: translate3d(0, 0, 0) rotate(0); opacity: 0; } 8% { opacity: .85; } 90% { opacity: .7; } 100% { transform: translate3d(var(--x), 108vh, 0) rotate(480deg); opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 8000; transform: translate(-50%, 24px); padding: 11px 22px; border-radius: 99px; background: var(--teal-d); color: #fff; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* reveal halus: naik pelan + fade */
[data-reveal] { opacity: 0; transform: translateY(22px) scale(.97); transition: opacity 1s ease var(--dl, 0s), transform 1.1s var(--ease) var(--dl, 0s); }
[data-reveal].shown { opacity: 1; transform: none; }
.zi { animation: zoomIn 1.1s var(--ease) var(--dl, 0s) both; }
@keyframes zoomIn { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }

/* ════════════════════════════════════════════════════════════════
   COVER — gerbang lengkung berbingkai bougainvillea
   ════════════════════════════════════════════════════════════════ */
.cover { position: fixed; inset: 0; z-index: 6000; display: grid; place-items: center; overflow: hidden; background: var(--chalk); transition: opacity 1.3s ease .2s, transform 1.8s cubic-bezier(.55, 0, .25, 1); }
.cover.open { opacity: 0; transform: scale(1.45); pointer-events: none; }
.cv-wall { position: absolute; inset: 0; background:
    radial-gradient(rgba(150, 120, 80, .07) 1px, transparent 1.3px) 0 0 / 10px 10px,
    linear-gradient(180deg, #cfeaee 0%, #eef6f2 26%, var(--chalk) 52%, var(--sand) 100%); }
.cv-l { position: absolute; display: block; pointer-events: none; background: no-repeat center / contain; opacity: 0; }
.cv-sun { top: 5%; right: 8%; width: 130px; height: 130px; background: radial-gradient(circle, #fff4cf 0 22%, rgba(255, 214, 160, .55) 40%, transparent 70%); animation: fadeIn 2.4s ease .2s both; }
.cv-village { left: -8%; top: 21%; width: 116%; height: 170px; background-image: url('village.svg'); background-size: 100% 100%; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); animation: fadeIn 2.6s ease .4s both; --o: .55; }
.cv-sail { left: 16%; top: 24%; width: 28px; height: 34px; background-image: url('sail.svg'); animation: fadeIn 2.6s ease .8s both; }
.cv-garland { top: -4px; left: 0; width: 100%; height: 84px; background-image: url('garland.svg'); background-size: 100% 100%; transform-origin: 50% 0; animation: dropIn 1.3s var(--ease) .7s both, swing 6s ease-in-out 2.2s infinite alternate; }
.cv-vine { top: -8px; width: min(52vw, 230px); aspect-ratio: 328 / 532; background-image: url('vine.svg'); background-position: top center; transform-origin: 50% 0; }
.cv-vine.l { left: -26px; animation: dropIn 1.7s var(--ease) .1s both, sway 8s ease-in-out 2s infinite alternate; }
.cv-vine.r { right: -26px; transform: scaleX(-1); animation: dropIn 1.7s var(--ease) .3s both, sway 9s ease-in-out 2.2s infinite alternate-reverse; }
.cv-lemon { right: -30px; top: 40%; width: 104px; aspect-ratio: 220 / 300; background-image: url('lemon.svg'); transform-origin: 80% 0; animation: swingIn 1.6s var(--ease) 1.2s both; }
.cv-pot { bottom: 6px; width: 88px; aspect-ratio: 212 / 284; background-image: url('pot.svg'); background-position: bottom center; animation: riseIn 1.2s var(--ease) 1s both; }
.cv-pot.l { left: 8px; }
.cv-pot.r { right: 8px; animation-delay: 1.15s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: var(--o, 1); } }
@keyframes dropIn { from { opacity: 0; translate: 0 -46px; } to { opacity: 1; translate: 0 0; } }
@keyframes riseIn { from { opacity: 0; translate: 0 50px; } to { opacity: 1; translate: 0 0; } }
@keyframes swingIn { from { opacity: 0; rotate: 16deg; } to { opacity: 1; rotate: 0deg; } }
@keyframes sway { from { rotate: -1.3deg; } to { rotate: 1.5deg; } }
@keyframes swing { from { rotate: -.5deg; } to { rotate: .6deg; } }

.cv-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 58px; background: repeating-linear-gradient(90deg, rgba(150, 110, 70, .22) 0 1px, transparent 1px 46px), linear-gradient(#f0dfc3, #e3cba3); box-shadow: 0 -1px 0 rgba(150, 110, 70, .3); }
.cover-in { position: relative; z-index: 3; align-self: end; margin-bottom: 57px; display: grid; place-items: center; width: 100%; }
.cv-ring {
    --rw: min(90vw, 352px, calc(70svh * .6977));
    position: relative; width: var(--rw); aspect-ratio: 300 / 430; container-type: inline-size;
    background: url('arch.svg') center / 100% 100% no-repeat;
    animation: ringIn 1.5s var(--ease) .15s both;
}
@keyframes ringIn { from { opacity: 0; scale: .88; } to { opacity: 1; scale: 1; } }
.cv-open { position: absolute; left: 15%; right: 15%; top: 14%; bottom: 0; border-radius: 999px 999px 0 0; background: linear-gradient(180deg, #d4ecf0, #f4f8f3 48%, #fff6e8); }
.cv-txt { position: absolute; left: 15%; right: 15%; top: 24%; bottom: 3%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.cv-k { font: 500 10.5px/1.4 var(--f-b); font-size: 3.1cqw; letter-spacing: .3em; text-transform: uppercase; color: var(--teal); }
.cv-names { display: flex; flex-direction: column; align-items: center; margin: 2.2cqw 0 1cqw; font: 400 46px/1 var(--f-s); font-size: 15cqw; color: var(--mag); }
.cv-names i { font: italic 500 22px/1.2 var(--f-n); font-size: 7.5cqw; color: var(--coral); }
.cv-date { font: 600 12px/1.4 var(--f-n); font-size: 3.9cqw; letter-spacing: .26em; color: var(--ink); }
.cv-vd { display: block; width: 66%; height: 8cqw; margin: 1cqw 0; background: url('vine-div.svg') center / contain no-repeat; }
.cv-to { margin-bottom: 3cqw; font-size: 3.2cqw; line-height: 1.6; color: var(--ink-s); }
.cv-to b { display: block; font: 600 17px/1.35 var(--f-n); font-size: 5.3cqw; color: var(--ink); overflow-wrap: anywhere; max-width: 100%; }
.cv-txt .btn { padding: 3.4cqw 6.2cqw; font-size: 2.9cqw; letter-spacing: .14em; }
.cv-txt .btn .ico { width: 4.8cqw; height: 4.8cqw; }
.cv-txt .btn .ico { animation: beat 1.8s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }

/* ════════════════════════════════════════════════════════════════
   HERO — zoom-out pelan berlapis, lalu ornamen muncul satu per satu
   ════════════════════════════════════════════════════════════════ */
#hero { min-height: 900px; padding: 118px 24px 220px; }
.dp { position: absolute !important; inset: 0; z-index: 0 !important; pointer-events: none; overflow: hidden; }
.dp-front { z-index: 1 !important; }
.dp-l { position: absolute; display: block; opacity: 0; background: no-repeat center / contain; }
body.opened:not(.settled) .dp-l { will-change: transform, opacity; }

/* jauh: langit, matahari, laut, desa putih */
.dp-sky { inset: 0; background: linear-gradient(180deg, #bfe6ea 0, #dff1f1 130px, #fffaf3 340px, #fdf3e6 100%); transform-origin: 50% 20%; --z0: 1.2; }
.dp-sun { top: 36px; right: 12%; width: 150px; height: 150px; background: radial-gradient(circle, #fff4cf 0 24%, rgba(255, 214, 160, .6) 42%, transparent 70%); transform-origin: 50% 50%; --z0: 1.5; --o: .9; }
.dp-sea { top: 156px; left: -3%; width: 106%; height: 130px; background-image: url('sea.svg'); background-size: 100% 100%; -webkit-mask-image: linear-gradient(transparent, #000 28%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 28%, #000 70%, transparent); transform-origin: 50% 100%; --z0: 1.35; --o: .9; }
.dp-birds { top: 62px; left: 12%; width: 104px; height: 34px; background-image: url('birds.svg'); transform-origin: 50% 50%; --z0: 1.8; --o: .8; }
.dp-sail { top: 182px; left: 24%; width: 30px; height: 36px; background-image: url('sail.svg'); transform-origin: 50% 100%; --z0: 1.7; }
.dp-village { top: 132px; left: -6%; width: 112%; height: 170px; background-image: url('village.svg'); background-size: 100% 100%; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); transform-origin: 50% 100%; --z0: 1.55; --o: .96; }

/* tengah */
.dp-garland { top: -4px; left: 0; width: 100%; height: 86px; background-size: 100% 100%; background-image: url('garland.svg'); transform-origin: 50% 0; }
.dp-shutter { top: 262px; width: 76px; height: 190px; background-image: url('shutter.svg'); background-position: top center; --z0: 1.6; }
.dp-shutter.l { left: -4px; transform-origin: 0 50%; }
.dp-shutter.r { right: -4px; transform: scaleX(-1); transform-origin: 100% 50%; }
.dp-vfar { top: 0; width: 140px; aspect-ratio: 328 / 532; background-image: url('vine.svg'); background-position: top center; filter: blur(1.2px) saturate(.8); transform-origin: 50% 0; --z0: 1.8; --o: .55; }
.dp-vfar.l { left: 46px; }
.dp-vfar.r { right: 46px; transform: scaleX(-1); }

/* dekat */
.dp-lemon { top: 252px; right: -34px; width: 118px; aspect-ratio: 220 / 300; background-image: url('lemon.svg'); transform-origin: 80% 0; }
.dp-corner { bottom: -18px; width: min(66%, 300px); aspect-ratio: 468 / 372; background-image: url('corner.svg'); --z0: 2; }
.dp-corner.bl { left: -22px; background-position: left bottom; transform-origin: 0 100%; }
.dp-corner.br { right: -22px; background-position: left bottom; transform: scaleX(-1); transform-origin: 100% 100%; }
.dp-pot { bottom: 10px; width: 96px; aspect-ratio: 212 / 284; background-image: url('pot.svg'); background-position: bottom center; }
.dp-pot.l { left: 12px; }
.dp-pot.r { right: 12px; }
.dp-vine { top: -10px; width: min(56%, 230px); aspect-ratio: 328 / 532; background-image: url('vine.svg'); background-position: top center; transform-origin: 50% 0; --z0: 2.1; }
.dp-vine.l { left: -24px; transform-origin: 0 0; }
.dp-vine.r { right: -24px; transform: scaleX(-1); transform-origin: 100% 0; }
.dp-leaf { top: -60px; width: 190px; height: 270px; background-image: url('leaf-near.svg'); background-position: top left; filter: blur(3px) brightness(.95); --z0: 2.6; --o: .26; }
.dp-leaf.l { left: -64px; transform-origin: 0 0; }
.dp-leaf.r { right: -64px; transform: scaleX(-1); transform-origin: 100% 0; }

/* kuncup yang bermekaran satu per satu */
.dp-pop { width: 66px; height: 66px; transform-origin: 50% 60%; }
.dp-pop.p1 { top: 238px; left: 22px; background-image: url('blossom-a.svg'); }
.dp-pop.p2 { top: 214px; right: 20px; background-image: url('blossom-b.svg'); width: 58px; height: 58px; }
.dp-pop.p3 { top: 428px; left: 2px; background-image: url('blossom-c.svg'); width: 54px; height: 54px; }
.dp-pop.p4 { top: 440px; right: 4px; background-image: url('blossom-a.svg'); width: 62px; height: 62px; }
.dp-pop.p5 { top: 96px; left: 46%; background-image: url('blossom-b.svg'); width: 46px; height: 46px; }
.dp-pop.p6 { top: 120px; left: 30%; background-image: url('blossom-c.svg'); width: 40px; height: 40px; }

/* — keyframe generik: skala memakai properti `scale` agar tidak bentrok dengan mirror transform — */
@keyframes dpZoom { from { opacity: 0; scale: var(--z0, 1.4); } 18% { opacity: var(--o, 1); } to { opacity: var(--o, 1); scale: 1; } }
@keyframes dpPop { 0% { opacity: 0; scale: .1; rotate: -30deg; } 62% { opacity: 1; scale: 1.14; rotate: 5deg; } 100% { opacity: 1; scale: 1; rotate: 0deg; } }
@keyframes dpDrop { from { opacity: 0; translate: 0 -34px; } to { opacity: 1; translate: 0 0; } }
@keyframes dpRise { from { opacity: 0; translate: 0 60px; } to { opacity: 1; translate: 0 0; } }
@keyframes dpSwing { from { opacity: 0; rotate: 18deg; } to { opacity: 1; rotate: 0deg; } }
@keyframes archIn { from { opacity: 0; scale: 1.35; } 40% { opacity: 1; } to { opacity: 1; scale: 1; } }

/* tahap 1 (0–6 dtk): zoom-out semua lapisan dengan kecepatan berbeda */
body.opened .dp-sky, body.opened .dp-sun, body.opened .dp-sea, body.opened .dp-birds, body.opened .dp-sail, body.opened .dp-village,
body.opened .dp-shutter, body.opened .dp-vfar, body.opened .dp-corner, body.opened .dp-vine, body.opened .dp-leaf { animation: dpZoom 6.2s var(--glide) .1s both; }
body.opened .dp-sea { animation-delay: .25s; }
body.opened .dp-village { animation-delay: .35s; }
body.opened .dp-shutter { animation-duration: 5.8s; animation-delay: .6s; }
body.opened .dp-vfar { animation-delay: .3s; }
body.opened .dp-corner { animation-duration: 6s; animation-delay: .2s; }
body.opened .dp-vine { animation-duration: 5.6s; }
body.opened .dp-leaf { animation-duration: 5.2s; animation-delay: 0s; }

/* tahap 2 (±2–6 dtk): ornamen muncul bergantian */
body.opened .h-arch { animation: archIn 3.4s var(--glide) 1s both; }
body.opened .dp-garland { animation: dpDrop 1.4s var(--ease) 2.2s both, swing 6s ease-in-out 3.8s infinite alternate; }
body.opened .dp-lemon { animation: dpSwing 1.6s var(--ease) 2.6s both; }
body.opened .dp-pot.l { animation: dpRise 1.3s var(--ease) 3s both; }
body.opened .dp-pot.r { animation: dpRise 1.3s var(--ease) 3.25s both; }
body.opened .dp-pop.p1 { animation: dpPop 1s var(--ease) 3.5s both; }
body.opened .dp-pop.p2 { animation: dpPop 1s var(--ease) 3.85s both; }
body.opened .dp-pop.p5 { animation: dpPop 1s var(--ease) 4.2s both; }
body.opened .dp-pop.p6 { animation: dpPop 1s var(--ease) 4.5s both; }
body.opened .dp-pop.p3 { animation: dpPop 1s var(--ease) 4.8s both; }
body.opened .dp-pop.p4 { animation: dpPop 1s var(--ease) 5.1s both; }
/* goyang halus setelah semuanya tampil (hanya 2 lapisan) */
body.opened .dp-vine.l { animation: dpZoom 5.6s var(--glide) .1s both, sway 8s ease-in-out 6s infinite alternate; }
body.opened .dp-vine.r { animation: dpZoom 5.6s var(--glide) .1s both, sway 9s ease-in-out 6.4s infinite alternate-reverse; }

.h-arch { position: relative; width: min(68vw, 262px); aspect-ratio: 300 / 430; margin: 0 auto 34px; opacity: 0; background: url('arch.svg') center / 100% 100% no-repeat; }
.h-arch::before, .h-arch::after { content: ''; position: absolute; left: -8%; right: -8%; bottom: -9px; height: 10px; border-radius: 2px; background: #e8dcc4; box-shadow: inset 0 -2px 0 rgba(150, 110, 70, .25); }
.h-arch::after { left: -16%; right: -16%; bottom: -19px; background: #dccdae; }
.h-photo { position: absolute; left: 15%; top: 14%; width: 70%; height: 86%; border-radius: 999px 999px 0 0; overflow: hidden; background: linear-gradient(165deg, #ff9a6c, var(--mag)); }
.h-photo img { width: 100%; height: 100%; object-fit: cover; }
.h-photo.mono { display: grid; place-items: center; color: #fff; }
.h-photo.mono span { font: 400 56px/1 var(--f-s); display: flex; align-items: center; gap: 4px; }
.h-photo.mono span i { font: italic 400 26px/1 var(--f-n); color: #ffe3d6; }

/* ════════════════════════════════════════════════════════════════
   ISI
   ════════════════════════════════════════════════════════════════ */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: -6px 0 26px; align-items: end; }
.tr-i { position: relative; padding: 0; border: 3px solid var(--chalk); border-bottom-width: 0; border-radius: 999px 999px 0 0; overflow: hidden; background: rgba(255, 250, 243, .18); cursor: pointer; aspect-ratio: 1 / 1.45; -webkit-tap-highlight-color: transparent; }
.tr-i.t1 { aspect-ratio: 1 / 1.7; }
.tr-i img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tr-i:hover img { transform: scale(1.06); }
.tr-i.ph { display: grid; place-items: center; cursor: default; }
.tr-i.ph svg { width: 56%; height: 56%; color: #ff9a6c; }
.tr-i.t1.ph svg { color: #f58bb7; }
.verse-t { margin-top: 20px; font: italic 400 17px/1.8 var(--f-n); }
.verse-s { margin-top: 14px; font-size: 12.5px; letter-spacing: .14em; opacity: .9; }
#salam { padding-bottom: 96px; }

.person { max-width: 320px; margin: 0 auto; }
.p-arch { position: relative; width: 178px; aspect-ratio: 300 / 430; margin: 0 auto 8px; background: url('arch.svg') center / 100% 100% no-repeat; }
.p-in { position: absolute; left: 15%; top: 14%; width: 70%; height: 86%; border-radius: 999px 999px 0 0; overflow: hidden; display: grid; place-items: center; color: #fff; background: linear-gradient(165deg, #2a8fa3, var(--teal-d)); }
.p-in.rose { background: linear-gradient(165deg, #ff9a6c, var(--mag)); }
.p-in span { font: 400 74px/1 var(--f-s); }
.p-bl { position: absolute; right: -14px; bottom: -6px; width: 62px; height: 62px; background: url('blossom-a.svg') center / contain no-repeat; }
.person:nth-of-type(2) .p-bl { right: auto; left: -14px; background-image: url('blossom-b.svg'); }
.p-name { font: 600 27px/1.2 var(--f-n); color: var(--teal-d); margin-top: 10px; }
.p-par { margin-top: 8px; color: var(--ink-s); font-size: 14px; line-height: 1.75; }
.p-par b { font: 500 11px/1 var(--f-b); letter-spacing: .24em; text-transform: uppercase; color: var(--coral); }
.amp { margin: 26px 0 22px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.amp::before, .amp::after { content: ''; width: 64px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.amp::after { transform: scaleX(-1); }
.amp span { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font: 400 32px/1 var(--f-s); padding-top: 4px; box-shadow: 0 8px 18px -8px rgba(194, 24, 91, .8); }
#mempelai { padding-bottom: 150px; }

.arch-photo { position: relative; width: 100%; max-width: 300px; aspect-ratio: 1 / 1.1; margin: -4px auto 40px; border-radius: 999px 999px 8px 8px; border: 4px solid var(--chalk); box-shadow: 0 0 0 1px rgba(255, 250, 243, .5), 0 0 0 9px rgba(255, 250, 243, .12); overflow: hidden; background: linear-gradient(165deg, #ff9a6c, var(--mag)); display: grid; place-items: center; }
.arch-photo img { width: 100%; height: 100%; object-fit: cover; }
.arch-photo svg { width: 42%; height: 42%; color: rgba(255, 250, 243, .92); }
#countdown { padding-top: 90px; padding-bottom: 84px; }
.quote-s { margin: 12px auto 26px; max-width: 300px; font: italic 400 16px/1.7 var(--f-n); opacity: .95; }
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 28px; }
.cd div { position: relative; padding: 14px 2px 10px; background: var(--chalk); color: var(--teal-d); border-radius: 14px; box-shadow: inset 0 0 0 2px var(--chalk), inset 0 0 0 3px rgba(194, 24, 91, .45), 0 12px 20px -14px rgba(0, 0, 0, .6); }
.cd b { display: block; font: 600 32px/1.05 var(--f-n); font-variant-numeric: tabular-nums; color: var(--mag); }
.cd span { display: block; margin-top: 2px; font: 500 10.5px/1.3 var(--f-b); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-d); }

/* kartu pos */
.event { position: relative; max-width: 360px; margin: 0 auto 26px; padding: 44px 22px 26px; background: #fff; border: 7px solid transparent; border-image: repeating-linear-gradient(135deg, var(--mag) 0 12px, #fff 12px 24px, var(--teal) 24px 36px, #fff 36px 48px) 7; box-shadow: 0 22px 34px -26px rgba(80, 40, 30, .6); }
.stamp { position: absolute; top: 9px; right: 9px; width: 38px; height: 46px; display: grid; place-items: center; background: var(--chalk); border: 2px dotted var(--coral); transform: rotate(5deg); }
.stamp.t2 { transform: rotate(-4deg); }
.stamp svg { width: 70%; height: 70%; color: var(--mag); }
.ev-t { font: 400 40px/1.2 var(--f-s); color: var(--mag); margin-bottom: 12px; }
.ev-l { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 9px; font-size: 14px; 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: 4px; color: var(--teal); }
.loc { max-width: 380px; margin: 38px auto 0; }
.map { height: 210px; border-radius: 999px 999px 14px 14px; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--teal); overflow: hidden; margin-bottom: 20px; z-index: 0; }
.loc-name { font: 600 22px/1.4 var(--f-n); color: var(--teal-d); }
.loc-addr { margin: 4px 0 18px; font-size: 13.5px; color: var(--ink-s); }
#acara { padding-bottom: 110px; }

.tline { list-style: none; margin: 0 auto; padding: 0; max-width: 360px; position: relative; text-align: left; }
.tline::before { content: ''; position: absolute; left: 21px; top: 10px; bottom: 10px; border-left: 2px dashed rgba(194, 24, 91, .4); }
.tl-i { position: relative; display: flex; gap: 16px; margin-bottom: 26px; }
.tl-i:last-child { margin-bottom: 0; }
.tl-dot { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; border: 2px solid var(--coral); box-shadow: 0 6px 12px -6px rgba(194, 24, 91, .6); }
.tl-dot svg { width: 28px; height: 28px; color: var(--mag); }
.tl-i:nth-child(2) .tl-dot svg { color: var(--coral); }
.tl-i:nth-child(3) .tl-dot svg { color: var(--fuc); }
.tl-c { flex: 1; padding: 14px 18px 16px; background: #fff; border-left: 4px solid var(--teal); border-radius: 4px 18px 18px 4px; box-shadow: 0 14px 24px -20px rgba(60, 40, 30, .7); }
.tl-c h3 { font: 400 30px/1.2 var(--f-s); color: var(--mag); margin-bottom: 2px; }
.tl-c p { font-size: 13.5px; line-height: 1.75; color: var(--ink-s); }
#kisah { padding-bottom: 140px; }

.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 400px; margin: 0 auto; }
.gal-i { position: relative; padding: 0; border: 4px solid var(--chalk); border-radius: 6px; overflow: hidden; aspect-ratio: 1 / 1.15; background: #2a8fa3; cursor: pointer; box-shadow: 0 14px 24px -16px rgba(0, 0, 0, .7); -webkit-tap-highlight-color: transparent; }
.gal-i.g0 { grid-column: span 2; aspect-ratio: 16 / 10; border-radius: 6px 6px 999px 999px / 6px 6px 120px 120px; }
.gal-i:last-child:nth-child(even) { grid-column: span 2; aspect-ratio: 16 / 10; }
.gal-i.g3 { border-radius: 999px 999px 6px 6px; }
.gal-i img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gal-i:hover img { transform: scale(1.05); }
.gal-i.ph { display: grid; place-items: center; cursor: default; background: linear-gradient(165deg, #fffaf3, #fbd9c4); }
.gal-i.ph svg { width: 46%; height: 46%; }
#galeri { padding-bottom: 96px; }
#rsvp { padding-bottom: 110px; }

/* ── Form & ucapan ── */
.card { max-width: 400px; margin: 0 auto; padding: 28px 22px; background: #fff; border: 1px solid rgba(31, 122, 140, .3); border-radius: 18px; box-shadow: 0 22px 34px -28px rgba(20, 60, 70, .7); text-align: left; }
.f-l { display: block; margin: 16px 0 6px; font: 500 11px/1.3 var(--f-b); letter-spacing: .18em; text-transform: uppercase; color: var(--teal-d); }
.form .f-l:first-of-type { margin-top: 0; }
.f-in { width: 100%; padding: 12px 14px; border: 1px solid #cfe1e4; border-radius: 12px; background: var(--chalk); color: var(--ink); font: 400 14.5px/1.5 var(--f-b); outline: none; transition: border-color .2s, box-shadow .2s; resize: vertical; }
.f-in:focus { border-color: var(--mag); box-shadow: 0 0 0 3px rgba(194, 24, 91, .16); }
.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: 10px 4px; text-align: center; font-size: 12.5px; border: 1px solid #cfe1e4; border-radius: 12px; background: var(--chalk); color: var(--ink-s); cursor: pointer; transition: all .2s; }
.ch input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.ch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(31, 122, 140, .35); }
.form .btn { margin-top: 22px; }

.wish-head { display: flex; align-items: center; justify-content: space-between; max-width: 400px; margin: 44px auto 14px; }
.wish-head h3 { font: 400 38px/1.2 var(--f-s); color: var(--mag); }
.wh-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-d); }
.wh-live i { width: 7px; height: 7px; border-radius: 50%; background: #3dae6a; animation: live 1.6s ease-in-out infinite; }
@keyframes live { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.wishes { max-width: 400px; margin: 0 auto 30px; 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(--mag); display: flex; gap: 12px; padding: 14px; background: #fff; border: 1px solid #ecdccb; border-left: 4px solid var(--av); border-radius: 4px 14px 14px 4px; }
.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: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--av); color: #fff; font: 600 17px/1 var(--f-n); }
.wish-body { min-width: 0; flex: 1; }
.wish-header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wish-name { font: 600 14.5px/1.3 var(--f-b); overflow-wrap: anywhere; }
.wish-badge { padding: 2px 9px; border-radius: 99px; font-size: 10.5px; font-weight: 500; }
.wish-badge.hadir { background: #dff1e3; color: #2f7a47; }
.wish-badge.tidak { background: #fbe0e0; color: #a5404d; }
.wish-badge.ragu  { background: #fbefcf; color: #8a6a1f; }
.wish-message { margin-top: 4px; font-size: 13.5px; line-height: 1.65; color: var(--ink-s); overflow-wrap: anywhere; }
.wish-time { display: block; margin-top: 6px; font-size: 11.5px; color: #9aa0ac; }
.wish-empty { text-align: center; padding: 20px; color: #9aa0ac; font-style: italic; }

/* ── Kado (partial) ── */
.gift-box { max-width: 420px; margin: 0 auto; border-radius: 18px; background: #fff; overflow: hidden; color: var(--ink); text-align: left; box-shadow: 0 22px 34px -26px rgba(60, 30, 20, .7); }
.gift-wrap .gs-heading h2 { font-family: var(--f-s) !important; font-weight: 400 !important; font-size: 34px !important; color: var(--mag) !important; }
.gift-wrap .gs-heading h2::after { background: var(--coral) !important; }
.gift-wrap .gs-card, .gift-wrap .gs-bank-card { border: 1px solid #ecdccb !important; border-radius: 14px !important; }
.gift-wrap .gs-btn, .gift-wrap .gs-bank-copy { border-radius: 99px !important; font-family: var(--f-b) !important; }
.gift-wrap .gs-btn-buy { background: var(--mag) !important; color: #fff !important; }
.gift-wrap .gs-bank-logo { background: #d9eef1 !important; color: var(--teal-d) !important; }

/* ── Penutup ── */
.end { padding-top: 120px; padding-bottom: 200px; }
.fam { margin: 24px 0 26px; display: grid; gap: 14px; font-size: 14px; }
.fam span { display: block; margin-bottom: 2px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #ffc9b3; }
.end-credit { font-size: 12px; opacity: .8; }

/* ── Lightbox ── */
.gallery-lightbox { display: none; position: fixed; inset: 0; z-index: 7000; align-items: center; justify-content: center; background: rgba(8, 40, 48, .94); opacity: 0; transition: opacity .3s; }
.lb-img-wrap img { max-width: 92vw; max-height: 80vh; border: 6px solid var(--chalk); border-radius: 4px; }
.lb-close, .lb-prev, .lb-next { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 250, 243, .95); color: var(--ink); font: 500 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: #fff; font-size: 14px; letter-spacing: .1em; }

/* ════════════════════════════════════════════════════════════════
   DESKTOP: foto/ilustrasi di kiri (tetap), undangan di kolom kanan
   ════════════════════════════════════════════════════════════════ */
.side { display: none; }
@media (min-width: 900px) {
    .side { display: block; position: fixed; top: 0; bottom: 0; left: 0; right: var(--col); z-index: 1; overflow: hidden; background: var(--teal-d); }
    .side-photo { position: absolute; inset: 0; background: center / cover no-repeat; animation: zoomSlow 22s ease-in-out infinite alternate; }
    .side-photo.none { background: linear-gradient(180deg, #7fc9d3 0%, #2a8fa3 38%, var(--teal-d) 100%); animation: none; }
    .side-v { position: absolute; top: 0; width: min(26vw, 260px); aspect-ratio: 328 / 532; background: url('vine.svg') top center / contain no-repeat; }
    .side-v.l { left: 0; }
    .side-v.r { right: 0; transform: scaleX(-1); }
    .side-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 40, 48, .05) 30%, rgba(8, 40, 48, .78)); }
    .side-in { position: absolute; left: 0; right: 0; bottom: 14vh; padding: 0 40px; text-align: center; color: #fff; }
    .sd-k { font: 500 12px/1.4 var(--f-b); letter-spacing: .34em; text-transform: uppercase; }
    .sd-n { margin: 14px 0 18px; font: 600 clamp(46px, 6vw, 88px)/1.1 var(--f-n); letter-spacing: .02em; text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
    .sd-n i { font-style: normal; font-family: var(--f-s); font-weight: 400; color: #ffb199; }
    .sd-d { font: 500 15px/1.4 var(--f-b); letter-spacing: .18em; 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(8, 40, 48, .5); }
    .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: 700px) {
    .cv-ring { --rw: min(90vw, 352px, calc(72svh * .6977)); }
}
@media (max-width: 360px) {
    .script-xl { font-size: 48px; }
    .cd b { font-size: 26px; }
    .dp-corner { width: 70%; }
}

/* ── Reduced motion: langsung tampil di posisi akhir ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
    .petals { display: none; }
    .dp-l, .h-arch { opacity: 1; }
    .dp-sun { opacity: .9; } .dp-sea { opacity: .9; } .dp-birds { opacity: .8; } .dp-village { opacity: .96; } .dp-vfar { opacity: .55; } .dp-leaf { opacity: .26; }
}
