/* Bilik — undangan pernikahan bertema bilik foto (photobooth) retro: sampul foto penuh layar; "Buka undangan" menyibak
   tirai beludru, hitungan 3-2-1, kilat blitz, lalu strip foto tercetak keluar dari celah mesin berisi foto dan nama
   mempelai. Bagian isi: polaroid berselotip, layar mesin berlampu, tiket sobek, strip film, polaroid berserakan.
   Seluruh adegan dibuat dengan CSS (tanpa gambar paket). Field tone = efek foto: film (bawaan) / asli / hitam-putih. */
@font-face { font-family: "Cinzel"; src: url("fonts/cinzel.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Pinyon Script"; src: url("fonts/pinyon-script.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #f4ecdd; --bg2: #faf5ea; --deep: #7d1322; --deep2: #560b16; --ink: #241b18; --soft: #6f625a; --gold: #c6a04c; --gold-hi: #f0dca6; --emas: linear-gradient(135deg, #8f6c26, #f3e2b0 30%, #c6a04c 52%, #fbf0cf 70%, #9a762c);
  --aksen: #7d1322; --gelap: #130d0c; --r1: #fff; --r2: #f4e6c8; --sky1: #1d1715; --sky2: #efe5d2; --card: #fffdf8; --line: #e3d6c0;
  --foto: sepia(.22) contrast(.96) saturate(.9) brightness(1.03);
  --display: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Pinyon Script", "Cormorant Garamond", cursive;
}
:root[data-tone="asli"] { --foto: none; }
:root[data-tone="hitam-putih"] { --foto: grayscale(1) contrast(1.08); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 19px/1.55 var(--serif); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, ol { margin: 0; }
a { color: var(--deep2); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.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(40, 20, 15, .28); } }

/* Adegan: bilik foto selebar kolom halaman, di belakang isi; hanya bagian pembuka (.hero) yang tembus pandang.
   Keadaan dasar = tirai sudah tersibak. Sebelum dibuka (.js:not(.is-open)) kedua tirai menutup rapat. */
.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: var(--gelap); display: none; }
.js .scene { display: block; }
.scene-off .scene { visibility: hidden; }
.bilik { position: absolute; inset: 0; background: radial-gradient(90% 60% at 50% 30%, #4a2f28, #2a1d19 60%, var(--gelap)); }
.bilik::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 38px); }
.papan { position: absolute; left: 50%; top: 3.2vh; z-index: 3; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 12px; background: linear-gradient(180deg, #c7333a, var(--deep2)); box-shadow: 0 8px 18px rgba(0, 0, 0, .5), inset 0 0 0 2px var(--gold); }
.papan b { font: 600 15px/1 var(--display); letter-spacing: .3em; text-indent: .3em; text-transform: uppercase; color: #fff5dc; white-space: nowrap; text-shadow: 0 0 10px rgba(255, 220, 140, .8); }
.bohlam { display: flex; gap: 9px; }
.bohlam i { width: 7px; height: 7px; border-radius: 50%; background: #ffe9a8; box-shadow: 0 0 7px 2px rgba(255, 214, 120, .85); }
.celah { position: absolute; left: 50%; top: calc(3.2vh + 74px); z-index: 2; width: 62%; height: 9px; translate: -50% 0; border-radius: 5px; background: #0d0a09; box-shadow: inset 0 2px 3px #000, 0 1px 0 rgba(255, 255, 255, .12); }
.tirai { position: absolute; top: 0; bottom: 0; width: 52%; z-index: 4; background: repeating-linear-gradient(90deg, #7c141b 0, #b3262d 7%, #d0434a 11%, #9d1d24 16%, #6c1017 22%); box-shadow: inset 0 -60px 60px rgba(0, 0, 0, .35), inset 0 26px 30px rgba(0, 0, 0, .4); will-change: transform; }
.tirai::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, #8f6a22); box-shadow: 0 3px 6px rgba(0, 0, 0, .4); }
.tirai.l { left: 0; transform-origin: 0 0; transform: scaleX(.2); } .tirai.r { right: 0; transform-origin: 100% 0; transform: scaleX(.2); }
.js .tirai { transition: transform 1.7s cubic-bezier(.6, 0, .25, 1) .35s; }
.js:not(.is-open) .tirai { transform: none; }
.js.no-anim .tirai { transition: none; }
.hitung3 { position: absolute; left: 50%; top: 44%; z-index: 3; width: 0; height: 0; }
.hitung3 b { position: absolute; left: -90px; top: -90px; width: 180px; height: 180px; display: grid; place-items: center; border-radius: 50%; border: 3px solid rgba(255, 245, 220, .8); font: 600 110px/1 var(--display); color: #fff5dc; opacity: 0; }
.kilat { position: absolute; inset: 0; z-index: 6; background: #fff; opacity: 0; }
.terang { position: absolute; inset: 0; z-index: 7; background: var(--bg); opacity: 0; }

.caps { font: 500 13px/1.4 var(--display); letter-spacing: .34em; text-transform: uppercase; }
.script { font: 400 50px/1.05 var(--script); color: var(--deep2); }
.lead { font-size: 18px; line-height: 1.6; color: var(--soft); max-width: 22em; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 26px; border: 1px solid var(--deep2); border-radius: 12px; background: var(--deep2); color: #fff; text-decoration: none; cursor: pointer; font: 600 13px/1 var(--display); letter-spacing: .22em; text-transform: uppercase; }
.btn-line { background: transparent; color: inherit; border-color: currentColor; }
.btn.copied { background: var(--gold); border-color: var(--gold); color: #fff; }

/* Rangkaian bunga lukisan: di bawah foto mempelai, di sampul tanpa foto, dan buket di penutup. */

/* ---------- Sampul: foto penuh layar dengan gradasi gelap, nama di atas, tamu dan tombol di bawah ---------- */
.cover { position: relative; min-height: 100vh; min-height: 100svh; padding: 54px 26px 44px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; background: linear-gradient(180deg, var(--bg2), var(--bg) 55%, color-mix(in srgb, var(--deep) 45%, var(--bg))); color: var(--ink); overflow: hidden; }
.cover[hidden] { display: none; }
.cover-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover.has-photo { color: #fff; }
.cover.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 10, 12, .55) 0%, rgba(20, 10, 12, .05) 34%, rgba(20, 10, 12, .1) 56%, rgba(20, 10, 12, .78) 100%); }
.cover.has-photo .cover-art { display: none; }
.cover-art { position: absolute; inset: 0; }
.cover-top, .cover-bottom { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cover .names { font: 500 34px/1.15 var(--display); letter-spacing: .08em; text-transform: uppercase; overflow-wrap: anywhere; }
.names .amp { margin: 0 .25em; font: 400 40px/1 var(--script); text-transform: none; letter-spacing: 0; }
.cover:not(.has-photo) .cover-top { margin-top: 26vh; }
.to { font-size: 16px; line-height: 1.5; opacity: .9; }
.guest-name { font: 600 24px/1.2 var(--serif); overflow-wrap: anywhere; }
.cover .open { margin-top: 10px; min-width: 230px; min-height: 48px; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .22); color: inherit; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cover:not(.has-photo) .open { border-color: var(--deep2); background: var(--deep2); color: #fff; }

/* Dengan JS: sampul menutup layar sampai tamu menekan "Buka undangan", lalu memudar dan taman terlihat. */
.js .cover { position: fixed; top: 0; bottom: 0; left: 50%; width: min(100%, 480px); transform: translateX(-50%); z-index: 40; overflow-y: auto; transition: opacity .9s ease; }
.js:not(.is-open) body { overflow: hidden; }
.js.is-open .cover { opacity: 0; pointer-events: none; }
.js.no-anim .cover { transition: none; }
html:not(.js) .cover .open { display: none; }

/* ---------- Pembuka: judul di kain prada di bawah tedung (lihat bagian akhir berkas) ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: 44px 20px; display: grid; place-items: center; text-align: center; background: linear-gradient(180deg, var(--sky1), var(--sky2)); }
.js .hero { background: none; }
.frame-art { position: absolute; inset: 0; overflow: hidden; }
.pl-name { font: 500 40px/1.15 var(--display); letter-spacing: .14em; text-transform: uppercase; overflow-wrap: anywhere; }
.pl-name.small { font-size: 22px; margin-top: 10px; }
.pl-and { font: 400 34px/1 var(--script); color: var(--deep2); }
.pl-date { margin-top: 10px; font: 500 15px/1.4 var(--display); letter-spacing: .2em; text-transform: uppercase; }

/* ---------- Isi: bagian berlatar gading dan hijau sage bergantian ---------- */
main > section:not(.hero) { position: relative; padding: 64px 28px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; background: var(--bg); }
.verse { background: linear-gradient(180deg, var(--bg2), var(--bg)) !important; }
.quote { position: relative; font: italic 500 20px/1.6 var(--serif); max-width: 11.5em; }
.js .verse:not(.buka) .vp { translate: 0 45%; opacity: 0; }
.source { font: 600 14px/1.4 var(--display); letter-spacing: .14em; }
.couple { display: flex; flex-direction: row; align-items: flex-start; gap: 14px; width: calc(100% + 20px); margin: 8px -10px 0; }
.person { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.person + .person { margin-top: 54px; }
.js .person:not(.buka) .payung { scale: .1 1.18; opacity: 0; }
.portrait { width: 100%; height: auto; aspect-ratio: 3 / 4; padding: 5px; border: 1.5px solid var(--gold); border-radius: 12px 12px 60px 60px; background: var(--card); display: flex; box-shadow: 0 12px 22px rgba(40, 20, 15, .16); }
.portrait > * { flex: 1; width: 100%; height: 100%; border-radius: 8px 8px 55px 55px; object-fit: cover; }
.portrait span { display: flex; align-items: center; justify-content: center; background: var(--bg2); font: 400 90px/1 var(--script); color: var(--deep2); }
.person h3 { font: 400 30px/1.08 var(--script); color: var(--deep2); overflow-wrap: anywhere; }
.parents { font-size: 14.5px; line-height: 1.4; color: var(--soft); max-width: 16em; }
.ig { font-size: 14px; font-weight: 700; color: var(--deep2); }

main > section.count, main > section.rsvp { background: linear-gradient(180deg, var(--deep), var(--deep2)); color: #fff; }
.count .script, .rsvp .script, .count .lead { color: #fff; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: 100%; }
.countdown div { aspect-ratio: 1; border: 1.5px solid var(--gold-hi); border-radius: 50%; box-shadow: inset 0 0 0 4px rgba(236, 217, 160, .18); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; }
.countdown b { font: 500 25px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.countdown span { font-size: 12.5px; }
html:not(.js) .countdown { display: none; }

.programme { gap: 26px !important; background: linear-gradient(180deg, var(--bg), var(--bg2)) !important; }
.when { font: 600 19px/1.5 var(--serif); }
.where { font-size: 17px; line-height: 1.5; color: var(--soft); max-width: 17em; overflow-wrap: anywhere; }
.where b { display: block; font: 600 12px/1.6 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.dress { font-size: 17px; font-style: italic; color: var(--soft); }

.chapters { list-style: none; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 0; text-align: left; }
.chapters li { position: relative; width: 82%; padding: 18px 18px 16px 20px; background: var(--card); border: 1px solid var(--line); border-bottom: 9px solid #a39d94; border-radius: 4px; box-shadow: 0 10px 18px -8px rgba(40, 20, 15, .22); }
.chapters li::before { content: ""; position: absolute; left: -1px; right: -1px; bottom: -9px; height: 3px; background: #c9c3b9; }
.chapters h3 { font: 400 34px/1.05 var(--script); color: var(--deep2); margin-bottom: 6px; }
.chapters p { font-size: 17px; line-height: 1.55; color: var(--soft); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; border: 4px solid var(--card); box-shadow: 0 10px 22px rgba(40, 20, 15, .14); }
.grid img:nth-child(3n+1) { grid-column: 1 / -1; aspect-ratio: 4 / 3; }

.gift-list { display: grid; gap: 12px; width: 100%; }
.gift-card { position: relative; overflow: hidden; padding: 16px 18px 16px 30px; border-radius: 6px; background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; }
.bank { font: 600 12px/1.4 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--deep2); }
.number { font-size: 22px; font-weight: 700; letter-spacing: .04em; overflow-wrap: anywhere; }
.holder { font-size: 15px; color: var(--soft); }
.gift-card .btn { flex-shrink: 0; min-height: 42px; padding: 0 16px; }
.address { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--line); font-size: 16px; line-height: 1.5; color: var(--soft); text-align: left; }

.note { width: 100%; padding: 14px 16px; border: 1px dashed rgba(255, 255, 255, .7); border-radius: 14px; font-size: 16px; }
.thanks { width: 100%; padding: 22px 18px; border-radius: 18px; background: rgba(255, 255, 255, .16); display: flex; flex-direction: column; gap: 6px; }
.thanks .big { font: 400 38px/1.1 var(--script); }
.form { width: 100%; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; font-size: 16px; font-weight: 700; }
.field legend { padding: 0 0 6px; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background: #fff; color: var(--ink); font: 500 18px/1.4 var(--serif); }
.field textarea { padding: 12px 14px; min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--gold-hi); outline-offset: 1px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.opt span { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1.5px solid rgba(255, 255, 255, .8); border-radius: 12px; font: 600 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.opt input:checked + span { background: #fff; color: var(--deep2); }
.opt input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.rsvp .btn { min-height: 50px; background: #fff; border-color: #fff; color: var(--deep2); }

main > section.wishes-box { align-items: stretch; text-align: left; gap: 0; padding-top: 30px; }
.wishes-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.wishes-head h2 { font: 400 36px/1.1 var(--script); color: var(--deep2); }
.wishes-head span { font-size: 15px; color: var(--soft); white-space: nowrap; }
.wishes { list-style: none; margin: 12px 0 0; padding: 0; max-height: 560px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.wishes li { padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.wish-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wish-head b { font-size: 18px; }
.tag { padding: 2px 8px; border-radius: 999px; border: 1px solid var(--gold); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.status { font-size: 14px; font-weight: 700; color: var(--deep2); }
.wish-text { font-size: 17px; line-height: 1.5; color: var(--soft); overflow-wrap: anywhere; }
.wish-reply { margin-top: 6px; padding: 8px 12px; border-left: 2px solid var(--r2); font-style: italic; color: var(--soft); }

main > section.closing { padding-top: 90px; background: linear-gradient(180deg, var(--bg), var(--sky2)); }

.merci { font-size: 54px; }
.thanks-line { font-size: 17px; font-style: italic; color: var(--soft); }
footer { position: relative; padding: 18px 16px 26px; text-align: center; font-size: 14px; color: var(--soft); background: var(--sky2); }

.music-toggle { position: fixed; bottom: 16px; right: max(14px, calc(50% - 226px)); z-index: 50; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--deep2); color: #fff; cursor: pointer; box-shadow: 0 8px 18px rgba(40, 20, 15, .3); }
.music-toggle svg { width: 18px; height: 18px; }
.music-toggle[aria-pressed="false"]::after { content: ""; position: absolute; width: 24px; height: 1.5px; background: #fff; transform: rotate(-45deg); }
html:not(.js) .music-toggle, .js:not(.is-open) .music-toggle { display: none; }

/* ---------- Animasi ---------- */
/* Isi muncul bertahap saat digulir (kelas .rv dipasang bilik.js): judul turun, foto membesar, mempelai dari kiri/kanan. */
.rv { opacity: 0; translate: 0 26px; }
.rv.script { translate: 0 -22px; }
.rv.portrait { translate: 0 0; scale: .86; }
.grid .rv { translate: 0 40px; scale: .8; }
.rv.event { opacity: 1; translate: 0 0; scale: 1 .04; }
.chapters .rv { translate: -46px 22px; }
.countdown .rv { translate: 0 0; scale: .3; }
.gift-list .rv { translate: 40px 0; }
.person:nth-child(odd) .rv { translate: -30px 0; } .person:nth-child(even) .rv { translate: 30px 0; }
.rv.in { opacity: 1; translate: 0 0; scale: 1; 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), scale .9s cubic-bezier(.2, .7, .2, 1) calc(var(--d, 0) * 1ms); }
@media (prefers-reduced-motion: no-preference) {
  /* Urutan sesudah .is-open: tirai tersibak (0,35–2 dtk) → 3, 2, 1 (2,1 / 2,9 / 3,7) → kilat (4,5) → strip tercetak
     keluar dari celah (4,9–6,6) lalu berayun. Berulang: lampu papan berkejaran, strip berayun. */
  .bohlam i { animation: kedip 1.2s steps(1) infinite; } .bohlam i:nth-child(odd) { animation-delay: -.6s; }
  .js.is-open:not(.no-anim) .hitung3 b { animation: angka .8s 2.1s ease-out both; }
  .js.is-open:not(.no-anim) .hitung3 b:nth-child(2) { animation-delay: 2.9s; } .js.is-open:not(.no-anim) .hitung3 b:nth-child(3) { animation-delay: 3.7s; }
  .js.is-open:not(.no-anim) .kilat { animation: blitz 1s 4.5s ease-out both; }
  .js.is-open:not(.no-anim) .cetak { animation: cetak 1.8s 4.9s cubic-bezier(.25, .7, .3, 1) both; }
  .lembar { animation: goyang 5s ease-in-out infinite alternate; }
  .js.is-open:not(.no-anim) .hero-pin > .tarik { animation: naik 1s 6.8s both; }
  .tarik::after { animation: gulir 1.6s ease-in-out infinite; }
  .cover-top { animation: turun 1.2s .2s both; } .cover-bottom { animation: naik 1.2s .5s both; }
  .cover .open { animation: denyut 2.8s 2s ease-in-out infinite; }
  .count .papan-k i, .rsvp::before { animation: kedip 1.2s steps(1) infinite; }
  .buka > .kilat2 { animation: blitz 1s .2s ease-out both; }
  .person .portrait, .grid img, .gift-card { transition: rotate .4s ease, scale .4s ease; }

}
@keyframes geserS { from { scale: 1.16; translate: 0 5%; } to { scale: 1; translate: 0 -3%; } }
@keyframes kedip { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .25; } }
@keyframes angka { 0% { opacity: 0; scale: 1.6; } 20% { opacity: 1; scale: 1; } 80% { opacity: 1; } 100% { opacity: 0; scale: .8; } }
@keyframes blitz { 0% { opacity: 0; } 8% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cetak { from { clip-path: inset(0 -30px 100% -30px); translate: 0 -8%; } to { clip-path: inset(0 -30px -40px -30px); translate: 0 0; } }
@keyframes goyangP { from { rotate: -1.6deg; } to { rotate: 1.8deg; } }
@keyframes goyang { from { rotate: -1.3deg; } to { rotate: 1.3deg; } }
@keyframes geserA { from { translate: -6% 0; } to { translate: 8% 0; } }
@keyframes asap { 0% { opacity: 0; transform: translate(0, 0) scale(.6, .4) rotate(0deg); } 20% { opacity: .8; } 100% { opacity: 0; transform: translate(14px, -46px) scale(2.2, 1.5) rotate(14deg); } }
@keyframes naikT { from { opacity: 0; translate: 0 34%; } to { opacity: 1; translate: 0 0; } }
@keyframes bukaT { from { scale: .1 1.18; } to { scale: 1 1; } }
@keyframes urai { from { clip-path: inset(0 -20px 100% -20px); } to { clip-path: inset(0 -20px -30px -20px); } }
@keyframes jatuhK { 0% { translate: -8px -10px; rotate: 0deg; opacity: 0; } 18% { opacity: 1; } 100% { translate: 8px 30px; rotate: 210deg; opacity: 0; } }
@keyframes gugur { from { translate: 0 0; } to { translate: 70px 112vh; } }
@keyframes kibar { from { rotate: -50deg; scale: 1 1; } to { rotate: 190deg; scale: .5 1; } }
@keyframes kelip { 0%, 100% { opacity: 0; translate: 0 0; } 50% { opacity: .75; translate: 6px -26px; } }
@keyframes kepak { from { scale: 1 1; } to { scale: .2 1; } }
@keyframes terbang1 { 0%, 100% { translate: 0 0; rotate: 20deg; } 25% { translate: 70px -60px; rotate: -10deg; } 50% { translate: 150px -20px; rotate: 30deg; } 75% { translate: 60px 30px; rotate: -25deg; } }
@keyframes terbang2 { 0%, 100% { translate: 0 0; rotate: -20deg; } 30% { translate: -90px 40px; rotate: 15deg; } 60% { translate: -150px -10px; rotate: -30deg; } 80% { translate: -50px -40px; rotate: 20deg; } }
@keyframes alir { to { stroke-dashoffset: -14; } }
@keyframes riak { from { scale: .4; opacity: .9; } to { scale: 2.6; opacity: 0; } }
@keyframes apung { from { translate: -2px 1px; } to { translate: 2px -1px; } }
@keyframes apung2 { from { translate: -1px 0; rotate: -.25deg; } to { translate: 1px 0; rotate: .25deg; } }
@keyframes kelip2 { 0%, 100% { scale: .3; opacity: 0; } 50% { scale: 1.1; opacity: .95; } }
@keyframes sinar { from { opacity: .55; } to { opacity: 1; } }
@keyframes napas { from { scale: 1; } to { scale: 1.035; } }
@keyframes silau { 0%, 100% { opacity: 0; } 50% { opacity: .5; } }
@keyframes mekarR { from { opacity: 0; scale: -.3 .3; } to { opacity: 1; scale: -1 1; } }
@keyframes naik2 { from { opacity: 0; translate: 0 50%; } to { opacity: 1; translate: 0 0; } }
@keyframes kabut { from { opacity: .9; } to { opacity: 0; } }
@keyframes toleh { from { rotate: -4deg; } to { rotate: 5deg; } }
@keyframes kibas { from { rotate: -1.2deg; } to { rotate: 1.2deg; } }
@keyframes plakat { from { opacity: 0; translate: 0 26px; scale: .94; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes mekar { from { opacity: 0; scale: .3; } to { opacity: 1; scale: 1; } }
@keyframes turun { from { opacity: 0; translate: 0 -18px; } to { opacity: 1; translate: 0 0; } }
@keyframes naik { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes denyut { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } 50% { box-shadow: 0 0 0 9px rgba(255, 255, 255, .18); } }
@keyframes ayun { 0%, 100% { rotate: -2deg; } 50% { rotate: 2deg; } }
@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; scale: none; rotate: none; filter: none; } *, *::before, *::after { animation: none !important; } .js .tirai, .js .pr, .js .kam { transition: none; } }
.js body.locked { overflow: visible; }

/* ---------- Pembuka Bilik: judul berupa strip foto (kertas putih, dua petak foto, keterangan di bawah) yang keluar dari
   celah mesin. Selama pembuka digulir (.ready, --p 0→1 dipasang bilik.js) strip ditarik ke atas, tirai menutup lagi,
   lalu layar menjadi warna kertas. ---------- */
.script, .person h3, .chapters h3, .wishes-head h2 { color: var(--aksen); }
.count .script, .rsvp .script { color: #fff5dc; }
.hero-pin { display: grid; place-items: start center; width: 100%; position: relative; }
.js .hero { display: block; padding: 0; background: none; }
.js .hero-pin { position: fixed; left: 50%; bottom: 0; width: min(100%, 480px); height: 100vh; height: 100svh; translate: -50% 0; padding: calc(3.2vh + 78px) 0 0; pointer-events: none; overflow: hidden; }
.scene-off .hero-pin { visibility: hidden; }
.title-wrap { width: min(54%, 220px); }
.lembar { transform-origin: 50% 0; padding: 10px 10px 12px; background: #fffdf8; box-shadow: 0 18px 30px rgba(0, 0, 0, .55); display: flex; flex-direction: column; gap: 8px; }
.petak { aspect-ratio: 4 / 3.4; background: var(--gelap); overflow: hidden; display: grid; place-items: center; }
.petak img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; filter: var(--foto); }
.petak span { font: 400 54px/1 var(--script); color: var(--gold-hi); }
.cap-t { padding: 4px 0 2px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; color: var(--ink); }
.cap-t .caps { font-size: 7.5px; letter-spacing: .24em; color: var(--soft); }
.t-name { font: 400 clamp(22px, 7.4vw, 30px)/1.05 var(--script); color: var(--aksen); overflow-wrap: anywhere; }
.t-amp { font-size: .8em; color: var(--gold); }
.cap-t .pl-date { margin: 2px 0 0; font: 600 8.5px/1.4 "Courier New", monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--deep); }
/* Penanda "gulir ke bawah": tuas tarik kecil di bawah strip. */
.tarik { position: absolute; left: 50%; bottom: 4.5vh; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(255, 245, 220, .7); border-radius: 14px; }
.tarik::after { content: ""; position: absolute; left: 50%; top: 7px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--gold); }
html:not(.js) .hero { background: var(--gelap); padding: 40px 0; } html:not(.js) .hero-pin > .tarik { display: none; }
.memuat .cover .open { pointer-events: none; opacity: .55; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero { min-height: 230vh; min-height: 230svh; }
  .ready .tirai { transition: none; }
  .ready .tirai.l, .ready .tirai.r { transform: scaleX(calc(.2 + var(--p, 0) * var(--p, 0) * .9)); }
  .ready .title-wrap { translate: 0 calc(var(--p, 0) * -130vh); rotate: calc(var(--p, 0) * -6deg); }
  .ready .hero-pin > .tarik { opacity: calc(1 - var(--p, 0) * 6); }
  .ready .terang { opacity: calc((var(--p, 0) - .66) * 3.4); }
}

/* ---------- Isi bertema bilik foto ---------- */
main > section:not(.hero) { background: radial-gradient(circle, rgba(42, 35, 32, .05) 1px, transparent 1.5px) 0 0 / 18px 18px, var(--bg); }
main h2.script::after { content: ""; display: block; width: 150px; height: 0; margin: 10px auto 0; border-top: 2px dashed var(--gold); }
.portrait img, .grid img { filter: var(--foto); }
/* Kutipan: karcis yang diketik */
main > section.verse { padding-top: 76px; }
.quote { max-width: 15em; padding: 22px 20px; font: 500 16.5px/1.7 "Courier New", monospace; font-style: normal; background: var(--card); border: 1px dashed var(--soft); box-shadow: 0 10px 20px -10px rgba(40, 20, 15, .3); rotate: -1.2deg; }
/* Mempelai: dua polaroid berselotip */
.couple { display: flex; flex-direction: row; align-items: flex-start; gap: 14px; width: calc(100% + 16px); margin: 14px -8px 0; }
.person { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.person:nth-child(odd) { rotate: -2.5deg; } .person:nth-child(even) { rotate: 2deg; margin-top: 46px; }
.person::before { content: ""; position: absolute; left: 50%; top: -12px; z-index: 2; width: 74px; height: 24px; margin-left: -37px; rotate: -4deg; background: rgba(217, 164, 65, .55); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.portrait { width: 100%; height: auto; aspect-ratio: 1 / 1.08; padding: 9px 9px 0; border: 0; border-radius: 2px 2px 0 0; background: #fffdf8; display: flex; box-shadow: none; }
.portrait > * { flex: 1; width: 100%; height: 100%; border-radius: 0; object-fit: cover; }
.portrait span { background: var(--gelap); color: var(--gold-hi); }
.person h3 { width: 100%; margin-top: -6px; padding: 10px 6px 12px; background: #fffdf8; font: 400 25px/1.05 var(--script); text-align: center; box-shadow: 0 16px 22px -12px rgba(40, 20, 15, .45); }
.parents { margin-top: 8px; font-size: 14px; line-height: 1.4; } .ig { font-size: 13.5px; }
/* Hitung mundur: layar mesin */
main > section.count, main > section.rsvp { background: radial-gradient(90% 70% at 50% 20%, #3b2722, var(--gelap)); color: #fff5dc; }
.count .lead { color: #e9dcc4; }
.countdown { gap: 8px; }
.countdown div { aspect-ratio: auto; padding: 14px 0 10px; border: 0; border-radius: 6px; background: #0d0a09; box-shadow: inset 0 0 0 1px #4a3a33, inset 0 6px 10px rgba(0, 0, 0, .7); }
.countdown b { font: 700 30px/1.1 "Courier New", monospace; color: #ff5a4f; text-shadow: 0 0 10px rgba(255, 70, 60, .7); }
.countdown span { font: 600 10px/1.4 var(--display); letter-spacing: .16em; text-transform: uppercase; color: #cbb9a4; }
main > section.count::before, main > section.rsvp::before { content: ""; position: absolute; left: 14px; right: 14px; top: 16px; height: 8px; background: radial-gradient(circle, #ffe9a8 3px, rgba(255, 214, 120, .5) 4px, transparent 5px) 0 0 / 22px 8px repeat-x; }
.kilat2 { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
/* Acara: tiket sobek */
.programme { gap: 22px !important; }
.event { position: relative; width: 100%; padding: 26px 22px 24px 84px; border: 0; outline: 0; border-radius: 10px; background: var(--card); box-shadow: 0 12px 24px -10px rgba(40, 20, 15, .35); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; clip-path: none; -webkit-mask: radial-gradient(circle 11px at 64px 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at 64px 100%, transparent 98%, #000) bottom / 100% 51% no-repeat; mask: radial-gradient(circle 11px at 64px 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at 64px 100%, transparent 98%, #000) bottom / 100% 51% no-repeat; }
.event::before { content: "Admit Two"; position: absolute; left: 0; top: 0; bottom: 0; width: 64px; display: grid; place-items: center; writing-mode: vertical-rl; rotate: 180deg; background: var(--deep); color: #fff5dc; font: 600 11px/1 var(--display); letter-spacing: .3em; text-transform: uppercase; border-left: 2px dashed rgba(255, 245, 220, .6); }
.event:nth-child(even)::before { background: var(--ink); }
.event .script { font-size: 38px; } .event .script::after { display: none; }
.where { text-align: left; } .event .btn { align-self: flex-start; }
/* Kisah cinta: strip film berbingkai */
.chapters { gap: 0; padding: 12px 34px; counter-reset: bab; background: var(--gelap) radial-gradient(circle, transparent 0, transparent 100%); border-radius: 4px; background-image: repeating-linear-gradient(180deg, #fffdf8 0 10px, transparent 10px 24px), repeating-linear-gradient(180deg, #fffdf8 0 10px, transparent 10px 24px); background-size: 12px 100%, 12px 100%; background-position: 11px 8px, calc(100% - 11px) 8px; background-repeat: no-repeat; background-color: var(--gelap); }
.chapters li { counter-increment: bab; width: auto; margin: 8px 0 !important; padding: 18px 16px 16px; border: 0; border-radius: 2px; background: var(--card); box-shadow: none; }
.chapters li::before { content: "0" counter(bab); position: static; display: block; width: auto; height: auto; margin-bottom: 4px; background: none; font: 700 12px/1 "Courier New", monospace; letter-spacing: .14em; color: var(--deep); }
.chapters h3 { font-size: 30px; }
/* Galeri: polaroid berserakan */
.grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; width: calc(100% + 20px); margin: 0 -10px; padding: 6px 0 18px; }
.grid img { width: 54%; aspect-ratio: 1 / 1.05; margin: -10px -3% 0; padding: 8px 8px 30px; border: 0; border-radius: 2px; background: #fffdf8; box-shadow: 0 12px 20px -8px rgba(40, 20, 15, .45); object-fit: cover; }
.grid img:nth-child(3n+1) { grid-column: auto; aspect-ratio: 1 / 1.05; }
.grid img:nth-child(4n+1) { rotate: -5deg; } .grid img:nth-child(4n+2) { rotate: 4deg; margin-top: 14px; } .grid img:nth-child(4n+3) { rotate: 3deg; } .grid img:nth-child(4n) { rotate: -4deg; margin-top: 10px; }
/* Amplop: karcis kecil */
.gift-card { border-radius: 8px; border: 1px dashed var(--soft); background: var(--card); }
/* Penutup */
main > section.closing { padding: 80px 28px 60px; background: var(--gelap); color: #fff5dc; overflow: hidden; }
.closing .merci { color: #fff5dc; } .closing .thanks-line { color: #e2d3bd; } .closing .pl-name { color: var(--gold-hi); }
footer { background: var(--gelap); color: #a8998a; } footer a { color: var(--gold-hi); }
/* Masuk saat digulir */
.rv.event { opacity: 0; translate: -60px 0; scale: 1; }
.event:nth-child(even).rv { translate: 60px 0; }
.chapters .rv { translate: 0 30px; }
.grid .rv { translate: 0 30px; scale: .9; filter: brightness(2.6) saturate(0) blur(2px); }
.couple .rv { translate: 0 -40px; scale: 1; }
.rv.portrait { scale: 1; }
.countdown .rv { translate: 0 0; scale: .5; }
.rv.in { filter: var(--none, none); transition: opacity .9s cubic-bezier(.2, .7, .2, 1) calc(var(--d, 0) * 1ms), translate .9s cubic-bezier(.3, 1.3, .5, 1) calc(var(--d, 0) * 1ms), scale .9s cubic-bezier(.2, .7, .2, 1) calc(var(--d, 0) * 1ms), filter 1.8s ease calc(var(--d, 0) * 1ms + 200ms); }
.grid .rv.in { filter: var(--foto); }

/* ---------- Lapisan mewah: art deco emas, beludru marun, sorot lampu, serbuk emas ---------- */
.bilik { background: radial-gradient(80% 50% at 50% 22%, #5a2a26, #2a1614 55%, var(--gelap)); }
.bilik::after { background: repeating-linear-gradient(90deg, rgba(240, 220, 166, .05) 0 1px, transparent 1px 44px), radial-gradient(60% 40% at 50% 100%, rgba(0, 0, 0, .55), transparent); }
.sorot { position: absolute; top: -6%; width: 90%; height: 96%; z-index: 1; background: linear-gradient(180deg, rgba(255, 236, 190, .26), rgba(255, 236, 190, 0) 78%); clip-path: polygon(0 0, 14% 0, 100% 100%, 46% 100%); mix-blend-mode: screen; opacity: .8; }
.sorot.l { left: -8%; } .sorot.r { right: -8%; scale: -1 1; }
.tirai { background: repeating-linear-gradient(90deg, #3d060e 0, #7d1322 6%, #a92436 10%, #c43b4c 12%, #8a1626 16%, #4a0811 22%); box-shadow: inset 0 -90px 70px rgba(0, 0, 0, .5), inset 0 60px 50px rgba(0, 0, 0, .45), inset -14px 0 18px rgba(0, 0, 0, .35); }
.tirai::after { display: none; }
.tirai::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: repeating-linear-gradient(90deg, #f0dca6 0 2px, #9a762c 2px 4px); border-top: 3px solid #c6a04c; opacity: .95; }
.valans { position: absolute; left: 0; right: 0; top: 0; height: 58px; z-index: 5; background: radial-gradient(60px 46px at 50% 0, #a92436 0, #7d1322 60%, #4a0811 96%, transparent 100%) 0 6px / 96px 52px repeat-x; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .5)); }
.valans::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: var(--emas); box-shadow: 0 2px 5px rgba(0, 0, 0, .5); }
.valans::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 52px; background: radial-gradient(60px 46px at 50% 0, transparent 92%, #f0dca6 94%, #c6a04c 99%, transparent 100%) 0 0 / 96px 52px repeat-x; }
.papan { top: 8.6vh; z-index: 5; gap: 7px; padding: 12px 22px 11px; border-radius: 60px 60px 10px 10px; background: linear-gradient(180deg, #2a1614, #130d0c); box-shadow: 0 12px 26px rgba(0, 0, 0, .65), inset 0 0 0 2px #c6a04c, inset 0 0 0 5px #130d0c, inset 0 0 0 6px rgba(240, 220, 166, .6); }
.papan::before { content: ""; position: absolute; left: 50%; top: -34px; z-index: -1; width: 190px; height: 96px; translate: -50% 0; background: repeating-conic-gradient(from -90deg at 50% 100%, rgba(240, 220, 166, .5) 0 4deg, transparent 4deg 12deg); -webkit-mask-image: radial-gradient(circle at 50% 100%, #000 30%, transparent 70%); mask-image: radial-gradient(circle at 50% 100%, #000 30%, transparent 70%); }
.papan b { font-size: 16px; color: #fbeec4; text-shadow: 0 0 8px rgba(255, 214, 120, .9), 0 0 2px #fff; }
.celah { top: calc(8.6vh + 92px); height: 10px; background: #050303; box-shadow: inset 0 2px 3px #000, 0 0 0 2px #c6a04c, 0 0 0 4px #130d0c; }
.js .hero-pin { padding-top: calc(8.6vh + 96px); }
.hitung3 b { border: 2px solid #c6a04c; box-shadow: 0 0 0 6px rgba(19, 13, 12, .6), 0 0 0 7px rgba(240, 220, 166, .6), 0 0 40px rgba(255, 220, 140, .35); background: radial-gradient(circle, rgba(19, 13, 12, .75), rgba(19, 13, 12, .2)); color: #f0dca6; font-weight: 500; }
.serbuk { position: absolute; inset: 0; z-index: 3; }
.serbuk i { position: absolute; top: -3%; background: var(--emas); opacity: 0; }
.serbuk i:nth-child(1) { left: 86%; width: 6px; height: 12px; animation-duration: 6.1s, 1.4s; animation-delay: 8.0s, -0.7s; }
.serbuk i:nth-child(2) { left: 85%; width: 6px; height: 6px; animation-duration: 6.3s, 2.3s; animation-delay: 8.1s, -1.5s; }
.serbuk i:nth-child(3) { left: 65%; width: 4px; height: 8px; animation-duration: 5.6s, 1.5s; animation-delay: 5.2s, -1.0s; }
.serbuk i:nth-child(4) { left: 57%; width: 3px; height: 3px; animation-duration: 8.7s, 1.4s; animation-delay: 5.7s, -1.6s; }
.serbuk i:nth-child(5) { left: 42%; width: 3px; height: 3px; animation-duration: 6.6s, 1.6s; animation-delay: 4.8s, -1.4s; }
.serbuk i:nth-child(6) { left: 60%; width: 3px; height: 3px; animation-duration: 8.6s, 2.2s; animation-delay: 5.3s, -0.5s; }
.serbuk i:nth-child(7) { left: 84%; width: 3px; height: 3px; animation-duration: 5.5s, 1.9s; animation-delay: 9.1s, -0.4s; }
.serbuk i:nth-child(8) { left: 18%; width: 3px; height: 3px; animation-duration: 7.2s, 1.2s; animation-delay: 5.0s, -1.0s; }
.serbuk i:nth-child(9) { left: 61%; width: 4px; height: 4px; animation-duration: 6.6s, 2.0s; animation-delay: 5.1s, -1.2s; }
.serbuk i:nth-child(10) { left: 85%; width: 4px; height: 4px; animation-duration: 5.2s, 1.9s; animation-delay: 7.6s, -0.3s; }
.serbuk i:nth-child(11) { left: 81%; width: 5px; height: 5px; animation-duration: 5.5s, 2.0s; animation-delay: 9.4s, -0.5s; }
.serbuk i:nth-child(12) { left: 54%; width: 3px; height: 3px; animation-duration: 8.5s, 1.3s; animation-delay: 9.0s, -0.7s; }
.serbuk i:nth-child(13) { left: 59%; width: 4px; height: 4px; animation-duration: 8.9s, 1.9s; animation-delay: 4.7s, -1.6s; }
.serbuk i:nth-child(14) { left: 8%; width: 5px; height: 10px; animation-duration: 5.4s, 1.5s; animation-delay: 5.9s, -1.6s; }
.serbuk i:nth-child(15) { left: 88%; width: 5px; height: 10px; animation-duration: 5.4s, 2.1s; animation-delay: 4.7s, -1.6s; }
.serbuk i:nth-child(16) { left: 71%; width: 6px; height: 12px; animation-duration: 7.8s, 1.5s; animation-delay: 8.3s, -0.9s; }
.title-wrap { width: min(56%, 228px); }
.lembar { padding: 11px 11px 14px; background: linear-gradient(180deg, #fffdf8, #f8f1e2); box-shadow: 0 22px 40px rgba(0, 0, 0, .65), inset 0 0 0 1px rgba(198, 160, 76, .55); }
.petak { box-shadow: inset 0 0 0 1px rgba(36, 27, 24, .25); }
.deko { display: block; height: 9px; margin: 2px 14px -2px; background: linear-gradient(#c6a04c, #c6a04c) left center / calc(50% - 10px) 1px no-repeat, linear-gradient(#c6a04c, #c6a04c) right center / calc(50% - 10px) 1px no-repeat, conic-gradient(from 45deg, #c6a04c 0 100%) center / 7px 7px no-repeat; }
.deko { -webkit-mask: linear-gradient(#000, #000); }
.cap-t .pl-date { font-family: var(--display); font-weight: 600; letter-spacing: .2em; color: var(--deep); }
.tarik { border-color: #c6a04c; }
/* isi */
main > section:not(.hero) { background: radial-gradient(circle at 50% 0, rgba(198, 160, 76, .1), transparent 60%), var(--bg); }
main h2.script::before { content: ""; display: block; width: 46px; height: 24px; margin: 0 auto 6px; background: repeating-conic-gradient(from -90deg at 50% 100%, var(--gold) 0 5deg, transparent 5deg 15deg); -webkit-mask-image: radial-gradient(circle at 50% 100%, #000 0 68%, transparent 70%); mask-image: radial-gradient(circle at 50% 100%, #000 0 68%, transparent 70%); }
main h2.script::after { width: 190px; height: 9px; border: 0; background: linear-gradient(var(--gold), var(--gold)) left center / calc(50% - 10px) 1px no-repeat, linear-gradient(var(--gold), var(--gold)) right center / calc(50% - 10px) 1px no-repeat, linear-gradient(45deg, transparent 30%, var(--gold) 30% 70%, transparent 70%) center / 9px 9px no-repeat; }
.btn { border-radius: 2px; border: 1px solid var(--gold); background: var(--ink); color: var(--gold-hi); box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 4px rgba(198, 160, 76, .5); }
.btn-line { background: transparent; color: inherit; }
.quote { border: 0; padding: 26px 22px; box-shadow: 0 14px 26px -12px rgba(40, 20, 15, .35), inset 0 0 0 1px var(--gold), inset 0 0 0 5px var(--card), inset 0 0 0 6px rgba(198, 160, 76, .45); font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.6; rotate: 0deg; }
.person::before { background: var(--emas); opacity: .82; }
.portrait, .person h3 { background: linear-gradient(180deg, #fffdf8, #f8f1e2); }
.person h3 { box-shadow: 0 20px 26px -12px rgba(40, 20, 15, .5); }
main > section.count, main > section.rsvp { background: radial-gradient(90% 60% at 50% 0, #4a1d1f, #1d1110 60%, var(--gelap)); }
.countdown div { padding: 16px 0 11px; border-radius: 4px; background: linear-gradient(180deg, #2a1c19 0 49%, #0c0807 49% 51%, #221613 51%); box-shadow: inset 0 0 0 1px #c6a04c, 0 8px 14px rgba(0, 0, 0, .5); }
.countdown b { font: 500 31px/1.1 var(--display); background: var(--emas); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.countdown span { color: var(--gold-hi); }
.event { background: linear-gradient(180deg, #fffdf8, #f8f1e2); box-shadow: 0 16px 28px -12px rgba(40, 20, 15, .4); }
.event::before { background: var(--emas); color: #2a1c10; font-weight: 700; border-left: 2px dashed rgba(36, 27, 24, .45); }
.event:nth-child(even)::before { background: linear-gradient(135deg, #130d0c, #3a2420 50%, #130d0c); color: var(--gold-hi); border-left-color: rgba(240, 220, 166, .6); }
.event::after { content: ""; position: absolute; left: 74px; right: 10px; top: 9px; bottom: 9px; border: 1px solid rgba(198, 160, 76, .55); border-radius: 4px; pointer-events: none; }
.chapters li::before { color: var(--gold); }
.chapters li { box-shadow: inset 0 0 0 1px rgba(198, 160, 76, .5); }
.grid img { background: linear-gradient(180deg, #fffdf8, #f6eedd); box-shadow: 0 16px 26px -10px rgba(40, 20, 15, .5); }
.gift-card { border: 0; box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 0 4px var(--card), inset 0 0 0 5px rgba(198, 160, 76, .4), 0 10px 18px -10px rgba(40, 20, 15, .3); }
.opt span { border-radius: 2px; } .field input, .field textarea { border-radius: 2px; }
.rsvp .btn { background: var(--emas); border-color: #9a762c; color: #2a1c10; box-shadow: none; }
main > section.closing { background: radial-gradient(70% 45% at 50% 30%, #4a1d1f, #1d1110 60%, var(--gelap)); }
.monogram { position: relative; width: 150px; height: 150px; display: flex; align-items: center; justify-content: center; gap: 4px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #c6a04c, inset 0 0 0 7px transparent, inset 0 0 0 8px rgba(240, 220, 166, .5); font: 400 58px/1 var(--script); }
.monogram::before { content: ""; position: absolute; inset: -46px; z-index: -1; border-radius: 50%; background: repeating-conic-gradient(rgba(240, 220, 166, .32) 0 3deg, transparent 3deg 10deg); -webkit-mask-image: radial-gradient(circle, transparent 52%, #000 54%, transparent 76%); mask-image: radial-gradient(circle, transparent 52%, #000 54%, transparent 76%); }
.monogram span, .monogram i { background: var(--emas); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: normal; }
.monogram i { font-size: 30px; }
.music-toggle { background: var(--ink); box-shadow: 0 8px 18px rgba(0, 0, 0, .4), inset 0 0 0 1px var(--gold); color: var(--gold-hi); }
@media (prefers-reduced-motion: no-preference) {
  .sorot { animation: sapuS 7s ease-in-out infinite alternate; transform-origin: 7% 0; } .sorot.r { animation-duration: 9s; }
  .js.is-open:not(.no-anim) .serbuk i { animation-name: gugur, kedip; animation-timing-function: linear, steps(1); animation-iteration-count: 1, infinite; animation-fill-mode: both; opacity: 1; }
  .monogram::before { animation: putarM 40s linear infinite; }
  .js .closing:not(.buka) .monogram { scale: .6; opacity: 0; }
  .js .monogram { transition: scale 1.4s cubic-bezier(.3, 1.3, .5, 1) .3s, opacity .8s ease .3s; }
  .papan b { animation: pijarT 3.2s ease-in-out infinite alternate; }
}
@keyframes sapuS { from { rotate: -5deg; } to { rotate: 6deg; } }
@keyframes putarM { to { rotate: 360deg; } }
@keyframes pijarT { from { opacity: .82; } to { opacity: 1; } }

/* ---------- Properti foto (SVG sebaris): topi, kumis, mahkota, kacamata, bibir, dasi kupu-kupu di atas tongkat, muncul
   dari tepi bawah-samping setelah tirai tersibak lalu bergoyang; kamera di bawah strip yang blitznya menyala. ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.props { position: absolute; inset: 0; z-index: 5; }
.pr { position: absolute; width: var(--w, 78px); transform-origin: 50% calc(100% + var(--t, 120px)); filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .55)); }
.pr svg { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
.pr::after { content: ""; position: absolute; left: 50%; top: 60%; width: 5px; height: calc(40% + var(--t, 120px)); margin-left: -2.5px; border-radius: 3px; background: linear-gradient(90deg, #8a6a3a, #e3c78d 45%, #8a6a3a); }
.p1 { --w: 78px; --t: 150px; left: 15%; top: 30%; rotate: -10deg; } .p2 { --w: 76px; --t: 120px; left: 15%; top: 50%; rotate: -16deg; } .p3 { --w: 60px; --t: 90px; left: 12%; top: 67%; rotate: -6deg; }
.p4 { --w: 76px; --t: 150px; right: 15%; top: 33%; rotate: 11deg; } .p5 { --w: 64px; --t: 120px; right: 15%; top: 53%; rotate: 16deg; } .p6 { --w: 64px; --t: 90px; right: 12%; top: 69%; rotate: 7deg; }
.js .pr { transition: translate 1.1s cubic-bezier(.3, 1.4, .5, 1), opacity .5s ease; }
.js .p1 { transition-delay: 1.5s; } .js .p4 { transition-delay: 1.65s; } .js .p2 { transition-delay: 1.8s; } .js .p5 { transition-delay: 1.95s; } .js .p3 { transition-delay: 2.1s; } .js .p6 { transition-delay: 2.25s; }
.js:not(.is-open) .pr { translate: 0 70vh; opacity: 0; }
.js.no-anim .pr { transition: none; }
.kam { position: absolute; left: 50%; bottom: 12.5vh; width: 92px; margin-left: -46px; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .6)); }
.kam svg { display: block; width: 100%; height: auto; }
.kam i { position: absolute; left: 50%; top: 12%; width: 0; height: 0; }
.kam i::before { content: ""; position: absolute; left: -120px; top: -120px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(closest-side, #fff, rgba(255, 244, 210, .7) 30%, rgba(255, 244, 210, 0)); opacity: 0; }
.js .kam { transition: translate 1s cubic-bezier(.3, 1.3, .5, 1) 1.9s, opacity .5s ease 1.9s; }
.js:not(.is-open) .kam { translate: 0 40vh; opacity: 0; }
.js.no-anim .kam { transition: none; }
@media (max-height: 700px) { .p3, .p6 { display: none; } .kam { width: 74px; margin-left: -37px; bottom: 11vh; } }
@media (prefers-reduced-motion: no-preference) {
  .pr svg, .pr::after { animation: ayunP 3.6s ease-in-out infinite alternate; transform-origin: 50% calc(100% + var(--t, 120px)); }
  .pr::after { transform-origin: 50% 100%; }
  .p2 svg, .p2::after, .p5 svg, .p5::after { animation-duration: 4.4s; animation-delay: -1.5s; } .p3 svg, .p3::after, .p4 svg, .p4::after { animation-duration: 3s; animation-delay: -2.2s; }
  .js.is-open:not(.no-anim) .kam i::before { animation: blitzK 1s 4.45s ease-out both; }
  .js.is-open:not(.no-anim) .kam svg { animation: jepret .5s 4.3s ease-in-out both; }
  .ready .pr { transition: none; translate: calc(var(--sx, -1) * var(--p, 0) * 160px) calc(var(--p, 0) * 60vh); opacity: calc(1 - var(--p, 0) * 2.2); }
  .ready .p4, .ready .p5, .ready .p6 { --sx: 1; }
  .ready .kam { transition: none; translate: 0 calc(var(--p, 0) * 50vh); opacity: calc(1 - var(--p, 0) * 3); }
}
@keyframes ayunP { from { rotate: -5deg; } to { rotate: 5deg; } }
@keyframes blitzK { 0% { opacity: 0; scale: .2; } 10% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 1.6; } }
@keyframes jepret { 0%, 100% { scale: 1; } 40% { scale: .92; } }

/* Foto tiap kisah cinta (opsional, sub-field stories.photo): polaroid kecil di atas judul, miring bergantian. */
.kisah-foto { margin: 2px 0 14px; padding: 6px 6px 20px; background: #fff; border-radius: 3px; box-shadow: 0 10px 22px rgba(30, 20, 20, .16); rotate: -1.4deg; }
:nth-child(even) > .kisah-foto { rotate: 1.4deg; }
.kisah-foto img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
