/* Kupu — undangan pernikahan bergaya lukisan cat air: rumah kaca kupu-kupu di pagi hari. Sampul berupa kaca berembun
   yang dihinggapi kupu-kupu; saat dibuka embunnya terhapus dari tengah, kupu-kupu terbang, dan pandangan mundur dari
   gazebo bercahaya sampai seluruh rumah kaca terlihat di bawah lengkung besi bermawar. Nama tertulis di kartu label
   spesimen yang tergantung pada jarum. Kupu-kupu (kanvas, kupu.js) terus beterbangan dan sesekali hinggap di judul
   bagian; tiap bagian isi punya gerak sendiri: kaleng penyiram menuang air, pot bergoyang, kepompong menetas, uap teh. */
@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; }
@property --r { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

:root {
  --bg: #f7f3ea; --bg2: #eef1e5; --ink: #3c4535; --soft: #687160; --sage: #7e9a76; --sage-dk: #4f6b4b; --rose: #c97f86;
  --gold: #b08d57; --paper: #fbf8f0; --terra: #a8603e; --line: rgba(126, 154, 118, .4);
  --display: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Pinyon Script", "Cormorant Garamond", cursive;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: #e6eadc; }
body { margin: 0; background: #e6eadc; 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, figure { margin: 0; }
a { color: var(--sage-dk); }
:focus-visible { outline: 2px solid var(--sage-dk); 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(60, 80, 50, .18); } }

/* ---------- Adegan rumah kaca: lapisan selebar kolom halaman, di belakang pembuka ----------
   .stage berbanding 940:1684 (ukuran lukisan) dan selalu menutup layar; empat lapisan memakai bingkai yang sama,
   jadi di skala 1 bertumpuk menjadi lukisan utuh: latar (kubah kaca, gazebo, jalan batu) → tengah (pakis gantung,
   anggrek) → bingkai (lengkung besi bermawar & wisteria) → depan (pot peoni dan mawar). Itu keadaan dasar. Sebelum
   dibuka semua lapisan dibesarkan dari pintu gazebo (49,7% 59%): yang tampak hanya gazebo bercahaya di balik embun;
   saat dibuka pandangan mundur dengan laju berbeda per lapisan. */
.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: #e9eadf; 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.7915)); aspect-ratio: 940 / 1684; translate: -50% -50%; }
.ly { position: absolute; inset: 0; will-change: transform; transform-origin: 49.7% 59%; }
.ly > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.ly-depan { transform-origin: 50% 100%; }
.ly-depan > img { top: 62%; height: 38%; }
.js .ly { transition: transform 4.6s cubic-bezier(.45, 0, .15, 1) .5s; }
.js .ly-bingkai { transition-duration: 4.2s; }
.js .ly-depan { transition: transform 3.6s cubic-bezier(.3, 0, .2, 1) 1.3s; }
.js:not(.is-open) .ly-latar { transform: scale(1.9); }
.js:not(.is-open) .ly-tengah { transform: scale(2.4); }
.js:not(.is-open) .ly-bingkai { transform: scale(3.4); }
.js:not(.is-open) .ly-depan { transform: translateY(70%) scale(1.3); }
.js.no-anim .ly { transition: none; }
.pendar-gazebo { position: absolute; left: 49.7%; top: 58%; width: 30%; height: 18%; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 226, 150, .7), rgba(255, 214, 140, .2) 55%, transparent); mix-blend-mode: screen; }
.sinar { position: absolute; left: 62%; top: 22%; width: 7%; height: 46%; rotate: -36deg; transform-origin: 50% 0; background: linear-gradient(180deg, rgba(255, 250, 225, .55), rgba(255, 246, 215, .25) 60%, transparent); filter: blur(6px); mix-blend-mode: screen; }
.sinar.s2 { left: 71%; top: 20%; width: 4%; opacity: .8; } .sinar.s3 { left: 80%; top: 24%; width: 9%; opacity: .6; }
.mist { position: absolute; left: -20%; width: 90%; height: 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 250, .6), transparent); }
.mist.m1 { top: 52%; } .mist.m2 { top: 63%; left: 30%; width: 85%; }
.gugur { position: absolute; inset: 0; overflow: hidden; }
.gugur i { position: absolute; top: 8%; width: 1.1%; height: .45%; border-radius: 60% 0 60% 0; background: #eeb6bb; opacity: 0; }
.gugur i:nth-child(1) { left: 18%; } .gugur i:nth-child(2) { left: 34%; background: #d9b4dc; } .gugur i:nth-child(3) { left: 62%; } .gugur i:nth-child(4) { left: 78%; background: #d9b4dc; } .gugur i:nth-child(5) { left: 48%; }
.terang { position: absolute; inset: 0; background: radial-gradient(circle at 49.7% 59%, #fffdf6 0, #fbefcf 16%, rgba(247, 243, 234, 0) 52%), var(--bg); opacity: 0; }

/* Kupu-kupu: satu kanvas tetap di depan seluruh halaman (digambar kupu.js), tembus ketukan. */
.kupu { position: fixed; top: 0; left: 50%; width: min(100%, 480px); height: 100%; translate: -50% 0; z-index: 30; pointer-events: none; display: none; }
.js.is-open .kupu { display: block; }

.caps { font: 500 13px/1.4 var(--display); letter-spacing: .34em; text-transform: uppercase; }
.script { font: 400 50px/1.05 var(--script); color: var(--sage-dk); }
.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(--sage-dk); border-radius: 999px; background: var(--sage-dk); color: #fbf8f0; text-decoration: none; cursor: pointer; font: 600 13px/1 var(--display); letter-spacing: .22em; text-transform: uppercase; }
.btn-line { background: transparent; color: var(--sage-dk); border-color: currentColor; }
.btn.copied { background: var(--rose); border-color: var(--rose); color: #fff; }

/* ---------- Sampul: kaca berembun di depan rumah kaca, dihinggapi kupu-kupu ---------- */
.cover { position: relative; min-height: 100vh; min-height: 100svh; padding: 48px 26px 40px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 16px; text-align: center; background: linear-gradient(rgba(247, 243, 234, .7), rgba(247, 243, 234, .85)), url("img/latar.webp") center / cover; overflow: hidden; }
.js .cover { background: none; }
.cover[hidden] { display: none; }
.embun-kaca { position: absolute; inset: 0; display: none; background: radial-gradient(90% 60% at 50% 45%, rgba(252, 250, 244, .28), rgba(244, 241, 232, .62) 80%), linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .25) 42%, transparent 50%); -webkit-backdrop-filter: blur(9px) saturate(.85); backdrop-filter: blur(9px) saturate(.85);
  -webkit-mask-image: radial-gradient(circle at 50% 52%, transparent var(--r), #000 calc(var(--r) + 16%)); mask-image: radial-gradient(circle at 50% 52%, transparent var(--r), #000 calc(var(--r) + 16%)); }
.js .embun-kaca { display: block; }
.titik { position: absolute; width: 9px; height: 11px; border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%; background: radial-gradient(circle at 38% 32%, rgba(255, 255, 255, .95), rgba(230, 240, 235, .35) 45%, rgba(150, 170, 150, .25)); box-shadow: 0 1px 2px rgba(80, 100, 80, .2); }
.t1 { left: 14%; top: 30%; } .t2 { left: 82%; top: 22%; width: 7px; height: 9px; } .t3 { left: 72%; top: 44%; } .t4 { left: 22%; top: 66%; width: 6px; height: 8px; } .t5 { left: 88%; top: 72%; } .t6 { left: 40%; top: 12%; width: 6px; height: 8px; }
.cover-top, .cover-bottom, .jendela { position: relative; z-index: 1; }
.cover-top, .cover-bottom { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cover .caps { color: var(--sage-dk); }
.cover .names { font: 500 30px/1.15 var(--display); letter-spacing: .08em; text-transform: uppercase; overflow-wrap: anywhere; color: var(--ink); }
.names .amp { margin: 0 .25em; font: 400 40px/1 var(--script); text-transform: none; letter-spacing: 0; color: var(--rose); }
.to { font-size: 16px; line-height: 1.5; color: var(--soft); }
.guest-name { font: 600 24px/1.2 var(--serif); overflow-wrap: anywhere; }
.cover .open { margin-top: 8px; min-width: 230px; min-height: 48px; box-shadow: 0 10px 24px rgba(60, 90, 55, .25); }
.jendela { width: min(44vw, 196px); aspect-ratio: 600 / 809; }
.jendela .foto { position: absolute; left: 18%; right: 18.2%; top: 14.6%; bottom: 18.4%; border-radius: 50%; overflow: hidden; background: #eef1e5; }
.jendela .foto img { width: 100%; height: 100%; object-fit: cover; }
.jendela.tanpa-foto::before { content: ""; position: absolute; left: 18%; right: 18.2%; top: 14.6%; bottom: 18.4%; border-radius: 50%; background: url("img/kupu2.webp") center / 62% no-repeat, radial-gradient(closest-side, #fffaf0, #eef1e5); }
.bingkai-oval { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-height: 640px) { .jendela { display: none; } }
.hinggap { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: none; }
.js .hinggap { display: block; }
.hk { position: absolute; width: 54px; }
.hk.h1 { left: 9%; top: 15%; rotate: -24deg; } .hk.h2 { right: 7%; top: 47%; width: 46px; rotate: 28deg; } .hk.h3 { left: 12%; bottom: 23%; width: 40px; rotate: 8deg; }
html:not(.js) .cover .open { display: none; }

/* Dengan JS: sampul menutup layar sampai tamu menekan "Buka undangan". */
.js .cover { position: fixed; top: 0; bottom: 0; left: 50%; width: min(100%, 480px); transform: translateX(-50%); z-index: 40; overflow-y: auto; }
.js:not(.is-open) body { overflow: hidden; }
.js.is-open .cover { pointer-events: none; }
.js.is-open .embun-kaca { --r: 140%; transition: --r 2.2s cubic-bezier(.5, 0, .7, .4) .25s; }
.js.is-open .cover-top, .js.is-open .cover-bottom, .js.is-open .jendela { opacity: 0; transition: opacity .7s ease; }
.js.is-open .cover { opacity: 0; transition: opacity .6s ease 2.1s; }
.js.no-anim .cover, .js.no-anim .embun-kaca { transition: none; }
.memuat .cover .open { pointer-events: none; opacity: .55; }

/* ---------- Pembuka: nama di kartu label spesimen yang tergantung pada jarum mutiara ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: 44px 20px; display: grid; place-items: center; text-align: center; background: linear-gradient(rgba(247, 243, 234, .6), rgba(247, 243, 234, .85)), url("img/latar.webp") center / cover; }
.hero-pin { display: grid; place-items: center; width: 100%; }
.js .hero { display: block; padding: 0; background: none; }
.js .hero-pin { position: fixed; left: 50%; top: 0; width: min(100%, 480px); height: 100vh; height: 100svh; translate: -50% 0; padding: 9vh 20px 0; place-items: start center; pointer-events: none; }
.scene-off .hero-pin { visibility: hidden; }
.title-wrap { width: 100%; }
.js:not(.is-open) .title-wrap { opacity: 0; }
.title { display: flex; flex-direction: column; align-items: center; }
.label { position: relative; width: min(88vw, 360px); aspect-ratio: 900 / 658; padding: 30% 15% 15%; background: url("img/label.webp") center / contain no-repeat; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transform-origin: 50% 5%; }
.label .caps { font-size: 10px; letter-spacing: .3em; color: var(--sage-dk); }
.t-name { font: 400 clamp(30px, 10.5vw, 44px)/1.05 var(--script); color: #4a5a3f; overflow-wrap: anywhere; }
.t-name .amp { font-size: .75em; color: var(--rose); }
.pl-date { margin-top: 2px; font: 500 12px/1.4 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.kupu-label { position: absolute; right: -5%; top: 16%; width: 15%; rotate: 22deg; }
html:not(.js) .kupu-label { display: none; }
.js .title-wrap { align-self: stretch; }
.js .title { height: 100%; justify-content: space-between; padding-bottom: 6vh; }
.mouse { display: block; margin-top: 18px; width: 22px; height: 36px; border: 1.5px solid var(--ink); border-radius: 12px; position: relative; opacity: .7; }
.mouse::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); animation: gulir 1.6s ease-in-out infinite; }

/* ---------- Isi: kertas krem dengan garis bingkai kaca rumah kaca yang samar ---------- */
main > section:not(.hero) { position: relative; padding: 64px 26px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
  background: linear-gradient(90deg, rgba(255, 255, 255, .55) 1.5px, transparent 1.5px) 0 0 / 120px 100%, linear-gradient(180deg, rgba(255, 255, 255, .5) 1.5px, transparent 1.5px) 0 0 / 100% 170px, linear-gradient(180deg, var(--bg), var(--bg2)); }
main h2.script::after { content: ""; display: block; width: 250px; max-width: 80vw; height: 40px; margin: 2px auto 0; background: url("img/pembatas.webp") center / contain no-repeat; }

/* Kutipan: kaleng penyiram sesekali menuang, tetes air jatuh dari corongnya. */
.verse { padding-top: 46px !important; }
.siram { position: relative; width: 180px; margin-right: 40px; }
.siram img { width: 100%; transform-origin: 22% 85%; }
.air { position: absolute; left: 107%; top: 62%; width: 7px; height: 10px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 40% 35%, #fff, rgba(170, 210, 230, .8) 50%, rgba(120, 170, 200, .5)); opacity: 0; }
.air.a2 { left: 104%; } .air.a3 { left: 110%; }
.quote { font: italic 500 21px/1.6 var(--serif); max-width: 20em; }
.source { font: 600 14px/1.4 var(--display); letter-spacing: .14em; color: var(--sage-dk); }

/* Mempelai: potret di bingkai besi lonjong berlilit ivy; seekor kupu-kupu singgah di bingkainya. */
.couple { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; margin-top: 8px; }
.person { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.potret { position: relative; width: 236px; aspect-ratio: 600 / 809; }
.potret .foto { position: absolute; left: 18%; right: 18.2%; top: 14.6%; bottom: 18.4%; border-radius: 50%; overflow: hidden; background: #e7ecdc; display: flex; }
.potret .foto > * { flex: 1; width: 100%; height: 100%; object-fit: cover; }
.potret .foto span { display: flex; align-items: center; justify-content: center; font: 400 90px/1 var(--script); color: var(--sage-dk); }
.oval { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.singgah { position: absolute; width: 58px; }
.potret .singgah { right: -4%; top: 8%; rotate: 22deg; }
.person:last-child .potret .singgah { right: auto; left: -4%; rotate: -22deg; }
.person h3 { font: 400 40px/1.05 var(--script); color: var(--sage-dk); overflow-wrap: anywhere; }
.parents { font-size: 17px; line-height: 1.45; color: var(--soft); max-width: 16em; }
.ig { font-size: 16px; font-weight: 700; color: var(--rose); }
.dan { font: 400 64px/1 var(--script); color: var(--rose); }

/* Hitung mundur: empat pot peoni berjajar di rak; angka di badan pot. */
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; width: 100%; align-items: end; }
.pot { display: flex; flex-direction: column; align-items: center; }
.tanah { position: relative; display: block; width: 100%; max-width: 84px; aspect-ratio: 300 / 430; background: url("img/pot.webp") center bottom / contain no-repeat; transform-origin: 50% 100%; }
.tanah b { position: absolute; left: 0; right: 0; top: 76%; translate: 0 -50%; font: 600 18px/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: #fff8ec; text-shadow: 0 1px 3px rgba(90, 40, 20, .65); }
/* Rak: tiap label membawa sepotong papan rak di atasnya; potongannya bertumpuk menutup celah antarpot. */
.pot span { align-self: stretch; margin: 0 -4px; padding-top: 20px; font-size: 15px; color: var(--soft); background: linear-gradient(180deg, #fff, #ddd8ca) 0 0 / 100% 11px no-repeat; }
html:not(.js) .countdown { display: none; }

/* Acara: kartu jendela kaca berbusur dengan kilau yang lewat; kupu-kupu singgah di puncaknya. */
.programme { gap: 34px !important; }
.event { position: relative; width: min(100%, 340px); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.panel { position: relative; width: 100%; padding: 64px 24px 30px; border-radius: 170px 170px 16px 16px; border: 2px solid #fff; background: linear-gradient(165deg, rgba(255, 255, 255, .85), rgba(236, 242, 230, .7)); box-shadow: 0 0 0 1px rgba(140, 155, 130, .45), inset 0 0 0 6px rgba(255, 255, 255, .5), 0 18px 34px rgba(70, 90, 60, .12); display: flex; flex-direction: column; align-items: center; gap: 8px; overflow: visible; isolation: isolate; }
.panel::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .85) 48%, transparent 58%) 160% 0 / 250% 100% no-repeat; }
.panel .script { font-size: 42px; }
.when { font: 700 18px/1.45 var(--serif); }
.where { font-size: 16px; line-height: 1.4; max-width: 15em; overflow-wrap: anywhere; color: var(--soft); }
.panel .singgah { top: -24px; right: 20%; rotate: 16deg; }
.event:nth-of-type(odd) .panel .singgah { right: auto; left: 20%; rotate: -16deg; }
.dress { font-size: 17px; font-style: italic; color: var(--soft); }

/* Kisah: kartu spesimen; kepompong di rantingnya menetas menjadi kupu-kupu saat kartunya sampai di layar. */
.chapters { list-style: none; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 26px; text-align: left; }
.chapters li { position: relative; }
.ranting { position: relative; width: 190px; aspect-ratio: 520 / 229; margin: 0 6px -34px auto; z-index: 2; }
.chapters li:nth-child(even) .ranting { margin: 0 auto -34px 6px; scale: -1 1; }
.kepompong { width: 100%; }
.netas { position: absolute; left: 66%; top: -18%; width: 30%; aspect-ratio: 260 / 198; background: url("img/kupu1.webp") center / contain no-repeat; rotate: 12deg; }
.chapters li:nth-child(3n+2) .netas { background-image: url("img/kupu2.webp"); } .chapters li:nth-child(3n) .netas, .thanks .netas { background-image: url("img/kupu3.webp"); }
.spesimen { position: relative; padding: 30px 22px 22px; border-radius: 4px; background: var(--paper); border: 1px solid rgba(176, 141, 87, .6); box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6px rgba(176, 141, 87, .4), 0 12px 26px rgba(80, 90, 60, .12); }
.chapters h3 { font: 400 34px/1.05 var(--script); color: var(--sage-dk); margin-bottom: 6px; }
.chapters p { font-size: 17px; line-height: 1.55; color: var(--soft); }
.kisah-foto { margin: 0 0 12px; padding: 6px 6px 18px; background: #fff; border-radius: 3px; rotate: -1.2deg; box-shadow: 0 8px 18px rgba(70, 80, 60, .18); }
.chapters li:nth-child(even) .kisah-foto { rotate: 1.2deg; }
.kisah-foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Galeri: foto disemat jarum mutiara seperti koleksi herbarium, melayang pelan. */
.herbarium { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 14px; width: 100%; padding-top: 8px; }
.semat { position: relative; padding: 8px 8px 22px; background: #fff; border-radius: 2px; box-shadow: 0 10px 22px rgba(70, 80, 60, .16); }
.semat::before { content: ""; position: absolute; z-index: 1; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #efe6da 45%, #cdbfae); box-shadow: 0 2px 4px rgba(60, 50, 40, .3); }
.semat img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.semat:nth-child(odd) { rotate: -1.4deg; } .semat:nth-child(even) { rotate: 1.6deg; }
.semat:last-child:nth-child(odd) { grid-column: 1 / -1; width: 70%; justify-self: center; }

/* Amplop: pot peoni di atas; rekening di kartu bungkus benih bertepi gerigi. */
.pot-hias { width: 104px; margin-bottom: -6px; transform-origin: 50% 100%; }
.gift-list { display: grid; gap: 16px; width: 100%; }
.gift-card { position: relative; padding: 24px 18px 18px 22px; background: linear-gradient(var(--sage) 0 0) 0 0 / 100% 10px no-repeat, var(--paper); color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; filter: drop-shadow(0 10px 14px rgba(70, 80, 60, .14));
  -webkit-mask: radial-gradient(circle 6px at 50% 0, transparent 97%, #000) 0 0 / 16px 100% repeat-x; mask: radial-gradient(circle 6px at 50% 0, transparent 97%, #000) 0 0 / 16px 100% repeat-x; }
.bank { font: 600 12px/1.4 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--terra); }
.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; }

/* Ucapan & RSVP. */
.note { width: 100%; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 14px; font-size: 16px; }
.thanks { width: 100%; padding: 22px 18px; border-radius: 18px; background: rgba(255, 255, 255, .6); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.thanks .big { font: 400 38px/1.1 var(--script); color: var(--sage-dk); }
.ranting.kecil { width: 150px; margin: 18px auto 0; }
.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: 1px solid var(--line); 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(--sage); 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 var(--line); border-radius: 12px; background: rgba(255, 255, 255, .6); font: 600 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.opt input:checked + span { background: var(--sage-dk); border-color: var(--sage-dk); color: #fbf8f0; }
.opt input:focus-visible + span { outline: 2px solid var(--sage-dk); outline-offset: 2px; }
.rsvp .btn { min-height: 50px; }

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(--sage-dk); }
.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 { position: relative; padding: 14px 16px 14px 32px; border-radius: 16px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.wishes li::before { content: ""; position: absolute; left: 12px; top: 20px; width: 10px; height: 10px; border-radius: 0 100% 0 100%; background: var(--sage); }
.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(--rose); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--rose); }
.status { font-size: 14px; font-weight: 700; color: var(--sage-dk); }
.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(--sage); font-style: italic; color: var(--soft); }

/* Penutup: teh sore di dalam gazebo, uapnya naik dari dua cangkir. */
main > section.closing { padding-top: 0; padding-bottom: 54px; }
.teras { position: relative; width: calc(100% + 52px); margin: 0 -26px 6px; -webkit-mask-image: linear-gradient(transparent, #000 8%, #000 86%, transparent); mask-image: linear-gradient(transparent, #000 8%, #000 86%, transparent); }
.teras img { width: 100%; }
.uap { position: absolute; width: 5%; height: 8%; margin-left: -2.5%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .85), transparent); opacity: 0; }
.uap.u1 { left: 42%; top: 58%; } .uap.u2 { left: 60.5%; top: 59%; } .uap.u3 { left: 43%; top: 58%; } .uap.u4 { left: 59.5%; top: 59%; }
.senja { position: absolute; left: 20%; right: 20%; top: 25%; height: 40%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 236, 190, .55), transparent); mix-blend-mode: screen; }
.merci { font-size: 56px; }
.thanks-line { font-size: 17px; font-style: italic; color: var(--soft); }
.buket { width: 200px; margin-top: 4px; transform-origin: 50% 85%; }
.pl-name { font: 500 22px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--sage-dk); }
footer { position: relative; padding: 18px 16px 26px; text-align: center; font-size: 14px; color: var(--soft); background: #e9ecdf; }

.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: 1px solid var(--sage-dk); border-radius: 50%; background: rgba(251, 248, 240, .9); color: var(--sage-dk); cursor: pointer; box-shadow: 0 6px 16px rgba(70, 90, 60, .2); }
.music-toggle svg { width: 18px; height: 18px; }
.music-toggle[aria-pressed="false"]::after { content: ""; position: absolute; width: 24px; height: 1.5px; background: var(--sage-dk); 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 kupu.js). */
.rv { opacity: 0; translate: 0 26px; }
.rv.script { translate: 0 -22px; }
.rv.panel, .rv.event, .herbarium .rv { translate: 0 0; scale: .9; }
.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); }
/* Bagian yang tidak sedang terlihat (tanpa .aktif) membekukan geraknya. */
main > section:not(.hero):not(.aktif) *, main > section:not(.hero):not(.aktif) *::before, main > section:not(.hero):not(.aktif) *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: no-preference) {
  .js .hero { min-height: 260vh; min-height: 260svh; }
  /* Sampul: kupu-kupu di kaca mengepak sesekali, lalu terbang saat dibuka. */
  .hk { animation: kepak 4.2s ease-in-out infinite; } .hk.h2 { animation-duration: 5.4s; animation-delay: -2s; } .hk.h3 { animation-duration: 3.6s; animation-delay: -1s; }
  .js.is-open:not(.no-anim) .hk.h1 { animation: terbang-kiri 1.6s cubic-bezier(.4, 0, .8, .6) both, kepak-cepat .34s linear infinite; }
  .js.is-open:not(.no-anim) .hk.h2 { animation: terbang-kanan 1.8s .1s cubic-bezier(.4, 0, .8, .6) both, kepak-cepat .3s linear infinite; }
  .js.is-open:not(.no-anim) .hk.h3 { animation: terbang-atas 1.7s .2s cubic-bezier(.4, 0, .8, .6) both, kepak-cepat .32s linear infinite; }
  .cover-top { animation: turun 1.2s .2s both; } .cover-bottom { animation: naik 1.2s .5s both; } .jendela { animation: naik 1.2s .35s both; }
  .titik { animation: embun 9s ease-in infinite; } .t2 { animation-delay: -3s; } .t3 { animation-delay: -6s; animation-duration: 11s; } .t5 { animation-delay: -4.5s; animation-duration: 12s; }
  .pendar-gazebo { animation: napas 4s ease-in-out infinite alternate; }
  .sinar { animation: sinar 7s ease-in-out infinite alternate; } .sinar.s2 { animation-delay: -2.4s; animation-duration: 5.6s; } .sinar.s3 { animation-delay: -4s; animation-duration: 8.4s; }
  .mist.m1 { animation: hanyut 26s ease-in-out infinite alternate; } .mist.m2 { animation: hanyut 34s ease-in-out infinite alternate-reverse; }
  .gugur i { animation: gugur 11s linear infinite; } .gugur i:nth-child(2) { animation-delay: -3s; animation-duration: 13s; } .gugur i:nth-child(3) { animation-delay: -6s; animation-duration: 10s; } .gugur i:nth-child(4) { animation-delay: -8.5s; animation-duration: 14s; } .gugur i:nth-child(5) { animation-delay: -1.5s; animation-duration: 12s; }
  /* Judul: kartu label turun dan berayun pada jarumnya, nama tertulis dari kiri, lalu kupu-kupu hinggap di sudutnya. */
  .js.is-open:not(.no-anim) .label { animation: gantung 2s 4.4s cubic-bezier(.3, 0, .3, 1) both; }
  .js.is-open:not(.no-anim) .label .caps { animation: muncul 1s 5.6s both; }
  .js.is-open:not(.no-anim) .t-name { animation: tulis 2s 5.9s ease-in-out both; }
  .js.is-open:not(.no-anim) .pl-date { animation: naik 1s 7.2s both; }
  .js.is-open:not(.no-anim) .kupu-label { animation: datang 2.2s 6.8s cubic-bezier(.3, .6, .4, 1) both, kepak 4.4s 9s ease-in-out infinite; }
  .js.no-anim .kupu-label, html:not(.is-open) .kupu-label { animation: kepak 4.4s ease-in-out infinite; }
  .js.is-open:not(.no-anim) .title .mouse { animation: muncul 1s 8s both; }
  /* Perjalanan gulir: setelah pembukaan (.ready), --p 0→1 membawa pandangan menyusuri jalan batu masuk ke gazebo. */
  .ready .ly { transition: none; }
  .ready .ly-latar { transform: scale(calc(1 + var(--p, 0) * var(--p, 0) * 8)); }
  .ready .ly-tengah { transform: scale(calc(1 + var(--p, 0) * 2.6)); }
  .ready .ly-bingkai { transform: scale(calc(1 + var(--p, 0) * 3)); }
  .ready .ly-depan { transform: translateY(calc(var(--p, 0) * 80%)) scale(calc(1 + var(--p, 0) * 1.6)); }
  .ready .pendar-gazebo { opacity: calc(1 + var(--p, 0) * 2); }
  .ready .title-wrap { opacity: calc(1 - var(--p, 0) * 4); translate: 0 calc(var(--p, 0) * -140px); }
  .ready .terang { opacity: calc((var(--p, 0) - .45) * 2.4); }

  /* Isi yang hidup. Keadaan awal ornamen ditulis untuk bagian yang belum .tampak; geraknya berulang selama terlihat. */
  .js .verse:not(.tampak) .siram { opacity: 0; translate: -40px 0; }
  .siram { transition: opacity 1s ease, translate 1.2s cubic-bezier(.2, .7, .2, 1); }
  .siram img { animation: tuang 7s 1s ease-in-out infinite; }
  .air { animation: tetes 7s 1s ease-in infinite; } .air.a2 { animation-delay: 1.35s; } .air.a3 { animation-delay: 1.7s; }
  .js .intro:not(.tampak) .oval { opacity: 0; scale: .85; }
  .oval { transition: opacity 1.2s ease, scale 1.4s cubic-bezier(.3, 1.3, .5, 1); }
  .js .intro:not(.tampak) .singgah { opacity: 0; translate: 90px -70px; }
  .potret .singgah { transition: opacity .6s ease .9s, translate 1.8s cubic-bezier(.3, .6, .4, 1) .9s; animation: kepak 4s 2.8s ease-in-out infinite; }
  .person:last-child .potret .singgah { animation-duration: 5s; transition-delay: 1.3s; }
  .js .intro:not(.tampak) .person:last-child .singgah { translate: -90px -70px; }
  .js .count:not(.tampak) .tanah { scale: .4; opacity: 0; }
  .tanah { transition: scale 1s cubic-bezier(.3, 1.5, .5, 1), opacity .6s ease; animation: goyang 4.2s ease-in-out infinite alternate; }
  .pot:nth-child(2) .tanah { transition-delay: .15s; animation-duration: 5s; animation-delay: -1.4s; } .pot:nth-child(3) .tanah { transition-delay: .3s; animation-duration: 3.8s; animation-delay: -2.2s; } .pot:nth-child(4) .tanah { transition-delay: .45s; animation-duration: 4.6s; animation-delay: -.7s; }
  .panel::before { animation: kilap 7s 1s ease-in-out infinite; }
  .event:nth-of-type(2) .panel::before { animation-delay: 4s; }
  .panel .singgah { animation: kepak 4.6s ease-in-out infinite; } .event:nth-of-type(2) .panel .singgah { animation-duration: 3.8s; animation-delay: -1.5s; }
  .js .story li:not(.nyala) .netas { opacity: 0; }
  .chapters li.nyala .kepompong { animation: getar .9s ease-in-out both; opacity: .55; transition: opacity .6s ease .8s; }
  .chapters li.nyala .netas, .thanks .netas { animation: menetas 2.4s .7s cubic-bezier(.3, .6, .4, 1) both, kepak 4.2s 3.2s ease-in-out infinite; }
  .thanks .kepompong { animation: getar .9s .2s ease-in-out both; }
  .thanks .netas { animation: menetas 2.4s .9s cubic-bezier(.3, .6, .4, 1) both, pergi 3s 4.6s cubic-bezier(.5, 0, .8, .5) both; }
  .semat { animation: layang 6s ease-in-out infinite alternate; } .semat:nth-child(3n+2) { animation-duration: 7.4s; animation-delay: -2s; } .semat:nth-child(3n) { animation-duration: 5.2s; animation-delay: -3.4s; }
  .js .gifts:not(.tampak) .pot-hias { opacity: 0; scale: .5; }
  .pot-hias { transition: opacity .8s ease, scale 1.1s cubic-bezier(.3, 1.5, .5, 1); animation: goyang 4.4s ease-in-out infinite alternate; }
  .uap { animation: uap 4.2s ease-out infinite; } .uap.u2 { animation-delay: -1.4s; } .uap.u3 { animation-delay: -2.1s; } .uap.u4 { animation-delay: -3.3s; }
  .senja { animation: napas 5s ease-in-out infinite alternate; }
  .buket { animation: ayun 7s ease-in-out infinite alternate; }
}
@keyframes kepak { 0%, 70%, 100% { scale: 1 1; } 74% { scale: .3 1; } 78% { scale: 1 1; } 82% { scale: .35 1; } 86% { scale: 1 1; } }
@keyframes kepak-cepat { 0%, 100% { scale: 1 1; } 50% { scale: .25 1; } }
@keyframes terbang-kiri { to { translate: -160px -55vh; opacity: 0; } }
@keyframes terbang-kanan { to { translate: 140px -40vh; opacity: 0; } }
@keyframes terbang-atas { to { translate: 60px -70vh; opacity: 0; } }
@keyframes embun { 0%, 60% { translate: 0 0; opacity: 1; } 85% { translate: 0 26px; opacity: .9; } 100% { translate: 0 40px; opacity: 0; } }
@keyframes napas { from { opacity: .7; scale: 1; } to { opacity: 1; scale: 1.06; } }
@keyframes sinar { from { opacity: .35; } to { opacity: 1; } }
@keyframes hanyut { from { translate: -8% 0; } to { translate: 14% 0; } }
@keyframes gugur { 0% { translate: 0 0; rotate: 0deg; opacity: 0; } 8% { opacity: .9; } 50% { translate: 6vw 40vh; rotate: 200deg; } 90% { opacity: .8; } 100% { translate: -2vw 82vh; rotate: 420deg; opacity: 0; } }
@keyframes gantung { 0% { opacity: 0; translate: 0 -60px; rotate: -16deg; } 30% { opacity: 1; translate: 0 0; rotate: 10deg; } 50% { rotate: -6deg; } 68% { rotate: 3.5deg; } 84% { rotate: -1.5deg; } 100% { opacity: 1; rotate: 0deg; } }
@keyframes tulis { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -10% 0 0); } }
@keyframes datang { 0% { opacity: 0; translate: 140px -120px; rotate: 50deg; } 15% { opacity: 1; } 60% { translate: 30px -40px; rotate: -10deg; } 100% { opacity: 1; translate: 0 0; rotate: 22deg; } }
@keyframes muncul { from { opacity: 0; } to { opacity: 1; } }
@keyframes tuang { 0%, 22% { rotate: 0deg; } 34%, 58% { rotate: 16deg; } 70%, 100% { rotate: 0deg; } }
@keyframes tetes { 0%, 32% { opacity: 0; translate: 0 0; } 34% { opacity: 1; translate: 0 0; } 44% { opacity: 1; translate: 0 70px; } 45%, 100% { opacity: 0; translate: 0 70px; } }
@keyframes goyang { from { rotate: -1.3deg; } to { rotate: 1.3deg; } }
@keyframes kilap { 0%, 55% { background-position: 160% 0; } 100% { background-position: -60% 0; } }
@keyframes getar { 0%, 100% { rotate: 0deg; } 15% { rotate: 2deg; } 30% { rotate: -2deg; } 45% { rotate: 1.6deg; } 60% { rotate: -1.4deg; } 75% { rotate: .8deg; } }
@keyframes menetas { 0% { opacity: 0; translate: -120% 160%; scale: .1; rotate: 0deg; } 25% { opacity: 1; translate: -110% 150%; scale: .4; } 55% { translate: -40% 40%; scale: .9; rotate: -18deg; } 100% { opacity: 1; translate: 0 0; scale: 1; rotate: 12deg; } }
@keyframes pergi { to { translate: 160px -200px; opacity: 0; rotate: 40deg; } }
@keyframes layang { from { translate: 0 0; } to { translate: 0 -6px; } }
@keyframes uap { 0% { opacity: 0; translate: 0 0; scale: .5 .6; } 30% { opacity: .75; } 100% { opacity: 0; translate: 6px -60px; scale: 1.6 1.4; } }
@keyframes ayun { from { rotate: -2.4deg; } to { rotate: 2.4deg; } }
@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 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; } *, *::before, *::after { animation: none !important; } .js .ly, .js .embun-kaca { transition: none; } .kupu { display: none !important; } }
