/* =========================================================================
   RAUHIN — TEMPLATE NYX · nyx.css
   Nyx, dewi malam. "Malam Menuju Fajar": hitam pekat dengan aksen champagne.
   Ciri khas (referensi 21st.dev):
   - CAKRAWALA CAHAYA (Horizon Glow Hero): garis lengkung champagne menyala
     di puncak tiap bagian; judul berubah dari buram ke tajam saat digulir
   - SOROTAN (Spotlight): sampul gelap, cahaya menyingkap foto mengikuti jari
   - KILAU CHAMPAGNE (Shimmer Text + Sparkles): nama & judul berkilau seperti
     foil, butiran cahaya halus berkedip
   Ubah warna & ukuran huruf di TOKEN.
   ========================================================================= */


/* =========================================================================
   TOKEN
   ========================================================================= */
:root {
  --black: #070707;
  --black-2: #0f0e0c;
  --black-3: #181613;
  --ivory: #f2ece1;            /* teks utama, kontras 17:1 */
  --muted: rgba(242, 236, 225, .72);
  --champ: #e5d2a8;            /* champagne (aksen), kontras 13:1 */
  --champ-deep: #b99d68;
  --line: rgba(229, 210, 168, .22);
  --glow: rgba(229, 210, 168, .38);
  --foil: linear-gradient(110deg, #b99d68 0%, #f3e6c8 28%, #c4a873 44%, #fff6de 54%, #b99d68 72%, #e5d2a8 100%);

  --display: "Marcellus", "Trajan Pro", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --fs-heading: clamp(2.125rem, 1.8rem + 1.6vw, 2.5rem);
  --fs-body: .875rem;

  --col: 480px;
  --pad: clamp(24px, 7vw, 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}


/* =========================================================================
   DASAR
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--black); color: var(--ivory); font-family: var(--sans); font-weight: 300; line-height: 1.6; font-synthesis: none; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.is-closed { overflow: hidden; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
em, i { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--champ); outline-offset: 4px; }
svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.fill { fill: currentColor; stroke: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* foto bernuansa malam: sedikit gelap & hangat */
img { filter: saturate(.8) contrast(1.05) brightness(.92); }


/* =========================================================================
   TIPOGRAFI & KOMPONEN BERSAMA
   ========================================================================= */
.caps { font-size: .625rem; font-weight: 400; letter-spacing: .36em; text-transform: uppercase; color: var(--champ); }
.caps--dim { color: var(--muted); }
.caps b { font-weight: 500; }
.heading { font-family: var(--display); font-size: var(--fs-heading); font-weight: 400; line-height: 1.15; letter-spacing: .01em; }
.body { max-width: 34ch; font-size: var(--fs-body); line-height: 1.9; color: var(--muted); }
.statement { max-width: 22ch; font-family: var(--display); font-size: clamp(1.375rem, 1.2rem + 1vw, 1.625rem); line-height: 1.5; }
.quote { max-width: 30ch; font-family: var(--display); font-size: 1.0625rem; line-height: 1.7; color: var(--ivory); }

/* KILAU CHAMPAGNE — teks berfoil yang berkilau pelan */
.shimmer { color: transparent; background: var(--foil); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; animation: shimmer 7s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -160% 0; } }

/* pemisah: garis + bintang kecil */
.divider { display: flex; align-items: center; gap: 12px; color: var(--champ); }
.divider::before, .divider::after { content: ""; width: 44px; height: 1px; background: linear-gradient(90deg, transparent, var(--champ)); }
.divider::after { transform: scaleX(-1); }
.divider svg { width: 10px; height: 10px; }

/* teks diapit garis tipis: ─── Senin, 12 April 2027 ─── */
.ruled { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: .6875rem; letter-spacing: .28em; text-transform: uppercase; color: var(--ivory); }
.ruled::before, .ruled::after { content: ""; flex: 0 0 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--champ)); }
.ruled::after { transform: scaleX(-1); }

/* monogram dalam lingkaran bercahaya */
.mono {
  display: inline-flex; align-items: center; justify-content: center; width: 66px; height: 66px; border-radius: 50%;
  font-family: var(--display); font-size: 1.375rem; letter-spacing: .04em;
  box-shadow: inset 0 0 0 1px rgba(229, 210, 168, .6), 0 0 0 5px rgba(7, 7, 7, .3), 0 0 0 6px rgba(229, 210, 168, .18), 0 0 28px -4px var(--glow);
}
.mono i { margin: 0 .1em; font-size: .62em; }

/* bingkai tipis berlian di empat sudut (sampul & galeri) */
.frame { position: absolute; z-index: 3; inset: 14px; pointer-events: none; border: 1px solid rgba(229, 210, 168, .35); }
.frame::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(229, 210, 168, .12); }
.frame i { position: absolute; width: 7px; height: 7px; background: var(--champ); transform: rotate(45deg); box-shadow: 0 0 10px var(--glow); }
.frame i:nth-child(1) { top: -4px; left: -4px; }
.frame i:nth-child(2) { top: -4px; right: -4px; }
.frame i:nth-child(3) { bottom: -4px; left: -4px; }
.frame i:nth-child(4) { bottom: -4px; right: -4px; }

/* lingkaran "&" */
.ampring { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font-family: var(--display); font-size: 1.375rem; line-height: 1; color: var(--champ); background: rgba(7, 7, 7, .35); box-shadow: inset 0 0 0 1px rgba(229, 210, 168, .6), 0 0 24px -6px var(--glow); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* lencana teks melingkar yang berputar (sampul dalam & short film) */
.badge { position: relative; display: grid; place-items: center; width: 112px; aspect-ratio: 1; color: var(--champ); }
.badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; fill: currentColor; stroke: none; overflow: visible; animation: spin 28s linear infinite; }
.badge__ring text { font-family: var(--sans); font-size: 12.5px; font-weight: 400; letter-spacing: .32em; text-transform: uppercase; }
.badge__star { width: 14px; height: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* tombol */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 30px;
  border: 1px solid rgba(229, 210, 168, .55); border-radius: 999px; background: transparent; color: var(--champ);
  font-size: .625rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; touch-action: manipulation; transition: background-color .4s, color .4s, border-color .4s, box-shadow .5s, transform .3s;
}
.btn:hover { background: var(--champ); color: var(--black); box-shadow: 0 0 30px var(--glow); }
.btn:active { transform: scale(.98); }
.btn--glow { background: linear-gradient(110deg, #b99d68, #f0e0bb 50%, #b99d68); background-size: 200% 100%; border: 0; color: var(--black); box-shadow: 0 0 34px -4px var(--glow); animation: shimmer 6s linear infinite; }
.btn--glow:hover { color: var(--black); box-shadow: 0 0 44px 0 var(--glow); }
.btn--glow svg { width: 12px; height: 12px; }
.btn--small { min-height: 44px; padding: 0 20px; }
.btn--wide { justify-content: space-between; width: 100%; min-height: 54px; }
.btn[disabled] { opacity: .5; cursor: wait; }

.pager__btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: rgba(7, 7, 7, .3); color: var(--champ); cursor: pointer; transition: background-color .3s, color .3s; }
.pager__btn:hover { background: var(--champ); color: var(--black); }
.pager__count { font-size: .625rem; letter-spacing: .26em; color: var(--muted); }
.pager__count b { font-family: var(--display); font-size: 1.25rem; font-weight: 400; letter-spacing: .04em; color: var(--champ); }


/* =========================================================================
   CAKRAWALA CAHAYA — lengkung tepi "planet" yang menyala di puncak bagian
   ========================================================================= */
.horizon {
  position: absolute; z-index: 0; left: -40%; right: -40%; top: 34px; height: 130vw; max-height: 900px; pointer-events: none;
  border-radius: 50%; border-top: 1px solid rgba(240, 222, 182, .95);
  box-shadow: 0 -16px 50px -12px rgba(229, 210, 168, .5), inset 0 22px 44px -18px rgba(229, 210, 168, .32);
  background: radial-gradient(60% 18% at 50% 0%, rgba(229, 210, 168, .14), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 12%, transparent 34%);
  mask-image: linear-gradient(180deg, #000 0, #000 12%, transparent 34%);
}
.horizon::before {   /* titik terang di puncak lengkung */
  content: ""; position: absolute; left: 50%; top: -3px; width: 160px; height: 6px; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(closest-side, #fff7e2, rgba(229, 210, 168, .4) 50%, transparent);
  filter: blur(1px);
}
.horizon--bottom { z-index: 1; top: auto; bottom: calc(-130vw + 150px); }
.horizon--panel { top: 70px; }
.unblur { will-change: filter, opacity; }

/* butiran cahaya berkedip */
.glints { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }


/* =========================================================================
   00 · SAMPUL — sorotan menyingkap foto; di bawahnya PLANET gelap dengan
   tepi menyala & fajar yang hampir terbit di puncaknya
   ========================================================================= */
.gate { position: fixed; inset: 0; z-index: 80; display: grid; align-items: end; overflow: hidden; background: var(--black); text-align: center; touch-action: none; }
/* foto hanya mengisi langit di atas planet, jadi wajah tidak tertutup */
.gate__photo { position: absolute; top: 0; left: 0; right: 0; height: calc(max(50svh, 100svh - 350px) + 30px); }
.gate__photo img { width: 100%; height: 100%; object-fit: cover; }
/* SOROTAN: lingkaran cahaya di (--x, --y); sisanya tetap samar terlihat */
.spot {
  -webkit-mask-image: radial-gradient(circle var(--r, 170px) at var(--x, 50%) var(--y, 40%), #000 0%, rgba(0, 0, 0, .75) 35%, rgba(0, 0, 0, .1) 100%);
  mask-image: radial-gradient(circle var(--r, 170px) at var(--x, 50%) var(--y, 40%), #000 0%, rgba(0, 0, 0, .75) 35%, rgba(0, 0, 0, .1) 100%);
}
.gate::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(7, 7, 7, .75) 0%, transparent 28%); }
.gate .glints { z-index: 2; }
.gate__top { position: absolute; z-index: 3; top: max(48px, calc(env(safe-area-inset-top) + 34px)); left: 0; right: 0; display: grid; justify-items: center; gap: 14px; }
/* planet: lengkung raksasa berwarna hitam, tepinya menyala champagne */
.planet {
  position: absolute; z-index: 1; left: -60%; right: -60%; top: max(50svh, calc(100svh - 350px)); height: 220vw; border-radius: 50%;
  background: radial-gradient(50% 6% at 50% 0%, rgba(229, 210, 168, .16), transparent 100%), #050505;
  border-top: 1px solid #fff1d0;
  box-shadow: 0 -8px 26px -6px rgba(250, 215, 160, .8), 0 -40px 90px -10px rgba(240, 195, 130, .35), 0 -130px 170px -40px rgba(229, 190, 130, .2), inset 0 18px 40px -16px rgba(250, 215, 160, .45);
}
/* fajar di puncak planet: titik terang + garis kilau mendatar */
.planet__flare { position: absolute; left: 50%; top: 0; width: 60%; height: 2px; translate: -50% -50%; background: linear-gradient(90deg, transparent, rgba(255, 244, 220, .95) 50%, transparent); }
.planet__flare::before { content: ""; position: absolute; left: 50%; top: 50%; width: 120px; height: 34px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, #fffaf0, rgba(255, 230, 185, .7) 40%, transparent); filter: blur(2px); }
.planet__flare::after { content: ""; position: absolute; left: 50%; top: 50%; width: 420px; height: 200px; translate: -50% -60%; border-radius: 50%; background: radial-gradient(closest-side, rgba(250, 215, 160, .28), transparent); }
.gate__content { position: relative; z-index: 3; display: grid; justify-items: center; gap: 14px; padding: 0 calc(var(--pad) + 8px) max(6svh, 40px); }
.gate__names { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 .32em; font-family: var(--display); font-size: clamp(2.75rem, 2.2rem + 3vw, 3.375rem); font-weight: 400; line-height: 1.1; }
.gate__names em { font-size: .6em; }
.gate__guest { display: grid; gap: 6px; margin: 16px 0 10px; }
.gate__name { font-family: var(--display); font-size: 1.375rem; line-height: 1.3; overflow-wrap: anywhere; }
.gate__hint { font-size: .625rem; letter-spacing: .14em; color: rgba(242, 236, 225, .5); }


/* =========================================================================
   LOADING AWAL — "TUANG FOIL EMAS"
   Dua lapis nama bertumpuk: garis tepi tipis (kosong) + foil champagne.
   Lapis foil dipotong clip-path bergelombang dari bawah (diisi nyx.js tiap
   frame) → seperti emas cair dituang naik mengikuti progres.
   ========================================================================= */
.loader {
  position: fixed; inset: 0; z-index: 90; display: grid; place-content: center; justify-items: center; gap: clamp(22px, 4svh, 40px);
  overflow: hidden; text-align: center;
  background: radial-gradient(90% 55% at 50% 100%, rgba(185, 157, 104, .14), transparent 70%), var(--black);
  animation: loader-safety 14s step-end forwards;   /* pengaman bila JS gagal */
}
@keyframes loader-safety { to { visibility: hidden; } }
.loader.is-gone { opacity: 0; transition: opacity .5s; pointer-events: none; }
.loader__bubbles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.loader__kicker { position: relative; animation: loader-in 1.2s .1s both; }
.loader__names { position: relative; padding: 0 var(--pad); }
.loader__layer {
  display: grid; justify-items: center; font-family: var(--display); font-weight: 400; line-height: .98;
  font-size: min(clamp(3.5rem, 2rem + 8vw, 6.5rem), 21vw);
}
.loader__layer em { font-style: normal; font-size: .42em; line-height: 1.5; letter-spacing: .1em; }
.loader__layer--line { color: transparent; -webkit-text-stroke: 1px rgba(229, 210, 168, .42); animation: loader-in 1.4s .2s both; }
.loader__layer--foil { position: absolute; inset: 0; padding: inherit; clip-path: inset(100% 0 0 0); filter: drop-shadow(0 0 18px rgba(229, 210, 168, .25)); }
.loader__layer--foil em { -webkit-text-fill-color: transparent; }
/* kilau yang menyapu nama saat penuh — hanya di huruf (background-clip: text) */
.loader__layer--glare {
  position: absolute; inset: 0; padding: inherit; pointer-events: none; opacity: 0;
  color: transparent; -webkit-text-fill-color: transparent; -webkit-background-clip: text; background-clip: text;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 250, 235, .95) 50%, transparent 60%) 140% 0 / 300% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text;
}
.loader__count { position: relative; display: flex; gap: 1.2em; animation: loader-in 1.2s .3s both; }
.loader__count > span:first-child { color: var(--ivory); font-variant-numeric: tabular-nums; }
.loader__label { color: var(--muted); }
@keyframes loader-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .loader__kicker, .loader__layer--line, .loader__count { animation: none; }
}


/* =========================================================================
   NAVIGASI — tombol cincin + daftar isi bergaris
   ========================================================================= */
.nav-btn {
  position: fixed; z-index: 72; top: max(16px, env(safe-area-inset-top)); right: 16px; display: grid; place-items: center; width: 46px; height: 46px;
  border: 1px solid rgba(229, 210, 168, .6); border-radius: 50%; background: rgba(7, 7, 7, .45); color: var(--champ); cursor: pointer;
  box-shadow: 0 0 18px -4px var(--glow); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: opacity .6s, transform .6s var(--ease), background-color .4s;
}
.nav-btn__lines { display: grid; gap: 5px; width: 16px; }
.nav-btn__lines span { height: 1px; background: currentColor; transition: transform .5s var(--ease); }
.nav-open .nav-btn__lines span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-open .nav-btn__lines span:last-child { transform: translateY(-3px) rotate(-45deg); }
.is-closed .nav-btn { opacity: 0; pointer-events: none; transform: scale(.8); }
.nav-panel { position: fixed; z-index: 71; inset: 0; overflow: hidden; background: var(--black); opacity: 0; visibility: hidden; transition: opacity .7s, visibility .7s; }
.nav-open .nav-panel { opacity: 1; visibility: visible; }
.nav-panel__inner { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 22px; height: 100%; padding: 120px var(--pad) 40px; overflow-y: auto; }
.nav-panel__inner > .caps, .nav-panel__foot { text-align: center; }
.nav-panel__list { border-top: 1px solid var(--line); }
.nav-panel__list a {
  position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 50px; padding: 13px 4px;
  border-bottom: 1px solid var(--line); text-decoration: none; color: var(--muted); transition: color .4s, padding .5s var(--ease), background-color .5s;
}
.nav-panel__list span { font-family: var(--display); font-size: 1.25rem; line-height: 1.2; }
.nav-panel__list small { font-size: .5rem; letter-spacing: .3em; text-transform: uppercase; color: var(--champ-deep); white-space: nowrap; }
/* bagian aktif: berlian menyala di kiri, baris tersorot cahaya */
.nav-panel__list a::before { content: ""; position: absolute; left: 4px; top: 50%; width: 6px; height: 6px; background: var(--champ); transform: translateY(-50%) rotate(45deg) scale(0); box-shadow: 0 0 10px var(--champ); transition: transform .5s var(--ease); }
.nav-panel__list a:hover, .nav-panel__list a.is-active { padding-left: 22px; color: var(--ivory); background: linear-gradient(90deg, rgba(229, 210, 168, .1), transparent 70%); }
.nav-panel__list a:hover::before, .nav-panel__list a.is-active::before { transform: translateY(-50%) rotate(45deg) scale(1); }
.nav-panel__list a.is-active small { color: var(--champ); }
.nav-panel__foot { font-family: var(--display); font-size: 1.25rem; }


/* =========================================================================
   PANEL FOTO KIRI (layar lebar)
   ========================================================================= */
.side { display: none; }
@media (min-width: 900px) {
  .side { display: block; position: fixed; inset: 0 var(--col) 0 0; overflow: hidden; background: var(--black); }
  .side img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
  .side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(7, 7, 7, .9)); }
  .side__text { position: absolute; z-index: 1; left: 64px; bottom: 60px; display: grid; gap: 12px; }
  .side__names { font-family: var(--display); font-size: clamp(3.5rem, 5vw, 5.5rem); line-height: 1.05; }
  .invite { margin-left: auto; width: var(--col); }
  .nav-btn { right: 24px; }
  .nav-panel { left: auto; width: var(--col); }
}


/* =========================================================================
   LAYAR (kerangka umum)
   ========================================================================= */
.invite { position: relative; background: var(--black); }
.screen { position: relative; min-height: 100svh; display: grid; align-content: center; justify-items: start; gap: 14px; padding: 140px var(--pad) 100px; overflow: clip; isolation: isolate; }
.screen--center { justify-items: center; text-align: center; }
.screen--center .body, .screen--center .quote, .screen--center .statement { margin-inline: auto; }
/* isi layar di atas lapisan dekorasi (:where = tanpa bobot, mudah ditimpa) */
.screen > :where(:not(.horizon, .glints, .photo__media, .hero__media, .hero__shade, .hero__arch, .closing__photo, .sunrise, .signature, .sweep)) { position: relative; z-index: 2; }

/* layar foto penuh */
.photo { align-content: end; padding-top: 100px; }
.photo__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.photo__media img, .photo__media video { width: 100%; height: 100%; object-fit: cover; }
.photo::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(90% 55% at 50% 30%, transparent 0%, rgba(7, 7, 7, .35) 60%), linear-gradient(180deg, rgba(7, 7, 7, .4) 0%, transparent 25%, rgba(7, 7, 7, .55) 58%, rgba(7, 7, 7, .96) 100%); }


/* =========================================================================
   01 · SAMPUL DALAM — panggung malam: jendela lengkung membesar jadi
   foto layar penuh saat digulir (bentuk awal jendela diatur nyx.js;
   tanpa animasi = langsung foto penuh)
   ========================================================================= */
.hero { height: 100svh; min-height: 560px; align-content: end; justify-items: center; text-align: center; padding-bottom: 72px; }
/* --k: 0 = jendela lengkung, 1 = layar penuh (diatur nyx.js saat digulir) */
.hero__media {
  --k: 1; --u: calc(1 - var(--k));
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  clip-path: inset(calc(16% * var(--u)) calc(8% * var(--u)) calc(33% * var(--u)) calc(8% * var(--u)) round calc(999px * var(--u)) calc(999px * var(--u)) calc(22px * var(--u)) calc(22px * var(--u)));
}
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
/* gelap di bawah agar nama terbaca saat foto sudah penuh */
.hero__shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(7, 7, 7, .45) 0%, transparent 22%, transparent 48%, rgba(7, 7, 7, .7) 72%, rgba(7, 7, 7, .95) 100%); }
/* garis tipis champagne mengikuti bentuk jendela */
.hero__arch { position: absolute; z-index: 1; top: calc(16% - 9px); left: calc(8% - 9px); right: calc(8% - 9px); bottom: calc(33% - 9px); pointer-events: none; border: 1px solid rgba(229, 210, 168, .5); border-radius: 999px 999px 22px 22px; box-shadow: 0 0 40px -6px var(--glow); }
.hero__kicker { position: absolute; z-index: 2; top: max(52px, 7svh); left: 0; right: 0; text-align: center; }
.hero__text { display: grid; justify-items: center; gap: 12px; }
.hero__names { font-family: var(--display); font-size: clamp(2.75rem, 12vw, 3.5rem); font-weight: 400; line-height: 1.05; letter-spacing: .02em; color: #efe1c0; text-shadow: 0 0 30px rgba(229, 210, 168, .35); }
.hero__names .ch { display: inline-block; white-space: pre; }
.hero__amp { color: var(--champ-deep); font-size: .62em; }
.hero__venue { margin-top: -4px; }
.sweep { position: absolute; z-index: 1; top: -20%; bottom: -20%; left: -50%; width: 40%; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255, 240, 210, .13), transparent); transform: skewX(-16deg); animation: sweep 10s ease-in-out 2.5s infinite; }
@keyframes sweep { 0% { translate: 0 0; } 35%, 100% { translate: 420% 0; } }


/* =========================================================================
   02 · PEMBUKA
   ========================================================================= */
.opening { gap: 20px; }


/* =========================================================================
   03 · MEMPELAI — potret kapsul berpendar, berselang kiri-kanan
   ========================================================================= */
.couple__list { display: grid; gap: 34px; width: 100%; margin-top: 30px; }
.person { display: grid; gap: 22px; }
.person__visual { position: relative; width: 62%; }
.person__halo { position: absolute; z-index: -1; inset: -18% -30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(229, 210, 168, .26), rgba(229, 210, 168, .06) 55%, transparent); pointer-events: none; }
.person__photo { aspect-ratio: 5 / 8; overflow: hidden; border-radius: 999px; box-shadow: 0 0 0 1px rgba(229, 210, 168, .55), 0 0 0 8px var(--black), 0 0 0 9px rgba(229, 210, 168, .2), 0 40px 60px -30px rgba(229, 210, 168, .35); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
/* peran ditulis tegak di samping potret */
.person__role { position: absolute; left: calc(100% + 18px); bottom: 12%; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.person__text { display: grid; justify-items: start; gap: 6px; }
.person__nick { font-family: var(--display); font-size: clamp(2.75rem, 2.3rem + 2.4vw, 3.25rem); font-weight: 400; line-height: 1.05; }
.person__full { margin-bottom: 6px; font-family: var(--display); font-size: 1.0625rem; color: var(--muted); }
.ig-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .75rem; letter-spacing: .12em; color: var(--champ); text-decoration: none; }
/* mempelai kedua: cermin ke kanan */
.person--alt .person__visual { justify-self: end; }
.person--alt .person__role { left: auto; right: calc(100% + 18px); transform: none; }
.person--alt .person__text { justify-items: end; text-align: right; }
.person--alt .body { margin-left: auto; }
.couple__amp { display: flex; align-items: center; gap: 16px; }
.couple__amp::before, .couple__amp::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--champ)); }
.couple__amp::after { transform: scaleX(-1); }


/* =========================================================================
   04 · KISAH — rasi bintang: garis cahaya & bintang menyala per bab
   ========================================================================= */
.timeline { position: relative; width: 100%; margin-top: 30px; padding-left: 36px; }
.timeline__line { position: absolute; left: 8px; top: 10px; bottom: 0; width: 1px; background: var(--line); }
.timeline__fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--champ-deep), #fff3d6); box-shadow: 0 0 10px var(--champ); transform-origin: top; transform: scaleY(0); }
.chapters { display: grid; gap: 60px; }
.chapter { position: relative; display: grid; justify-items: start; gap: 8px; }
.chapter__star { position: absolute; left: -36px; top: .45rem; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--black); color: rgba(229, 210, 168, .35); transition: color .6s, transform .8s var(--ease); }
.chapter__star svg { width: 13px; height: 13px; transition: filter .6s; }
.chapter.is-lit .chapter__star { color: #fff3d6; transform: scale(1.25); }
.chapter.is-lit .chapter__star svg { filter: drop-shadow(0 0 3px var(--champ)) drop-shadow(0 0 10px var(--champ)); }
.chapter__year { font-family: var(--display); font-size: 2.75rem; line-height: 1.05; }
.chapter__title { margin-bottom: 4px; font-family: var(--display); font-size: 1.375rem; font-weight: 400; line-height: 1.2; }


/* =========================================================================
   05 · SAVE THE DATE — gerhana champagne
   ========================================================================= */
.countdown { gap: 18px; }
.eclipse { position: relative; display: grid; place-items: center; width: min(70vw, 280px); aspect-ratio: 1; margin: 16px 0 8px; }
.eclipse::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #0b0a09 60%, #141210 100%); box-shadow: 0 0 0 1px rgba(240, 222, 182, .7), 0 0 50px 8px rgba(229, 210, 168, .32), 0 0 120px 30px rgba(229, 210, 168, .12), inset 0 0 40px rgba(229, 210, 168, .12); }
/* korona berputar */
.eclipse__glow { position: absolute; inset: -18px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 240, 205, .7) 40deg, transparent 90deg, transparent 200deg, rgba(229, 210, 168, .45) 240deg, transparent 290deg); -webkit-mask: radial-gradient(circle, transparent 66%, #000 68%, transparent 74%); mask: radial-gradient(circle, transparent 66%, #000 68%, transparent 74%); filter: blur(2px); animation: spin 14s linear infinite; }
.eclipse__inner { position: relative; display: grid; justify-items: center; gap: 2px; }
.eclipse__day { font-family: var(--display); font-size: 5.25rem; line-height: 1.05; }
.eclipse__month { font-family: var(--display); font-size: 1.0625rem; letter-spacing: .06em; color: var(--muted); }
.count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; max-width: 340px; margin: 6px 0 10px; }
.count div { display: grid; justify-items: center; gap: 4px; padding: 14px 0 12px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, rgba(229, 210, 168, .06), transparent); }
.count__num { display: block; overflow: clip; }
.count__num b { display: block; font-family: var(--display); font-size: 1.75rem; font-weight: 400; line-height: 1.15; color: var(--champ); font-variant-numeric: lining-nums tabular-nums; }
.count span:not(.count__num) { font-size: .5rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }


/* =========================================================================
   06 · RANGKAIAN ACARA — kartu gelap berbingkai cahaya
   ========================================================================= */
.events__list { display: grid; gap: 18px; width: 100%; margin-top: 18px; }
.event {
  position: relative; display: grid; justify-items: start; gap: 6px; padding: 26px 22px 24px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(229, 210, 168, .08), rgba(229, 210, 168, .015) 55%), var(--black-2);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(240, 222, 182, .5), 0 30px 60px -40px rgba(229, 210, 168, .3);
}
.event__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.event__time { font-family: var(--display); font-size: 2.5rem; line-height: 1.05; }
.event__name { font-family: var(--display); font-size: 1.4375rem; font-weight: 400; line-height: 1.2; }
.event .body { font-size: .8125rem; }
.event__rule { width: 40px; height: 1px; margin: 8px 0 4px; background: var(--champ); }
.event__venue { color: var(--ivory); }
.event .btn { margin-top: 10px; }
.events__dress { font-family: var(--display); color: var(--muted); }


/* =========================================================================
   07 · GALERI — semua foto berurutan sambil digulir, pola berulang:
   1 foto selebar (1 kolom), lalu 2 foto berdampingan (2 kolom)
   ========================================================================= */
.moments { gap: 14px; }
.moments__list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: calc(100% + var(--pad) * 2 - 24px); margin: 26px 0 0; justify-self: center; }
.shot { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; padding: 0; border: 0; overflow: hidden; background: var(--black-2); cursor: zoom-in; box-shadow: 0 0 0 1px var(--line); }
.shot img { width: 100%; height: 118%; margin-top: -9%; object-fit: cover; }   /* lebih tinggi untuk efek paralaks */
.shot--wide { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
/* garis cahaya tipis menyala di tepi atas tiap foto */
.shot::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, #fff3d6, transparent); opacity: .8; }

.lightbox { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 5, 5, .97); color: var(--ivory); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(5, 5, 5, .97); }
.lightbox img { max-width: 92vw; max-height: 80svh; object-fit: contain; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--champ); cursor: pointer; }
.lightbox__close { top: max(16px, env(safe-area-inset-top)); right: 16px; }
.lightbox__prev { left: 12px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 12px; top: 50%; translate: 0 -50%; }
.lightbox__count { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; font-size: .625rem; letter-spacing: .3em; color: var(--muted); }


/* =========================================================================
   08 · SHORT FILM — layar bioskop malam: berkas proyektor, layar
   berbingkai champagne, pantulan cahaya di lantai; diputar di tempat
   ========================================================================= */
.film { gap: 14px; }
.cinema { position: relative; width: calc(100% + var(--pad) * 2 - 24px); max-width: 440px; margin: 46px 0 34px; }
/* cahaya lembut memancar dari layar ke kegelapan */
.cinema__beam { position: absolute; z-index: -1; inset: -60px -14%; pointer-events: none; border-radius: 50%; background: radial-gradient(closest-side, rgba(229, 210, 168, .2), rgba(229, 210, 168, .05) 60%, transparent); }
.cinema__screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #000; box-shadow: 0 0 0 1px rgba(229, 210, 168, .6), 0 0 0 6px var(--black), 0 0 0 7px rgba(229, 210, 168, .18), 0 0 70px -10px var(--glow); }
.cinema__screen img { width: 100%; height: 100%; object-fit: cover; opacity: .62; transition: transform 1.6s var(--ease); }
.cinema:hover .cinema__screen img { transform: scale(1.04); }
.cinema__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cinema__play { position: absolute; left: 50%; top: 50%; width: 118px; translate: -50% -50%; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: radial-gradient(closest-side, rgba(7, 7, 7, .7), rgba(7, 7, 7, .45) 85%, transparent); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cinema__play .badge__ring text { font-size: 11.5px; }
.cinema__btn { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--champ); color: var(--black); box-shadow: 0 0 0 8px rgba(229, 210, 168, .16), 0 0 40px var(--glow); transition: transform .6s var(--ease); }
.cinema__play:hover .cinema__btn { transform: scale(1.08); }
.cinema__btn svg { width: 20px; height: 20px; margin-left: 3px; fill: currentColor; stroke: none; }
.cinema__empty { position: absolute; left: 0; right: 0; bottom: 16px; }
.cinema__floor { position: absolute; z-index: -1; left: 8%; right: 8%; bottom: -40px; height: 36px; pointer-events: none; border-radius: 50%; background: radial-gradient(closest-side, rgba(229, 210, 168, .35), transparent); filter: blur(6px); }


/* =========================================================================
   09 · RSVP & UCAPAN — kartu kaca gelap
   ========================================================================= */
.rsvp { justify-items: stretch; gap: 18px; }
.glass { display: grid; gap: 10px; width: 100%; max-width: 400px; justify-self: center; padding: 30px 22px 24px; border-radius: 20px; background: rgba(24, 22, 19, .72); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(240, 222, 182, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.form { display: grid; gap: 22px; width: 100%; margin-top: 10px; }
.field { display: grid; gap: 4px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field__label { font-size: .5625rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.field input[type="text"], .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent;
  font-family: var(--display); font-size: 1.125rem; color: var(--ivory); transition: border-color .3s;
}
.field select option { color: #111; }
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--champ); }
.field__error { font-size: .75rem; color: #f0b3a6; }
.field.has-error input, .field.has-error textarea { border-bottom-color: #f0b3a6; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.choice label { display: flex; align-items: center; justify-content: center; min-height: 46px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .625rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: background-color .3s, color .3s, border-color .3s; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label:has(input:checked) { background: var(--champ); border-color: var(--champ); color: var(--black); }
.choice label:has(input:focus-visible) { outline: 1px solid var(--champ); outline-offset: 3px; }
.form__status { min-height: 1.4em; font-family: var(--display); color: var(--champ); }
.wishes__title { font-size: 1.625rem; }
.wishes__list { display: grid; }
.wish { display: grid; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.wish__msg { font-family: var(--display); font-size: 1rem; line-height: 1.6; overflow-wrap: anywhere; }
.wish__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .5625rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.wish__meta b { font-weight: 500; color: var(--champ); overflow-wrap: anywhere; }
.wishes .btn { justify-self: start; margin-top: 8px; }


/* =========================================================================
   10 · TANDA KASIH — kartu hitam berfoil champagne
   ========================================================================= */
.blackcard {
  position: relative; display: grid; place-items: center; width: min(80vw, 320px); aspect-ratio: 1.586; margin-top: 18px; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: pointer;
  background: radial-gradient(120% 90% at 20% 0%, #24201a, #0c0b0a 60%);
  box-shadow: inset 0 0 0 1px rgba(240, 222, 182, .55), inset 0 0 0 7px #0c0b0a, inset 0 0 0 8px rgba(229, 210, 168, .2), 0 40px 70px -30px rgba(229, 210, 168, .35);
  transition: transform .7s var(--ease), box-shadow .5s;
}
.blackcard:hover { transform: translateY(-4px) rotate(-1.5deg); box-shadow: inset 0 0 0 1px rgba(240, 222, 182, .8), inset 0 0 0 7px #0c0b0a, inset 0 0 0 8px rgba(229, 210, 168, .3), 0 50px 80px -30px rgba(229, 210, 168, .5); }
/* kilatan cahaya menyapu permukaan kartu sesekali */
.blackcard::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 240, 205, .14) 48%, transparent 60%); translate: -120% 0; animation: glare 6.5s ease-in-out infinite; }
@keyframes glare { 0%, 55% { translate: -120% 0; } 100% { translate: 120% 0; } }
.blackcard__mono { display: flex; align-items: baseline; font-family: var(--display); font-size: 2.75rem; letter-spacing: .04em; }
.blackcard__mono i { margin: 0 .08em; font-size: .6em; }
.blackcard__label { position: absolute; left: 0; right: 0; bottom: 16px; font-size: .5625rem; letter-spacing: .34em; text-transform: uppercase; color: var(--champ); }

.sheet { width: min(100vw - 32px, 400px); max-height: 86svh; margin: auto; padding: 0; border: 0; border-radius: 20px; background: var(--black-2); color: var(--ivory); overflow: auto; box-shadow: inset 0 0 0 1px var(--line), 0 0 80px -20px var(--glow); }
.sheet::backdrop { background: rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet__inner { position: relative; display: grid; justify-items: center; gap: 10px; padding: 34px 24px 28px; text-align: center; }
.sheet__close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--champ); cursor: pointer; }
.gift__list { display: grid; gap: 22px; width: 100%; margin-top: 12px; }
.account { display: grid; justify-items: center; gap: 4px; }
.account + .account { padding-top: 22px; border-top: 1px solid var(--line); }
.account__number { font-family: var(--display); font-size: 1.625rem; letter-spacing: .06em; font-variant-numeric: lining-nums tabular-nums; }
.account__name { margin-bottom: 8px; font-family: var(--display); color: var(--muted); }


/* =========================================================================
   11 · PENUTUP — FAJAR: matahari terbit dari balik cakrawala
   ========================================================================= */
.closing { align-content: end; min-height: 118svh; padding-top: 0; padding-bottom: 300px; }
.closing__photo { position: absolute; z-index: 0; top: 0; left: 0; right: 0; height: 64%; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 96%); mask-image: linear-gradient(180deg, #000 30%, transparent 96%); }
.closing__photo img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.closing__text { display: grid; justify-items: center; gap: 12px; }
.closing__text .mono { margin-bottom: 8px; background-color: rgba(7, 7, 7, .4); }
.closing__names { font-family: var(--display); font-size: clamp(2.5rem, 2rem + 3vw, 3.125rem); line-height: 1.1; }
.sunrise { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 300px; overflow: hidden; pointer-events: none; }
.sunrise__sun { position: absolute; left: 50%; top: 150px; width: 220px; height: 220px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, #fff6df 0%, rgba(250, 215, 160, .95) 16%, rgba(240, 190, 120, .4) 40%, rgba(240, 190, 120, .1) 58%, transparent 70%); }
.sunrise__arc {
  position: absolute; left: -45%; right: -45%; top: 150px; height: 150vw; border-radius: 50%; background: #050505;
  border-top: 1px solid #fff3d6;
  box-shadow: 0 -18px 60px -8px rgba(250, 210, 150, .6), 0 -50px 120px -20px rgba(240, 190, 120, .3), inset 0 26px 50px -24px rgba(250, 210, 150, .45);
}
.signature { position: absolute; z-index: 3; left: 0; right: 0; bottom: 34px; display: grid; justify-items: center; gap: 2px; padding: 0 var(--pad); }
.signature .caps { font-size: .5rem; }
.signature__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 14px; }
.signature__links a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: .5625rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--muted); transition: color .3s; }
.signature__links a:hover { color: var(--champ); }
.signature__links svg { width: 12px; height: 12px; color: var(--champ); }
/* 4 tautan (WA, IG, TikTok, web) tidak muat satu baris di layar sempit → rapi 2 × 2 */
.signature { container-type: inline-size; }
@container (max-width: 370px) { .signature__links { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; justify-items: center; column-gap: 22px; } }


/* =========================================================================
   MUSIK & NOTIFIKASI
   ========================================================================= */
.music { position: fixed; z-index: 66; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid rgba(229, 210, 168, .5); border-radius: 50%; background: rgba(7, 7, 7, .55); color: var(--champ); cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: opacity .6s; }
.music svg { width: 16px; height: 16px; }
.music[aria-pressed="true"] svg { animation: twinkle 1.6s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: scale(.6) rotate(45deg); opacity: .5; } }
.is-closed .music { opacity: 0; pointer-events: none; }
@media (min-width: 900px) { .music { right: 24px; } }

/* PENANDA GULIR "FAJAR" — matahari terbit sesuai posisi gulir (--p 0→1, diisi nyx.js) */
.dawnmeter { position: fixed; z-index: 66; left: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: 46px; height: 46px; overflow: hidden; border-radius: 50%; background: rgba(7, 7, 7, .6); box-shadow: inset 0 0 0 1px rgba(229, 210, 168, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: opacity .6s; --p: 0; }
.dawnmeter__sky { position: absolute; inset: 0; background: radial-gradient(80% 70% at 50% 64%, rgba(250, 205, 140, .7), rgba(240, 180, 110, .18) 55%, transparent 80%); opacity: var(--p); }
.dawnmeter__sun { position: absolute; left: 50%; top: 64%; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle, #fff8e6 35%, #f3d39a 70%); box-shadow: 0 0 10px rgba(250, 215, 160, .9); translate: -50% calc(-50% + 14px - var(--p) * 24px); }
.dawnmeter__line { position: absolute; left: 0; right: 0; top: 64%; bottom: 0; background: #070707; border-top: 1px solid var(--champ); }
.is-closed .dawnmeter { opacity: 0; }
@media (min-width: 900px) { .dawnmeter { left: calc(100% - var(--col) + 24px); } }

.toast { position: fixed; z-index: 90; left: 50%; bottom: 84px; translate: -50% 20px; padding: 12px 22px; border-radius: 999px; background: var(--champ); color: var(--black); font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; opacity: 0; visibility: hidden; transition: translate .5s var(--ease), opacity .3s, visibility .5s; }
.toast.is-show { translate: -50% 0; opacity: 1; visibility: visible; }


/* =========================================================================
   GERAK DIKURANGI
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
