/* Rindang — undangan tasyakuran, lukisan cat air bergerak: halaman rumah limasan saat senja biru, beringin besar
   menaungi, pintu berukir bercahaya, tikar pandan dengan nasi tumpeng. Dibuka: daun pisang yang menutup layar
   tersibak ke kiri-kanan, pandangan maju ke halaman, lentera di dahan beringin menyala satu per satu, kunang-kunang
   keluar, lalu tampah bambu berputar turun membawa nama syukuran. Saat pembuka digulir kamera berjalan ke pintu
   yang bercahaya sampai layar menghangat putih. Adegannya lapisan gambar (assets/img/*.webp) yang digerakkan CSS. */
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/plus-jakarta-sans.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("fonts/caveat.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Amiri"; src: url("fonts/amiri-bismillah.woff2") format("woff2"); font-display: swap; }

:root {
  --bg: #f6efe0; --card: #fffaf0; --ink: #2b2318; --soft: #6b5d4a; --night: #173a40; --night2: #0f282d; --teak: #7a4a26; --teak2: #5a3419;
  --gold: #d9a23a; --gold-hi: #f3d48a; --leaf: #3f6b3a; --line: #e7d9bd;
  --display: "Fraunces", Georgia, serif; --sans: "Plus Jakarta Sans", system-ui, sans-serif; --hand: "Caveat", cursive;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--night2); }
body { margin: 0; background: var(--night2); color: var(--ink); font: 500 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, figure, ol { margin: 0; }
a { color: var(--teak); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.page { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; min-height: 100vh; overflow: hidden; }
@media (min-width: 560px) { .page { box-shadow: 0 30px 80px rgba(0, 0, 0, .4); } }

/* ---------- Adegan: .stage berbanding 1536:2752 dan selalu menutup layar; posisi dalam persen.
   Urutan dari belakang: halaman rumah (latar) → tumpeng di tikar → lentera di dahan → kunang-kunang → daun pisang
   (satu gambar, dicerminkan di kanan) → putih hangat. Keadaan dasar = adegan akhir; sebelum dibuka daun pisang
   menutup layar dan lentera padam. ---------- */
.scene { position: fixed; top: 0; left: 50%; width: min(100%, 480px); height: 100%; transform: translateX(-50%); z-index: 0; pointer-events: none; overflow: hidden; contain: strict; background: #10262b; display: none; }
.js .scene { display: block; }
.scene-off .scene { visibility: hidden; }
.stage { position: absolute; left: 50%; top: 50%; height: max(100%, calc(min(100vw, 480px) * 1.7917)); aspect-ratio: 1536 / 2752; translate: -50% -50%; }
.ly { position: absolute; inset: 0; will-change: transform; transform-origin: 50% 57%; backface-visibility: hidden; }
.ly-bg > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.pintu-cahaya { position: absolute; left: 50%; top: 58%; width: 46%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 214, 130, .55), rgba(255, 190, 100, .15) 55%, transparent); mix-blend-mode: screen; }
.bintang i { position: absolute; width: .5%; aspect-ratio: 1; border-radius: 50%; background: #fff6da; box-shadow: 0 0 5px 1px rgba(255, 240, 200, .8); }
.bintang i:nth-child(1) { left: 40%; top: 18%; } .bintang i:nth-child(2) { left: 58%; top: 14%; } .bintang i:nth-child(3) { left: 30%; top: 26%; }
.bintang i:nth-child(4) { left: 66%; top: 24%; } .bintang i:nth-child(5) { left: 52%; top: 30%; } .bintang i:nth-child(6) { left: 22%; top: 33%; }
.tumpeng { position: absolute; left: 33%; top: 73.5%; width: 34%; height: auto; max-width: none; }
.asap { position: absolute; left: 49%; top: 68%; width: 3%; height: 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 250, 235, .5), transparent); opacity: 0; }
.lt { position: absolute; width: 7%; transform-origin: 50% 0; }
.lt img { position: relative; width: 100%; height: auto; max-width: none; }
.lt1 { left: 12%; top: 7%; } .lt2 { left: 31%; top: 13%; width: 6%; } .lt3 { left: 63%; top: 11%; width: 6%; } .lt4 { left: 82%; top: 5%; }
.pijar { position: absolute; left: 50%; top: 62%; width: 520%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 210, 120, .6), rgba(255, 180, 80, .18) 45%, transparent); }
.kunang i { position: absolute; width: .7%; aspect-ratio: 1; border-radius: 50%; background: #fff3a6; box-shadow: 0 0 8px 3px rgba(255, 236, 140, .75); opacity: 0; }
.kunang i:nth-child(1) { left: 14%; top: 60%; } .kunang i:nth-child(2) { left: 26%; top: 70%; } .kunang i:nth-child(3) { left: 38%; top: 52%; } .kunang i:nth-child(4) { left: 62%; top: 64%; }
.kunang i:nth-child(5) { left: 76%; top: 55%; } .kunang i:nth-child(6) { left: 86%; top: 72%; } .kunang i:nth-child(7) { left: 20%; top: 44%; } .kunang i:nth-child(8) { left: 70%; top: 42%; }
.kunang i:nth-child(9) { left: 48%; top: 78%; } .kunang i:nth-child(10) { left: 90%; top: 48%; }
.daun { position: absolute; top: 0; width: 100%; height: 100%; max-width: none; }
.daun.l { left: 0; transform: translateX(-62%); } .daun.r { left: 0; transform: translateX(62%) scaleX(-1); }
.terang { position: absolute; inset: 0; background: radial-gradient(circle at 50% 56%, #fffdf4, #fff6e2 55%, var(--bg)); opacity: 0; }

/* Pembukaan: daun pisang tersibak (0,4–2,4 dtk) → halaman maju ke ukuran asli (0,2–3,2) → lentera menyala bergiliran
   (1,8–3,0) → kunang-kunang (2,6) → tampah turun berputar (3,0). */
.js .daun { transition: transform 2s cubic-bezier(.6, 0, .25, 1) .4s; }
.js .ly-bg, .js .ly-tumpeng, .js .ly-lentera { transition: transform 3s cubic-bezier(.5, 0, .2, 1) .2s; }
.js .pijar { transition: opacity 1s ease; }
.js .lt img { transition: filter 1s ease; }
.js .lt1 .pijar, .js .lt1 img { transition-delay: 1.8s; } .js .lt2 .pijar, .js .lt2 img { transition-delay: 2.2s; } .js .lt3 .pijar, .js .lt3 img { transition-delay: 2.5s; } .js .lt4 .pijar, .js .lt4 img { transition-delay: 2.8s; }
.js:not(.is-open) .daun.l { transform: translateX(-4%); } .js:not(.is-open) .daun.r { transform: translateX(4%) scaleX(-1); }
.js:not(.is-open) .ly-bg, .js:not(.is-open) .ly-tumpeng, .js:not(.is-open) .ly-lentera { transform: scale(1.08) translateY(2%); }
.js:not(.is-open) .pijar { opacity: 0; }
.js:not(.is-open) .lt img { filter: brightness(.55) saturate(.7); }
.js.no-anim .daun, .js.no-anim .ly, .js.no-anim .pijar, .js.no-anim .lt img { transition: none; }
.js.no-anim .kartu, .js.no-anim .kartu-isi > *, .js.no-anim .t-date, .js.no-anim .hero-pin > .mouse { animation: none !important; }

/* ---------- Sampul ---------- */
.caps { font: 800 11px/1.4 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--teak); color: #fff7e6; text-decoration: none; cursor: pointer; font: 700 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 12px 26px rgba(70, 40, 20, .3); }
.btn svg { width: 16px; height: 16px; }
.btn.ghost { min-height: 40px; padding: 0 16px; background: transparent; color: var(--teak); border: 1.5px solid var(--teak); box-shadow: none; font-size: 11.5px; }
.btn.copied { background: var(--leaf); color: #fff; border-color: var(--leaf); }
.cover { position: relative; min-height: 100vh; min-height: 100svh; padding: 64px 26px 56px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; overflow: hidden; color: #fff7e6;
  background: radial-gradient(90% 60% at 50% 70%, #2c5a58, var(--night) 55%, var(--night2)); }
.js .cover { position: fixed; inset: 0; z-index: 40; max-width: 480px; margin: 0 auto; transition: opacity .8s ease .1s; }
.js:not(.is-open) body { overflow: hidden; }
.js.is-open .cover { opacity: 0; pointer-events: none; }
.js.no-anim .cover { transition: none; }
.cover[hidden] { display: none; }
.cover-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 30, 32, .7), rgba(10, 30, 32, .08) 40%, rgba(10, 30, 32, .1) 55%, rgba(10, 30, 32, .86)); }
.cover-top, .cover-bottom { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cover .caps { color: var(--gold-hi); }
.cover-acara { font: italic 400 22px/1.3 var(--display); color: var(--gold-hi); }
.names { font: 500 50px/1.05 var(--display); overflow-wrap: anywhere; }
.cover-date { font: 600 13px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.to { font-size: 14px; opacity: .85; }
.guest-name { font: 700 30px/1.15 var(--hand); color: var(--gold-hi); overflow-wrap: anywhere; }
.memuat .cover .open { opacity: .55; pointer-events: none; }

/* ---------- Pembuka: nama di tampah bambu beralas daun pisang, menempel selama pembuka digulir. ---------- */
.js .hero { min-height: 260vh; min-height: 260svh; }
.hero-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; justify-content: center; padding-top: 8vh; }
.scene-off .hero-pin { visibility: hidden; }
.title-wrap { width: min(78%, 320px); display: flex; flex-direction: column; align-items: center; }
.kartu { position: relative; width: 100%; }
.kartu > img { width: 100%; height: auto; }
.kartu-isi { position: absolute; left: 30%; right: 30%; top: 30%; bottom: 30%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.kartu-isi .caps { font-size: 8px; letter-spacing: .14em; color: var(--teak); line-height: 1.3; }
.t-name { font: 600 clamp(19px, 6.4vw, 27px)/1.05 var(--display); color: var(--teak2); overflow-wrap: anywhere; }
.t-date { margin-top: 10px; padding: 6px 16px; border-radius: 999px; background: rgba(15, 40, 45, .72); color: var(--gold-hi); font: 700 12px/1.3 var(--sans); letter-spacing: .1em; }
.mouse { position: absolute; left: 50%; bottom: 3vh; width: 22px; height: 36px; margin-left: -11px; border: 2px solid var(--gold-hi); border-radius: 12px; opacity: .9; }
.mouse::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold-hi); animation: gulir 1.6s ease-in-out infinite; }
html:not(.js) .hero-pin { position: relative; height: auto; padding: 40px 0; background: var(--night); } html:not(.js) .mouse { display: none; }

/* ---------- Isi: kertas gading bermotif anyaman tikar samar ---------- */
main > section:not(.hero) { position: relative; overflow: hidden; padding: 64px 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  background-color: var(--bg); background-image: repeating-linear-gradient(90deg, rgba(122, 74, 38, .05) 0 10px, transparent 10px 20px), repeating-linear-gradient(0deg, rgba(122, 74, 38, .04) 0 10px, transparent 10px 20px); }
.orn { pointer-events: none; }
.title { font: 500 30px/1.15 var(--display); color: var(--teak2); }
.lead { font-size: 15.5px; line-height: 1.75; color: var(--soft); max-width: 24em; }
.lead b { color: var(--teak2); }
.bismillah { font: 400 30px/1.9 "Amiri", serif; color: var(--leaf); direction: rtl; }
.opening { font: 600 20px/1.3 var(--display); color: var(--ink); }

.salam { padding-top: 30px !important; }
.ronce { width: 96%; margin-bottom: 4px; }

/* Profil: foto di bingkai pintu gebyok kayu jati berukir (CSS). */
.gebyok { position: relative; width: 70%; aspect-ratio: 3 / 4; padding: 14px; border-radius: 120px 120px 8px 8px; margin-bottom: 8px;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .08) 0 2px, transparent 2px 9px), linear-gradient(160deg, #9a6235, var(--teak) 50%, var(--teak2)); box-shadow: 0 18px 36px rgba(60, 35, 15, .3), inset 0 0 0 3px rgba(243, 212, 138, .5); }
.gebyok::before { content: ""; position: absolute; inset: 7px; border-radius: 114px 114px 5px 5px; border: 1.5px solid var(--gold-hi); opacity: .7; pointer-events: none; }
.gebyok .foto { width: 100%; height: 100%; border-radius: 106px 106px 4px 4px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #2c5a58, var(--night2)); display: grid; place-items: center; }
.gebyok .foto img { width: 100%; height: 100%; object-fit: cover; }
.gebyok .foto .tumpeng-isi { width: 80%; height: auto; object-fit: contain; }
.profil h2 { font: 500 26px/1.2 var(--display); color: var(--teak2); overflow-wrap: anywhere; }
.desc { font-size: 15px; color: var(--soft); }

/* Hitung mundur: empat tampah kecil beranyam. */
.countdown { display: flex; gap: 10px; justify-content: center; }
.countdown div { width: 72px; aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle, var(--card) 0 56%, transparent 57%), repeating-conic-gradient(#d8b07a 0 6deg, #c1935a 6deg 12deg); box-shadow: 0 0 0 3px #a8773f, 0 10px 18px rgba(70, 40, 20, .2); }
.countdown b { font: 600 24px/1 var(--display); color: var(--teak2); font-variant-numeric: tabular-nums; }
.countdown span { margin-top: 2px; font: 800 8px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }

/* Acara: kain batik kawung bertepi sogan, isinya di bidang gading. */
.kain { position: relative; width: 100%; padding: 26px; border-radius: 6px;
  background: radial-gradient(circle at 0 0, transparent 9px, rgba(122, 74, 38, .9) 9.5px 11px, transparent 11.5px) 0 0 / 22px 22px, radial-gradient(circle at 11px 11px, var(--gold) 2px, transparent 2.5px) 0 0 / 22px 22px, #8a5a2e; box-shadow: 0 16px 32px rgba(60, 35, 15, .25); }
.kain > * { position: relative; }
.kain::before { content: ""; position: absolute; inset: 16px; border-radius: 4px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.when { padding-top: 8px; font: 600 24px/1.2 var(--display); color: var(--teak2); }
.time { font-weight: 700; font-size: 14px; color: var(--soft); }
.place { margin: 10px auto 0; max-width: 22em; display: flex; justify-content: center; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--soft); text-align: left; }
.place svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--teak); }
.aksi { margin-top: 14px; padding-bottom: 6px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.aksi .btn { min-height: 40px; padding: 0 16px; font-size: 11.5px; }
.aksi svg { width: 15px; height: 15px; }

/* Susunan acara: untaian lentera di seutas tali, menyala satu per satu saat bagiannya terlihat. */
.susunan { background-color: var(--night) !important; background-image: radial-gradient(circle at 20% 10%, rgba(243, 212, 138, .08), transparent 40%) !important; color: #f5ead2; }
.susunan .title { color: #fff3da; }
.untai { position: relative; width: 100%; list-style: none; padding: 0; display: grid; gap: 18px; text-align: left; }
.untai::before { content: ""; position: absolute; left: 21px; top: -10px; bottom: 10px; width: 2px; background: linear-gradient(rgba(243, 212, 138, .6), rgba(243, 212, 138, .15)); }
.untai li { position: relative; display: grid; grid-template-columns: 44px 58px 1fr; align-items: center; gap: 8px; }
.lampu { width: 26px; justify-self: center; }
.untai .jam { font: 700 14px/1 var(--sans); color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.untai .apa { font: 500 15.5px/1.45 var(--display); color: #fff3da; }

/* Doa: kartu berbentuk daun pisang bertulang daun. */
.daun-surat { position: relative; width: 100%; padding: 40px 26px 30px; border-radius: 60% 6px 60% 6px / 18% 6px 18% 6px; color: #f6f1dc;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 16px), linear-gradient(160deg, #4f8048, var(--leaf) 55%, #2c4e2a); box-shadow: 0 18px 36px rgba(30, 50, 30, .3); }
.daun-surat .caps { color: var(--gold-hi); }
.story { margin-top: 12px; font: 500 24px/1.25 var(--hand); white-space: pre-line; }
.ayat { margin-top: 18px; padding-top: 14px; border-top: 1px dashed rgba(246, 241, 220, .4); }
.ayat blockquote { margin: 0; font-size: 14px; line-height: 1.6; opacity: .92; }
.ayat .latin { font: italic 600 17px/1.4 var(--display); color: var(--gold-hi); }
.ayat figcaption { margin-top: 6px; font: 800 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi); }

/* Galeri: foto bundar berbingkai tampah, ukuran berselang. */
.grid { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: center; }
.grid figure { padding: 8px; border-radius: 50%; background: repeating-conic-gradient(#d8b07a 0 6deg, #c1935a 6deg 12deg); box-shadow: 0 0 0 3px #a8773f, 0 12px 22px rgba(70, 40, 20, .2); }
.grid figure:nth-child(4n+1), .grid figure:nth-child(4n) { scale: .9; }
.grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }

.gift-list { width: 100%; display: grid; gap: 12px; }
.gift-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-align: left; }
.gift-card > div { flex: 1; min-width: 0; }
.gift-ic { flex: none; width: 28px; height: 28px; color: var(--leaf); }
.bank { font: 800 11px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.number { font: 600 20px/1.3 var(--display); overflow-wrap: anywhere; }
.holder { font-size: 13px; color: var(--soft); overflow-wrap: anywhere; }

.form { width: 100%; display: grid; gap: 14px; padding: 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-align: left; }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; font-size: 14px; font-weight: 700; color: var(--soft); }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: 500 16px/1.4 var(--sans); }
.opts { display: flex; gap: 8px; } .opt { flex: 1; } .opt input { position: absolute; opacity: 0; }
.opt span { display: block; padding: 11px 4px; border: 1px solid var(--line); border-radius: 10px; text-align: center; color: var(--ink); cursor: pointer; background: #fff; font-size: 13.5px; }
.opt input:checked + span { border-color: var(--teak); background: rgba(122, 74, 38, .08); color: var(--teak2); }
.opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.thanks .big { font: italic 600 28px/1.2 var(--display); color: var(--leaf); }
.note { color: var(--soft); font-size: 14px; }
.wishes-box { padding-top: 0 !important; }
.wishes-head { width: 100%; display: flex; justify-content: space-between; align-items: baseline; }
.wishes-head h2 { font: 500 24px/1.2 var(--display); color: var(--teak2); } .wishes-head span { font-size: 13px; color: var(--soft); }
.wishes { width: 100%; list-style: none; margin: 0; padding: 0; max-height: 520px; overflow-y: auto; display: grid; gap: 10px; text-align: left; }
.wishes li { padding: 14px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.wish-head { display: flex; gap: 8px; align-items: center; } .wish-head svg { width: 13px; height: 13px; color: var(--leaf); }
.tag { font-size: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(217, 162, 58, .18); }
.status { font-size: 12px; font-weight: 800; color: var(--leaf); } .wish-text { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.wish-reply { margin-top: 6px; padding-left: 10px; border-left: 2px solid var(--gold); font-size: 14px; color: var(--soft); }

.closing { padding-bottom: 100px !important; }
.tumpeng-tutup { width: 62%; }
.thanks-line { color: var(--soft); max-width: 22em; }
.family { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--soft); }
.family b { font: 600 22px/1.3 var(--display); color: var(--teak2); }
.closing .ronce { width: 90%; margin-top: 8px; rotate: 180deg; transform-origin: 50% 50%; }
footer { position: relative; z-index: 1; padding: 0 16px 90px; text-align: center; font-size: 12px; color: var(--soft); background: var(--bg); }

.music-toggle { position: fixed; right: max(14px, calc(50% - 226px)); bottom: 16px; z-index: 50; width: 48px; height: 48px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--teak); color: #fff7e6; cursor: pointer; box-shadow: 0 10px 22px rgba(50, 30, 10, .35); }
.music-toggle svg { width: 20px; height: 20px; }
.js:not(.is-open) .music-toggle { display: none; }

/* ---------- Gerak ---------- */
.rv { opacity: 0; translate: 0 24px; }
.rv.in { opacity: 1; translate: 0 0; transition: opacity .9s cubic-bezier(.2, .7, .2, 1) calc(var(--d, 0) * 1ms), translate .9s cubic-bezier(.2, .7, .2, 1) calc(var(--d, 0) * 1ms); }
@media (prefers-reduced-motion: no-preference) {
  /* Berulang: lentera berayun, nyala lentera & cahaya pintu berdenyut, kunang-kunang melayang, bintang berkelip,
     uap tumpeng naik, daun pisang di tepi bergoyang. */
  .lt { animation: ayun 4s ease-in-out infinite alternate; } .lt2 { animation-duration: 3.4s; animation-delay: -1s; } .lt3 { animation-duration: 4.6s; animation-delay: -2s; } .lt4 { animation-duration: 3.8s; animation-delay: -.5s; }
  .js.is-open .pijar { animation: denyut 2.2s ease-in-out 3.6s infinite alternate; }
  .pintu-cahaya { animation: denyut 3.4s ease-in-out infinite alternate; }
  .js.is-open .kunang i { animation: kunang 6s ease-in-out infinite; }
  .js.is-open .kunang i:nth-child(1) { animation-delay: 2.6s; } .js.is-open .kunang i:nth-child(2) { animation-delay: 3.4s; animation-duration: 7s; } .js.is-open .kunang i:nth-child(3) { animation-delay: 2.9s; animation-duration: 5s; }
  .js.is-open .kunang i:nth-child(4) { animation-delay: 4s; } .js.is-open .kunang i:nth-child(5) { animation-delay: 3.1s; animation-duration: 8s; } .js.is-open .kunang i:nth-child(6) { animation-delay: 4.6s; animation-duration: 6.5s; }
  .js.is-open .kunang i:nth-child(7) { animation-delay: 5s; } .js.is-open .kunang i:nth-child(8) { animation-delay: 3.7s; animation-duration: 7.5s; } .js.is-open .kunang i:nth-child(9) { animation-delay: 5.6s; } .js.is-open .kunang i:nth-child(10) { animation-delay: 4.3s; animation-duration: 5.5s; }
  .bintang i { animation: kelip 2.4s ease-in-out infinite alternate; } .bintang i:nth-child(2n) { animation-delay: -1.2s; animation-duration: 3.2s; }
  .js.is-open .asap { animation: asap 4s ease-out 3s infinite; }
  .js.is-open .daun.l { animation: goyang 5s ease-in-out 2.6s infinite alternate; transform-origin: 0 50%; }
  .js.is-open .kartu { animation: tampahTurun 1.6s 3s cubic-bezier(.3, 1.2, .4, 1) both; }
  .js.is-open .kartu-isi > * { animation: naik .8s both; } .js.is-open .kartu-isi > :nth-child(1) { animation-delay: 4.2s; } .js.is-open .kartu-isi > :nth-child(2) { animation-delay: 4.4s; }
  .js.is-open .t-date { animation: naik .8s 4.7s both; }
  .js.is-open .hero-pin > .mouse { animation: naik 1s 5.2s both; }
  .music-toggle[aria-pressed="true"] svg { animation: denyut .6s ease-in-out infinite alternate; }
  /* Bagian isi: ornamen bergerak saat bagiannya terlihat (.tampak). */
  .js .salam:not(.tampak) .ronce { scale: .6 .2; opacity: 0; }
  .ronce { transition: scale 1.2s cubic-bezier(.3, 1.3, .4, 1), opacity .7s ease; transform-origin: 50% 0; }
  .js .profil:not(.tampak) .gebyok { clip-path: inset(100% 0 0 0 round 120px 120px 8px 8px); }
  .gebyok { clip-path: inset(0 0 0 0 round 120px 120px 8px 8px); transition: clip-path 1.4s cubic-bezier(.5, 0, .2, 1); }
  .js .hitung:not(.tampak) .countdown div { rotate: -200deg; scale: .4; opacity: 0; }
  .countdown div { transition: rotate 1.1s cubic-bezier(.3, 1.1, .4, 1), scale 1.1s cubic-bezier(.3, 1.1, .4, 1), opacity .5s ease; }
  .countdown div:nth-child(2) { transition-delay: .12s; } .countdown div:nth-child(3) { transition-delay: .24s; } .countdown div:nth-child(4) { transition-delay: .36s; }
  .js .acara:not(.tampak) .kain { scale: 1 .1; opacity: 0; }
  .kain { transition: scale 1.1s cubic-bezier(.4, 1.2, .4, 1), opacity .6s ease; transform-origin: 50% 0; }
  .js .susunan:not(.tampak) .lampu { filter: brightness(.45) saturate(.6); }
  .js .susunan:not(.tampak) .untai li { opacity: .3; }
  .lampu { transition: filter .8s ease; } .untai li { transition: opacity .8s ease; }
  .untai li:nth-child(2), .untai li:nth-child(2) .lampu { transition-delay: .35s; } .untai li:nth-child(3), .untai li:nth-child(3) .lampu { transition-delay: .7s; }
  .untai li:nth-child(4), .untai li:nth-child(4) .lampu { transition-delay: 1.05s; } .untai li:nth-child(n+5), .untai li:nth-child(n+5) .lampu { transition-delay: 1.4s; }
  .susunan.tampak .lampu { animation: ayun 3.6s 1.8s ease-in-out infinite alternate; transform-origin: 50% 0; }
  .js .doa:not(.tampak) .daun-surat { rotate: -8deg; scale: .85; opacity: 0; }
  .daun-surat { transition: rotate 1.2s cubic-bezier(.3, 1.2, .4, 1), scale 1.2s cubic-bezier(.3, 1.2, .4, 1), opacity .7s ease; }
  .js .closing:not(.tampak) .tumpeng-tutup { translate: 0 40px; opacity: 0; }
  .tumpeng-tutup { transition: translate 1.1s cubic-bezier(.3, 1.3, .4, 1), opacity .6s ease; }
  @supports (animation-timeline: view()) {
    .grid figure { animation: tampah linear both; animation-timeline: view(); animation-range: entry 0% cover 32%; }
  }
}
@keyframes ayun { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@keyframes denyut { from { opacity: .7; } to { opacity: 1; } }
@keyframes kelip { from { opacity: .35; } to { opacity: 1; } }
@keyframes kunang { 0% { opacity: 0; transform: translate(0, 0); } 25% { opacity: 1; } 50% { transform: translate(18px, -30px); opacity: .5; } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-12px, -60px); } }
@keyframes asap { 0% { opacity: 0; transform: translateY(0) scale(.6); } 30% { opacity: .7; } 100% { opacity: 0; transform: translateY(-140%) scale(1.6); } }
@keyframes goyang { from { transform: translateX(-62%) skewY(-.6deg); } to { transform: translateX(-62%) skewY(.6deg); } }
@keyframes tampahTurun { from { opacity: 0; transform: translateY(-50vh) rotate(-200deg) scale(.4); } to { opacity: 1; transform: none; } }
@keyframes naik { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes tampah { from { opacity: 0; rotate: -90deg; } to { opacity: 1; rotate: 0deg; } }
@keyframes gulir { 0% { translate: 0 0; opacity: 1; } 70% { translate: 0 12px; opacity: 0; } 100% { translate: 0 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .rv { opacity: 1; translate: none; } *, *::before, *::after { animation: none !important; } .js .daun, .js .ly, .js .pijar, .js .lt img { transition: none; } }

@media (prefers-reduced-motion: no-preference) {
  /* Perjalanan gulir: --p (0→1) dipasang rindang.js setelah pembukaan; di p = 0 sama dengan keadaan akhir pembukaan.
     Kamera berjalan ke pintu bercahaya (titik 50% 57%): halaman membesar, tumpeng terlewati ke bawah, lentera naik
     keluar layar, daun pisang menepi, cahaya pintu memenuhi layar. */
  .ready .ly, .ready .daun { transition: none; }
  .js.is-open.ready .ly-bg { transform: scale(calc(1 + var(--p, 0) * 2.4)); }
  .js.is-open.ready .ly-tumpeng { transform-origin: 50% 40%; transform: translateY(calc(var(--p, 0) * 30%)) scale(calc(1 + var(--p, 0) * 2)); }
  .js.is-open.ready .ly-lentera { transform-origin: 50% 0; transform: translateY(calc(var(--p, 0) * -24%)) scale(calc(1 + var(--p, 0) * 1.4)); }
  .ready .title-wrap { opacity: calc(1 - var(--p, 0) * 5); translate: 0 calc(var(--p, 0) * -160px); }
  .ready .hero-pin > .mouse { opacity: calc(.9 - var(--p, 0) * 6); }
  .ready .terang { opacity: calc((var(--p, 0) - .6) * 3); }
  @supports (animation-timeline: scroll()) {
    html.gulir-css.ready .ly-bg { animation: g-bg linear both; }
    html.gulir-css.ready .ly-tumpeng { animation: g-tumpeng linear both; transform-origin: 50% 40%; }
    html.gulir-css.ready .ly-lentera { animation: g-lentera linear both; transform-origin: 50% 0; }
    html.gulir-css.ready .terang { animation: g-terang linear both; }
    html.gulir-css.ready .title-wrap { animation: g-judul linear both; }
    html.gulir-css.ready .hero-pin > .mouse { animation: g-judul linear both; animation-timeline: scroll(root block); animation-range: 0 60vh; }
    html.gulir-css.ready .ly-bg, html.gulir-css.ready .ly-tumpeng, html.gulir-css.ready .ly-lentera, html.gulir-css.ready .terang, html.gulir-css.ready .title-wrap { animation-timeline: scroll(root block); animation-range: 0 160vh; animation-range: 0 160svh; }
  }
}
@keyframes g-bg { from { transform: none; } to { transform: scale(3.4); } }
@keyframes g-tumpeng { from { transform: none; } to { transform: translateY(30%) scale(3); } }
@keyframes g-lentera { from { transform: none; } to { transform: translateY(-24%) scale(2.4); } }
@keyframes g-terang { from, 60% { opacity: 0; } to { opacity: 1.2; } }
@keyframes g-judul { from { opacity: 1; translate: 0 0; } 20%, to { opacity: 0; translate: 0 -32px; } }
