/* NusaMora Invite — template Nusa Essential (2D). Warna dari themes.js (CSS variables), mobile-first. */
:root {
  /* token turunan: tema gelap (theme.json colors) dapat menimpanya */
  --onDeep: var(--paper); --surface: #fff; --btnBg: var(--deep); --toastBg: var(--ink); --toastFg: #fff; --ok: #24653F; --err: #B3261E; --heading: var(--deep);
  --deep: #4A0D14; --deep2: #6E1823; --paper: #F7EEDC; --ink: #3A2420; --muted: #7A5F55; --accent: #C9A35B; --accent2: #E8CF93; --soft: #EBD9BB; --petal: #EDB9A6;
  --script: "Pinyon Script", "Great Vibes", cursive; --serif: "Cormorant Garamond", Georgia, serif; --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1); --ease-io: cubic-bezier(.7, 0, .2, 1);
  --colw: 100vw; --r: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 8px; overflow-x: hidden; }
body { margin: 0; font: 400 16px/1.7 var(--sans); color: var(--ink); background: var(--deep); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.is-locked, body.noscroll { overflow: hidden; height: 100%; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- latar & ornamen tetap ---------- */
.bgfx { position: fixed; inset: 0; z-index: -1; background: var(--pattern), radial-gradient(120% 80% at 50% 0%, var(--deep2), var(--deep)); }
.corners .co { position: fixed; z-index: 6; width: clamp(58px, 17vw, 110px); color: var(--accent); pointer-events: none; opacity: 0; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .15)); }
.corners .tl { top: 0; left: 0; }
.corners .tr { top: 0; right: 0; transform: scaleX(-1); }
.corners .bl { bottom: 0; left: 0; transform: scaleY(-1); }
.corners .br { bottom: 0; right: 0; transform: scale(-1); }
.is-open .corners .co { animation: cornIn 1.6s var(--ease) 1.1s forwards, sway 7s ease-in-out 2.7s infinite alternate; }
.is-open .corners .tr, .is-open .corners .bl { animation-delay: 1.3s, 2.9s; }
.is-open .corners .br { animation-delay: 1.5s, 3.1s; }
@keyframes cornIn { from { opacity: 0; translate: -18px -18px; } to { opacity: .78; translate: 0 0; } }
@keyframes sway { from { rotate: 0deg; } to { rotate: 1.6deg; } }

/* kelopak */
.petals, .cv-petals { position: fixed; inset: 0; pointer-events: none; z-index: 4; overflow: hidden; }
.cv-petals { position: absolute; z-index: 2; }
.pt { position: absolute; top: -40px; color: var(--petal); animation: fall var(--dur) linear var(--del) infinite; will-change: transform; }
.pt svg { width: 100%; height: 100%; animation: swayp calc(var(--dur) / 3) ease-in-out infinite alternate; }
.paused .pt, .paused .pt svg { animation-play-state: paused; }
@keyframes fall { from { transform: translate3d(0, -5vh, 0) rotate(0deg); } to { transform: translate3d(0, 112vh, 0) rotate(var(--rot)); } }
@keyframes swayp { from { transform: translateX(calc(var(--sway) * -.5)); } to { transform: translateX(calc(var(--sway) * .5)); } }

/* ---------- teks dekoratif ---------- */
.eb { margin: 0 0 6px; font: 500 12px/1.4 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--accent); }
.eb.lt, .lt { color: var(--accent2); }
.dv { width: min(220px, 64%); margin: 14px auto; color: var(--accent); }
.dv.lt { color: var(--accent2); }
.sh { text-align: center; margin-bottom: 34px; }
.st { margin: 0; font: 400 clamp(40px, 11vw, 56px)/1.1 var(--script); color: var(--heading); }
.deep .st { color: var(--onDeep); }
.lead { max-width: 34em; margin: 0 auto 18px; text-align: center; font: 400 clamp(17px, 4.6vw, 19px)/1.75 var(--serif); color: var(--muted); }
.lead.lt { color: rgba(255, 255, 255, .82); }
.fine { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }

/* animasi per huruf */
.sw { display: inline-block; white-space: nowrap; }
.sc { display: inline-block; opacity: 0; transform: translateY(.45em) rotate(6deg); filter: blur(6px); }
.cover.ready .sc, .go .sc { animation: chIn 1s var(--ease) var(--dl, 0ms) forwards; }
@keyframes chIn { to { opacity: 1; transform: none; filter: none; } }

/* ---------- reveal ---------- */
[data-rv] { opacity: 0; transition: opacity .9s var(--ease) var(--dl, 0ms), transform 1.1s var(--ease) var(--dl, 0ms), filter .9s var(--ease) var(--dl, 0ms); }
[data-rv="up"] { transform: translate3d(0, 30px, 0); }
[data-rv="down"] { transform: translate3d(0, -24px, 0); }
[data-rv="left"] { transform: translate3d(-40px, 0, 0); }
[data-rv="right"] { transform: translate3d(40px, 0, 0); }
[data-rv="zoom"] { transform: scale(.9); }
[data-rv="blur"] { filter: blur(10px); }
[data-rv].in { opacity: 1; transform: none; filter: none; }
[data-rv="draw"] { opacity: 1; }
[data-rv="draw"] path { stroke-dasharray: 300; stroke-dashoffset: 300; fill-opacity: 0; transition: stroke-dashoffset 1.8s var(--ease) var(--dl, 0ms), fill-opacity .8s ease calc(var(--dl, 0ms) + 900ms); }
[data-rv="draw"].in path { stroke-dashoffset: 0; fill-opacity: 1; }

/* ---------- cover ---------- */
.cover { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; color: var(--onDeep); text-align: center; overflow: hidden; }
.gate { position: absolute; top: 0; bottom: 0; width: 50.5%; background: var(--pattern), linear-gradient(180deg, var(--deep2), var(--deep)); transition: transform 1.4s var(--ease-io); }
.gate.l { left: 0; box-shadow: inset -1px 0 0 rgba(255, 255, 255, .06); }
.gate.r { right: 0; }
.cv-frame { position: absolute; inset: 14px; z-index: 3; border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent); border-radius: 6px; display: grid; place-items: center; transition: opacity .7s ease, transform 1.2s var(--ease-io); }
.cv-frame::before { content: ""; position: absolute; inset: 6px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 4px; pointer-events: none; }
.tp { position: absolute; left: 70px; right: 70px; height: 18px; background: var(--tumpal) repeat-x center / 26px 18px; opacity: .8; }
.tp.t { top: 14px; } .tp.b { bottom: 14px; transform: scaleY(-1); }
.cv-frame .co { position: absolute; width: clamp(70px, 22vw, 120px); color: var(--accent); opacity: 0; transition: opacity 1.2s ease .3s, translate 1.4s var(--ease) .3s; }
.cv-frame .tl { top: -1px; left: -1px; translate: -14px -14px; } .cv-frame .tr { top: -1px; right: -1px; transform: scaleX(-1); translate: 14px -14px; }
.cv-frame .bl { bottom: -1px; left: -1px; transform: scaleY(-1); translate: -14px 14px; } .cv-frame .br { bottom: -1px; right: -1px; transform: scale(-1); translate: 14px 14px; }
.cover.ready .cv-frame .co { opacity: .9; translate: 0 0; }
.cv-in { position: relative; width: min(440px, 84vw); padding: 24px 0; display: flex; flex-direction: column; align-items: center; }
.cv-in > * { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.cover.ready .cv-in > * { opacity: 1; transform: none; }
.cover.ready .cv-in > :nth-child(1) { transition-delay: .15s; } .cover.ready .cv-in > :nth-child(2) { transition-delay: .35s; } .cover.ready .cv-in > :nth-child(4) { transition-delay: 1.1s; }
.cover.ready .cv-in > :nth-child(5) { transition-delay: 1.3s; } .cover.ready .cv-in > :nth-child(6) { transition-delay: 1.5s; } .cover.ready .cv-in > :nth-child(7) { transition-delay: 1.7s; }
.cv-in > .cv-nm { opacity: 1; transform: none; }
.cv-arch { position: relative; width: clamp(130px, 38vw, 170px); aspect-ratio: 3 / 4; margin-bottom: 18px; }
.cv-arch img, .pf img, .pf-ph { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 14px 14px; }
.cv-arch .ring, .pf .ring { position: absolute; inset: -8px; color: var(--accent); pointer-events: none; }
.cv-arch .ring svg, .pf .ring svg { width: 100%; height: 100%; }
.cv-bloom { width: 54px; color: var(--accent); margin-bottom: 12px; animation: spin 24s linear infinite; }
.cv-eb { margin: 0; font: 500 12px/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--accent2); }
.cv-nm { margin: 10px 0 4px; font: 400 clamp(46px, 13.5vw, 70px)/1.08 var(--script); color: var(--onDeep); text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.cv-dt { margin: 0 0 18px; font: 500 15px/1 var(--serif); letter-spacing: .28em; color: var(--accent2); }
.cv-to { display: flex; flex-direction: column; gap: 2px; min-width: 230px; padding: 14px 22px 16px; margin-bottom: 20px; border-radius: 14px; background: rgba(0, 0, 0, .18); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); backdrop-filter: blur(4px); font-size: 13px; color: rgba(255, 255, 255, .78); }
.cv-to b { margin-top: 6px; font: 600 20px/1.3 var(--serif); color: var(--onDeep); word-break: break-word; }
.btn-open { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px; border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--accent2), var(--accent)); color: var(--deep); font-weight: 600; letter-spacing: .02em; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform .3s var(--ease), box-shadow .3s; animation: pulse 2.6s ease-in-out 3s infinite; }
.btn-open svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.btn-open::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); animation: shine 3.2s ease-in-out 2.2s infinite; }
.btn-open:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0, 0, 0, .38); }
.btn-open:active { transform: scale(.96); }
.cv-mode { margin: 14px 0 0; font-size: 11.5px; letter-spacing: .06em; color: rgba(255, 255, 255, .6); }
.cover.opening .gate.l { transform: translateX(-101%); } .cover.opening .gate.r { transform: translateX(101%); }
.cover.opening .cv-frame { opacity: 0; transform: scale(1.08); }
.cover.opening .cv-petals { opacity: 0; transition: opacity .6s; }
.cover.opening { pointer-events: none; }
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 10px 30px rgba(0, 0, 0, .3), 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); } 50% { box-shadow: 0 10px 30px rgba(0, 0, 0, .3), 0 0 0 12px transparent; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- tata letak ---------- */
.layout { position: relative; }
.side { display: none; }
.col { position: relative; overflow-x: clip; outline: none; background: var(--paper); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: end; color: #fff; text-align: center; overflow: hidden; background: var(--deep); }
.hero-bg { position: absolute; left: 0; right: 0; top: -8%; height: 116%; will-change: transform; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); animation: kb 2.6s var(--ease) .2s forwards; }
.is-locked .hero-bg img { animation-play-state: paused; }
@keyframes kb { to { transform: scale(1); } }
.hero-sh { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 20%, color-mix(in srgb, var(--deep) 55%, transparent) 62%, var(--deep) 100%); }
.hero-in { position: relative; padding: 0 22px 92px; }
.hero-nm { margin: 4px 0 0; font: 400 clamp(54px, 16vw, 92px)/1.05 var(--script); text-shadow: 0 4px 28px rgba(0, 0, 0, .35); }
.hero-dt { margin: 0; font: 500 clamp(16px, 4.4vw, 19px)/1.4 var(--serif); letter-spacing: .08em; color: rgba(255, 255, 255, .92); }
.scrl { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-top: 18px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); }
.scrl svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.6; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ---------- section ---------- */
.sec { position: relative; padding: 88px 22px 96px; background: var(--paper); clip-path: inset(-16px 0 0 0); }
.sec.paper { background: var(--pattern-paper), var(--soft); }
.sec.deep { background: linear-gradient(180deg, var(--deep2), var(--deep)); color: var(--onDeep); }
/* tepi bergelombang antar-section */
.sec::before { content: ""; position: absolute; top: -13px; left: 0; right: 0; height: 14px; background: radial-gradient(circle at 12px 14px, var(--secbg, var(--paper)) 11px, transparent 11.6px) repeat-x 0 0 / 24px 14px; pointer-events: none; }
.sec { --secbg: var(--paper); } .sec.paper { --secbg: var(--soft); } .sec.deep { --secbg: var(--deep2); }
.sec .pat { position: absolute; inset: -40px 0; background: var(--pattern); opacity: .9; pointer-events: none; }
.wrap { position: relative; max-width: 560px; margin: 0 auto; }
.wrap.wide { max-width: 760px; }
.bloom-dec { width: 46px; margin: 0 auto 20px; color: var(--accent); opacity: .75; }

/* salam */
.qt { margin: 0 auto 6px; max-width: 32em; text-align: center; }
.qt p { margin: 0; font: italic 500 clamp(19px, 5vw, 22px)/1.65 var(--serif); color: var(--ink); }
.qt cite { display: block; margin-top: 12px; font: 600 12px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; font-style: normal; color: var(--accent); }

/* mempelai */
.cpl { display: grid; gap: 22px; justify-items: center; }
.ps { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 320px; }
.pf { position: relative; width: clamp(180px, 56vw, 220px); aspect-ratio: 3 / 4; margin-bottom: 22px; }
.pf img { box-shadow: 0 18px 40px rgba(0, 0, 0, .14); }
.pf-ph { display: grid; place-items: center; background: linear-gradient(160deg, var(--soft), var(--accent2)); font: 400 64px/1 var(--script); color: var(--deep); }
.pf::after { content: ""; position: absolute; inset: 0; border-radius: 999px 999px 14px 14px; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .35) 50%, transparent 60%); background-size: 250% 100%; background-position: 120% 0; transition: background-position 1.4s var(--ease) .3s; pointer-events: none; }
.pf.in::after { background-position: -40% 0; }
.role { margin: 0; font: 500 11.5px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--accent); }
.pn { margin: 10px 0 8px; font: 600 clamp(24px, 6.4vw, 28px)/1.25 var(--serif); color: var(--heading); }
.pp { margin: 0 0 14px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.amp { font: italic 500 54px/1 var(--serif); color: var(--accent); }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); font-size: 13.5px; text-decoration: none; color: var(--ink); transition: background .25s, transform .25s var(--ease); }
.chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.chip:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); transform: translateY(-2px); }

/* hitung mundur */
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 380px; margin: 0 auto 18px; }
.cu { padding: 14px 4px 10px; border-radius: 16px; text-align: center; background: rgba(255, 255, 255, .07); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.cu b { display: block; font: 600 clamp(28px, 8vw, 36px)/1 var(--serif); color: var(--accent2); font-variant-numeric: tabular-nums; }
.cu span { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.cd.mini { max-width: 300px; margin: 18px auto 0; gap: 8px; }
.cd.mini .cu { padding: 9px 2px 7px; border-radius: 12px; background: rgba(0, 0, 0, .18); backdrop-filter: blur(4px); }
.cd.mini b { font-size: 22px; }
.cd.mini span { font-size: 9.5px; margin-top: 4px; }
.cd.done { display: block; }
.cd-ok { margin: 0; text-align: center; font: italic 500 20px/1.5 var(--serif); color: var(--accent2); }
.tick { animation: tick .5s var(--ease); }
@keyframes tick { from { transform: translateY(-45%); opacity: 0; } to { transform: none; opacity: 1; } }
.cd-dt { text-align: center; margin: 0 0 18px; font: 500 18px/1.4 var(--serif); letter-spacing: .06em; }
#hitung .wrap, #rsvp .wrap { text-align: center; }

/* tombol */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid transparent; background: var(--btnBg); color: var(--onDeep); font-weight: 500; font-size: 14.5px; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, .16); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: inherit; border-color: color-mix(in srgb, var(--accent) 70%, transparent); }
.deep .btn:not(.ghost) { background: linear-gradient(135deg, var(--accent2), var(--accent)); color: var(--deep); }
.deep .btn.ghost { color: var(--accent2); }
.btn.sm { min-height: 38px; padding: 7px 14px; font-size: 13.5px; }
.btn.full { width: 100%; }
.btn.done { background: #2E7D4F !important; color: #fff !important; border-color: transparent; }
.btn.busy { pointer-events: none; color: transparent !important; }
.btn.busy::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--onDeep); border-right-color: transparent; animation: spin .7s linear infinite; }
.deep .btn.busy::after { border-color: var(--deep); border-right-color: transparent; }
.btn[disabled] { opacity: .6; }

/* acara */
.evs { display: grid; gap: 20px; }
.ev { position: relative; padding: 28px 24px 24px; border-radius: var(--r); background: var(--paper); box-shadow: 0 14px 34px rgba(0, 0, 0, .08); text-align: center; outline: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: -8px; }
.ev-co { position: absolute; top: 0; right: 0; width: 70px; color: var(--accent); opacity: .7; transform: scaleX(-1); }
.ev h3 { margin: 0 0 14px; font: 400 clamp(34px, 9vw, 42px)/1.1 var(--script); color: var(--heading); }
.ev-date { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 6px 18px; border-left: 1px solid var(--accent); border-right: 1px solid var(--accent); }
.ev-date b { font: 600 46px/1 var(--serif); color: var(--accent); }
.ev-date span { text-align: left; font: 600 14px/1.35 var(--serif); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.ev-l { display: flex; gap: 10px; justify-content: center; align-items: flex-start; margin: 0 auto 10px; max-width: 30em; font-size: 15px; line-height: 1.55; color: var(--muted); }
.ev-l b { color: var(--ink); font-weight: 600; }
.ev-l svg { width: 18px; height: 18px; flex: none; margin-top: 3px; fill: none; stroke: var(--accent); stroke-width: 1.7; }
.ev-a { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* love story */
.tml { position: relative; list-style: none; margin: 0; padding: 0; }
.tl-line { position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 2px; }
.tl-line i { position: absolute; inset: 0; background: linear-gradient(var(--accent2), var(--accent)); transform: scaleY(0); transform-origin: top; border-radius: 2px; }
.tl-i { position: relative; padding: 0 0 30px 54px; }
.tl-i:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: 4px; top: 4px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); border: 1px solid var(--accent); }
.tl-dot svg { width: 15px; height: 15px; fill: var(--accent); stroke: none; }
.tl-c { padding: 16px 18px 18px; border-radius: var(--r); background: var(--surface); background: color-mix(in srgb, var(--surface) 60%, var(--paper)); box-shadow: 0 10px 26px rgba(0, 0, 0, .06); }
.tl-ph { margin: -4px -6px 14px; border-radius: 12px; overflow: hidden; aspect-ratio: 7 / 5; }
.tl-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tl-c:hover .tl-ph img { transform: scale(1.05); }
.tl-d { margin: 0; font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.tl-c h3 { margin: 8px 0 6px; font: 600 22px/1.3 var(--serif); color: var(--heading); }
.tl-c p:last-child { margin: 0; font-size: 15px; line-height: 1.65; color: var(--muted); }

/* galeri */
.gl { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; grid-auto-flow: dense; gap: 10px; }
.gi { position: relative; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--soft); }
.gi.g0 { grid-row: span 2; } .gi.g3 { grid-column: span 2; }
.gi img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .5s; }
.gi::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .25)); opacity: 0; transition: opacity .4s; }
.gi:hover img, .gi:focus-visible img { transform: scale(1.07); }
.gi:hover::after { opacity: 1; }
.gi:active { transform: scale(.98); }

/* lightbox */
.lbx { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(10, 6, 6, .92); opacity: 0; transition: opacity .28s ease; }
.lbx.on { opacity: 1; }
.lbx[hidden], [hidden] { display: none !important; }
.lbx figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lbx img { max-width: 92vw; max-height: 80vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); transform: scale(.94); transition: transform .4s var(--ease); }
.lbx.on img { transform: none; }
.lbx img.sl { animation: sl .45s var(--ease); } .lbx img.sr { animation: sr .45s var(--ease); }
@keyframes sl { from { opacity: 0; transform: translateX(40px); } } @keyframes sr { from { opacity: 0; transform: translateX(-40px); } }
.lbx figcaption { color: rgba(255, 255, 255, .7); font-size: 13px; letter-spacing: .1em; }
.lbx-x, .lbx-n { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; transition: background .2s, transform .2s; }
.lbx-x:hover, .lbx-n:hover { background: rgba(255, 255, 255, .2); }
.lbx-x svg, .lbx-n svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lbx-x { top: 16px; right: 16px; } .lbx-n { top: 50%; margin-top: -22px; } .lbx-n.p { left: 12px; } .lbx-n.n { right: 12px; }

/* formulir */
.card { border-radius: var(--r); background: var(--paper); color: var(--ink); box-shadow: 0 18px 44px rgba(0, 0, 0, .12); }
.card.form { padding: 22px 20px; text-align: left; }
.fl { display: block; margin-bottom: 14px; }
.fl > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.fl small { font-weight: 400; }
.fl input, .fl textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 45%, #ccc); background: var(--surface); font: 400 16px/1.4 var(--sans); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.fl textarea { resize: vertical; min-height: 80px; }
.fl input:focus, .fl textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.cnt { display: block; text-align: right; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.cnt i { font-style: normal; }
.att { border: 0; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.att legend { margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--muted); padding: 0; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; }
.opt span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 10px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 40%, #ddd); background: var(--surface); text-align: center; transition: background .25s, border-color .25s, transform .2s var(--ease), color .25s; cursor: pointer; }
.opt span svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.opt b { font-size: 12.5px; font-weight: 500; line-height: 1.2; }
.opt input:checked + span { background: var(--btnBg); border-color: var(--btnBg); color: var(--onDeep); transform: translateY(-2px); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt span:active { transform: scale(.96); }
.pax { transition: opacity .3s; }
.pax.off { opacity: .35; pointer-events: none; }
.step { display: inline-flex; align-items: center; border: 1px solid color-mix(in srgb, var(--accent) 45%, #ccc); border-radius: 999px; background: var(--surface); }
.step button { width: 44px; height: 42px; border: 0; background: none; font-size: 20px; color: var(--heading); border-radius: 999px; }
.step button:active { background: var(--soft); }
.step output { min-width: 36px; text-align: center; font: 600 18px/1 var(--serif); }
.err { min-height: 0; margin: 0 0 10px; font-size: 13.5px; color: var(--err); }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ok-box { text-align: center; padding: 12px 0 4px; }
.ok-ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--heading); animation: pop .6s var(--ease); }
.ok-ic svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-dasharray: 30; stroke-dashoffset: 30; animation: dash .6s ease .3s forwards; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } } @keyframes dash { to { stroke-dashoffset: 0; } }
.ok-box h3 { margin: 14px 0 4px; font: 600 22px/1.3 var(--serif); color: var(--heading); }
.ok-box p { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; }
.rcode { margin: 0 auto 14px; max-width: 360px; display: grid; gap: 8px; justify-items: center; }
.rcode p { margin: 0; }
.rcode code { font: 600 17px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; padding: 8px 12px; border-radius: 10px; border: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent); user-select: all; word-break: break-all; }
.rk { text-align: center; margin-top: 12px; }
.lnk { background: none; border: 0; padding: 4px; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rkw { margin-top: 8px; display: grid; gap: 8px; }

/* hadiah */
.acc { display: grid; gap: 16px; justify-items: center; margin-top: 8px; }
.bc { position: relative; width: min(100%, 340px); aspect-ratio: 1.62; padding: 20px 20px 18px; border-radius: 20px; overflow: hidden; color: var(--onDeep); background: var(--pattern), linear-gradient(135deg, var(--deep2), var(--deep)); box-shadow: 0 20px 40px rgba(0, 0, 0, .2); display: flex; flex-direction: column; transition: transform .5s var(--ease); }
.bc.ewallet { background: var(--pattern), linear-gradient(135deg, color-mix(in srgb, var(--accent) 85%, #000), color-mix(in srgb, var(--deep) 70%, var(--accent))); }
.bc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .16) 50%, transparent 65%); transform: translateX(-100%); transition: transform 1.2s var(--ease); }
.bc:hover { transform: translateY(-4px) rotate(-.6deg); }
.bc:hover::after, .bc.in::after { transform: translateX(100%); }
.bc-t { display: flex; justify-content: space-between; align-items: center; }
.bc-t b { font: 700 18px/1 var(--sans); letter-spacing: .06em; }
.chipc { width: 38px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, var(--accent2), var(--accent)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.bc-n { margin: auto 0 4px; font: 600 clamp(19px, 5.6vw, 23px)/1.2 var(--serif); letter-spacing: .1em; }
.bc-h { margin: 0 0 12px; font-size: 13px; opacity: .85; }
.bc .btn { align-self: flex-start; position: relative; z-index: 1; background: rgba(255, 255, 255, .14); color: var(--onDeep); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(4px); }
.addr { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 18px; margin-top: 18px; text-align: left; }
.addr > svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.5; flex: none; }
.addr div { flex: 1 1 180px; }
.addr p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }

/* ucapan */
.wcount { margin: 22px 0 10px; text-align: center; font: italic 500 16px/1.4 var(--serif); color: var(--muted); }
.wl { list-style: none; margin: 0; padding: 4px 4px 4px 0; max-height: 560px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
.wi { display: flex; gap: 12px; padding: 14px 14px 12px; margin-bottom: 10px; border-radius: 14px; background: var(--surface); background: color-mix(in srgb, var(--surface) 55%, var(--paper)); box-shadow: 0 6px 16px rgba(0, 0, 0, .04); }
.wi.fresh { animation: wIn .7s var(--ease); }
@keyframes wIn { from { opacity: 0; transform: translateY(-14px) scale(.98); } }
.av { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent2), var(--accent)); color: var(--deep); font: 600 14px/1 var(--sans); }
.wi div { min-width: 0; }
.wi p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.wn { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 2px !important; }
.wn b { font-weight: 600; }
.bd { font-style: normal; font-size: 10.5px; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.bd.hadir { background: color-mix(in srgb, #2E7D4F 15%, transparent); color: var(--ok); }
.wi time { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.more { display: flex; margin: 10px auto 0; }

/* penutup */
.end { min-height: 92vh; display: grid; place-items: center; text-align: center; padding-bottom: 130px; overflow: hidden; }
.end-bg { position: absolute; inset: -8% 0; }
.end-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: grayscale(.2); }
.end .pat { opacity: .5; }
.end-nm { margin: 6px 0 0; font: 400 clamp(52px, 15vw, 84px)/1.1 var(--script); color: var(--onDeep); }
.brand { margin: 22px 0 0; font-size: 12.5px; letter-spacing: .08em; color: rgba(255, 255, 255, .6); }
.brand a { color: var(--accent2); text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---------- dock & tombol mengambang ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 50; display: flex; justify-content: center; padding: 0 10px; pointer-events: none; transform: translateY(140%); transition: transform .9s var(--ease) 1.4s; }
.is-open .dock { transform: none; }
.dock-in { pointer-events: auto; display: flex; gap: 2px; max-width: 100%; padding: 6px; border-radius: 20px; overflow-x: auto; scrollbar-width: none; background: color-mix(in srgb, var(--deep) 88%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
.dock-in::-webkit-scrollbar { display: none; }
.dock a { flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 58px; padding: 7px 6px 6px; border-radius: 14px; text-decoration: none; color: rgba(255, 255, 255, .7); transition: background .3s, color .3s; }
.dock a svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .3s var(--ease); }
.dock a span { font-size: 10px; letter-spacing: .02em; white-space: nowrap; }
.dock a:hover svg { transform: translateY(-2px); }
.dock a.on { background: linear-gradient(135deg, var(--accent2), var(--accent)); color: var(--deep); }
.fab { position: fixed; right: 12px; bottom: calc(max(10px, env(safe-area-inset-bottom)) + 86px); z-index: 51; display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateX(80px); transition: opacity .6s, transform .9s var(--ease) 1.6s; }
.is-open .fab { opacity: 1; transform: none; }
.fb { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--deep) 85%, transparent); color: var(--accent2); backdrop-filter: blur(8px); box-shadow: 0 8px 20px rgba(0, 0, 0, .25); transition: transform .25s var(--ease), background .25s; }
.fb svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.fb:hover { transform: scale(1.08); } .fb:active { transform: scale(.94); }
.fb.on { background: linear-gradient(135deg, var(--accent2), var(--accent)); color: var(--deep); }
.mus.on svg { animation: spin 4s linear infinite; }
.mus.on::after { content: ""; position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--accent); animation: ring 2s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* toast */
.tsts { position: fixed; left: 50%; bottom: 104px; z-index: 300; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.tst { padding: 10px 18px; border-radius: 999px; background: var(--toastBg); color: var(--toastFg); font-size: 13.5px; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); animation: tIn .35s var(--ease); transition: opacity .4s, transform .4s; }
.tst.out { opacity: 0; transform: translateY(8px); }
@keyframes tIn { from { opacity: 0; transform: translateY(12px); } }

/* ---------- status (loading / tidak tersedia) ---------- */
.boot { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--onDeep); background: var(--pattern), linear-gradient(var(--deep2), var(--deep)); }
.boot .bl { width: 52px; margin: 0 auto 18px; color: var(--accent); animation: spin 6s linear infinite; }
.boot h1 { margin: 0 0 8px; font: 400 44px/1.1 var(--script); color: var(--accent2); }
.boot p { margin: 0 auto 18px; max-width: 26em; color: rgba(255, 255, 255, .8); }
.boot a { display: inline-block; padding: 10px 20px; border-radius: 999px; background: var(--accent); color: var(--deep); text-decoration: none; font-weight: 500; }

/* ---------- tablet & desktop ---------- */
@media (min-width: 720px) {
  .sec { padding: 110px 40px 120px; }
  .cpl { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .amp { margin-top: -120px; }
  .evs { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .gl { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 190px; }
  .acc { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .tl-line { left: 50%; margin-left: -1px; }
  .tl-i { width: 50%; padding: 0 44px 34px 0; }
  .tl-i.r { margin-left: 50%; padding: 0 0 34px 44px; }
  .tl-dot { left: auto; right: -16px; } .tl-i.r .tl-dot { right: auto; left: -16px; }
  .tl-i.l .tl-c { text-align: right; }
}
@media (min-width: 1024px) {
  :root { --colw: min(500px, 40vw); }
  .layout { display: grid; grid-template-columns: 1fr var(--colw); }
  .side { display: block; position: sticky; top: 0; height: 100vh; overflow: hidden; color: #fff; }
  .side-bg { position: absolute; inset: 0; }
  .side-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: kb 3s var(--ease) forwards; }
  .is-locked .side-bg img { animation-play-state: paused; }
  .side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .1), color-mix(in srgb, var(--deep) 70%, transparent) 70%, var(--deep)); }
  .side-in { position: absolute; z-index: 1; left: 0; right: 0; bottom: 64px; padding: 0 48px; text-align: center; }
  .side-nm { margin: 6px 0 0; font: 400 clamp(64px, 6vw, 96px)/1.05 var(--script); text-shadow: 0 4px 26px rgba(0, 0, 0, .3); }
  .side-dt { margin: 0; font: 500 19px/1.4 var(--serif); letter-spacing: .1em; }
  .side-to { margin: 14px 0 0; font-size: 14px; color: rgba(255, 255, 255, .78); }
  .col { box-shadow: -20px 0 50px rgba(0, 0, 0, .3); }
  .sec { padding: 96px 34px 110px; }
  .hero .hero-in { padding-bottom: 110px; }
  .cpl { grid-template-columns: 1fr; } .amp { margin-top: 0; }
  .evs { grid-template-columns: 1fr; }
  .gl { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .acc { grid-template-columns: 1fr; }
  .tl-line { left: 19px; margin: 0; } .tl-i, .tl-i.r { width: auto; margin: 0; padding: 0 0 30px 54px; } .tl-dot, .tl-i.r .tl-dot { left: 4px; right: auto; } .tl-i.l .tl-c { text-align: left; }
  .dock { left: auto; right: 0; width: var(--colw); }
  .fab { right: 16px; }
  .tsts { left: auto; right: calc(var(--colw) / 2); transform: translateX(50%); }
  .corners .tl, .corners .bl { left: calc(100vw - var(--colw) - var(--sbw, 0px)); }
  .corners .tr, .corners .br { right: var(--sbw, 0px); }
  .corners .co { width: 90px; }
}

/* ---------- gerak dikurangi ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  [data-rv], .sc, .cv-in > * { opacity: 1 !important; transform: none !important; filter: none !important; }
  [data-rv="draw"] path { stroke-dashoffset: 0 !important; fill-opacity: 1 !important; }
  .is-open .corners .co { opacity: .78; }
  .petals, .cv-petals { display: none; }
}

/* ---------- slot ilustrasi tema (theme.json "art"); tampil hanya bila tema mengisinya ---------- */
.art { display: block; max-width: 100%; height: auto; pointer-events: none; user-select: none; -webkit-user-drag: none; }
/* cover */
.cv-sl { position: absolute; top: 4px; width: clamp(90px, 26vw, 150px); z-index: 1; opacity: 0; transition: opacity 1.2s ease .3s, translate 1.4s var(--ease) .3s; }
.cv-sl.r { right: 4px; translate: 16px -16px; } .cv-sl.l { left: 4px; transform: scaleX(-1); translate: -16px -16px; }
.cover.ready .cv-sl { opacity: 1; translate: 0 0; }
.cv-lt { position: absolute; top: -6px; width: clamp(34px, 9vw, 52px); z-index: 1; transform-origin: 50% 0; opacity: 0; transition: opacity 1s ease .6s; animation: swing 4.5s ease-in-out infinite alternate; }
.cv-lt.l { left: 22%; } .cv-lt.r { right: 22%; animation-delay: -2.2s; }
.cover.ready .cv-lt { opacity: 1; }
.cv-lt { filter: drop-shadow(0 0 14px rgba(255, 210, 120, .55)); }
@keyframes swing { from { rotate: -4deg; } to { rotate: 4deg; } }
/* judul section (slot heading) */
.gable { display: flex; justify-content: center; align-items: flex-end; gap: 0; height: 40px; margin-bottom: 10px; }
.gable .art { height: 40px; width: auto; }
/* salam */
.sec-tr, .sec-bl { position: absolute; z-index: 0; width: clamp(110px, 30vw, 170px); opacity: .9; }
.sec-tr { top: 10px; right: 6px; } .sec-bl { bottom: 10px; left: 6px; width: clamp(130px, 36vw, 200px); }
.ulos-dec { width: 120px; margin: 0 auto 18px; }
/* hitung mundur */
.jb-row { display: flex; justify-content: center; align-items: flex-end; gap: 6px; margin: 4px auto 18px; }
.jb-row .art { width: 74px; } .jb-row .art:nth-child(2) { width: 46px; filter: drop-shadow(0 0 16px rgba(255, 210, 120, .5)); }
/* acara */
.ev-lt { position: absolute; top: 14px; right: 14px; width: 30px; filter: drop-shadow(0 0 10px rgba(255, 200, 110, .45)); }
.ev:nth-child(even) .ev-lt { right: auto; left: 14px; }
/* kisah, rsvp, hadiah, ucapan */
.st-kf { width: 150px; margin: -14px auto 18px; }
.rs-lt { position: absolute; top: -18px; width: 40px; transform-origin: 50% 0; animation: swing 5s ease-in-out infinite alternate; filter: drop-shadow(0 0 14px rgba(255, 210, 120, .5)); }
.rs-lt.l { left: 4px; } .rs-lt.r { right: 4px; animation-delay: -2.5s; }
.gf-amp { width: min(230px, 66vw); margin: -6px auto 18px; filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .18)); transition: transform .5s var(--ease); }
.gf-amp:hover { transform: rotate(-2deg) translateY(-4px); }
.ws-bk { width: min(260px, 72vw); margin: -10px auto 14px; }
/* mempelai: ilustrasi bila foto belum diunggah */
.pf-ph.fig { background: radial-gradient(circle at 50% 35%, var(--paper), var(--soft)); display: grid; place-items: end center; padding-top: 18px; }
.pf-ph.fig .art { height: 92%; width: auto; }
/* penutup */
.end-art { position: relative; width: min(380px, 90%); margin: 0 auto 22px; }
.end-art .eg { width: 100%; }
.end-art .cp { position: absolute; left: 0; right: 0; bottom: 4%; display: flex; justify-content: center; align-items: flex-end; gap: 2px; }
.end-art .cp .art { height: clamp(90px, 28vw, 130px); width: auto; }
.end-art .cp .art:first-child { height: clamp(98px, 30vw, 142px); }
@media (prefers-reduced-motion: reduce) { .cv-sl, .cv-lt, .cv-gi { opacity: 1 !important; transform: none !important; translate: 0 0 !important; } .cv-sl.l { transform: scaleX(-1) !important; } }
#salam .wrap:has(.sec-bl) { padding-bottom: 64px; }
.sec-tr, .sec-bl { opacity: .85; }
.wrap > .sec-tr, .wrap > .sec-bl { position: absolute; }
#salam .sec-tr { top: -60px; right: -14px; } #salam .sec-bl { bottom: -84px; left: -14px; }
/* cover dengan "tanah" ilustrasi (slot coverGround): konten dan tanah disusun berurutan agar tidak saling menimpa */
.cv-frame.gnd { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.cv-frame.gnd .cv-in { flex: 1; justify-content: center; padding: 56px 0 8px; }
.cv-frame.gnd .cv-arch { width: clamp(110px, 30vw, 150px); margin-bottom: 12px; }
.cv-ground { position: relative; z-index: 1; order: 2; flex: none; display: flex; justify-content: center; align-items: flex-end; margin-bottom: 26px; pointer-events: none; }
.cv-gi { --w: 120px; --wn: 120; width: min(var(--w), calc(var(--wn) * .19vw), calc(var(--wn) * .1vh)); margin: 0 -6px; opacity: 0; transform: translateY(28px); transition: opacity 1.2s ease .5s, transform 1.4s var(--ease) .5s; }
.cv-gi:nth-child(2) { transition-delay: .7s; } .cv-gi:nth-child(3) { transition-delay: .9s; }
.cover.ready .cv-gi { opacity: 1; transform: none; }
@media (max-height: 820px) { .cv-frame.gnd .cv-arch { display: none; } }
@media (max-height: 620px) { .cv-ground { display: none; } }
/* lebar ilustrasi lain bisa diatur dari theme.json lewat "w" */
.jb-row .art[style], .gable .art[style] { width: min(var(--w), 30vw); height: auto; }

/* ---------- variasi transisi cover (theme.json: cover.transition) ---------- */
.cvt-fade .gate { transition: opacity 1.2s ease; } .cvt-fade .cover.opening .gate { transform: none; opacity: 0; }
.cvt-rise .cover { transition: transform 1.3s var(--ease-io); } .cvt-rise .cover.opening { transform: translateY(-100%); } .cvt-rise .cover.opening .gate { transform: none; }

/* ---------- ornamen dari file tema (theme.json ornament.* berisi path file) ---------- */
.orn { display: block; width: 100%; height: auto; pointer-events: none; }
.pt .orn { height: 100%; object-fit: contain; animation: swayp calc(var(--dur) / 3) ease-in-out infinite alternate; }
[data-rv="draw"] .orn { opacity: 0; transform: scaleX(.6); transition: opacity 1s ease var(--dl, 0ms), transform 1.4s var(--ease) var(--dl, 0ms); }
[data-rv="draw"].in .orn { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-rv="draw"] .orn { opacity: 1 !important; transform: none !important; } }

/* ---------- backdrop tema (art.backdrop): pemandangan terbelah di pintu cover ---------- */
.has-backdrop .gate { overflow: hidden; }
.has-backdrop .gate::before { content: ""; position: absolute; top: 0; bottom: 0; width: 198%; background: var(--backdrop-sm) center / cover no-repeat; animation: bdZoom 14s ease-out both; }
.has-backdrop .gate.l::before { left: 0; } .has-backdrop .gate.r::before { right: 0; }
.has-backdrop .gate::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--deep) 18%, transparent) 0%, color-mix(in srgb, var(--deep) 46%, transparent) 45%, color-mix(in srgb, var(--deep) 70%, transparent) 100%); }
.has-backdrop .gate.l { box-shadow: inset -1px 0 0 rgba(255, 255, 255, .18); }
.has-backdrop .cv-nm { text-shadow: 0 2px 22px rgba(0, 0, 0, .45); }
@keyframes bdZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (min-width: 900px) { .has-backdrop .gate::before { background-image: var(--backdrop); } }
.has-backdrop .cv-eb, .has-backdrop .cv-dt, .has-backdrop .cv-to { text-shadow: 0 1px 10px rgba(0, 0, 0, .65); }
.ev:has(.ev-lt) h3 { padding-inline: 30px; overflow-wrap: anywhere; }

/* Dress Code */
.dr-pal { list-style: none; margin: 4px auto 22px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 18px; max-width: 34em; }
.dr-pal li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); min-width: 64px; }
.dr-pal i { width: 44px; height: 44px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 55%, #fff); box-shadow: 0 6px 16px rgba(0, 0, 0, .14); }
.dr-g { display: grid; gap: 14px; grid-template-columns: 1fr; max-width: 40em; margin: 0 auto; text-align: left; }
@media (min-width: 640px) { .dr-g { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.dr-c { padding: 18px 20px; }
.dr-c h3 { margin: 0 0 6px; font: 600 17px/1.3 var(--serif); color: var(--heading); }
.dr-c p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.dr-c.no h3 { color: var(--err); }
