/* =========================================================
   Undangan Pawiwahan — tema Bali · "Malam Mewah"
   Langit malam, bulan, kunang-kunang, ornamen prada emas
   ========================================================= */
:root {
  --bg: #0a0d1f;
  --ink: #f4ead3;
  --ink-soft: #c9bda5;
  --gold: #d4af5f;
  --gold-2: #f0d48a;
  --gold-deep: #b8892f;
  --accent: #e9b47c;
  --glass: rgba(15, 17, 36, .72);
  --line: rgba(212, 175, 95, .45);
  --gold-grad: linear-gradient(180deg, #fff4cc 0%, #f0d48a 28%, #cf9f45 58%, #94672a 78%, #f4d891 100%);
  --serif: "Cormorant Garamond", Georgia, serif;
  --display: "Cinzel", "Times New Roman", serif;
  --script: "Playfair Display", Georgia, serif;
  --ease: cubic-bezier(.2, .75, .2, 1);
  --spring: cubic-bezier(.3, 1.45, .45, 1);
  --col: 480px;
  --moon: min(11vmin, 60px);
  --moon-y: calc(var(--moon) / 2 + 12px);

  /* ukuran bingkai foto bulat & penjor di sampul */
  --kd: min(40vh, 78vw, 340px);
  --kw: var(--kd);
  --ph: min(62vh, 130vw, 700px);
  --pw: calc(var(--ph) * .2895);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--bg);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; height: 100vh; height: 100svh; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
::selection { background: rgba(212, 175, 95, .35); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* teks emas prada berkilau */
.script { font-family: var(--script); font-style: italic; font-weight: 500; }
.script:not([data-split]), [data-split] .ch {
  background: var(--gold-grad);
  background-size: 100% 220%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: prada 6s ease-in-out infinite;
}
.script:not([data-split]) { padding: 0 .12em .12em; }
[data-split] .ch { padding: .06em .14em .2em; margin: -.06em -.14em -.2em; }
[data-split] .amp .ch { background-image: linear-gradient(180deg, #ffe3c9, #e9a77a 55%, #b8673f 85%); }
@keyframes prada { 0%, 100% { background-position: 50% 0%; } 50% { background-position: 50% 100%; } }

/* ---------------- LOADER ---------------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-content: center; justify-items: center; gap: 14px;
  background: radial-gradient(circle at 50% 45%, #1b1d3a, #07091a 70%);
  transition: opacity .9s var(--ease), visibility .9s;
}
.loader__flower { width: 72px; height: 72px; animation: bloomSpin 2.4s var(--ease) infinite; filter: drop-shadow(0 0 16px rgba(255, 230, 170, .45)); }
.loader__text { font-family: var(--display); letter-spacing: .3em; font-size: 13px; color: var(--gold-2); animation: pulse 2.4s ease-in-out infinite; }
body.loaded .loader { opacity: 0; visibility: hidden; }
@keyframes bloomSpin {
  0% { transform: scale(.3) rotate(-180deg); opacity: 0; }
  40% { transform: scale(1) rotate(0); opacity: 1; }
  80% { transform: scale(1) rotate(40deg); opacity: 1; }
  100% { transform: scale(.3) rotate(180deg); opacity: 0; }
}
@keyframes pulse { 50% { opacity: .45; } }

/* ---------------- PEMANDANGAN MALAM ---------------- */
.scenery {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background: linear-gradient(180deg, #05071a 0%, #0c1130 26%, #1a1d45 46%, #352a55 60%, #4b3456 68%, #1a1a30 82%, #0b0f1c 100%);
  transform-origin: 50% 62%;
  transition: transform 2.6s var(--ease);
}
.stars { position: absolute; inset: 0 0 35% 0; }
.star { position: absolute; border-radius: 50%; background: #fff6dc; box-shadow: 0 0 6px rgba(255, 240, 200, .9); animation: twinkle var(--t, 3s) ease-in-out infinite; animation-delay: var(--dl, 0s); opacity: .2; }
.star--big::before, .star--big::after { content: ""; position: absolute; left: 50%; top: 50%; background: rgba(255, 244, 210, .8); transform: translate(-50%, -50%); }
.star--big::before { width: 1px; height: 900%; }
.star--big::after { width: 900%; height: 1px; }
@keyframes twinkle { 50% { opacity: 1; transform: scale(1.3); } }
.shooting {
  position: absolute; top: 10%; left: 70%; width: 140px; height: 1.5px;
  background: linear-gradient(90deg, rgba(255, 245, 215, 0), rgba(255, 245, 215, .95));
  transform: rotate(-25deg); opacity: 0;
  animation: shoot 9s ease-in 3s infinite;
}
@keyframes shoot {
  0% { opacity: 0; transform: translate(0, 0) rotate(-25deg); }
  3% { opacity: 1; }
  9% { opacity: 0; transform: translate(-60vw, 28vh) rotate(-25deg); }
  100% { opacity: 0; transform: translate(-60vw, 28vh) rotate(-25deg); }
}
.moon-glow {
  position: absolute; left: 50%; top: var(--moon-y); width: 90vmax; height: 90vmax; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 236, 190, .28) 0 6%, rgba(255, 220, 160, .12) 16%, rgba(180, 160, 220, .06) 32%, rgba(0, 0, 0, 0) 52%);
  opacity: 0; transition: opacity 3s var(--ease) .6s;
}
.moon {
  position: absolute; left: 50%; top: var(--moon-y); width: var(--moon); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, 30vh); opacity: 0;
  background:
    radial-gradient(circle at 34% 40%, rgba(196, 176, 130, .45) 0 7%, transparent 8%),
    radial-gradient(circle at 62% 58%, rgba(196, 176, 130, .35) 0 10%, transparent 11%),
    radial-gradient(circle at 55% 28%, rgba(196, 176, 130, .3) 0 5%, transparent 6%),
    radial-gradient(circle at 40% 36%, #fffcee, #f6e7b8 55%, #dcc68e 80%, #c9b07a);
  box-shadow: 0 0 40px 10px rgba(255, 236, 185, .45), 0 0 120px 40px rgba(255, 222, 160, .18);
  transition: transform 3.4s cubic-bezier(.2, .8, .2, 1) .3s, opacity 2s ease .3s;
}
body.scene-in .moon { transform: translate(-50%, -50%); opacity: 1; }
body.scene-in .moon-glow { opacity: 1; }
.cloud {
  position: absolute; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(170, 170, 225, .16), rgba(170, 170, 225, 0) 68%);
  animation: drift linear infinite;
}
.cloud--1 { top: 12%; width: 70vmax; height: 10vmax; animation-duration: 120s; animation-delay: -30s; }
.cloud--2 { top: 26%; width: 50vmax; height: 7vmax; animation-duration: 95s; animation-delay: -60s; }
.cloud--3 { top: 40%; width: 60vmax; height: 6vmax; animation-duration: 140s; animation-delay: -10s; opacity: .8; }
@keyframes drift { from { transform: translateX(-80vmax); } to { transform: translateX(120vw); } }

.layer { position: absolute; inset: -3% -3% -1% -3%; will-change: transform; }
.layer > svg { width: 100%; height: 100%; display: block; opacity: 0; transform: translateY(14%); transition: transform 2.4s var(--ease), opacity 1.8s var(--ease); }
.layer--hills > svg { transition-delay: .25s; }
.layer--terrace > svg { transition-delay: .5s; }
body.scene-in .layer > svg { opacity: 1; transform: none; }
.palm-top { animation: palmSway 6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes palmSway { 50% { transform: rotate(3deg); } }
.vlight { animation: flicker 2.6s ease-in-out infinite; animation-delay: var(--fd2, 0s); transform-box: fill-box; transform-origin: center; }
@keyframes flicker { 0%, 100% { opacity: 1; } 40% { opacity: .65; } 55% { opacity: .9; } 70% { opacity: .55; } }

.mist {
  position: absolute; left: -10%; right: -10%; top: 60%; height: 24%;
  background: linear-gradient(180deg, rgba(140, 140, 200, 0), rgba(140, 140, 200, .14) 50%, rgba(140, 140, 200, 0));
  animation: mist 16s ease-in-out infinite alternate;
}
@keyframes mist { from { transform: translateX(-4%); opacity: .7; } to { transform: translateX(4%); opacity: 1; } }

.fireflies { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.ff {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: #fff1b0; box-shadow: 0 0 8px 3px rgba(255, 220, 120, .7), 0 0 22px 8px rgba(255, 210, 110, .25);
  animation: ffMove var(--t, 12s) ease-in-out infinite alternate, ffBlink var(--b, 3s) ease-in-out infinite;
  animation-delay: var(--dl, 0s);
}
@keyframes ffMove { to { transform: translate(var(--dx, 40px), var(--dy, -60px)); } }
@keyframes ffBlink { 0%, 100% { opacity: .1; } 50% { opacity: 1; } }

.haze {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 8, 22, .25), rgba(6, 8, 22, .58) 55%, rgba(6, 8, 22, .75));
  opacity: 0; transition: opacity 2.2s var(--ease);
}
body.opened .haze { opacity: 1; }
#petals { position: fixed; inset: 0; z-index: 45; pointer-events: none; }

/* ---------------- ANIMASI MUNCUL (reveal) ---------------- */
[data-anim] {
  opacity: 0;
  transition: opacity 1.1s var(--ease), transform 1.3s var(--ease), filter 1.3s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-anim="fade-up"] { transform: translateY(40px); }
[data-anim="fade-down"] { transform: translateY(-36px); }
[data-anim="fade-left"] { transform: translateX(-60px); }
[data-anim="fade-right"] { transform: translateX(60px); }
[data-anim="zoom-in"] { transform: scale(.6); transition-timing-function: var(--ease), var(--spring), var(--ease); }
[data-anim="zoom-out"] { transform: scale(1.25); filter: blur(6px); }
[data-anim="blur-in"] { transform: scale(1.08); filter: blur(14px); }
[data-anim="flip-up"] { transform: perspective(700px) rotateX(75deg); transform-origin: 50% 100%; }
[data-anim="rise"] { transform: translateY(110px) scale(.94); }
[data-anim="grow"] { transform: scaleY(0); transform-origin: 50% 100%; transition-duration: 1.2s, 2s, 1s; }
[data-anim].in { opacity: 1; transform: none; filter: none; }

/* teks dipecah per huruf */
[data-split] .ch {
  display: inline-block; opacity: 0;
  transform: translateY(.5em) rotate(10deg) scale(.8);
  filter: blur(6px);
  transition: opacity .9s var(--ease), transform 1.1s var(--spring), filter .9s var(--ease);
  transition-delay: calc(var(--d, 0ms) + var(--i) * 70ms);
}
[data-split] .w { display: inline-block; white-space: nowrap; }
[data-split].in .ch { opacity: 1; transform: none; filter: none; }

/* garis ornamen digambar */
[data-draw] .dr { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease) var(--d, 0ms); }
[data-draw] .dr2 { transition-delay: calc(var(--d, 0ms) + .4s); }
[data-draw] .dr3 { transition-duration: 3.2s; transition-delay: calc(var(--d, 0ms) + 1s); }
[data-draw].in .dr { stroke-dashoffset: 0; }

/* bunga mekar & daun tumbuh */
.fl { transform: scale(0) rotate(-140deg); transform-box: fill-box; transform-origin: center; transition: transform 1.5s var(--spring); transition-delay: calc(var(--d, 0ms) + var(--fd, 0ms)); }
.lg { transform: scale(0); transform-box: fill-box; transform-origin: 0 50%; transition: transform 1.4s var(--ease); transition-delay: calc(var(--d, 0ms) + var(--fd, 0ms)); }
.in .fl, .in .lg { transform: none; }
.sw { transform-box: fill-box; transform-origin: center; animation: jepunSway 7s ease-in-out infinite; animation-delay: calc(var(--sd, 0s) * -1); }
.lf { transform-box: fill-box; transform-origin: 0 50%; animation: leafSway 5.5s ease-in-out infinite; animation-delay: calc(var(--sd, 0s) * -1); }
@keyframes jepunSway { 0%, 100% { transform: rotate(-7deg) scale(1); } 50% { transform: rotate(7deg) scale(1.04); } }
@keyframes leafSway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3.5deg); } }

/* ---------------- SAMPUL ---------------- */
.cover { position: fixed; inset: 0; z-index: 30; overflow: hidden; }
.cover__stage {
  position: absolute; inset: 0; z-index: 6;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: calc(var(--moon) + 24px) 22px max(22px, env(safe-area-inset-bottom));
}
.cover__stage::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 75%, rgba(6, 8, 22, .7), rgba(6, 8, 22, 0) 70%);
}
.eyebrow { font-family: var(--display); font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: var(--ink-soft); }
.cover .eyebrow { color: #efe2c4; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.cover__names { font-size: clamp(30px, 8vw, 56px); line-height: 1.15; margin: 2px 0 0; }
.amp { font-size: .8em; padding: 0 .08em; }
.cover__date { font-family: var(--display); letter-spacing: .3em; font-size: 14px; color: var(--gold-2); text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.cover__guest { margin: 12px auto 14px; max-width: 320px; }
.cover__guest p:first-child { font-size: 15px; font-style: italic; color: #e3d6bb; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.guest-name {
  font-family: var(--display); font-size: 19px; letter-spacing: .06em; font-weight: 600;
  margin-top: 6px; padding: 7px 20px; display: inline-block; color: var(--ink);
  border: 1px solid var(--line); border-radius: 4px;
  background: linear-gradient(180deg, rgba(20, 20, 44, .72), rgba(12, 12, 30, .72)); backdrop-filter: blur(4px);
  box-shadow: 0 0 0 4px rgba(10, 12, 30, .4), 0 0 0 5px rgba(212, 175, 95, .25);
}

/* bingkai foto berbentuk Kori Agung */
.cover-photo { position: relative; width: var(--kd); aspect-ratio: 1; margin: 14px 0 10px; flex: none; transform-origin: 50% 50%; }
.cover-photo svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 0 22px rgba(240, 200, 120, .18)) drop-shadow(0 16px 28px rgba(0, 0, 0, .55)); }
.cover-photo::before {
  content: ""; position: absolute; inset: -6%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 205, 130, .28), rgba(255, 205, 130, 0) 68%);
  opacity: 0; transition: opacity 2s var(--ease) 1.6s;
}
body.scene-in .cover-photo::before { opacity: 1; }
.cover-photo .frame-hint { font-size: 12px; }
.cover-photo[data-anim="rise"] { transition-duration: 1.2s, 2s, 1s; }

/* pelita di gerbang: menyala bergantian dari bawah ke atas */
.lamp { opacity: 0; transition: opacity .9s var(--ease); transition-delay: calc(var(--d, 0ms) + 1.6s + var(--ld, 0ms)); }
.in .lamp { opacity: 1; }
.lamp .glow { animation: glowPulse 3s ease-in-out infinite; animation-delay: calc(var(--ld, 0ms) * -1); transform-box: fill-box; transform-origin: center; }
.lamp .flame { animation: flame 1.4s ease-in-out infinite alternate; animation-delay: calc(var(--ld, 0ms) * -1); transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes glowPulse { 50% { transform: scale(1.25); opacity: .7; } }
@keyframes flame { 0% { transform: scale(1, 1) skewX(0); } 50% { transform: scale(.9, 1.15) skewX(4deg); } 100% { transform: scale(1.05, .92) skewX(-3deg); } }
.prada-shine { animation: pradaShine 5s ease-in-out infinite; }
@keyframes pradaShine { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.penjor { position: absolute; bottom: 0; z-index: 4; height: var(--ph); width: var(--pw); filter: drop-shadow(0 0 6px rgba(255, 210, 120, .35)); }
.penjor svg { width: 100%; height: 100%; display: block; overflow: visible; }
.penjor--l { left: max(calc(var(--pw) * -.42), calc(50% - max(var(--kw) / 2, 270px) - var(--pw) * 1.05)); }
.penjor--r { right: max(calc(var(--pw) * -.42), calc(50% - max(var(--kw) / 2, 270px) - var(--pw) * 1.05)); }
.penjor--r svg { transform: scaleX(-1); }
.pj { transform-box: view-box; transform-origin: 18% 100%; animation: penjorSway 7s ease-in-out infinite; }
.penjor--r .pj { animation-delay: -2.5s; }
@keyframes penjorSway { 0%, 100% { transform: rotate(-1.4deg); } 50% { transform: rotate(1.6deg); } }
.dg { transform-box: fill-box; transform-origin: 50% 0; animation: dangle 2.8s ease-in-out infinite alternate; animation-delay: calc(var(--sd, 0s) * -1); }
@keyframes dangle { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }

.cover__corner { position: absolute; top: 0; width: min(36vw, 250px); z-index: 5; pointer-events: none; }
.cover__corner svg, .corner svg { width: 100%; height: auto; display: block; overflow: visible; }
.cover__corner, .corner { filter: drop-shadow(0 0 8px rgba(240, 200, 120, .35)); }
.ukir { animation: ukirGlow 6s ease-in-out infinite; }
@keyframes ukirGlow { 50% { opacity: .72; } }
.cover__corner--tl { left: 0; }
.cover__corner--tr { right: 0; transform: scaleX(-1); }

.flash {
  position: absolute; inset: 0; z-index: 7; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 72%, rgba(255, 238, 190, 1), rgba(255, 205, 120, .75) 28%, rgba(120, 80, 30, 0) 72%);
}

/* tombol */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--display); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .4s var(--spring), box-shadow .4s var(--ease), background .3s;
}
.btn:active { transform: scale(.96); }
.btn--gold {
  color: #1c1406; border-color: rgba(255, 240, 200, .6); font-weight: 600;
  background: linear-gradient(135deg, #a4762c, #f2d48c 42%, #c99a43 70%, #8f6424);
  box-shadow: 0 8px 26px rgba(212, 160, 70, .35), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn--gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%);
  transform: translateX(-120%); animation: shine 3.6s ease-in-out infinite;
}
@keyframes shine { 60%, 100% { transform: translateX(120%); } }
.btn--gold:hover { box-shadow: 0 12px 34px rgba(230, 180, 90, .5); transform: translateY(-2px); }
#openBtn { animation: breathe 2.8s ease-in-out infinite 4s; }
@keyframes breathe { 50% { box-shadow: 0 8px 26px rgba(212, 160, 70, .35), 0 0 0 10px rgba(240, 212, 138, .16), 0 0 40px rgba(240, 200, 120, .4); } }
.btn--line { color: var(--gold-2); border-color: var(--line); background: rgba(255, 255, 255, .04); }
.btn--line:hover { background: rgba(212, 175, 95, .14); transform: translateY(-2px); }
.btn--small { font-size: 11px; padding: 9px 16px; color: var(--gold-2); border-color: var(--line); background: rgba(255, 255, 255, .05); }

/* ---- membuka undangan ---- */
body.opening .cover [data-anim], body.opening .cover [data-split] .ch { transition-delay: 0s !important; }
body.opening .cover__stage > [data-anim]:not(.cover-photo), body.opening .cover__names { opacity: 0 !important; transform: translateY(16px) !important; transition: opacity .6s ease, transform .8s ease !important; }
body.opening .cover-photo { transform: scale(2.6); opacity: 0; transition: transform 2.1s cubic-bezier(.55, 0, .2, 1), opacity 1.1s ease .95s; }
@keyframes lampFlare { to { transform: scale(2.2); opacity: 1; } }
body.opening .cover-photo::before { opacity: 1; transform: scale(1.8); transition: transform 1.4s var(--ease), opacity .3s; }
body.opening .penjor--l { transform: translateX(-140%) rotate(-6deg); transition: transform 1.8s cubic-bezier(.6, 0, .2, 1) .35s; }
body.opening .penjor--r { transform: translateX(140%) rotate(6deg); transition: transform 1.8s cubic-bezier(.6, 0, .2, 1) .35s; }
body.opening .cover__corner { opacity: 0; transition: opacity 1s, transform 1.6s var(--ease); }
body.opening .cover__corner--tl { transform: translate(-30%, -30%) scale(1.3); }
body.opening .cover__corner--tr { transform: scaleX(-1) translate(-30%, -30%) scale(1.3); }
body.opening .flash { animation: flash 2.2s ease-in-out .6s forwards; }
body.opening .scenery { transform: scale(1.14); }
body.opened .scenery { transform: scale(1); transition-duration: 4s; }
body.opened .cover { display: none; }
@keyframes flash { 0% { opacity: 0; } 45% { opacity: .9; } 100% { opacity: 0; } }

/* ---------------- KOLOM UTAMA ---------------- */
.main { position: relative; z-index: 10; width: 100%; max-width: var(--col); margin: 0 auto; visibility: hidden; }
body.opened .main { visibility: visible; }
.corners { position: fixed; top: 0; left: 0; right: 0; z-index: 20; pointer-events: none; height: 0; max-width: var(--col); margin: 0 auto; opacity: 0; transition: opacity 1s; }
body.opened .corners { opacity: 1; }
.corner { position: absolute; top: 0; width: min(36vw, 170px); }
.corner--tl { left: 0; }
.corner--tr { right: 0; transform: scaleX(-1); }

.sec { position: relative; padding: 76px 26px; text-align: center; }
.sec--full { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.kicker { font-family: var(--display); font-size: 11.5px; letter-spacing: .36em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.title { font-size: clamp(32px, 8.6vw, 42px); line-height: 1.3; letter-spacing: .01em; margin-bottom: 10px; }
.lead { font-size: 18px; color: var(--ink-soft); max-width: 380px; margin: 0 auto 26px; }
.divider { width: 220px; max-width: 80%; margin: 10px auto 14px; }
.divider svg { width: 100%; height: auto; display: block; overflow: visible; }

/* panel kaca gelap berbingkai prada */
.panel {
  position: relative; padding: 42px 24px 36px;
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 175, 95, .14), rgba(212, 175, 95, 0) 55%),
    linear-gradient(180deg, rgba(20, 21, 44, .82), rgba(11, 12, 28, .88));
  border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 230, 170, .08);
  outline: 1px solid rgba(212, 175, 95, .22); outline-offset: -9px;
  backdrop-filter: blur(6px);
}
.panel::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .07;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cg fill='none' stroke='%23f0d48a' stroke-width='1'%3E%3Cpath d='M22 4 C28 12 28 18 22 22 C16 18 16 12 22 4Z M22 40 C16 32 16 26 22 22 C28 26 28 32 22 40Z M4 22 C12 16 18 16 22 22 C18 28 12 28 4 22Z M40 22 C32 28 26 28 22 22 C26 16 32 16 40 22Z'/%3E%3C/g%3E%3C/svg%3E") repeat;
}
.panel--arch { border-radius: 50% 50% 20px 20px / 150px 150px 20px 20px; padding-top: 60px; }
.panel + .panel, .panel + .card, .card + .card, .card + .panel { margin-top: 22px; }

/* home */
.sec--home { padding-top: 110px; }
.home__frame {
  width: min(100%, 340px); margin: 14px auto 0; padding: 10px;
  border-radius: 50% 50% 18px 18px / 190px 190px 18px 18px;
  border: 1px solid var(--line); background: rgba(10, 12, 30, .35);
  box-shadow: 0 0 60px rgba(240, 200, 120, .12);
}
.home__arch {
  border-radius: 50% 50% 12px 12px / 180px 180px 12px 12px;
  padding: 12px 12px 40px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 226, 160, .22), rgba(255, 226, 160, 0) 60%),
    linear-gradient(180deg, rgba(22, 22, 48, .85), rgba(12, 12, 30, .92));
  border: 1px solid rgba(212, 175, 95, .35);
}
.home__photo {
  position: relative; height: min(44vh, 360px); margin-bottom: 22px; overflow: hidden;
  border-radius: 50% 50% 8px 8px / 150px 150px 8px 8px;
  border: 1px solid var(--line); box-shadow: inset 0 0 0 4px rgba(10, 12, 30, .55);
}
.home__photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(rgba(12, 12, 30, 0), rgba(12, 12, 30, .7)); pointer-events: none; }
.home__img {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(240, 212, 138, .16), rgba(240, 212, 138, 0) 55%), linear-gradient(160deg, #2d2850, #110f22);
  background-size: cover; background-position: center 30%;
  transform: scale(1.3); transition: transform 3.2s var(--ease) .3s;
}
.home__frame.in .home__img { transform: scale(1); }
.home__names { font-size: clamp(28px, 7.6vw, 48px); line-height: 1.2; margin-top: 8px; }
.home__date { font-family: var(--display); letter-spacing: .14em; font-size: 14px; color: var(--gold-2); }
.scroll-hint { margin-top: 34px; display: grid; justify-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); }
.scroll-hint i { width: 22px; height: 36px; border: 1.5px solid var(--gold); border-radius: 12px; position: relative; }
.scroll-hint i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--gold-2); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* doa */
.symbol-ico { width: 80px; height: 80px; margin: 0 auto 14px; filter: drop-shadow(0 0 12px rgba(240, 200, 120, .35)); }
.symbol-ico svg { width: 100%; height: 100%; display: block; overflow: visible; }
.padma-spin { transform-box: view-box; transform-origin: 50% 50%; animation: slowSpin 36s linear infinite; }
.padma-bloom { transform-box: view-box; transform-origin: 50% 50%; transform: scale(.3) rotate(-60deg); transition: transform 1.8s var(--spring) calc(var(--d, 0ms) + .2s); }
.in .padma-bloom { transform: none; }
.genta-swing { transform-box: view-box; transform-origin: 50% 20%; animation: genta 3.2s ease-in-out infinite; }
@keyframes genta { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
.genta-wave { opacity: 0; animation: gentaWave 1.6s ease-out infinite; }
.genta-wave--2 { animation-delay: .25s; }
@keyframes gentaWave { 0% { opacity: 0; } 25% { opacity: .85; } 70%, 100% { opacity: 0; } }
.smoke { stroke-dasharray: 7 9; animation: smoke 2.6s linear infinite; }
.smoke--2 { animation-duration: 3.2s; }
.smoke--3 { animation-duration: 2.2s; }
@keyframes smoke { to { stroke-dashoffset: -32; } }
.dupa-ember { animation: flicker 1.8s ease-in-out infinite; }
@keyframes slowSpin { to { transform: rotate(360deg); } }
.quote { font-size: 20px; font-style: italic; line-height: 1.65; color: var(--ink); }
.quote__src { font-family: var(--display); letter-spacing: .2em; font-size: 12px; color: var(--accent); }

/* mempelai */
.person { margin-top: 26px; }
.frame { width: min(66%, 250px); margin: 0 auto 4px; }
.frame svg { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 0 22px rgba(240, 200, 120, .15)); }
.frame-photo { transform: scale(1.3); transform-box: fill-box; transform-origin: center; transition: transform 2.6s var(--ease) .2s; }
.in .frame-photo { transform: scale(1); }
.frame-initial { font-family: var(--script); font-style: italic; font-size: 72px; fill: rgba(240, 212, 138, .6); }
.frame-hint { font-family: var(--display); font-size: 11px; letter-spacing: .3em; fill: rgba(220, 205, 175, .45); text-transform: uppercase; }
.crown { transform-box: fill-box; transform-origin: 50% 100%; transform: scale(0); transition: transform 1.2s var(--spring) .9s; }
.in .crown { transform: none; }
.person__nick { font-size: 42px; line-height: 1.25; }
.person__name { font-family: var(--display); font-size: 16px; letter-spacing: .05em; font-weight: 600; color: var(--ink); }
.person__parents { font-size: 17px; color: var(--ink-soft); margin: 8px 0 2px; }
.person__parents b { color: var(--ink); font-weight: 600; }
.person__home { font-style: italic; color: var(--ink-soft); font-size: 16px; margin-bottom: 16px; }
.people { margin-top: 10px; }
.people > .divider { margin: 34px auto 6px; }
.person__order { font-style: italic; color: var(--accent); font-size: 17px; }
.parents { margin-top: 36px; padding: 30px 22px 26px; }
.parents__names { font-family: var(--display); font-size: 17px; letter-spacing: .05em; line-height: 1.7; color: var(--ink); margin: 8px 0 6px; }
.parents__names span { font-family: var(--script); font-size: 30px; color: var(--accent); line-height: 1; }

/* hitung mundur */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px 0 26px; }
.cd {
  padding: 16px 4px 10px; border-radius: 40px 40px 10px 10px;
  background: linear-gradient(180deg, rgba(40, 36, 70, .9), rgba(14, 14, 32, .95)); border: 1px solid var(--line);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 230, 170, .12);
}
.cd b { display: block; font-family: var(--display); font-size: 28px; font-weight: 600; color: var(--gold-2); line-height: 1.1; text-shadow: 0 0 14px rgba(240, 200, 120, .35); }
.cd b.tick { animation: tick .5s var(--spring); }
@keyframes tick { from { transform: translateY(-8px) scale(1.15); opacity: .4; } }
.cd span { font-size: 13px; letter-spacing: .12em; color: var(--ink-soft); text-transform: uppercase; }

/* acara */
.event { margin-top: 26px; }
.event__title { font-family: var(--display); font-size: 20px; letter-spacing: .08em; color: var(--gold-2); }
.event__sub { font-style: italic; color: var(--accent); }
.event__line { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 18px; }
.event__line .ico { color: var(--gold); }
.event__place { margin: 12px auto 20px; max-width: 300px; color: var(--ink-soft); }
.event__place b { color: var(--ink); }

/* galeri */
.gallery { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; margin-top: 16px; }
.ph {
  position: relative; border: 0; border-radius: 14px; overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(240, 212, 138, .18), rgba(240, 212, 138, 0) 55%),
    linear-gradient(160deg, #26244a, #121226);
  background-size: cover; background-position: center 25%;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .4);
  outline: 1px solid rgba(212, 175, 95, .4); outline-offset: -6px;
}
.ph::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-40 -40 80 80'%3E%3Cg fill='none' stroke='%23f0d48a' stroke-opacity='.6' stroke-width='1.2'%3E%3Cpath id='p' d='M0,0 C5,-11 21,-17 32,-11 C40,-5 37,8 25,10 C14,12 5,7 0,0Z'/%3E%3Cuse href='%23p' transform='rotate(72)'/%3E%3Cuse href='%23p' transform='rotate(144)'/%3E%3Cuse href='%23p' transform='rotate(216)'/%3E%3Cuse href='%23p' transform='rotate(288)'/%3E%3C/g%3E%3C/svg%3E") center / 42% no-repeat; transition: transform 1.2s var(--ease); }
.ph span { position: absolute; left: 0; right: 0; bottom: 10px; font-family: var(--display); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: rgba(240, 212, 138, .6); }
.ph.has-img::before, .ph.has-img span { display: none; }
.ph:hover::before { transform: rotate(40deg) scale(1.1); }
.ph--tall { grid-row: span 2; }
.ph--wide { grid-column: span 2; }

/* rsvp */
.rsvp { text-align: left; display: grid; gap: 14px; margin-top: 10px; }
.field { display: grid; gap: 6px; border: 0; }
.field > span, .field legend { font-family: var(--display); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); }
.field legend { margin-bottom: 6px; }
.field input, .field textarea, .field select {
  font: inherit; font-size: 17px; color: var(--ink);
  width: 100%; padding: 11px 14px; border-radius: 12px;
  border: 1px solid rgba(212, 175, 95, .4); background: rgba(255, 255, 255, .05);
  transition: border-color .3s, box-shadow .3s;
}
.field select option { background: #15152c; color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: rgba(201, 189, 165, .55); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 175, 95, .2); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(212, 175, 95, .4); font-size: 15px; cursor: pointer; transition: all .3s; background: rgba(255, 255, 255, .04); }
.pills input:checked + span { background: linear-gradient(135deg, #a4762c, #f2d48c 50%, #c99a43); color: #1c1406; border-color: transparent; font-weight: 600; }
.pills input:focus-visible + span { box-shadow: 0 0 0 3px rgba(212, 175, 95, .45); }
.rsvp .btn { justify-self: center; margin-top: 4px; }
.rsvp .btn.is-sending { opacity: .65; cursor: progress; animation: pulse 1.2s ease-in-out infinite; }
.wishes { margin-top: 26px; max-height: 420px; overflow-y: auto; text-align: left; display: grid; gap: 10px; padding-right: 4px; scrollbar-color: rgba(212, 175, 95, .4) transparent; }
.wish { padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(212, 175, 95, .22); animation: wishIn .8s var(--spring); }
.wish__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wish__name { font-weight: 600; font-size: 17px; color: var(--gold-2); }
.wish__badge { font-family: var(--display); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: rgba(212, 175, 95, .18); color: var(--gold-2); white-space: nowrap; }
.wish__badge--no { background: rgba(233, 140, 110, .18); color: #f0b39a; }
.wish p { font-size: 16px; color: var(--ink-soft); margin-top: 2px; }
.wish time { font-size: 12.5px; color: #8f8470; }
.wishes__empty { text-align: center; font-style: italic; color: var(--ink-soft); padding: 16px; border: 1px dashed rgba(212, 175, 95, .35); border-radius: 14px; }
@keyframes wishIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } }

/* penutup */
.sec--closing { padding-bottom: 130px; }
.closing__om { font-family: var(--display); letter-spacing: .06em; font-size: 14px; color: var(--accent); margin-top: 6px; }
.closing__names { font-size: clamp(28px, 7.6vw, 46px); line-height: 1.2; margin: 4px 0; }
.closing__fam { color: var(--ink-soft); }
.foot { margin-top: 30px; font-family: var(--display); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------------- DOK NAVIGASI & MUSIK ---------------- */
.dock {
  position: fixed; z-index: 50; left: 50%; bottom: max(14px, env(safe-area-inset-bottom));
  display: flex; gap: 2px; padding: 6px; border-radius: 999px;
  background: rgba(14, 15, 34, .82); border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .5); backdrop-filter: blur(10px);
  transform: translate(-50%, 140%); transition: transform 1.1s var(--spring) .6s;
}
body.opened .dock { transform: translate(-50%, 0); }
.dock a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-soft); transition: background .35s, color .35s, transform .35s var(--spring); }
.dock a .ico { width: 20px; height: 20px; }
.dock a:hover { transform: translateY(-3px); color: var(--gold-2); }
.dock a.active { background: linear-gradient(135deg, #a4762c, #f2d48c 50%, #c99a43); color: #1c1406; box-shadow: 0 0 16px rgba(240, 200, 120, .45); }

.music {
  position: fixed; z-index: 51; right: 16px; bottom: max(84px, calc(env(safe-area-inset-bottom) + 74px));
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(14, 15, 34, .88); box-shadow: 0 10px 26px rgba(0, 0, 0, .5); backdrop-filter: blur(8px);
  display: grid; place-items: center;
  transform: scale(0); transition: transform .9s var(--spring) .9s;
}
body.opened .music { transform: scale(1); }
.music__flower { width: 34px; height: 34px; filter: drop-shadow(0 0 6px rgba(255, 236, 190, .4)); }
.music.playing .music__flower { animation: slowSpin 6s linear infinite; }
.music__bars { position: absolute; bottom: -4px; right: -4px; display: flex; gap: 2px; align-items: flex-end; height: 16px; padding: 3px 4px; border-radius: 8px; background: linear-gradient(135deg, #a4762c, #e6c47a); }
.music__bars i { width: 2.5px; height: 4px; background: #1c1406; border-radius: 1px; }
.music.playing .music__bars i { animation: eq .9s ease-in-out infinite alternate; }
.music.playing .music__bars i:nth-child(2) { animation-delay: -.3s; }
.music.playing .music__bars i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { to { height: 11px; } }

/* lightbox & toast */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(4, 5, 14, .88); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.lightbox.show { opacity: 1; visibility: visible; }
.lightbox__img { width: min(92vw, 560px); aspect-ratio: 3 / 4; max-height: 82vh; border-radius: 16px; background-size: cover; background-position: center; transform: scale(.85); transition: transform .7s var(--spring); box-shadow: 0 30px 60px rgba(0, 0, 0, .6), 0 0 0 1px var(--line); }
.lightbox.show .lightbox__img { transform: none; }
.lightbox__close { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--gold-2); font-size: 28px; line-height: 1; }
.toast { position: fixed; z-index: 95; left: 50%; top: 22px; transform: translate(-50%, -150%); padding: 11px 20px; border-radius: 999px; background: linear-gradient(135deg, #a4762c, #f2d48c 50%, #c99a43); color: #1c1406; font-weight: 600; font-size: 15px; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); transition: transform .6s var(--spring); max-width: 90vw; text-align: center; }
.toast.show { transform: translate(-50%, 0); }

/* ---------------- PANEL SAMPING (layar lebar) ---------------- */
.side { display: none; }
@media (min-width: 960px) {
  .main { margin-right: 0; background: rgba(8, 9, 24, .45); border-left: 1px solid var(--line); box-shadow: -20px 0 60px rgba(0, 0, 0, .45); min-height: 100vh; }
  .corners { margin-right: 0; }
  .dock { left: auto; right: calc(var(--col) / 2); transform: translate(50%, 140%); }
  body.opened .dock { transform: translate(50%, 0); }
  .music { right: calc(var(--col) + 24px); bottom: 24px; }
  .side {
    display: grid; place-items: center; position: fixed; z-index: 5; left: 0; top: 0; bottom: 0; right: var(--col);
    text-align: center; padding: 40px; visibility: hidden;
  }
  body.opened .side { visibility: visible; }
  .side__inner {
    padding: 60px 50px; max-width: 540px;
    border-radius: 50% 50% 24px 24px / 220px 220px 24px 24px;
    background: radial-gradient(circle at 50% 0%, rgba(255, 226, 160, .16), transparent 60%), rgba(10, 11, 28, .6);
    border: 1px solid var(--line); backdrop-filter: blur(4px);
    box-shadow: 0 0 80px rgba(240, 200, 120, .1);
  }
  .side__names { white-space: nowrap; font-size: clamp(38px, 3.5vw, 64px); line-height: 1.2; }
  .side__date { font-family: var(--display); letter-spacing: .2em; font-size: 15px; color: var(--gold-2); }
  .side__quote { font-style: italic; color: var(--ink-soft); margin-top: 14px; font-size: 19px; }
}

@media (max-height: 700px) {
  :root { --kd: min(34vh, 78vw, 340px); }
  .cover__guest { margin: 8px auto 10px; }
}

/* ---------------- Kurangi gerak ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .3s !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}
