/* ════════════════════════════════════════════════════════════════
   KROMATIK — krom cair & foil holografis di atas grafit tengah malam
   ════════════════════════════════════════════════════════════════ */
:root {
    --bg: #0b0c10;
    --bg-2: #111420;
    --bg-3: #161a24;
    --ink: #eef0f8;
    --ink-s: #b6bccf;
    --ink-m: #8a91a8;
    --line: rgba(220, 214, 255, .16);
    --lilac: #c9b6ff;
    --pink: #ffb8d9;
    --cyan: #9ff3ff;
    --mint: #9ff3e6;
    --gold: #ffe7b0;
    --col: 490px;
    --f-d: 'Unbounded', 'Helvetica Neue', Arial, sans-serif;
    --f-s: 'Instrument Serif', 'Times New Roman', serif;
    --f-b: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
    --ease: cubic-bezier(.22, .8, .24, 1);
    --foil: linear-gradient(100deg, #f5d6ff 0%, #a6c8ff 22%, #9ff3e6 40%, #fff1c7 58%, #ffb8d9 76%, #c9b6ff 100%);
    --foil-v: linear-gradient(160deg, #ffffff 0%, #e4d8ff 30%, #a9d9ff 55%, #ffd4ec 80%, #fff0c8 100%);
    --holo-border: linear-gradient(120deg, rgba(255, 198, 234, .9), rgba(185, 166, 255, .9) 30%, rgba(143, 240, 255, .9) 60%, rgba(255, 243, 201, .9));
    --conic: conic-gradient(from 210deg, #ffc6ea, #b9a6ff, #8ff0ff, #9ff3e6, #fff3c9, #ffb8d9, #ffc6ea);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; min-height: 100vh;
    font: 400 15px/1.75 var(--f-b);
    color: var(--ink); background: var(--bg);
    -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body.no-scroll { overflow: hidden; height: 100vh; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }
svg { display: block; }
.ico { width: 16px; height: 16px; flex: none; }

/* teks foil holografis */
.foil { background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Latar tetap: blob krom melayang + butiran ── */
.aura { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.au { position: absolute; display: block; background: center / contain no-repeat; opacity: .22; will-change: transform; }
.au-ring  { width: 70vmax; max-width: 640px; aspect-ratio: 1; left: -28vmax; top: 8vh; background-image: url('blob-ring.svg'); animation: drift1 38s ease-in-out infinite alternate; }
.au-drop  { width: 50vmax; max-width: 460px; aspect-ratio: 1; right: -20vmax; top: 46vh; background-image: url('blob-drop.svg'); opacity: .4; animation: drift2 44s ease-in-out infinite alternate; }
.au-pearl { width: 40vmax; max-width: 380px; aspect-ratio: 1; left: 30%; bottom: -16vmax; background-image: url('blob-pearl.svg'); opacity: .35; animation: drift3 50s ease-in-out infinite alternate; }
@keyframes drift1 { from { transform: translate(0, 0) rotate(0); } to { transform: translate(10vw, 8vh) rotate(40deg); } }
@keyframes drift2 { from { transform: translate(0, 0) rotate(0); } to { transform: translate(-12vw, -10vh) rotate(-30deg); } }
@keyframes drift3 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-8vw, -6vh) scale(1.15); } }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: url('grain.svg'); opacity: .06; mix-blend-mode: overlay; }
body.settled .au { will-change: auto; }

/* ── Kolom & bagian ── */
.stage { max-width: var(--col); margin: 0 auto; position: relative; z-index: 2; overflow: hidden; }
.sec { position: relative; padding: 92px 24px 84px; text-align: center; }
.sec > * { position: relative; z-index: 2; }
.sec-in { max-width: 390px; margin: 0 auto; }
.sec:not(.hero)::before { content: ''; position: absolute; left: 50%; top: 0; width: 240px; height: 24px; margin-left: -120px; z-index: 3; background: url('divider.svg') center / contain no-repeat; opacity: .9; }
.sec-head { margin-bottom: 36px; }
.sec-sub { margin: 14px auto 0; max-width: 320px; font-size: 14px; color: var(--ink-s); }

/* ── Tipografi ── */
.kick { display: inline-block; font: 400 9.5px/1.4 var(--f-d); letter-spacing: .42em; text-transform: uppercase; color: var(--ink-s); padding-left: .42em; }
.h-t { margin-top: 10px; font: 400 42px/1.05 var(--f-s); letter-spacing: -.01em; color: var(--ink); }
.h-t em { font-style: italic; background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.names-xl { display: flex; flex-direction: column; align-items: center; margin: 22px 0 10px; font: 200 46px/1.02 var(--f-d); letter-spacing: -.02em; text-transform: uppercase; }
.names-xl i, .cv-names i { display: block; margin: 6px 0; font: italic 400 34px/1 var(--f-s); color: var(--ink-s); text-transform: none; }
.names-xl.sm { font-size: 36px; }
.date-l { display: inline-flex; align-items: center; gap: 12px; font: 300 11px/1.4 var(--f-d); letter-spacing: .24em; text-transform: uppercase; color: var(--ink); }
.date-l::before, .date-l::after { content: ''; width: 26px; height: 1px; background: var(--holo-border); }
.salam { margin: 28px 0 10px; font: italic 400 20px/1.4 var(--f-s); color: var(--ink); }
.body-c { max-width: 340px; margin: 0 auto 10px; font-size: 14px; line-height: 1.8; color: var(--ink-s); }

/* ── Panel beku dengan tepi holografis ── */
.panel, .ticket, .tl-c, .wish-item, .cd > div {
    position: relative;
    background: linear-gradient(160deg, rgba(34, 38, 56, .78), rgba(16, 18, 28, .82));
    border-radius: 22px;
    box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.panel::after, .ticket::after, .tl-c::after, .cd > div::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
    background: var(--holo-border);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; opacity: .6;
}
.panel { padding: 34px 24px 30px; }

/* ── Portal holografis (bingkai foto bundar) ── */
.pt { position: relative; width: 190px; aspect-ratio: 1; margin: 0 auto; }
.pt-ring { position: absolute; inset: 0; border-radius: 50%; background: var(--conic);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
    animation: spin 14s linear infinite; }
.pt-halo { position: absolute; inset: -16px; border-radius: 50%; border: 1px dashed rgba(220, 214, 255, .28); animation: spin 40s linear infinite reverse; }
.pt-halo::before, .pt-halo::after { content: ''; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 2px rgba(201, 182, 255, .9); }
.pt-halo::before { top: -4px; left: 50%; margin-left: -4px; }
.pt-halo::after { bottom: 14%; right: 4%; width: 5px; height: 5px; background: var(--cyan); box-shadow: 0 0 8px 2px rgba(159, 243, 255, .8); }
.pt-ph { position: absolute; inset: 7px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
    background: radial-gradient(circle at 34% 28%, #3c4466, #141827 62%, #0b0c10); }
.pt-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pt-ph.none::before { content: ''; position: absolute; inset: 0; background: url('blob-pearl.svg') center / 130% no-repeat; opacity: .55; }
.pt-ph.none::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 120%, rgba(201, 182, 255, .35), transparent 60%); }
.pt-mono { position: relative; z-index: 1; font: 200 44px/1 var(--f-d); letter-spacing: -.04em; background: var(--foil-v); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Tombol ── */
.btn, .btn-buka {
    position: relative; overflow: hidden; isolation: isolate;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    margin: 4px; padding: 15px 28px; border: 0; border-radius: 999px;
    font: 400 10.5px/1 var(--f-d); letter-spacing: .26em; text-transform: uppercase; text-decoration: none; cursor: pointer;
    color: var(--ink); background: rgba(255, 255, 255, .06);
    box-shadow: inset 0 0 0 1px rgba(220, 214, 255, .35), 0 14px 26px -18px rgba(0, 0, 0, .9);
    transition: transform .25s var(--ease); -webkit-tap-highlight-color: transparent;
}
.btn::before, .btn-buka::before { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 36%; z-index: -1; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: translateX(-120%) skewX(-18deg); animation: sheen 4.2s ease-in-out infinite; }
@keyframes sheen { 0%, 55% { transform: translateX(-120%) skewX(-18deg); } 100% { transform: translateX(420%) skewX(-18deg); } }
.btn:hover, .btn-buka:hover { transform: translateY(-2px); }
.btn-buka, .btn.holo { color: #14121f; background: var(--foil); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 18px 34px -16px rgba(185, 166, 255, .75); font-weight: 500; }
.btn.sm { padding: 12px 20px; font-size: 9.5px; }
.btn.full { width: calc(100% - 8px); }
.btn:disabled { opacity: .7; cursor: default; transform: none; }
.btn-buka .ico { animation: twinkle 2.4s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(.7) rotate(45deg); } }

/* ── Musik, kilau, toast ── */
.music-toggle-btn { position: fixed; bottom: 22px; right: max(14px, calc(50vw - var(--col) / 2 + 14px)); z-index: 1002; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #14121f; background: var(--foil); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 10px 22px -8px rgba(185, 166, 255, .8); opacity: 0; pointer-events: none; transition: opacity .3s; -webkit-tap-highlight-color: transparent; }
body.opened .music-toggle-btn { opacity: 1; pointer-events: auto; }
.music-toggle-btn svg { width: 18px; height: 18px; }
.music-toggle-btn.playing { animation: spin 5s linear infinite; }
.petals { position: fixed; inset: 0; z-index: 900; pointer-events: none; overflow: hidden; }
.petals i { position: absolute; bottom: -30px; width: var(--s); height: var(--s); background: url('spark.svg') center / contain no-repeat; opacity: 0; animation: rise var(--d) linear var(--w) infinite; will-change: transform; }
@keyframes rise { 0% { transform: translate3d(0, 0, 0) rotate(0) scale(.6); opacity: 0; } 10% { opacity: .9; } 85% { opacity: .6; } 100% { transform: translate3d(var(--x), -108vh, 0) rotate(180deg) scale(1); opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 8000; transform: translate(-50%, 24px); padding: 12px 22px; border-radius: 999px; background: rgba(22, 26, 36, .92); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(220, 214, 255, .35); font-size: 13.5px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* muncul perlahan saat digulir */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1s ease var(--dl, 0s), transform 1.1s var(--ease) var(--dl, 0s); }
[data-reveal].shown { opacity: 1; transform: none; }

/* ════════════════════════════════════════════════════════════════
   COVER — portal holografis
   ════════════════════════════════════════════════════════════════ */
.side { display: none; }
.cover { position: fixed; inset: 0; z-index: 6000; display: grid; place-items: center; overflow: hidden;
    background: radial-gradient(ellipse 90% 60% at 50% 42%, #1c2133 0%, #0f1119 55%, #08090d 100%);
    transition: opacity 1.1s ease .35s; }
.cv-bg { position: absolute; inset: 0; pointer-events: none; }
.cv-blob { position: absolute; display: block; background: center / contain no-repeat; transition: transform 1.4s cubic-bezier(.6, 0, .2, 1), opacity 1.2s ease; }
.cv-blob.b1 { width: 88vmin; max-width: 540px; aspect-ratio: 1; left: -50%; top: -16%; background-image: url('blob-ring.svg'); animation: float1 12s ease-in-out infinite alternate; }
.cv-blob.b2 { width: 66vmin; max-width: 410px; aspect-ratio: 1; right: -34%; bottom: -8%; background-image: url('blob-drop.svg'); animation: float2 14s ease-in-out infinite alternate; }
.cv-blob.b3 { width: 40vmin; max-width: 250px; aspect-ratio: 1; right: -12%; top: 2%; background-image: url('blob-pearl.svg'); opacity: .8; animation: float3 10s ease-in-out infinite alternate; }
@keyframes float1 { to { transform: translate(18px, 26px) rotate(14deg); } }
@keyframes float2 { to { transform: translate(-20px, -22px) rotate(-12deg); } }
@keyframes float3 { to { transform: translate(-12px, 18px) scale(1.06); } }
.cv-grid { position: absolute; inset: 0; opacity: .35;
    background-image: linear-gradient(rgba(220, 214, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(220, 214, 255, .07) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask: radial-gradient(ellipse 70% 55% at 50% 50%, #000 20%, transparent 75%); mask: radial-gradient(ellipse 70% 55% at 50% 50%, #000 20%, transparent 75%); }
.cv-sweep { position: absolute; top: -20%; bottom: -20%; left: -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .18) 40%, rgba(201, 182, 255, .22) 50%, transparent); transform: translateX(0) skewX(-14deg); opacity: 0; }
.cover-in { position: relative; z-index: 3; width: 100%; max-width: 360px; padding: 0 22px; text-align: center; transition: transform 1.2s cubic-bezier(.6, 0, .2, 1), opacity .8s ease; }
.cover-in > * { animation: cvRise 1.2s var(--ease) both; }
.cv-k { animation-delay: .15s; margin-bottom: 26px; }
.cv-k span { font: 300 9.5px/1 var(--f-d); letter-spacing: .5em; text-transform: uppercase; color: var(--ink-s); padding-left: .5em; }
.cv-pt { width: 170px; animation-delay: .3s; }
.cv-names { display: flex; flex-direction: column; align-items: center; margin: 30px 0 10px; font: 200 42px/1 var(--f-d); letter-spacing: -.02em; text-transform: uppercase; animation-delay: .5s; overflow-wrap: anywhere; }
.cv-names i { font-size: 30px; }
.cv-date { font: 300 11px/1 var(--f-d); letter-spacing: .32em; color: var(--ink-s); animation-delay: .65s; }
.cv-to { display: inline-flex; flex-direction: column; gap: 4px; min-width: 220px; max-width: 100%; margin: 26px auto 22px; padding: 13px 22px; border-radius: 18px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(220, 214, 255, .22); animation-delay: .8s; }
.cv-to span { font: 300 9px/1.3 var(--f-d); letter-spacing: .32em; text-transform: uppercase; color: var(--ink-m); }
.cv-to b { font: italic 400 22px/1.3 var(--f-s); color: var(--ink); overflow-wrap: anywhere; }
.btn-buka { animation-delay: 1s; }
@keyframes cvRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* dibuka: portal mengembang & larut, blob mengalir menjauh, cahaya menyapu */
.cover.open { opacity: 0; pointer-events: none; }
.cover.open .cover-in { opacity: 0; transform: scale(1.08); }
.cover.open .cv-pt { animation: portalOut 1.2s cubic-bezier(.6, 0, .2, 1) forwards; }
.cover.open .cv-blob.b1 { transform: translate(-55%, -30%) rotate(-40deg); opacity: 0; }
.cover.open .cv-blob.b2 { transform: translate(55%, 30%) rotate(40deg); opacity: 0; }
.cover.open .cv-blob.b3 { transform: translate(40%, -50%) scale(1.4); opacity: 0; }
.cover.open .cv-sweep { animation: sweep 1.1s ease-in-out forwards; }
@keyframes portalOut { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(5); opacity: 0; } }
@keyframes sweep { 0% { opacity: 0; transform: translateX(0) skewX(-14deg); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateX(420%) skewX(-14deg); } }

/* ════════════════════════════════════════════════════════════════
   SAMBUTAN
   ════════════════════════════════════════════════════════════════ */
.hero { min-height: max(100svh, 720px); display: flex; flex-direction: column; justify-content: center; padding: 110px 22px 90px; overflow: hidden; }
.hero-fx { position: absolute !important; inset: 0; z-index: 0 !important; pointer-events: none; }
.hx { position: absolute; display: block; background: center / contain no-repeat; opacity: 0; }
.hx-ring  { width: 96%; aspect-ratio: 1; left: -58%; top: -8%; background-image: url('blob-ring.svg'); }
.hx-drop  { width: 60%; aspect-ratio: 1; right: -34%; bottom: -2%; background-image: url('blob-drop.svg'); }
.hx-pearl { width: 34%; aspect-ratio: 1; right: -8%; top: 5%; background-image: url('blob-pearl.svg'); }
.hx-sweep { top: -10%; bottom: -10%; left: -50%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .12) 45%, rgba(159, 243, 255, .14) 55%, transparent); }
.hx-spark { width: 18px; aspect-ratio: 1; background-image: url('spark.svg'); }
.hx-spark.s1 { left: 16%; top: 20%; }
.hx-spark.s2 { right: 20%; top: 36%; width: 12px; }
.hx-spark.s3 { left: 24%; bottom: 22%; width: 14px; }
body.opened:not(.settled) .hx { will-change: transform, opacity; }
body.opened .hx-ring  { animation: flowIn1 2.2s cubic-bezier(.2, .7, .2, 1) .15s both, float1 14s ease-in-out 2.4s infinite alternate; --o: .6; }
body.opened .hx-drop  { animation: flowIn2 2.2s cubic-bezier(.2, .7, .2, 1) .3s both, float2 16s ease-in-out 2.5s infinite alternate; --o: .5; }
body.opened .hx-pearl { animation: flowIn3 2s cubic-bezier(.2, .7, .2, 1) .45s both, float3 12s ease-in-out 2.5s infinite alternate; --o: .85; }
body.opened .hx-sweep { animation: sweep 1.6s ease-in-out .5s both; }
body.opened .hx-spark { animation: sparkIn 1s var(--ease) both, twinkle 3s ease-in-out infinite; }
body.opened .hx-spark.s1 { animation-delay: 1.4s, 2.4s; }
body.opened .hx-spark.s2 { animation-delay: 1.7s, 2.8s; }
body.opened .hx-spark.s3 { animation-delay: 2s, 3.2s; }
@keyframes flowIn1 { from { opacity: 0; transform: translate(-30%, -20%) rotate(-40deg) scale(.8); } to { opacity: var(--o); transform: none; } }
@keyframes flowIn2 { from { opacity: 0; transform: translate(30%, 20%) rotate(30deg) scale(.8); } to { opacity: var(--o); transform: none; } }
@keyframes flowIn3 { from { opacity: 0; transform: translate(20%, -30%) scale(.5); } to { opacity: var(--o); transform: none; } }
@keyframes sparkIn { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }
.hero-mono { position: absolute !important; z-index: 1 !important; left: 50%; top: 50%; transform: translate(-50%, -54%); font: 200 min(58vw, 290px)/1 var(--f-d); letter-spacing: -.08em; color: transparent; -webkit-text-stroke: 1px rgba(220, 214, 255, .09); white-space: nowrap; pointer-events: none; }
.hero-mono i { font: italic 400 .6em/1 var(--f-s); -webkit-text-stroke: 1px rgba(220, 214, 255, .09); }
.hero-in { position: relative; }
.hero-in::before { content: ''; position: absolute; inset: -40px -50px; z-index: -1; background: radial-gradient(ellipse 60% 56% at 50% 52%, rgba(11, 12, 16, .82), rgba(11, 12, 16, .4) 60%, transparent 78%); }
.hero-pt { width: 200px; margin-top: 26px; }
.scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 34px; text-decoration: none; }
.scroll-cue span { font: 300 8.5px/1 var(--f-d); letter-spacing: .4em; text-transform: uppercase; color: var(--ink-m); padding-left: .4em; }
.scroll-cue i { position: relative; width: 1px; height: 38px; background: rgba(220, 214, 255, .2); overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 14px; background: var(--foil-v); animation: cue 2s ease-in-out infinite; }
@keyframes cue { from { transform: translateY(-14px); } to { transform: translateY(40px); } }

/* ════════════════════════════════════════════════════════════════
   ISI
   ════════════════════════════════════════════════════════════════ */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 30px; }
.tr-i { position: relative; padding: 1.5px; border: 0; aspect-ratio: 1 / 1.6; border-radius: 999px; background: var(--holo-border); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tr-i > span { position: relative; display: block; width: 100%; height: 100%; border-radius: inherit; overflow: hidden; background: radial-gradient(circle at 40% 30%, #2c3350, #10131d 70%); }
.tr-i img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tr-i.t1 { transform: translateY(22px); }
.tr-i:hover img { transform: scale(1.06); }
.tr-i.ph { cursor: default; }
.tr-orb { position: absolute; inset: -10%; background: center / contain no-repeat; }
.tr-orb.o0 { background-image: url('blob-pearl.svg'); }
.tr-orb.o1 { background-image: url('blob-drop.svg'); transform: scale(.9); }
.tr-orb.o2 { background-image: url('blob-ring.svg'); transform: scale(1.3) rotate(30deg); }
.verse { margin-top: 26px; }
.verse-t { margin-top: 20px; font: italic 400 19px/1.6 var(--f-s); color: var(--ink); }
.verse-s { margin-top: 18px; font: 300 9.5px/1 var(--f-d); letter-spacing: .34em; text-transform: uppercase; color: var(--lilac); }

/* mempelai */
.person { max-width: 330px; margin: 0 auto; }
.p-pt { width: 180px; }
.p-pt.alt .pt-ring { animation-direction: reverse; }
.p-pt .pt-mono { font-size: 64px; }
.p-tag { display: inline-block; margin-top: 26px; padding: 6px 14px; border-radius: 999px; font: 300 8.5px/1 var(--f-d); letter-spacing: .34em; text-transform: uppercase; color: var(--ink-s); box-shadow: inset 0 0 0 1px rgba(220, 214, 255, .25); }
.p-name { margin: 14px 0 8px; font: 300 24px/1.25 var(--f-d); letter-spacing: -.01em; color: var(--ink); overflow-wrap: anywhere; }
.p-par { font-size: 14px; line-height: 1.75; color: var(--ink-s); }
.and { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 38px auto; max-width: 240px; }
.and i { flex: 1; height: 1px; background: var(--holo-border); opacity: .6; }
.and span { font: italic 400 56px/1 var(--f-s); background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .08em; }

/* hitung mundur */
.cd-sec { overflow: hidden; }
.cd-orb { position: absolute !important; z-index: 0 !important; width: 140%; aspect-ratio: 1; left: -20%; top: 4%; background: url('blob-ring.svg') center / contain no-repeat; opacity: .32; animation: spin 60s linear infinite; pointer-events: none; }
.quote-s { margin: 18px auto 30px; max-width: 320px; font: italic 400 18px/1.55 var(--f-s); color: var(--ink-s); }
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; max-width: 360px; margin: 0 auto 30px; }
.cd > div { aspect-ratio: 1 / 1.2; display: grid; place-content: center; border-radius: 18px; }
.cd b { display: block; font: 200 30px/1 var(--f-d); letter-spacing: -.03em; font-variant-numeric: tabular-nums; background: var(--foil-v); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 22px rgba(201, 182, 255, .35); }
.cd span { display: block; margin-top: 10px; font: 300 8px/1 var(--f-d); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-m); padding-left: .26em; }
.cd-photo { position: relative; width: 100%; max-width: 300px; aspect-ratio: 4 / 5; margin: 46px auto 0; padding: 1.5px; border-radius: 160px 160px 26px 26px; background: var(--holo-border); }
.cd-photo img, .cd-photo .cd-mono { position: relative; width: 100%; height: 100%; border-radius: 159px 159px 25px 25px; object-fit: cover; }
.cd-photo.none { display: block; }
.cd-mono { display: flex; align-items: center; justify-content: center; gap: 4px; background: url('blob-pearl.svg') center / 92% no-repeat, radial-gradient(circle at 50% 45%, #2a3050, #0d0f17 72%); font: 200 54px/1 var(--f-d); letter-spacing: -.04em; color: rgba(255, 255, 255, .92); }
.cd-mono i { font: italic 400 .7em/1 var(--f-s); }

/* acara: tiket krom */
.ticket { max-width: 380px; margin: 0 auto 22px; padding: 26px 24px 28px; text-align: left; }
.tk-top { display: flex; align-items: center; justify-content: space-between; }
.tk-no { font: 200 40px/1 var(--f-d); letter-spacing: -.04em; background: var(--foil-v); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tk-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(220, 214, 255, .3); background: rgba(255, 255, 255, .04); }
.tk-ico svg { width: 22px; height: 22px; }
.tk-t { margin-top: 14px; font: 400 36px/1.05 var(--f-s); color: var(--ink); }
.tk-cut { position: relative; height: 1px; margin: 22px -24px 20px; border-top: 1px dashed rgba(220, 214, 255, .25); }
.tk-cut::before, .tk-cut::after { content: ''; position: absolute; top: -12px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); }
.tk-cut::before { left: -12px; }
.tk-cut::after { right: -12px; }
.tk-l { display: grid; gap: 14px; margin: 0 0 22px; }
.tk-l > div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: start; }
.tk-l dt { display: flex; align-items: center; gap: 8px; font: 300 8.5px/1.9 var(--f-d); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-m); }
.tk-l dt .ico { width: 14px; height: 14px; color: var(--lilac); }
.tk-l dd { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.loc { max-width: 380px; margin: 34px auto 0; }
.map { height: 210px; border-radius: 16px; overflow: hidden; margin-bottom: 22px; z-index: 0; background: #1a1d28; box-shadow: 0 0 0 1px rgba(220, 214, 255, .25); }
/* peta gelap: tile OSM dibalik warnanya (filter statis, tidak dianimasikan) */
.map .leaflet-tile-pane { filter: invert(1) hue-rotate(195deg) brightness(.92) contrast(.88) saturate(.6); }
.map.leaflet-container .leaflet-control-attribution { background: rgba(11, 12, 16, .7); color: var(--ink-m); }
.map.leaflet-container .leaflet-control-attribution a { color: var(--ink-s); }
.loc-name { margin-top: 10px; font: 400 26px/1.25 var(--f-s); color: var(--ink); }
.loc-addr { margin: 6px 0 20px; font-size: 14px; color: var(--ink-s); }

/* kisah: garis waktu bercahaya */
.tline { list-style: none; margin: 0 auto; padding: 0; max-width: 380px; position: relative; text-align: left; }
.tline::before { content: ''; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(180deg, rgba(255, 198, 234, 0), rgba(255, 198, 234, .8) 8%, rgba(185, 166, 255, .8) 40%, rgba(143, 240, 255, .8) 75%, rgba(255, 243, 201, 0)); }
.tl-i { position: relative; display: flex; gap: 18px; margin-bottom: 22px; }
.tl-i:last-child { margin-bottom: 0; }
.tl-node { position: relative; flex: none; width: 44px; height: 44px; margin-top: 14px; display: grid; place-items: center; }
.tl-node i { position: absolute; inset: 0; background: url('prism.svg') center / contain no-repeat; animation: prismTurn 9s ease-in-out infinite; }
.tl-i:nth-child(2n) .tl-node i { animation-delay: -3s; }
.tl-node b { position: relative; font: 400 9.5px/1 var(--f-d); color: #fff; text-shadow: 0 0 6px rgba(0, 0, 0, .9); }
@keyframes prismTurn { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(90deg) scale(.92); } }
.tl-c { flex: 1; min-width: 0; padding: 20px 20px 22px; border-radius: 20px; }
.tl-date { display: inline-block; margin-bottom: 8px; padding: 5px 11px; border-radius: 999px; font: 300 8.5px/1.2 var(--f-d); letter-spacing: .2em; text-transform: uppercase; color: #14121f; background: var(--foil); }
.tl-i.h1 .tl-date { background: linear-gradient(100deg, #a6c8ff, #9ff3e6); }
.tl-i.h2 .tl-date { background: linear-gradient(100deg, #ffb8d9, #fff1c7); }
.tl-i.h3 .tl-date { background: linear-gradient(100deg, #c9b6ff, #ffb8d9); }
.tl-c h3 { font: 400 26px/1.15 var(--f-s); color: var(--ink); overflow-wrap: anywhere; }
.tl-c p { margin-top: 8px; font-size: 14px; line-height: 1.75; color: var(--ink-s); overflow-wrap: anywhere; }

/* galeri */
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 400px; margin: 0 auto; }
.gal-i { position: relative; padding: 1.5px; border: 0; border-radius: 20px; aspect-ratio: 1 / 1.2; background: var(--holo-border); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gal-i > span { position: relative; display: block; width: 100%; height: 100%; border-radius: 18.5px; overflow: hidden; background: radial-gradient(circle at 40% 30%, #262c46, #0e1018 72%); }
.gal-i img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gal-i:hover img { transform: scale(1.05); }
.gal-i.g0 { grid-column: span 2; aspect-ratio: 16 / 10; }
.gal-i.g3 { border-radius: 140px 140px 20px 20px; }
.gal-i.g3 > span { border-radius: 138.5px 138.5px 18.5px 18.5px; }
.gal-i.g4 { border-radius: 999px; aspect-ratio: 1 / 1.2; }
.gal-i.g4 > span { border-radius: 999px; }
.gal-i:last-child:nth-child(even) { grid-column: span 2; aspect-ratio: 16 / 10; }
.gal-i.ph { cursor: default; }
.gal-orb { position: absolute; inset: 8%; background: center / contain no-repeat; opacity: .8; }
.gal-orb.o0 { background-image: url('blob-pearl.svg'); }
.gal-orb.o1 { background-image: url('blob-drop.svg'); }
.gal-orb.o2 { background-image: url('blob-ring.svg'); }
.gal-ico { position: absolute; right: 12px; bottom: 12px; width: 20px; height: 20px; color: rgba(255, 255, 255, .55); }

/* ── Form & ucapan ── */
.form { max-width: 400px; margin: 0 auto; text-align: left; }
.f-l { display: block; margin: 18px 0 8px; font: 300 8.5px/1.3 var(--f-d); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-s); }
.form label.f-l[for="rsvpName"] { margin-top: 0; }
.f-in { width: 100%; padding: 13px 16px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(220, 214, 255, .2); color: var(--ink); font: 400 15px/1.5 var(--f-b); outline: none; transition: box-shadow .2s, background .2s; resize: vertical; }
.f-in::placeholder { color: var(--ink-m); }
.f-in:focus { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(201, 182, 255, .8), 0 0 0 4px rgba(201, 182, 255, .14); }
.choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ch input { position: absolute; opacity: 0; pointer-events: none; }
.ch span { display: block; padding: 12px 4px; text-align: center; font: 400 11.5px/1.3 var(--f-b); border-radius: 12px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(220, 214, 255, .2); color: var(--ink-s); cursor: pointer; transition: all .2s; }
.ch input:checked + span { background: var(--foil); color: #14121f; font-weight: 600; box-shadow: 0 8px 18px -10px rgba(185, 166, 255, .8); }
.ch input:focus-visible + span { box-shadow: inset 0 0 0 1px #fff, 0 0 0 3px rgba(201, 182, 255, .35); }
.form .btn { margin-top: 26px; }

.wish-head { display: flex; align-items: center; justify-content: space-between; max-width: 400px; margin: 50px auto 14px; }
.wish-head h3 { font: 400 30px/1.2 var(--f-s); color: var(--ink); }
.wh-live { display: inline-flex; align-items: center; gap: 7px; font: 300 8.5px/1 var(--f-d); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-s); }
.wh-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); animation: live 1.6s ease-in-out infinite; }
@keyframes live { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.wishes { max-width: 400px; margin: 0 auto; display: grid; gap: 10px; max-height: 480px; overflow-y: auto; padding: 2px 4px 2px 0; text-align: left; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(220, 214, 255, .25) transparent; }
.wish-item { --av: var(--lilac); display: flex; gap: 12px; padding: 14px 16px; border-radius: 18px; }
.wish-item.new { animation: wishIn .7s var(--ease) both; }
@keyframes wishIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.wish-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--av); color: #14121f; font: 500 15px/1 var(--f-d); box-shadow: 0 0 16px -4px var(--av); }
.wish-body { min-width: 0; flex: 1; }
.wish-header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wish-name { font: 600 14px/1.3 var(--f-b); color: var(--ink); overflow-wrap: anywhere; }
.wish-badge { padding: 3px 10px; border-radius: 999px; font: 400 8px/1.5 var(--f-d); letter-spacing: .14em; text-transform: uppercase; }
.wish-badge.hadir { background: rgba(159, 243, 230, .16); color: var(--mint); box-shadow: inset 0 0 0 1px rgba(159, 243, 230, .4); }
.wish-badge.tidak { background: rgba(255, 184, 217, .14); color: var(--pink); box-shadow: inset 0 0 0 1px rgba(255, 184, 217, .4); }
.wish-badge.ragu  { background: rgba(255, 231, 176, .13); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(255, 231, 176, .4); }
.wish-message { margin-top: 5px; font-size: 14px; line-height: 1.6; color: var(--ink-s); overflow-wrap: anywhere; }
.wish-time { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-m); }
.wish-empty { text-align: center; padding: 20px; color: var(--ink-m); font: italic 400 17px/1.5 var(--f-s); }

/* ── Kado (partial, panel terang supaya isi partial terbaca) ── */
.gift-box { max-width: 420px; margin: 0 auto; border-radius: 24px; background: #f4f3fa; overflow: hidden; color: #1b1c26; text-align: left; padding: 1.5px; box-shadow: 0 0 0 1.5px rgba(201, 182, 255, .55), 0 26px 50px -30px rgba(0, 0, 0, .9); }
.gift-wrap .gs-heading h2 { font-family: var(--f-s) !important; font-weight: 400 !important; font-size: 32px !important; color: #1b1c26 !important; }
.gift-wrap .gs-heading h2::after { background: linear-gradient(90deg, #c9b6ff, #9ff3e6) !important; }
.gift-wrap .gs-card, .gift-wrap .gs-bank-card { border: 1px solid rgba(110, 90, 158, .2) !important; border-radius: 16px !important; }
.gift-wrap .gs-btn, .gift-wrap .gs-bank-copy { border-radius: 999px !important; font-family: var(--f-b) !important; }
.gift-wrap .gs-btn-buy { background: #1b1c26 !important; color: #fff !important; }
.gift-wrap .gs-bank-logo { background: #e6e1f7 !important; color: #3d3366 !important; }

/* ── Penutup ── */
.end { padding-top: 190px; padding-bottom: 110px; overflow: hidden; }
.end .sec-in { position: relative; }
.end .sec-in::before { content: ''; position: absolute; inset: -30px -50px; z-index: -1; background: radial-gradient(ellipse 62% 54% at 50% 56%, rgba(11, 12, 16, .85), rgba(11, 12, 16, .45) 62%, transparent 80%); }
.end-blob { position: absolute !important; z-index: 0 !important; display: block; background: center / contain no-repeat; pointer-events: none; }
.end-blob.e1 { width: 110%; aspect-ratio: 1; left: -55%; top: 18%; background-image: url('blob-ring.svg'); opacity: .38; animation: float1 14s ease-in-out infinite alternate; }
.end-blob.e2 { width: 70%; aspect-ratio: 1; right: -30%; bottom: 2%; background-image: url('blob-drop.svg'); opacity: .32; animation: float2 16s ease-in-out infinite alternate; }
.end-word { position: absolute !important; z-index: 1 !important; left: 0; right: 0; top: 52px; font: 200 64px/.92 var(--f-d); letter-spacing: -.05em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(220, 214, 255, .16); pointer-events: none; }
.end-pt { width: 170px; margin-bottom: 34px; }
.fam { margin: 24px 0 28px; display: grid; gap: 16px; font-size: 14px; color: var(--ink); }
.fam span { display: block; margin-bottom: 4px; font: 300 8.5px/1.5 var(--f-d); letter-spacing: .28em; text-transform: uppercase; color: var(--ink-m); }
.end-credit { font-size: 12px; color: var(--ink-m); }

/* ── Lightbox ── */
.gallery-lightbox { display: none; position: fixed; inset: 0; z-index: 7000; align-items: center; justify-content: center; background: rgba(6, 7, 11, .95); opacity: 0; transition: opacity .3s; }
.lb-img-wrap img { max-width: 92vw; max-height: 80vh; border-radius: 16px; box-shadow: 0 0 0 1.5px rgba(201, 182, 255, .6); }
.lb-close, .lb-prev, .lb-next { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--foil); color: #14121f; font: 400 20px/1 var(--f-b); cursor: pointer; }
.lb-close { top: 18px; right: 18px; font-size: 15px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: var(--ink-s); font: 300 10px/1 var(--f-d); letter-spacing: .24em; }

/* ════════════════════════════════════════════════════════════════
   DESKTOP: foto/komposisi di kiri (tetap), undangan di kolom kanan
   ════════════════════════════════════════════════════════════════ */
@media (min-width: 900px) {
    .side { display: block; position: fixed; top: 0; bottom: 0; left: 0; right: var(--col); z-index: 1; overflow: hidden; background: radial-gradient(ellipse 80% 70% at 50% 45%, #1c2133, #0b0c10 70%); }
    .side-photo { position: absolute; inset: 0; background: center / cover no-repeat; animation: zoomSlow 20s ease-in-out infinite alternate; }
    .side-photo.none { display: none; }
    .side-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 12, 16, .1) 30%, rgba(11, 12, 16, .9)); }
    .side-blob { position: absolute; display: block; background: center / contain no-repeat; }
    .side-blob.s1 { width: 42vw; aspect-ratio: 1; left: -20vw; top: -18vh; background-image: url('blob-ring.svg'); opacity: .8; animation: float1 14s ease-in-out infinite alternate; }
    .side-blob.s2 { width: 30vw; aspect-ratio: 1; right: -4vw; bottom: -6vh; background-image: url('blob-drop.svg'); opacity: .7; animation: float2 16s ease-in-out infinite alternate; }
    .side-blob.s3 { width: 16vw; aspect-ratio: 1; right: 12%; top: 14%; background-image: url('blob-pearl.svg'); opacity: .85; animation: float3 12s ease-in-out infinite alternate; }
    .side-photo:not(.none) ~ .side-blob { opacity: .35; }
    .side-in { position: absolute; left: 0; right: 0; bottom: 12vh; padding: 0 48px; text-align: center; }
    .side-photo.none ~ .side-shade { background: none; }
    .side-photo.none ~ .side-in { bottom: auto; top: 50%; transform: translateY(-50%); }
    .sd-k { font: 300 11px/1.4 var(--f-d); letter-spacing: .5em; text-transform: uppercase; color: var(--ink-s); }
    .sd-n { display: flex; flex-direction: column; align-items: center; margin: 18px 0 20px; font: 200 clamp(52px, 5.6vw, 96px)/1 var(--f-d); letter-spacing: -.03em; text-transform: uppercase; }
    .sd-n span { background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
    .sd-n i { margin: 10px 0; font: italic 400 .6em/1 var(--f-s); color: var(--ink-s); text-transform: none; }
    .sd-d { font: 300 13px/1.4 var(--f-d); letter-spacing: .4em; color: var(--ink); }
    .stage { margin-left: auto; margin-right: 0; width: var(--col); background: rgba(11, 12, 16, .55); box-shadow: -1px 0 0 rgba(220, 214, 255, .12), -30px 0 60px -30px rgba(0, 0, 0, .9); }
    .aura { left: auto; width: var(--col); }
    .cover { left: auto; right: 0; width: var(--col); }
    .music-toggle-btn { right: 18px; }
    .toast { left: calc(100% - var(--col) / 2); }
    .petals { left: auto; width: var(--col); }
}
@keyframes zoomSlow { to { transform: scale(1.07); } }

@media (max-height: 700px) {
    .cv-pt { width: 130px; }
    .cv-k { margin-bottom: 18px; }
    .cv-names { font-size: 34px; margin: 22px 0 8px; }
    .cv-to { margin: 18px auto 16px; }
}
@media (max-width: 360px) {
    .names-xl { font-size: 38px; }
    .cv-names { font-size: 36px; }
    .cd b { font-size: 25px; }
    .h-t { font-size: 36px; }
    .tk-l > div { grid-template-columns: 82px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
    .petals { display: none; }
    .hx { opacity: .8; animation: none !important; }
    .hx-sweep, .cv-sweep { display: none; }
    .cover-in > * { animation: none !important; opacity: 1; }
}
