/* Layali — undangan pernikahan Timur Tengah bernuansa malam gurun, bergaya lukisan cat air: sampul foto penuh layar;
   "Buka undangan" menyalakan lentera yang cahayanya melebar berbentuk bintang segi delapan; pandangan melaju lewat
   gapura lengkung ke istana berkubah, bulan sabit naik, kafilah unta berjalan di bukit pasir.
   Adegannya lapisan gambar (assets/img/*.webp) yang digerakkan CSS, tanpa pustaka. */
@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: #f7efe1; --bg2: #fcf7ed; --deep: #1c4764; --deep2: #102c45; --night: #0b1c30; --ink: #1f3247; --soft: #5f6f7c; --gold: #c59b4b; --gold-hi: #ecd9a4;
  --r1: #fff4d6; --r2: #f1d58e; --r3: #d9a94e; --leaf: #5f8f7b; --leaf2: #3f7462;
  --sky1: #12304a; --sky2: #f3e6cf; --card: #fffaf0; --line: #e8dcc4;
  --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: 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(10, 26, 44, .28); } }

/* Adegan: lapisan gambar selebar kolom halaman, di belakang isi; hanya bagian pembuka (.hero) yang tembus pandang.
   .stage berbanding 940:1684 (ukuran gambar) dan selalu menutup layar; semua posisi di dalamnya memakai persen.
   Keadaan dasar = sesudah dibuka: gapura sudah dilewati (diperbesar dan memudar), bulan sudah naik, kafilah sudah di
   punggung bukit. Sebelum dibuka (.js:not(.is-open)): gapura di skala 1 membingkai pemandangan, bulan masih di balik
   cakrawala, kafilah di luar layar. */
.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(--sky1); 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: 50% 60%; }
.ly > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.ly-langit { transform: scale(1.03); translate: 0 calc(var(--p, 0) * 2.5%); }
.ly-bulan { translate: calc(var(--p, 0) * -34%) calc(var(--p, 0) * 9%); }
.bulan { position: absolute; left: 61%; top: 6.5%; width: 25%; aspect-ratio: 1; rotate: calc(-24deg + var(--p, 0) * -30deg); }
.bulan::before { content: ""; position: absolute; inset: -46%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 233, 170, .5), rgba(255, 233, 170, .16) 55%, rgba(255, 233, 170, 0)); }
.bulan img { position: relative; display: block; width: 100%; height: 100%; max-width: none; }
.ly-istana { transform: scale(1.07); translate: 0 calc(var(--p, 0) * -2%); }
.rumah { position: absolute; left: 15%; top: 19.5%; width: 70%; aspect-ratio: 700 / 743; }
.rumah > img { display: block; width: 100%; height: 100%; max-width: none; }
.lampu { position: absolute; left: 10%; right: 10%; top: 40%; bottom: 0; background: radial-gradient(50% 55% at 50% 62%, rgba(255, 196, 92, .55), rgba(255, 196, 92, 0) 75%); mix-blend-mode: screen; }
.ly-gurun { transform: scale(1.13); translate: 0 calc(var(--p, 0) * -7%); }
.kafilah { position: absolute; left: 15%; top: 72%; width: 44%; aspect-ratio: 760 / 242; translate: calc(var(--p, 0) * 240%) calc(var(--p, 0) * 6%); }
.langkah, .langkah img { display: block; width: 100%; height: 100%; max-width: none; }
.langkah { transform-origin: 50% 100%; filter: drop-shadow(0 4px 3px rgba(60, 40, 20, .3)); }
.ly-gapura { transform-origin: 50% 64%; transform: scale(3.4); opacity: 0; }
.js .ly { transition: transform 4s cubic-bezier(.5, 0, .2, 1) .9s; }
.js .ly-gapura { transition: transform 3.6s cubic-bezier(.65, 0, .35, 1) .9s, opacity 1s ease 3s; }
.js .bulan { transition: transform 4.6s cubic-bezier(.2, .7, .2, 1) 1.2s, opacity 2s ease 1.2s; }
.js .kafilah { transition: transform 7s cubic-bezier(.2, .5, .4, 1) 1.2s; }
.js:not(.is-open) .ly { transform: none; opacity: 1; }
.js:not(.is-open) .bulan { transform: translate(-60%, 300%) rotate(-50deg); opacity: 0; }
.js:not(.is-open) .kafilah { transform: translateX(-160%); }
.js.no-anim .ly, .js.no-anim .bulan, .js.no-anim .kafilah { transition: none; }
.spark { position: absolute; inset: 0; }
.spark i { position: absolute; background: #fff6d8; opacity: 0; clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); }
.meteor { position: absolute; left: 18%; top: 9%; width: 16%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(255, 244, 214, 0), #fff4d6); rotate: 24deg; opacity: 0; }
.petals { position: absolute; inset: 0; }
.petals i { position: absolute; top: -3%; border-radius: 50%; background: radial-gradient(circle, #fff6d8, var(--r2) 60%, rgba(241, 213, 142, 0)); box-shadow: 0 0 6px rgba(255, 226, 150, .8); display: none; }
.embun { position: absolute; inset: 0; background: linear-gradient(transparent 25%, var(--bg2) 94%); opacity: calc(var(--p, 0) * 1.4); }
.strip { width: calc(100% + 56px); margin: -64px -28px 0; -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 70%, transparent); }
.strip img { display: block; width: 100%; height: auto; }
.petals i:nth-child(1) { left: 34%; width: 4px; height: 4px; animation-duration: 16.2s, 3.1s; animation-delay: -15.1s, -2.2s; }
.petals i:nth-child(2) { left: 5%; width: 4px; height: 4px; animation-duration: 16.9s, 3.0s; animation-delay: -4.0s, -0.2s; }
.petals i:nth-child(3) { left: 16%; width: 2px; height: 2px; animation-duration: 13.6s, 3.2s; animation-delay: -6.1s, -0.3s; }
.petals i:nth-child(4) { left: 3%; width: 2px; height: 2px; animation-duration: 16.1s, 2.5s; animation-delay: -2.9s, -2.6s; }
.petals i:nth-child(5) { left: 22%; width: 3px; height: 3px; animation-duration: 16.3s, 1.9s; animation-delay: -9.9s, -1.3s; }
.petals i:nth-child(6) { left: 2%; width: 2px; height: 2px; animation-duration: 17.8s, 1.8s; animation-delay: -12.4s, -2.9s; }
.petals i:nth-child(7) { left: 23%; width: 2px; height: 2px; animation-duration: 13.0s, 3.3s; animation-delay: -8.6s, -2.0s; }
.petals i:nth-child(8) { left: 25%; width: 2px; height: 2px; animation-duration: 17.6s, 2.9s; animation-delay: -15.5s, -2.7s; }
.petals i:nth-child(9) { left: 4%; width: 3px; height: 3px; animation-duration: 13.5s, 2.1s; animation-delay: -2.3s, -0.2s; }
.petals i:nth-child(10) { left: 79%; width: 3px; height: 3px; animation-duration: 15.1s, 2.8s; animation-delay: -11.3s, -0.2s; }
.petals i:nth-child(11) { left: 41%; width: 3px; height: 3px; animation-duration: 14.4s, 2.3s; animation-delay: -7.7s, -2.1s; }
.petals i:nth-child(12) { left: 34%; width: 2px; height: 2px; animation-duration: 17.8s, 1.8s; animation-delay: -12.0s, -2.5s; }
.spark i:nth-child(1) { left: 55%; top: 19.6%; width: 5px; height: 5px; animation-duration: 2.3s; animation-delay: -2.5s; }
.spark i:nth-child(2) { left: 8%; top: 9.6%; width: 8px; height: 8px; animation-duration: 3.3s; animation-delay: -0.6s; }
.spark i:nth-child(3) { left: 27%; top: 36.4%; width: 11px; height: 11px; animation-duration: 2.4s; animation-delay: -1.5s; }
.spark i:nth-child(4) { left: 27%; top: 21.4%; width: 9px; height: 9px; animation-duration: 2.7s; animation-delay: -2.3s; }
.spark i:nth-child(5) { left: 83%; top: 3.5%; width: 7px; height: 7px; animation-duration: 3.3s; animation-delay: -0.3s; }
.spark i:nth-child(6) { left: 51%; top: 17.2%; width: 7px; height: 7px; animation-duration: 1.9s; animation-delay: -0.8s; }
.spark i:nth-child(7) { left: 54%; top: 15.1%; width: 10px; height: 10px; animation-duration: 2.2s; animation-delay: -0.5s; }
.spark i:nth-child(8) { left: 62%; top: 32.3%; width: 5px; height: 5px; animation-duration: 2.2s; animation-delay: -1.5s; }
.spark i:nth-child(9) { left: 8%; top: 43.4%; width: 10px; height: 10px; animation-duration: 2.6s; animation-delay: -1.2s; }
.spark i:nth-child(10) { left: 72%; top: 16.4%; width: 6px; height: 6px; animation-duration: 2.1s; animation-delay: -2.0s; }
.spark i:nth-child(11) { left: 9%; top: 40.5%; width: 6px; height: 6px; animation-duration: 1.7s; animation-delay: -1.5s; }
.spark i:nth-child(12) { left: 23%; top: 43.2%; width: 11px; height: 11px; animation-duration: 2.6s; animation-delay: -0.4s; }
.spark i:nth-child(13) { left: 42%; top: 9.1%; width: 11px; height: 11px; animation-duration: 2.3s; animation-delay: -0.2s; }
.spark i:nth-child(14) { left: 31%; top: 21.0%; width: 8px; height: 8px; animation-duration: 3.4s; animation-delay: -2.6s; }
.spark.s2 i:nth-child(1) { left: 66%; top: 65.2%; width: 8px; height: 8px; animation-duration: 2.6s; animation-delay: -1.4s; }
.spark.s2 i:nth-child(2) { left: 67%; top: 66.7%; width: 6px; height: 6px; animation-duration: 1.8s; animation-delay: -2.5s; }
.spark.s2 i:nth-child(3) { left: 85%; top: 65.7%; width: 8px; height: 8px; animation-duration: 2.3s; animation-delay: -1.0s; }
.spark.s2 i:nth-child(4) { left: 68%; top: 65.3%; width: 4px; height: 4px; animation-duration: 2.4s; animation-delay: -1.5s; }
.spark.s2 i:nth-child(5) { left: 78%; top: 66.2%; width: 4px; height: 4px; animation-duration: 2.6s; animation-delay: -2.0s; }
.spark.s2 i:nth-child(6) { left: 63%; top: 66.0%; width: 6px; height: 6px; animation-duration: 2.0s; animation-delay: -1.5s; }

/* Lentera (saat "Buka undangan"): layar menggelap, lentera turun berayun lalu menyala, dan dari lentera itu lubang
   berbentuk bintang segi delapan melebar sampai malam gurun terlihat. Lama 3,3 dtk; .is-open dipasang di detik 1,4. */
.malam { position: fixed; top: 0; bottom: 0; left: 50%; width: min(100%, 480px); transform: translateX(-50%); z-index: 45; overflow: hidden; pointer-events: none; display: none; background: radial-gradient(90% 60% at 50% 38%, #17395a, var(--night) 70%); animation: malam 3.3s both; }
.menyala .malam { display: block; }
.gantung { position: absolute; left: 50%; top: 0; width: 120px; margin-left: -60px; padding-top: 10vh; transform-origin: 50% 0; animation: turun-lentera 3.3s both; }
.gantung img { position: relative; display: block; width: 100%; height: auto; animation: nyala-lentera 3.3s both; }
.rantai { position: absolute; left: 50%; top: 0; width: 2px; height: 10vh; margin-left: -1px; background: repeating-linear-gradient(180deg, var(--gold) 0 5px, rgba(197, 155, 75, .35) 5px 8px); }
.pijar { position: absolute; left: 50%; top: calc(10vh + 196px); width: 0; height: 0; }
.pijar::before { content: ""; position: absolute; left: -210px; top: -210px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 214, 130, .75), rgba(255, 190, 90, .28) 45%, rgba(255, 190, 90, 0)); animation: pijar 3.3s both; }
.cincin { position: absolute; left: 50%; top: calc(10vh + 196px); width: 140px; height: 140px; margin: -70px 0 0 -70px; max-width: none; opacity: 0; animation: cincin 3.3s both; }
.js.no-fade .cover { transition: none; }
@keyframes malam { 0% { opacity: 0; clip-path: polygon(evenodd, 0% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 0%, calc(50% + 0.00vmax) calc(calc(10vh + 196px) + -0.01vmax), calc(50% + 0.00vmax) calc(calc(10vh + 196px) + -0.01vmax), calc(50% + 0.01vmax) calc(calc(10vh + 196px) + -0.01vmax), calc(50% + 0.01vmax) calc(calc(10vh + 196px) + -0.00vmax), calc(50% + 0.01vmax) calc(calc(10vh + 196px) + 0.00vmax), calc(50% + 0.01vmax) calc(calc(10vh + 196px) + 0.00vmax), calc(50% + 0.01vmax) calc(calc(10vh + 196px) + 0.01vmax), calc(50% + 0.00vmax) calc(calc(10vh + 196px) + 0.01vmax), calc(50% + 0.00vmax) calc(calc(10vh + 196px) + 0.01vmax), calc(50% + -0.00vmax) calc(calc(10vh + 196px) + 0.01vmax), calc(50% + -0.01vmax) calc(calc(10vh + 196px) + 0.01vmax), calc(50% + -0.01vmax) calc(calc(10vh + 196px) + 0.00vmax), calc(50% + -0.01vmax) calc(calc(10vh + 196px) + 0.00vmax), calc(50% + -0.01vmax) calc(calc(10vh + 196px) + -0.00vmax), calc(50% + -0.01vmax) calc(calc(10vh + 196px) + -0.01vmax), calc(50% + -0.00vmax) calc(calc(10vh + 196px) + -0.01vmax), calc(50% + 0.00vmax) calc(calc(10vh + 196px) + -0.01vmax)); } 12% { opacity: 1; } 46% { clip-path: polygon(evenodd, 0% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 0%, calc(50% + 0.00vmax) calc(calc(10vh + 196px) + -0.01vmax), calc(50% + 0.00vmax) calc(calc(10vh + 196px) + -0.01vmax), calc(50% + 0.01vmax) calc(calc(10vh + 196px) + -0.01vmax), calc(50% + 0.01vmax) calc(calc(10vh + 196px) + -0.00vmax), calc(50% + 0.01vmax) calc(calc(10vh + 196px) + 0.00vmax), calc(50% + 0.01vmax) calc(calc(10vh + 196px) + 0.00vmax), calc(50% + 0.01vmax) calc(calc(10vh + 196px) + 0.01vmax), calc(50% + 0.00vmax) calc(calc(10vh + 196px) + 0.01vmax), calc(50% + 0.00vmax) calc(calc(10vh + 196px) + 0.01vmax), calc(50% + -0.00vmax) calc(calc(10vh + 196px) + 0.01vmax), calc(50% + -0.01vmax) calc(calc(10vh + 196px) + 0.01vmax), calc(50% + -0.01vmax) calc(calc(10vh + 196px) + 0.00vmax), calc(50% + -0.01vmax) calc(calc(10vh + 196px) + 0.00vmax), calc(50% + -0.01vmax) calc(calc(10vh + 196px) + -0.00vmax), calc(50% + -0.01vmax) calc(calc(10vh + 196px) + -0.01vmax), calc(50% + -0.00vmax) calc(calc(10vh + 196px) + -0.01vmax), calc(50% + 0.00vmax) calc(calc(10vh + 196px) + -0.01vmax)); animation-timing-function: cubic-bezier(.6, 0, .3, 1); } 96%, 100% { opacity: 1; clip-path: polygon(evenodd, 0% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 0%, calc(50% + 0.00vmax) calc(calc(10vh + 196px) + -175.00vmax), calc(50% + 51.26vmax) calc(calc(10vh + 196px) + -123.75vmax), calc(50% + 123.74vmax) calc(calc(10vh + 196px) + -123.74vmax), calc(50% + 123.75vmax) calc(calc(10vh + 196px) + -51.26vmax), calc(50% + 175.00vmax) calc(calc(10vh + 196px) + 0.00vmax), calc(50% + 123.75vmax) calc(calc(10vh + 196px) + 51.26vmax), calc(50% + 123.74vmax) calc(calc(10vh + 196px) + 123.74vmax), calc(50% + 51.26vmax) calc(calc(10vh + 196px) + 123.75vmax), calc(50% + 0.00vmax) calc(calc(10vh + 196px) + 175.00vmax), calc(50% + -51.26vmax) calc(calc(10vh + 196px) + 123.75vmax), calc(50% + -123.74vmax) calc(calc(10vh + 196px) + 123.74vmax), calc(50% + -123.75vmax) calc(calc(10vh + 196px) + 51.26vmax), calc(50% + -175.00vmax) calc(calc(10vh + 196px) + 0.00vmax), calc(50% + -123.75vmax) calc(calc(10vh + 196px) + -51.26vmax), calc(50% + -123.74vmax) calc(calc(10vh + 196px) + -123.74vmax), calc(50% + -51.26vmax) calc(calc(10vh + 196px) + -123.75vmax), calc(50% + 0.00vmax) calc(calc(10vh + 196px) + -175.00vmax)); } }
@keyframes turun-lentera { 0% { translate: 0 -110%; rotate: 9deg; animation-timing-function: cubic-bezier(.2, .8, .3, 1); } 20% { translate: 0 0; rotate: -6deg; } 30% { rotate: 4deg; } 40% { rotate: -2deg; } 48% { rotate: 0deg; scale: 1; opacity: 1; } 70%, 100% { rotate: 0deg; scale: 1.5; opacity: 0; } }
@keyframes nyala-lentera { 0%, 24% { filter: brightness(.38) saturate(.5); } 34%, 100% { filter: brightness(1.12) saturate(1.1); } }
@keyframes pijar { 0%, 24% { scale: 0; opacity: 0; } 34% { scale: 1; opacity: 1; } 42% { scale: .9; } 50% { scale: 1.08; opacity: 1; } 78%, 100% { scale: 4; opacity: 0; } }
@keyframes cincin { 0%, 44% { scale: .2; rotate: -90deg; opacity: 0; } 50% { opacity: .95; } 68%, 100% { scale: 5; rotate: 45deg; opacity: 0; } }

/* Galeri diperbesar (dibuat layali.js) */
.sorot { position: fixed; z-index: 60; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(8, 20, 36, .94); animation: sinar .3s ease both; }
.sorot[hidden] { display: none; }
.sorot img { max-width: 100%; max-height: 82vh; border: 5px solid var(--card); border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); animation: plakat .4s cubic-bezier(.2, .8, .2, 1) both; }
.sorot button { position: absolute; width: 42px; height: 42px; border: 1px solid var(--gold-hi); border-radius: 50%; font: 400 22px/1 var(--serif); color: #fff; background: var(--deep2); cursor: pointer; }
.sorot .tutup { top: 16px; right: 16px; } .sorot .geser { top: 50%; margin-top: -21px; } .sorot .sblm { left: 10px; } .sorot .ssdh { right: 10px; }
.sorot .urut { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font: 500 12px/1 var(--display); letter-spacing: .2em; color: #fff; }
.js .gallery .grid img { cursor: zoom-in; }

.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); }
main > section > .script::before { content: ""; display: block; width: 40px; aspect-ratio: 1; margin: 0 auto 10px; background: url("img/bintang.webp") center / contain no-repeat; filter: drop-shadow(0 3px 4px rgba(10, 26, 44, .25)); }
.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: dua sudut atas (gambar yang sama, dicerminkan), tepi bawah, dan rangkaian kecil di bawah foto. */
.pojok { position: absolute; top: -6px; left: -10px; width: 52%; aspect-ratio: 700 / 737; pointer-events: none; transform-origin: 0 0; filter: drop-shadow(0 8px 12px rgba(10, 26, 44, .3)); }
.pojok.tr { left: auto; right: -10px; scale: -1 1; transform-origin: 50% 0; }
.pojok img { display: block; width: 100%; height: 100%; max-width: none; }
.pojok i { position: absolute; width: 26%; aspect-ratio: 1; margin: -13% 0 0 -13%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 214, 130, .7), rgba(255, 190, 90, 0)); mix-blend-mode: screen; }
.pojok i:nth-child(2) { left: 60.8%; top: 30.6%; } .pojok i:nth-child(3) { left: 40.9%; top: 52.7%; } .pojok i:nth-child(4) { left: 28.3%; top: 72.6%; width: 32%; margin: -16% 0 0 -16%; }

.fb { position: absolute; left: 0; bottom: -6px; width: 100%; pointer-events: none; filter: drop-shadow(0 -6px 12px rgba(10, 26, 44, .14)); }
.closing > .script::before { display: none !important; }
.spray { position: relative; z-index: 2; width: 62px; margin: -36px auto 0; pointer-events: none; }

/* ---------- 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) { background: radial-gradient(90% 60% at 50% 30%, #1b4466, var(--night) 75%); color: #f6ead0; }
.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(--gold); background: var(--gold); color: var(--night); }

/* 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; }

.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: 150px 20px 26vh; padding-bottom: 26svh; display: grid; place-items: center; text-align: center; background: linear-gradient(180deg, var(--night), var(--sky1)); color: #f6ead0; }
.js .hero { background: none; }
.frame-art { position: absolute; inset: 0; overflow: hidden; }
.hero + .verse::before, .hero + .intro::before { content: ""; position: absolute; left: 0; right: 0; top: -110px; height: 110px; background: linear-gradient(transparent, var(--bg2)); pointer-events: none; }
.hero + .intro::before { background: linear-gradient(transparent, var(--bg)); }
/* Kartu judul: kaca biru malam berlengkung dengan medali bintang di puncaknya. */
.tugu { position: relative; width: min(80%, 320px); display: flex; flex-direction: column; align-items: center; translate: 0 calc(var(--p, 0) * 46px); }
.puncak { position: relative; z-index: 2; width: 92px; max-width: none; margin-bottom: -46px; filter: drop-shadow(0 6px 10px rgba(4, 12, 24, .5)); rotate: calc(var(--p, 0) * 200deg); }
.plaque { position: relative; z-index: 1; width: 100%; min-height: 44vh; min-height: 44svh; padding: 78px 22px 34px; border-radius: 999px 999px 22px 22px; background: linear-gradient(180deg, rgba(16, 44, 69, .82), rgba(9, 24, 42, .9)); border: 1.5px solid var(--gold); outline: 1px solid rgba(236, 217, 164, .5); outline-offset: -9px; box-shadow: 0 24px 60px rgba(2, 8, 18, .55), inset 0 0 60px rgba(120, 170, 200, .08); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.plaque .caps, .pl-date { color: var(--gold-hi); }
/* Penanda "gulir ke bawah": bulan sabit kecil, dan bintang jatuh yang melintas turun darinya. */
.sabit { position: relative; display: block; width: 26px; height: 54px; margin-top: 16px; }
.sabit img { display: block; width: 26px; height: 26px; rotate: -24deg; }
.sabit i { position: absolute; left: 50%; top: 20px; width: 2px; height: 16px; margin-left: -1px; border-radius: 2px; background: linear-gradient(180deg, rgba(255, 244, 214, 0), #fff4d6); opacity: 0; }
.pl-name { font: 500 clamp(22px, 7.2vw, 30px)/1.15 var(--display); letter-spacing: .1em; text-transform: uppercase; overflow-wrap: anywhere; }
.pl-name.small { font-size: 22px; margin-top: 10px; color: var(--ink); }
.pl-and { font: 400 28px/1 var(--script); color: var(--gold-hi); }
.pl-date { margin-top: 8px; font: 500 11.5px/1.4 var(--display); letter-spacing: .16em; text-transform: uppercase; }

/* ---------- Isi: bagian berlatar krem dan peach 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 { font: italic 500 21px/1.6 var(--serif); max-width: 20em; }
.source { font: 600 14px/1.4 var(--display); letter-spacing: .14em; }
.couple { display: flex; flex-direction: column; gap: 44px; width: 100%; margin-top: 8px; }
.person { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.portrait { position: relative; z-index: 1; width: 226px; height: 290px; padding: 7px; border: 1.5px solid var(--gold); outline: 1px solid var(--gold-hi); outline-offset: 5px; border-radius: 999px 999px 16px 16px; background: var(--card); display: flex; }
.portrait > * { flex: 1; width: 100%; height: 100%; border-radius: 999px 999px 10px 10px; 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 42px/1.05 var(--script); color: var(--deep2); 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(--deep2); }

main > section.count, main > section.rsvp { background: radial-gradient(circle, rgba(255, 244, 214, .5) .8px, transparent 1.4px) 0 0 / 46px 46px, radial-gradient(circle, rgba(255, 244, 214, .3) .6px, transparent 1.2px) 23px 19px / 46px 46px, linear-gradient(180deg, var(--deep), var(--deep2) 60%, var(--night)); color: #f6ead0; }
.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 { padding: 14px 0 12px; border: 1.5px solid rgba(255, 255, 255, .75); border-radius: 14px; display: flex; flex-direction: column; gap: 2px; }
.countdown div { overflow: hidden; }
.countdown b { display: block; font: 500 30px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.countdown span { font-size: 15px; }
html:not(.js) .countdown { display: none; }

.programme { gap: 26px !important; background: linear-gradient(180deg, var(--bg), var(--bg2)) !important; }
.event { position: relative; width: 100%; padding: 64px 22px 32px; border-radius: 999px 999px 20px 20px; background: radial-gradient(circle, rgba(197, 155, 75, .1) 1px, transparent 1.6px) 0 0 / 16px 16px, var(--card); border: 1.5px solid var(--gold); outline: 1px solid var(--gold-hi); outline-offset: -8px; box-shadow: 0 18px 40px rgba(10, 26, 44, .14); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.event::before { content: ""; position: absolute; left: 50%; top: -22px; width: 44px; height: 44px; margin-left: -22px; background: url("img/bintang.webp") center / contain no-repeat; filter: drop-shadow(0 3px 5px rgba(10, 26, 44, .3)); }
.event > .script::before { display: none; }
.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: 18px; text-align: left; }
.chapters li { position: relative; padding: 20px 20px 20px 26px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.chapters li::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 2px; background: linear-gradient(var(--pk), var(--gold)); }
.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(10, 26, 44, .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 { padding: 16px 18px; border-radius: 18px; 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: 80px; padding-bottom: 0; background: linear-gradient(180deg, var(--bg), var(--sky2)); overflow: hidden; }
.medali { width: 124px; filter: drop-shadow(0 8px 12px rgba(10, 26, 44, .3)); }
.js .medali { transition: scale 1.4s cubic-bezier(.3, 1.4, .5, 1), rotate 1.6s cubic-bezier(.2, .8, .2, 1), opacity .6s ease; }
.js .closing:not(.buka) .medali { scale: .2; rotate: -270deg; opacity: 0; }
.tepi { position: relative; width: calc(100% + 56px); margin: 26px -28px 0; }
.tepi .fb { position: relative; bottom: auto; display: block; width: 100%; }
.pamit { position: absolute; left: 22%; bottom: 30%; width: 34%; max-width: none; filter: drop-shadow(0 4px 3px rgba(60, 40, 20, .3)); }
.js .closing:not(.buka) .pamit { translate: -260% 0; }
.js .pamit { transition: translate 6s cubic-bezier(.2, .5, .4, 1) .3s; }
.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(10, 26, 44, .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 layali.js): judul turun, foto membesar, mempelai dari kiri/kanan. */
.rv { opacity: 0; translate: 0 26px; }
.rv.script { translate: 0 -22px; }
.rv.portrait, .grid .rv { translate: 0 0; scale: .86; }
.rv.event { translate: 0 46px; scale: .9; }
main > section > .rv.script::before { scale: .2; rotate: -180deg; opacity: 0; }
.grid :where(.rv:nth-child(odd)) { rotate: -7deg; translate: -18px 36px; } .grid :where(.rv:nth-child(even)) { rotate: 7deg; translate: 18px 36px; }
.chapters :where(.rv:nth-child(odd)) { translate: -44px 0; } .chapters :where(.rv:nth-child(even)) { translate: 44px 0; }
.gift-list :where(.rv) { translate: 0 0; scale: .8; }
.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; rotate: 0deg; transition: rotate 1s cubic-bezier(.2, .8, .2, 1) calc(var(--d, 0) * 1ms), 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: lentera (0–3,3 dtk; .is-open di detik 1,4) → melaju lewat gapura (0,9–4,5 dtk sesudah .is-open) → bulan naik
     & kafilah berjalan → sudut berlentera → kartu judul (3,4 dtk) → medali bintang (4 dtk).
     Sisanya berulang: bintang berkelip, bintang jatuh, debu emas, lentera berkedip, kilau kolam, unta melangkah. */
  .petals i { display: block; animation-name: gugur, kedip; animation-timing-function: linear, ease-in-out; animation-iteration-count: infinite; animation-direction: normal, alternate; }
  .meteor { animation: meteor 9s ease-in 5s infinite; }
  .bulan::before { animation: sinar 5s ease-in-out infinite alternate; }
  .pojok i { animation: kedip 2.2s ease-in-out infinite alternate; } .pojok i:nth-child(3) { animation-duration: 1.7s; animation-delay: -.8s; } .pojok i:nth-child(4) { animation-duration: 2.6s; animation-delay: -1.4s; }
  .langkah { animation: tapak .5s ease-in-out infinite alternate; }
  .closing.buka .pamit { animation: tapak .5s ease-in-out infinite alternate; transform-origin: 50% 100%; }
  .spark i { animation: kelip2 2.4s ease-in-out infinite; }
  .lampu { animation: sinar 4s ease-in-out infinite alternate; }
  .js.is-open:not(.no-anim) .frame-art .pojok { animation: mekar 1.6s 2.8s cubic-bezier(.3, 1.2, .5, 1) both; } .js.is-open:not(.no-anim) .frame-art .pojok.tr { animation-name: mekarR; animation-delay: 3s; }
  .js.is-open:not(.no-anim) .plaque { animation: plakat 1.6s 3.4s cubic-bezier(.2, .7, .2, 1) both; }
  .js.is-open:not(.no-anim) .puncak { animation: putar-masuk 1.4s 4s cubic-bezier(.3, 1.3, .5, 1) backwards; }
  .puncak.kejut { animation: putar-sekali 1s cubic-bezier(.3, .8, .3, 1); }
  .sabit img { animation: bandul 3s ease-in-out infinite alternate; transform-origin: 50% -40%; }
  .sabit i { animation: jatuh-bintang 2.2s ease-in infinite; } .sabit i + i { animation-delay: -1.1s; margin-left: 5px; }
  /* Blok biru malam terbuka berbentuk bintang segi delapan saat masuk layar. */
  .js .iris:not(.buka) { clip-path: polygon(calc(50% + 0.00px) calc(150px + -34.00px), calc(50% + 9.96px) calc(150px + -24.04px), calc(50% + 24.04px) calc(150px + -24.04px), calc(50% + 24.04px) calc(150px + -9.96px), calc(50% + 34.00px) calc(150px + 0.00px), calc(50% + 24.04px) calc(150px + 9.96px), calc(50% + 24.04px) calc(150px + 24.04px), calc(50% + 9.96px) calc(150px + 24.04px), calc(50% + 0.00px) calc(150px + 34.00px), calc(50% + -9.96px) calc(150px + 24.04px), calc(50% + -24.04px) calc(150px + 24.04px), calc(50% + -24.04px) calc(150px + 9.96px), calc(50% + -34.00px) calc(150px + 0.00px), calc(50% + -24.04px) calc(150px + -9.96px), calc(50% + -24.04px) calc(150px + -24.04px), calc(50% + -9.96px) calc(150px + -24.04px)); }
  .js .iris.buka { animation: buka-bintang 1.9s cubic-bezier(.55, 0, .2, 1) both; }
  main > section > .rv.in.script::before { animation: putar-masuk 1.1s .3s cubic-bezier(.3, 1.3, .5, 1) both; }
  .countdown b.gulung { animation: gulung .5s cubic-bezier(.2, .8, .2, 1); }
  main > section > .script::before { animation: lambai 4.5s ease-in-out infinite alternate; }
  .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; }
}
@keyframes layang { 0% { translate: -7px -6px; rotate: 22deg; opacity: 0; } 18% { opacity: 1; } 35% { translate: 7px 9px; rotate: -20deg; } 65% { translate: -6px 24px; rotate: 16deg; opacity: 1; } 100% { translate: 4px 40px; rotate: -12deg; opacity: 0; } }
@keyframes sinar-masuk { from { opacity: 0; } to { opacity: 1; } }
@keyframes kedip { from { opacity: .45; } to { opacity: 1; } }
@keyframes meteor { 0%, 88% { translate: 0 0; opacity: 0; } 90% { opacity: 1; } 100% { translate: 260px 116px; opacity: 0; } }
@keyframes tapak { from { transform: translateY(0) rotate(-.5deg); } to { transform: translateY(-2.5px) rotate(.6deg); } }
@keyframes putar-masuk { from { scale: .2; rotate: -180deg; opacity: 0; } to { scale: 1; rotate: 0deg; opacity: 1; } }
@keyframes putar-sekali { from { transform: rotate(0deg) scale(1); } 50% { transform: rotate(200deg) scale(1.14); } to { transform: rotate(360deg) scale(1); } }
@keyframes jatuh-bintang { 0% { translate: 0 0; opacity: 0; } 20% { opacity: 1; } 100% { translate: 0 24px; opacity: 0; } }
@keyframes buka-bintang { from { clip-path: polygon(calc(50% + 0.00px) calc(150px + -34.00px), calc(50% + 9.96px) calc(150px + -24.04px), calc(50% + 24.04px) calc(150px + -24.04px), calc(50% + 24.04px) calc(150px + -9.96px), calc(50% + 34.00px) calc(150px + 0.00px), calc(50% + 24.04px) calc(150px + 9.96px), calc(50% + 24.04px) calc(150px + 24.04px), calc(50% + 9.96px) calc(150px + 24.04px), calc(50% + 0.00px) calc(150px + 34.00px), calc(50% + -9.96px) calc(150px + 24.04px), calc(50% + -24.04px) calc(150px + 24.04px), calc(50% + -24.04px) calc(150px + 9.96px), calc(50% + -34.00px) calc(150px + 0.00px), calc(50% + -24.04px) calc(150px + -9.96px), calc(50% + -24.04px) calc(150px + -24.04px), calc(50% + -9.96px) calc(150px + -24.04px)); } to { clip-path: polygon(calc(50% + 0.00vmax) calc(150px + -260.00vmax), calc(50% + 76.16vmax) calc(150px + -183.86vmax), calc(50% + 183.85vmax) calc(150px + -183.85vmax), calc(50% + 183.86vmax) calc(150px + -76.16vmax), calc(50% + 260.00vmax) calc(150px + 0.00vmax), calc(50% + 183.86vmax) calc(150px + 76.16vmax), calc(50% + 183.85vmax) calc(150px + 183.85vmax), calc(50% + 76.16vmax) calc(150px + 183.86vmax), calc(50% + 0.00vmax) calc(150px + 260.00vmax), calc(50% + -76.16vmax) calc(150px + 183.86vmax), calc(50% + -183.85vmax) calc(150px + 183.85vmax), calc(50% + -183.86vmax) calc(150px + 76.16vmax), calc(50% + -260.00vmax) calc(150px + 0.00vmax), calc(50% + -183.86vmax) calc(150px + -76.16vmax), calc(50% + -183.85vmax) calc(150px + -183.85vmax), calc(50% + -76.16vmax) calc(150px + -183.86vmax)); } }
@keyframes bandul { from { rotate: -5deg; } to { rotate: 5deg; } }
@keyframes luruh { 0% { translate: 0 0; rotate: 0deg; opacity: 0; } 15% { opacity: .95; } 100% { translate: 22px 64px; rotate: 220deg; opacity: 0; } }
@keyframes datang-naga { from { translate: -130% 90%; rotate: -70deg; scale: .4; opacity: 0; } 30% { opacity: 1; } }
@keyframes datang-phoenix { from { translate: 130% 90%; rotate: 70deg; scale: .4; opacity: 0; } 30% { opacity: 1; } }
@keyframes layang-a { from { transform: translateY(4px) rotate(-2deg); } to { transform: translateY(-7px) rotate(2.5deg); } }
@keyframes layang-b { from { transform: translateY(-6px) rotate(2deg); } to { transform: translateY(5px) rotate(-2.5deg); } }
@keyframes sambut-a { 0%, 100% { transform: none; } 40% { transform: translate(10px, -8px) rotate(8deg) scale(1.1); } 70% { transform: translate(4px, -2px) rotate(-3deg) scale(1.04); } }
@keyframes sambut-b { 0%, 100% { transform: none; } 40% { transform: translate(-10px, -8px) rotate(-8deg) scale(1.1); } 70% { transform: translate(-4px, -2px) rotate(3deg) scale(1.04); } }
@keyframes cap { from { scale: 2.6; rotate: -24deg; opacity: 0; } to { scale: 1; rotate: 0deg; opacity: 1; } }
@keyframes pendar { from { transform: scale(1); } to { transform: scale(1.05); } }
@keyframes kembang { from { rotate: 0deg; scale: .25; opacity: 0; } 25% { opacity: 1; } }
@keyframes kejut { 0%, 100% { scale: 1; rotate: 0deg; } 15% { scale: 1.07; rotate: -1.6deg; } 30% { rotate: 1.6deg; } 45% { scale: 1.07; rotate: -1.2deg; } 60% { rotate: 1.2deg; } 80% { rotate: -.5deg; } }
@keyframes gulung { from { translate: 0 70%; opacity: 0; } to { translate: 0 0; opacity: 1; } }
@keyframes lambai { from { rotate: -3deg; } to { rotate: 3deg; } }
@keyframes getar { 0%, 88%, 100% { scale: 1; rotate: 0deg; } 90% { scale: 1.035; rotate: -.8deg; } 92% { rotate: .8deg; } 94% { rotate: -.6deg; } 96% { scale: 1.035; rotate: .5deg; } }
@keyframes tapak { from { transform: translateY(0) rotate(-1.2deg); } to { transform: translateY(-5px) rotate(1.4deg); } }
@keyframes napas-burung { from { transform: rotate(-.6deg); } to { transform: rotate(.7deg) scale(1.012); } }
@keyframes goyang { from { rotate: -34deg; } to { rotate: 30deg; } }
@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; } main > section > .rv.script::before { scale: 1; rotate: 0deg; opacity: 1; } *, *::before, *::after { animation: none !important; } .js .ly, .js .bulan, .js .kafilah, .js .medali, .js .pamit { transition: none; } .malam { display: none !important; } }
.js body.locked { overflow: visible; }

/* 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; }

/* Kisah: gerbang berlengkung biru malam, bintang segi delapan di puncak tiap lengkung. */
.chapters { gap: 44px; padding-top: 26px; }
.chapters li { padding: 66px 26px 26px; border: 0; border-radius: 50% 50% 10px 10px / 130px 130px 10px 10px; background: radial-gradient(ellipse at 50% 0, var(--deep), var(--deep2) 60%, var(--night)); box-shadow: 0 14px 28px rgba(11, 28, 48, .3); text-align: center; }
.chapters li::before { left: 50%; top: -26px; bottom: auto; width: 58px; height: 58px; margin-left: -29px; border-radius: 0; background: url("img/bintang.webp") center / contain no-repeat; }
.chapters li::after { content: ""; position: absolute; inset: 7px; border: 1px solid var(--gold); border-radius: inherit; opacity: .7; pointer-events: none; }
.chapters li h3 { color: var(--gold-hi); }
.chapters li p { color: #dbe4ec; }
