/* ════════════════════════════════════════════════════════════════
   ADAT LAMPUNG — siger emas, kain tapis, senja Teluk Lampung & marun
   ════════════════════════════════════════════════════════════════ */
:root {
    --ink: #2e0f16;
    --ink-s: #5d3a3f;
    --marun: #5e0f1f;
    --marun-l: #7d1a2c;
    --marun-d: #3a0712;
    --merah: #9b1c31;
    --gold: #d4a548;
    --gold-l: #f1d37c;
    --gading: #f7ecd6;
    --teal: #1f5a52;
    --col: 490px;
    --f-h: 'Marcellus SC', 'Times New Roman', serif;
    --f-n: 'Great Vibes', 'Brush Script MT', cursive;
    --f-t: 'Marcellus', 'Times New Roman', serif;
    --f-b: 'Cormorant', Georgia, 'Times New Roman', serif;
    --ease: cubic-bezier(.22, .8, .24, 1);
    --gold-g: linear-gradient(135deg, #f6dc8c, #c39434 50%, #f1d37c);
}

*, *::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.65 var(--f-b);
    color: var(--ink); background: var(--marun-d);
    -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(--marun-d); }
.sec { position: relative; padding: 100px 26px 88px; text-align: center; overflow: hidden; }
.sec > * { position: relative; z-index: 2; }
.sec-in { max-width: 380px; margin: 0 auto; }
/* pucuk rebung emas di tepi atas tiap bagian */
.sec:not(.hero)::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 38px; z-index: 3; pointer-events: none; background: url('pucuk-rebung.svg') repeat-x center top / 44px 38px; }
.marun  { background: url('pola-gelap.svg'), linear-gradient(180deg, #6a1224, #470a17); color: var(--gading); }
.gading { background: url('pola-terang.svg'), linear-gradient(180deg, #fbf3e2, #f3e4c6); color: var(--ink); }
.tapis  { background: url('pola-gelap.svg'), radial-gradient(ellipse 80% 50% at 50% 30%, #84202f, transparent 70%), linear-gradient(180deg, #5e0f1f, #34060f); color: var(--gading); }
.teluk  { background: url('pola-gelap.svg'), linear-gradient(180deg, #4a1424 0%, #2c1a2c 45%, #13302f 100%); color: var(--gading); }
/* pita tapis di tepi bawah bagian gelap */
.marun::after, .tapis::after, .teluk::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 34px; z-index: 1; pointer-events: none; background: url('pita-tapis.svg') repeat-x center bottom / 48px 34px; opacity: .9; }
.sec-head { margin-bottom: 34px; }
.sec-sub { margin: 14px auto 0; max-width: 320px; font-size: 16.5px; opacity: .92; }

/* ── Tipografi ── */
.h-k { font: 400 11.5px/1.4 var(--f-h); letter-spacing: .34em; text-transform: uppercase; color: var(--merah); }
.marun .h-k, .tapis .h-k, .teluk .h-k { color: var(--gold); }
.h-t { margin-top: 6px; font: 400 48px/1.15 var(--f-n); }
.gading .h-t { color: var(--marun-l); }
.marun .h-t, .tapis .h-t, .teluk .h-t { color: var(--gold-l); }
.h-t::after { content: ''; display: block; width: 170px; height: 26px; margin: 8px auto 0; background: url('pembatas-sulur.svg') center / contain no-repeat; }
.names-xl, .cv-names { font-family: var(--f-n); font-weight: 400; background: var(--gold-g); -webkit-background-clip: text; background-clip: text; color: transparent; }
.names-xl { margin: 4px 0 4px; font-size: 54px; line-height: 1.2; padding: 0 6px; }
.names-xl i, .cv-names i { font-style: normal; font-size: .7em; }
.salam { margin: 22px 0 10px; font: italic 500 19px/1.45 var(--f-b); color: var(--gold-l); }
.body-c { max-width: 336px; margin: 0 auto 14px; color: rgba(247, 236, 214, .9); font-size: 16.5px; line-height: 1.6; }
.date-l { margin-top: 6px; font: 400 14px/1.5 var(--f-h); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-l); }

/* ── Bingkai lengkung bermahkota siger ── */
.fr { position: relative; width: 168px; aspect-ratio: 240 / 340; margin: 0 auto; filter: drop-shadow(0 12px 14px rgba(30, 0, 8, .5)); }
.fr-ph { position: absolute; left: 12.5%; right: 12.5%; top: 17.6%; bottom: 5.9%; display: grid; place-items: center; overflow: hidden; border-radius: 50% 50% 0 0 / 34.6% 34.6% 0 0; background: linear-gradient(160deg, #9b1c31, #3a0712 75%); }
.fr-ph img { width: 100%; height: 100%; object-fit: cover; }
.couple-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.fr::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: url('bingkai-siger.svg') center / 100% 100% no-repeat; }
.fr-mono { font: 400 40px/1 var(--f-n); padding-top: 14%; white-space: nowrap; color: var(--gold-l); text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.fr.rose .fr-ph.none { background: linear-gradient(160deg, #1f5a52, #0c2e2c 75%); }

/* ── Tombol ── */
.btn, .btn-tapis {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    margin: 4px; padding: 13px 26px; border: 0; border-radius: 40px 40px 6px 6px;
    font: 400 12px/1 var(--f-h); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; cursor: pointer;
    color: var(--gading); background: linear-gradient(180deg, #a3243a, #6a1224);
    box-shadow: 0 0 0 2px #3a0712, 0 0 0 3.5px var(--gold), 0 12px 16px -8px rgba(30, 0, 8, .65);
    transition: transform .25s var(--ease), filter .25s; -webkit-tap-highlight-color: transparent;
}
.btn:hover, .btn-tapis:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn.emas { color: #3a0712; background: var(--gold-g); box-shadow: 0 0 0 2px #3a0712, 0 0 0 3.5px var(--gold-l), 0 12px 16px -8px rgba(0, 0, 0, .65); }
.btn.sm { padding: 11px 20px; font-size: 11px; }
.btn.full { width: calc(100% - 8px); }
.btn:disabled { opacity: .7; cursor: default; transform: none; }
.btn-tapis .ico { animation: beat 1.8s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }

/* ── Musik, serbuk emas, 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(--marun); color: var(--gold-l); box-shadow: 0 0 0 1.5px var(--gold), 0 6px 16px -6px rgba(0, 0, 0, .8); 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); } }
.embers { position: fixed; inset: 0; z-index: 900; pointer-events: none; overflow: hidden; }
.embers i { position: absolute; bottom: -14px; width: var(--s); height: var(--s); border-radius: 50%; opacity: 0; box-shadow: 0 0 6px 2px rgba(241, 211, 124, .45); animation: emberUp var(--d) linear var(--w) infinite; will-change: transform; }
@keyframes emberUp { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 10% { opacity: .85; } 85% { opacity: .4; } 100% { transform: translate3d(var(--x), -108vh, 0); opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 8000; transform: translate(-50%, 24px); padding: 11px 22px; border-radius: 30px; background: var(--marun); 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; }

/* ════════════════════════════════════════════════════════════════
   COVER
   ════════════════════════════════════════════════════════════════ */
.side { display: none; }
.cover { position: fixed; inset: 0; z-index: 6000; display: grid; place-items: center; overflow: hidden; transition: opacity 1.25s ease, transform 1.4s ease;
    background: linear-gradient(180deg, #3d0a1a 0%, #7a2236 26%, #c4644c 44%, #5e0f1f 62%, #2c050d 100%); }
.cover.open { opacity: 0; pointer-events: none; transform: scale(1.08); }
.cv-bg { position: absolute; inset: 0; animation: cvDrift 9s cubic-bezier(.2, .6, .2, 1) both; }
.cv-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 34% at 50% 66%, rgba(44, 5, 13, .82), rgba(44, 5, 13, .35) 64%, transparent 86%), linear-gradient(180deg, transparent 60%, rgba(44, 5, 13, .4) 85%, transparent); }
@keyframes cvDrift { from { transform: scale(1.14); } 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-glow { z-index: 0; left: -10%; right: -10%; top: 10%; height: 40%; background: radial-gradient(ellipse 46% 44% at 50% 62%, rgba(255, 226, 150, .9), rgba(240, 150, 90, .35) 42%, transparent 72%); --dl: 0s; }
.cv-bukit { left: -10%; width: 120%; top: 33%; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); aspect-ratio: 400 / 160; background-image: url('bukit-jauh.svg'); --o: .9; --dl: .1s; }
.cv-menara { left: 6%; width: 22%; top: 31%; aspect-ratio: 160 / 140; background-image: url('menara-siger.svg'); --o: .8; --dl: .25s; }
.cv-laut { left: 0; right: 0; top: 50%; bottom: 0; background-image: url('laut-teluk.svg'); --o: .6; -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%); mask-image: linear-gradient(180deg, transparent, #000 22%); --dl: .2s; }
.cv-pohon { top: -2%; width: 44%; aspect-ratio: 220 / 600; background-image: url('pohon-sisi.svg'); --dl: .45s; }
.cv-pohon.l { left: -10%; }
.cv-pohon.r { right: -10%; transform: scaleX(-1); }
.cv-bunga { z-index: 1; bottom: -4px; width: 62%; height: auto; aspect-ratio: 400 / 170; background-image: url('bunga-dekat.svg'); --dl: .65s; }
.cv-bunga.l { left: -12%; }
.cv-bunga.r { right: -12%; transform: scaleX(-1); }
.cv-gantung { top: 0; width: 8%; aspect-ratio: 40 / 160; background-image: url('gantung.svg'); --dl: .9s; transform-origin: 50% 0; }
.cv-gantung.g1 { left: 20%; }
.cv-gantung.g2 { right: 20%; top: -3%; }
.cv-sudut { width: 24%; max-width: 120px; aspect-ratio: 1; background-image: url('sudut-tapis.svg'); --dl: 1.1s; }
.cv-sudut.tl { left: 2.5%; top: 1.5%; }
.cv-sudut.tr { right: 2.5%; top: 1.5%; transform: scaleX(-1); }
.cv-sudut.bl { left: 2.5%; bottom: 1.5%; transform: scaleY(-1); }
.cv-sudut.br { right: 2.5%; bottom: 1.5%; transform: scale(-1, -1); }
.cover-in { position: relative; z-index: 3; width: 100%; max-width: 340px; padding: 0 14px; text-align: center; }
.cover-in > * { animation: cvRise 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.cv-siger { display: block; width: 190px; aspect-ratio: 300 / 166; margin: 0 auto -6px; background: url('siger.svg') center / contain no-repeat; filter: drop-shadow(0 6px 10px rgba(30, 0, 8, .55)); animation-delay: .2s; }
.cv-fr { width: 138px; animation-delay: .4s; }
.cv-k { margin-top: 10px; font: 400 11.5px/1.4 var(--f-h); letter-spacing: .36em; text-transform: uppercase; color: var(--gold-l); animation-delay: .7s; }
.cv-names { margin: 2px 0 12px; font-size: 50px; line-height: 1.1; display: flex; flex-direction: column; align-items: center; animation-delay: .85s; filter: drop-shadow(0 2px 6px rgba(30, 0, 8, .6)); }
.cv-to { margin-bottom: 18px; font-size: 15.5px; line-height: 1.6; color: rgba(247, 236, 214, .88); animation-delay: 1s; }
.cv-to b { display: block; font: 600 20px/1.4 var(--f-b); color: var(--gading); overflow-wrap: anywhere; }
.btn-tapis { animation-delay: 1.2s; }
@keyframes cvRise { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }

/* ════════════════════════════════════════════════════════════════
   BAGIAN PERTAMA: kamera menjauh dari dedaunan ke senja Teluk Lampung,
   lalu ornamen siger & tapis muncul satu per satu
   ════════════════════════════════════════════════════════════════ */
.hero { --sh: 540px; min-height: max(100svh, 900px); display: flex; flex-direction: column; justify-content: flex-end; padding: 420px 26px 96px;
    background: linear-gradient(180deg, #3d0a1a 0, #6e1c30 110px, #b4523f 250px, #e09a5e 300px, #7a2236 380px, #4a0b18 calc(var(--sh) - 20px), #3a0712 100%); }
.hero-in { position: relative; width: 100%; }
.hero-in::before { content: ''; position: absolute; inset: -10px -40px -20px; z-index: -1; background: radial-gradient(ellipse 62% 66% at 50% 56%, rgba(46, 6, 15, .8), transparent 76%); }
.hero-fr { width: 156px; margin-bottom: 4px; }

.dp { position: absolute !important; left: 0; right: 0; top: 0; height: var(--sh); z-index: 0 !important; pointer-events: none; overflow: hidden; }
.dp-mid { z-index: 1 !important; }
/* tepi bawah pemandangan memudar ke marun */
.dp:not(.dp-mid):not(.dp-front)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 130px; background: linear-gradient(180deg, transparent, #3e0814 85%); }
.dp-front { z-index: 1 !important; height: auto; bottom: 0; }
.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: inherit; background-image: var(--img); background-size: 100% 100%; }
body.opened:not(.settled) .dp-l { will-change: transform, opacity; }

/* jauh */
.d-glow { left: -10%; right: -10%; top: 80px; height: 340px; background: radial-gradient(ellipse 46% 44% at 50% 62%, rgba(255, 226, 150, .95), rgba(240, 150, 90, .4) 40%, transparent 72%); transform-origin: 50% 62%; --k: 1.4; --dur: 6.6s; --dl: 0s; }
.d-bukit { left: -10%; width: 120%; top: 186px; aspect-ratio: 400 / 160; background-image: url('bukit-jauh.svg'); transform-origin: 50% 100%; --k: 1.4; --o: .95; --dur: 6.6s; --dl: .05s; }
.d-menara { left: 5%; width: 24%; top: 176px; aspect-ratio: 160 / 140; background-image: url('menara-siger.svg'); transform-origin: 50% 100%; --k: 1.5; --o: .9; --dur: 6.5s; --dl: .15s; }
.d-laut { left: 0; right: 0; top: 292px; height: calc(var(--sh) - 292px); background-image: url('laut-teluk.svg'); transform-origin: 50% 0; --k: 1.45; --o: .95; --dur: 6.5s; --dl: .1s; }
.d-kabut { left: -20%; width: 140%; top: 270px; height: 70px; --k: 1.3; --o: .9; --dur: 6s; --dl: .5s; }
.d-kabut b { position: absolute; inset: 0; background: radial-gradient(ellipse 34% 50% at 30% 50%, rgba(255, 220, 190, .28), transparent 72%), radial-gradient(ellipse 38% 46% at 72% 55%, rgba(255, 220, 190, .22), transparent 72%); }

/* tengah */
.d-nuwo { right: 2%; width: 52%; top: 222px; aspect-ratio: 320 / 210; background-image: url('nuwo-sesat.svg'); transform-origin: 50% 100%; --k: 1.9; --dur: 6.3s; --dl: .2s; }
.d-pohon { top: -16px; width: 44%; aspect-ratio: 220 / 600; background-image: url('pohon-sisi.svg'); --k: 2.3; --dur: 6.2s; --dl: .1s; }
.d-pohon.l { left: -12%; transform-origin: 0 30%; }
.d-pohon.r { right: -12%; transform-origin: 50% 30%; --sx: -1; }

/* ornamen: muncul bergiliran setelah zoom berjalan */
.d-siger { left: 24%; width: 52%; top: 46px; aspect-ratio: 300 / 166; --img: url('siger.svg'); --o: 1; --ty: -28px; --dl: 2.4s; filter: drop-shadow(0 8px 12px rgba(40, 0, 10, .45)); }
.d-burung { --img: url('burung.svg'); --ty: 8px; }
.d-burung.b1 { left: 33%; top: 200px; width: 21%; aspect-ratio: 130 / 60; --dl: 3.75s; }
.d-burung.b2 { right: 7%; top: 166px; width: 15%; aspect-ratio: 130 / 60; --sx: -1; --dl: 4.05s; }
.d-kapal { left: 6%; top: 338px; width: 34%; aspect-ratio: 240 / 140; --img: url('kapal-tapis.svg'); --o: .95; --dl: 5.15s; }
.d-gajah { top: 398px; width: 27%; aspect-ratio: 214 / 134; background-image: url('gajah.svg'); --ty: 16px; }
.d-gajah.l { left: 3%; --dl: 5.45s; }
.d-gajah.r { right: 3%; --sx: -1; --dl: 5.7s; }
.d-kilau { width: 30px; aspect-ratio: 1; --img: url('kilau.svg'); --ty: 0px; }
.d-kilau.k1 { left: 18%; top: 70px; --dl: 2.8s; }
.d-kilau.k2 { right: 19%; top: 52px; width: 22px; --dl: 2.95s; }
.d-kilau.k3 { left: 47%; top: 14px; width: 24px; --dl: 3.1s; }
.d-kilau.k4 { right: 28%; top: 214px; width: 18px; --dl: 5.9s; }
.d-gantung { top: -6px; width: 34px; aspect-ratio: 40 / 160; --img: url('gantung.svg'); --ty: -40px; }
.d-gantung b { transform-origin: 50% 0; }
.d-gantung.g1 { left: 4%; --dl: 4.35s; }
.d-gantung.g2 { left: 13%; top: -40px; --dl: 4.55s; }
.d-gantung.g3 { right: 13%; top: -40px; --dl: 4.75s; }
.d-gantung.g4 { right: 4%; --dl: 4.95s; }
.d-sudut { width: 26%; max-width: 128px; aspect-ratio: 1; background-image: url('sudut-tapis.svg'); --o: .95; }
.d-sudut.tl { left: 2%; top: 1%; --dl: 3.25s; }
.d-sudut.tr { right: 2%; top: 1%; --sx: -1; --dl: 3.5s; }
.d-sudut.br { right: 2%; bottom: 44px; --sx: -1; --sy: -1; --dl: 5.8s; }
.d-sudut.bl2 { left: 2%; bottom: 44px; --sy: -1; --dl: 5.8s; }
.hero-band { position: absolute !important; left: 0; right: 0; bottom: 0; height: 34px; z-index: 3 !important; opacity: 0; background: url('pita-tapis.svg') repeat-x center bottom / 48px 34px; --dl: 6s; --ty: 14px; }

/* terdekat: daun teal & rumpun kemboja */
.d-daun { top: -40px; width: 50%; aspect-ratio: 260 / 340; background-image: url('daun-dekat.svg'); }
.d-daun.l { left: -14%; transform-origin: 0 0; }
.d-daun.r { right: -14%; transform-origin: 50% 0; --sx: -1; }
.d-daun.bl { filter: blur(7px); }
.d-bunga { top: calc(var(--sh) - 92px); width: 50%; aspect-ratio: 400 / 170; background-image: url('bunga-dekat.svg'); --k: 2.8; --dur: 5.8s; --dl: .1s; }
.d-bunga.l { left: -16%; transform-origin: 0 100%; }
.d-bunga.r { right: -16%; transform-origin: 50% 100%; --sx: -1; }

body.opened :is(.d-glow, .d-bukit, .d-menara, .d-laut, .d-kabut, .d-nuwo, .d-pohon, .d-bunga) { animation: dpZoom var(--dur, 6s) cubic-bezier(.22, .62, .2, 1) var(--dl, 0s) both; }
body.opened :is(.d-burung, .d-kapal, .d-gajah, .d-kilau, .d-gantung, .d-sudut, .hero-band) { animation: dpPop 1.6s cubic-bezier(.2, .8, .2, 1) var(--dl, 0s) both; }
body.opened .d-siger { animation: sigerIn 2.2s cubic-bezier(.2, .8, .2, 1) var(--dl) both; }
body.opened .d-daun { animation: dpLeaf 5.8s cubic-bezier(.22, .62, .2, 1) both; }
body.opened .d-daun.bl { animation-name: dpLeafBlur; }
body.opened .d-kabut b { animation: drift 18s ease-in-out 3s infinite alternate; }
/* gerak halus setelah muncul */
body.opened .d-siger b { animation: sigerFloat 6s ease-in-out 4.6s infinite; }
body.opened .d-burung b { animation: bFloat 5.6s ease-in-out 5.2s infinite; }
body.opened .d-gantung b { animation: sway 4.8s ease-in-out 5.6s infinite; }
body.opened .d-gantung.g2 b, body.opened .d-gantung.g4 b { animation-delay: 6.4s; }
body.opened .d-kilau b { animation: twinkle 3.2s ease-in-out 4s infinite; }
body.opened .d-kilau.k2 b { animation-delay: 4.8s; }
body.opened .d-kilau.k3 b { animation-delay: 5.6s; }
body.opened .d-kapal b { animation: bob 5s ease-in-out 6.2s infinite; }

@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) * .55), calc(var(--sy, 1) * .55)); } to { opacity: var(--o, 1); transform: scale(var(--sx, 1), var(--sy, 1)); } }
@keyframes sigerIn { from { opacity: 0; transform: translateY(var(--ty)) scale(.4); } 60% { opacity: 1; transform: translateY(4px) scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes dpLeaf { from { opacity: 0; transform: scale(calc(var(--sx, 1) * 3.4), 3.4); } 40% { opacity: 0; } to { opacity: .97; transform: scale(var(--sx, 1), 1); } }
@keyframes dpLeafBlur { from { opacity: 1; transform: scale(calc(var(--sx, 1) * 3.4), 3.4); } 72% { opacity: 0; } to { opacity: 0; visibility: hidden; transform: scale(var(--sx, 1), 1); } }
@keyframes drift { from { transform: translateX(-5%); } to { transform: translateX(5%); } }
@keyframes bFloat { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(7px, -9px) rotate(1.6deg); } }
@keyframes sigerFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1) rotate(0); } 50% { opacity: .35; transform: scale(.6) rotate(20deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(4px) rotate(1deg); } }

/* ════════════════════════════════════════════════════════════════
   ISI
   ════════════════════════════════════════════════════════════════ */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: -6px 0 40px; }
.tr-i { position: relative; padding: 0; border: 2px solid var(--gold); aspect-ratio: 1 / 1.4; border-radius: 60px 60px 6px 6px; overflow: hidden; background: #3a0712; cursor: pointer; box-shadow: 0 0 0 3px #4a0b18, 0 0 0 4.5px rgba(212, 165, 72, .55); -webkit-tap-highlight-color: transparent; }
.tr-i:nth-child(2) { margin-top: 18px; }
.tr-i img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tr-i:hover img { transform: scale(1.06); }
.tr-i.ph { display: grid; place-items: center; cursor: default; background: linear-gradient(160deg, #9b1c31, #3a0712); }
.tr-i.ph svg { width: 56%; height: 56%; color: var(--gold-l); }
.verse-t { margin-top: 20px; font: italic 500 18px/1.7 var(--f-b); }
.verse-s { margin-top: 14px; font: 400 12px/1.4 var(--f-h); letter-spacing: .2em; color: var(--gold); }
#salam { padding-bottom: 104px; }

.sec-sudut { position: absolute !important; z-index: 1 !important; top: 46px; width: 96px; aspect-ratio: 1; background: url('sudut-tapis.svg') center / contain no-repeat; opacity: .9; }
.sec-sudut.tl { left: 10px; }
.sec-sudut.tr { right: 10px; transform: scaleX(-1); }
.person { max-width: 320px; margin: 0 auto; }
.p-fr { width: 172px; }
.p-name { margin: 10px 0 6px; font: 400 40px/1.2 var(--f-n); color: var(--marun-l); }
.p-par { color: var(--ink-s); font-size: 16.5px; line-height: 1.6; }
.p-par b { font: 400 11.5px/1.5 var(--f-h); letter-spacing: .24em; text-transform: uppercase; color: var(--merah); }
.amp-siger { position: relative; display: block; width: 150px; aspect-ratio: 300 / 166; margin: 20px auto 18px; background: url('siger.svg') center / contain no-repeat; }
.amp-siger b { position: absolute; left: 0; right: 0; top: 100%; font: 400 40px/1 var(--f-n); color: var(--marun-l); }
.amp-siger { margin-bottom: 52px; }
#mempelai { padding-bottom: 100px; }

.arch-photo { position: relative; width: 100%; max-width: 280px; aspect-ratio: 1 / 1.16; margin: 0 auto 44px; border-radius: 140px 140px 6px 6px; border: 3px solid var(--gold); overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, #9b1c31, #3a0712); box-shadow: 0 0 0 4px #4a0b18, 0 0 0 5.5px rgba(241, 211, 124, .7), 0 20px 30px -18px rgba(0, 0, 0, .7); }
.arch-photo img { width: 100%; height: 100%; object-fit: cover; }
.arch-photo svg { width: 56%; height: 56%; color: var(--gold-l); opacity: .95; }
#countdown { padding-bottom: 104px; }
.quote-s { margin: 16px auto 26px; max-width: 310px; font: italic 500 17px/1.6 var(--f-b); opacity: .95; }
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; max-width: 340px; margin: 0 auto 28px; }
.cd > div { position: relative; aspect-ratio: 1 / 1.3; display: grid; place-content: center; color: var(--gold-l); filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .35)); }
.cd > div::before, .cd > div::after { content: ''; position: absolute; border-radius: 40px 40px 5px 5px; }
.cd > div::before { inset: 0; background: var(--gold-g); }
.cd > div::after { inset: 3px; background: url('pola-gelap.svg'), linear-gradient(180deg, #7d1a2c, #3a0712); border-radius: 37px 37px 3px 3px; }
.cd > div > * { position: relative; z-index: 1; }
.cd b { display: block; margin-top: 6px; font: 400 27px/1.1 var(--f-t); font-variant-numeric: tabular-nums; }
.cd span { display: block; margin-top: 3px; font: 400 9.5px/1 var(--f-h); letter-spacing: .14em; text-transform: uppercase; color: rgba(247, 236, 214, .85); }

.event { position: relative; max-width: 360px; margin: 40px auto 26px; padding: 44px 24px 54px; background: rgba(255, 251, 242, .88); border: 1px solid rgba(125, 26, 44, .35); border-radius: 120px 120px 6px 6px / 60px 60px 6px 6px; box-shadow: inset 0 0 0 5px rgba(255, 251, 242, .88), inset 0 0 0 6.5px rgba(212, 165, 72, .85), 0 20px 30px -24px rgba(60, 10, 20, .6); }
.event::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: 8px; height: 26px; background: url('pita-tapis.svg') repeat-x center / 36px 26px; border-radius: 2px; pointer-events: none; }
.ev-siger { position: absolute !important; left: 50%; top: -36px; width: 104px; aspect-ratio: 300 / 166; margin-left: -52px; background: url('siger.svg') center / contain no-repeat; filter: drop-shadow(0 4px 6px rgba(60, 10, 20, .3)); }
.event > * { position: relative; z-index: 1; }
.ev-t { font: 400 40px/1.2 var(--f-n); color: var(--marun-l); margin-bottom: 12px; }
.ev-l { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; font-size: 16.5px; 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(--merah); }
.loc { max-width: 380px; margin: 38px auto 0; }
.map { height: 210px; border-radius: 100px 100px 6px 6px / 50px 50px 6px 6px; border: 3px solid var(--gold); box-shadow: 0 0 0 3px var(--gading), 0 0 0 4.5px rgba(125, 26, 44, .5); overflow: hidden; margin-bottom: 22px; z-index: 0; }
.loc-name { font: 400 18px/1.4 var(--f-t); letter-spacing: .04em; color: var(--marun-l); }
.loc-addr { margin: 4px 0 18px; font-size: 16.5px; color: var(--ink-s); }

.kisah-kapal { position: absolute !important; z-index: 0 !important; right: -30px; bottom: 40px; width: 230px; aspect-ratio: 240 / 140; background: url('kapal-tapis.svg') center / contain no-repeat; opacity: .16; }
.tline { list-style: none; margin: 0 auto; padding: 0; max-width: 360px; position: relative; text-align: left; }
.tline::before { content: ''; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 2px; background: repeating-linear-gradient(180deg, var(--gold) 0 6px, transparent 6px 14px); opacity: .8; }
.tl-i { position: relative; display: flex; gap: 16px; margin-bottom: 26px; }
.tl-i:last-child { margin-bottom: 0; }
.tl-dot { flex: none; width: 48px; height: 48px; border-radius: 50%; background: radial-gradient(circle, #9b1c31, #5e0f1f); display: grid; place-items: center; border: 2px solid var(--gold); box-shadow: 0 0 0 3px #2c1a2c, 0 0 0 4px rgba(212, 165, 72, .5); }
.tl-dot svg { width: 30px; height: 30px; color: var(--gold-l); }
.tl-c { flex: 1; padding: 15px 18px 17px; background: rgba(247, 236, 214, .07); border: 1px solid rgba(212, 165, 72, .5); border-radius: 22px 22px 4px 22px; }
.tl-date { display: block; margin-bottom: 2px; font: 400 11px/1.4 var(--f-h); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.tl-c h3 { font: 400 30px/1.2 var(--f-n); color: var(--gold-l); margin-bottom: 4px; }
.tl-c p { font-size: 16.5px; line-height: 1.55; opacity: .95; }

.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 var(--gold); border-radius: 6px; overflow: hidden; aspect-ratio: 1 / 1.15; background: #3a0712; cursor: pointer; box-shadow: 0 0 0 3px var(--gading), 0 0 0 4.5px rgba(125, 26, 44, .5), 0 16px 22px -16px rgba(60, 10, 20, .7); -webkit-tap-highlight-color: transparent; }
.gal-i.g0 { grid-column: span 2; aspect-ratio: 16 / 10; }
.gal-i.g1, .gal-i.g4 { border-radius: 80px 80px 6px 6px; }
.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('pola-gelap.svg'), linear-gradient(160deg, #7d1a2c, #3a0712); }
.gal-i.ph svg { width: 46%; height: 46%; opacity: .95; }

/* ── Form & ucapan ── */
.card { max-width: 400px; margin: 0 auto; padding: 28px 22px; background: rgba(255, 251, 242, .9); border: 1px solid rgba(125, 26, 44, .35); border-radius: 6px; box-shadow: inset 0 0 0 5px rgba(255, 251, 242, .9), inset 0 0 0 6.5px rgba(212, 165, 72, .85), 0 20px 30px -24px rgba(60, 10, 20, .6); text-align: left; }
.f-l { display: block; margin: 16px 0 6px; font: 400 11px/1.3 var(--f-h); letter-spacing: .2em; text-transform: uppercase; color: var(--marun-l); }
.form label.f-l:first-of-type { margin-top: 0; }
.f-in { width: 100%; padding: 11px 13px; border: 1.5px solid #d4b072; border-radius: 4px; background: #fffaf0; 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(--merah); box-shadow: 0 0 0 3px rgba(155, 28, 49, .18); }
.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: 400 11px/1.3 var(--f-h); letter-spacing: .06em; border: 1.5px solid #d4b072; border-radius: 4px; background: #fffaf0; color: var(--ink-s); cursor: pointer; transition: all .2s; }
.ch input:checked + span { background: linear-gradient(180deg, #a3243a, #6a1224); border-color: #6a1224; color: var(--gading); }
.ch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(155, 28, 49, .3); }
.form .btn { margin-top: 24px; }

.wish-head { display: flex; align-items: center; justify-content: space-between; max-width: 400px; margin: 48px auto 14px; }
.wish-head h3 { font: 400 36px/1.2 var(--f-n); color: var(--marun-l); }
.wh-live { display: inline-flex; align-items: center; gap: 6px; font: 400 10.5px/1 var(--f-h); letter-spacing: .16em; text-transform: uppercase; color: var(--marun-l); }
.wh-live i { width: 7px; height: 7px; border-radius: 50%; background: #2f8a5e; 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(--marun-l); display: flex; gap: 12px; padding: 14px; background: rgba(255, 251, 242, .92); border: 1px solid rgba(125, 26, 44, .25); border-left: 4px solid var(--av); border-radius: 4px 16px 4px 16px; }
.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: 400 17px/1 var(--f-h); box-shadow: 0 0 0 2px var(--gold-l); }
.wish-body { min-width: 0; flex: 1; }
.wish-header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wish-name { font: 400 15px/1.3 var(--f-t); overflow-wrap: anywhere; }
.wish-badge { padding: 2px 9px; border-radius: 20px; font: 400 9.5px/1.5 var(--f-h); letter-spacing: .08em; text-transform: uppercase; }
.wish-badge.hadir { background: #dcebe3; color: #1f5a52; }
.wish-badge.tidak { background: #f2d9dc; color: #8a1a2c; }
.wish-badge.ragu  { background: #f3e5c0; color: #7c5a14; }
.wish-message { margin-top: 4px; font-size: 16.5px; line-height: 1.5; color: var(--ink-s); overflow-wrap: anywhere; }
.wish-time { display: block; margin-top: 6px; font-size: 14px; color: #8d6d70; }
.wish-empty { text-align: center; padding: 20px; color: #8d6d70; font-style: italic; }
#rsvp { padding-bottom: 96px; }

/* ── Kado (partial) ── */
.gift-box { max-width: 420px; margin: 0 auto; border-radius: 6px; background: var(--gading); overflow: hidden; color: var(--ink); text-align: left; border: 2px solid var(--gold); box-shadow: 0 0 0 3px #4a0b18, 0 0 0 4.5px rgba(212, 165, 72, .55), 0 18px 36px -26px rgba(0, 0, 0, .9); }
.gift-wrap .gs-heading h2 { font-family: var(--f-n) !important; font-weight: 400 !important; font-size: 34px !important; color: var(--marun-l) !important; }
.gift-wrap .gs-heading h2::after { background: var(--gold) !important; }
.gift-wrap .gs-card, .gift-wrap .gs-bank-card { border: 1px solid rgba(125, 26, 44, .3) !important; border-radius: 6px !important; }
.gift-wrap .gs-btn, .gift-wrap .gs-bank-copy { border-radius: 20px !important; font-family: var(--f-h) !important; }
.gift-wrap .gs-btn-buy { background: var(--marun-l) !important; color: var(--gading) !important; }
.gift-wrap .gs-bank-logo { background: #f1dfc0 !important; color: var(--marun-l) !important; }
#kado { padding-bottom: 104px; }

/* ── Penutup ── */
.end { padding-top: 110px; padding-bottom: 300px; background: linear-gradient(180deg, #470a17 0%, #6a1224 40%, #b4523f 78%, #e09a5e 100%); }
.end::after { display: none; }
.end-bukit { position: absolute !important; left: -10%; width: 120%; bottom: 60px; aspect-ratio: 400 / 160; z-index: 0 !important; background: url('bukit-jauh.svg') center bottom / 100% 100% no-repeat; }
.end-nuwo { position: absolute !important; left: 50%; width: 62%; margin-left: -31%; bottom: 40px; aspect-ratio: 320 / 210; z-index: 0 !important; background: url('nuwo-sesat.svg') center bottom / 100% 100% no-repeat; }
.end-bunga { position: absolute !important; left: -6%; width: 112%; bottom: -1px; aspect-ratio: 400 / 170; z-index: 1 !important; background: url('bunga-dekat.svg') center bottom / 100% 100% no-repeat; }
.end-siger { display: block; width: 160px; aspect-ratio: 300 / 166; margin: 0 auto 22px; background: url('siger.svg') center / contain no-repeat; }
.fam { margin: 24px 0 26px; display: grid; gap: 14px; font-size: 16.5px; }
.fam span { display: block; margin-bottom: 2px; font: 400 10.5px/1.5 var(--f-h); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.end-credit { font-size: 14px; opacity: .8; }

/* ── Lightbox ── */
.gallery-lightbox { display: none; position: fixed; inset: 0; z-index: 7000; align-items: center; justify-content: center; background: rgba(30, 4, 10, .95); opacity: 0; transition: opacity .3s; }
.lb-img-wrap img { max-width: 92vw; max-height: 80vh; border: 3px solid var(--gold); 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: var(--gold-g); color: #3a0712; font: 400 22px/1 var(--f-h); 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: .14em; }

/* ════════════════════════════════════════════════════════════════
   DESKTOP: foto di kiri (tetap), undangan di kolom kanan
   ════════════════════════════════════════════════════════════════ */
@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(--marun-d); }
    .side-photo { position: absolute; inset: 0; background: center / cover no-repeat; animation: zoomSlow 20s ease-in-out infinite alternate; }
    .side-photo.none { background: url('nuwo-sesat.svg') 96% 58% / min(34%, 440px) auto no-repeat, url('menara-siger.svg') 6% 52% / min(14%, 180px) auto no-repeat, url('laut-teluk.svg') center bottom / 100% 42% no-repeat, url('bukit-jauh.svg') center 62% / 120% auto no-repeat, linear-gradient(180deg, #3d0a1a 0%, #7a2236 30%, #e09a5e 52%, #5e0f1f 70%); animation: none; }
    .side-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40, 4, 12, .15) 30%, rgba(40, 4, 12, .85)); }
    .side-in { position: absolute; left: 0; right: 0; bottom: 12vh; padding: 0 40px; text-align: center; color: var(--gading); }
    .sd-siger { display: block; width: 220px; aspect-ratio: 300 / 166; margin: 0 auto 14px; background: url('siger.svg') center / contain no-repeat; }
    .sd-k { font: 400 13px/1.4 var(--f-h); letter-spacing: .4em; text-transform: uppercase; color: var(--gold-l); }
    .sd-n { margin: 10px 0 14px; font: 400 clamp(56px, 6.4vw, 104px)/1.15 var(--f-n); background: var(--gold-g); -webkit-background-clip: text; background-clip: text; color: transparent; }
    .sd-n i { font-style: normal; font-size: .7em; }
    .sd-d { font: 400 14px/1.4 var(--f-h); letter-spacing: .2em; 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(0, 0, 0, .8); }
    .cover { left: auto; right: 0; width: var(--col); }
    .music-toggle-btn { right: 18px; }
    .toast { left: calc(100% - var(--col) / 2); }
    .embers { left: auto; width: var(--col); }
}
@keyframes zoomSlow { to { transform: scale(1.07); } }

@media (max-height: 700px) {
    .cv-siger { width: 140px; }
    .cv-fr { width: 104px; }
    .cv-names { font-size: 40px; margin: 0 0 8px; }
    .cv-to { margin-bottom: 12px; }
}
@media (max-width: 360px) {
    .names-xl { font-size: 46px; }
    .cd b { font-size: 22px; }
    .h-t { font-size: 42px; }
}
@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; }
    .embers { display: none; }
    .dp-l, .cv-l { opacity: var(--o, 1); animation: none !important; }
    .dp-l > b { animation: none !important; }
    .d-daun.bl { opacity: 0; visibility: hidden; }
    .cover-in > * { animation: none !important; opacity: 1; }
    .hero-band { opacity: 1; }
}
