/* =========================================================================
   RAUHIN — TEMPLATE THEIA · theia.css
   Theia, dewi cahaya & penglihatan. Dipelajari dari tamubali Sora:
   foto hitam-putih buram sinematik penuh layar, teks putih rata kiri,
   serif sedang + teks kecil tipis rata kanan-kiri, tombol pil kaca.
   Ciri khas THEIA — "FOKUS CAHAYA": foto hitam-putih & buram berubah
   tajam & berwarna saat disinari (dibuka/dilihat).
   Ritme bagian sengaja dibuat beragam: adegan ditahan (prolog, kisah),
   foto menempel (mempelai), baris editorial (hari bahagia), deretan foto.
   Ubah warna & ukuran huruf di TOKEN.
   ========================================================================= */


/* =========================================================================
   TOKEN
   ========================================================================= */
:root {
  --night: #121110;
  --night-2: #1b1a18;
  --white: #f3efe8;                     /* teks utama */
  --soft: rgba(243, 239, 232, .72);     /* teks kedua */
  --line: rgba(243, 239, 232, .2);
  --light: #e6c99b;                     /* aksen cahaya hangat */
  --glass: rgba(243, 239, 232, .1);
  --glass-line: rgba(243, 239, 232, .28);

  --serif: "Inria Serif", Georgia, serif;
  --sans: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
  --fs-heading: clamp(2.25rem, 1.9rem + 2vw, 2.75rem);
  --fs-body: .8125rem;

  --col: 480px;
  --pad: clamp(26px, 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(--night); color: var(--white); font-family: var(--sans); font-weight: 300; line-height: 1.6; -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; }
i { font-style: italic; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--white); 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; }


/* =========================================================================
   TIPOGRAFI & KOMPONEN BERSAMA
   ========================================================================= */
.caps { font-size: .6875rem; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; }
.caps--soft { color: var(--soft); }
.caps b { font-weight: 500; }
.heading { font-family: var(--serif); font-size: var(--fs-heading); font-weight: 300; line-height: 1.08; }
.heading i, .prolog__title i, .finale__names i, .gate__names i { color: var(--light); }
.body { max-width: 36ch; font-size: var(--fs-body); line-height: 1.9; color: var(--soft); text-align: justify; hyphens: auto; }
.statement { max-width: 22ch; font-family: var(--serif); font-size: clamp(1.5rem, 1.3rem + 1vw, 1.75rem); font-weight: 300; font-style: italic; line-height: 1.4; }
.quote { max-width: 32ch; font-family: var(--serif); font-size: 1.125rem; font-style: italic; line-height: 1.5; color: var(--soft); }
.note { font-size: .625rem; color: var(--soft); }
.rule { display: block; width: 40px; height: 1px; background: var(--light); }
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .75rem; letter-spacing: .08em; text-decoration: none; color: var(--light); }
.link svg { width: 14px; height: 14px; }

/* judul muncul baris demi baris (diatur theia.js) */
.rise .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.rise .line > span { display: inline-block; }

/* FOKUS CAHAYA: foto hitam-putih buram → tajam berwarna saat .is-lit */
.focus { overflow: hidden; }
.focus img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) blur(5px) brightness(.72); transform: scale(1.08); transition: filter 1.8s var(--ease), transform 2.6s var(--ease); }
.focus.is-lit img { filter: grayscale(0) blur(0) brightness(.95); transform: scale(1); }

/* tombol pil kaca */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 48px; padding: 0 22px 0 26px;
  border: 0; border-radius: 999px; background: var(--glass); color: var(--white);
  box-shadow: inset 0 0 0 1px var(--glass-line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: .6875rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; touch-action: manipulation; transition: background-color .4s, color .4s, transform .3s;
}
.btn:hover { background: var(--white); color: var(--night); }
.btn:active { transform: scale(.98); }
.btn--light { background: var(--white); color: var(--night); box-shadow: none; }
.btn--light:hover { background: var(--light); }
.btn--ghost { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; justify-content: center; }
.btn--small { min-height: 44px; padding: 0 20px; font-size: .625rem; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .5; cursor: wait; }
.btn svg { width: 14px; height: 14px; }

/* kartu kaca */
.glass { width: 100%; padding: 26px 22px 22px; border-radius: 18px; background: rgba(18, 17, 16, .45); box-shadow: inset 0 0 0 1px var(--glass-line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }


/* =========================================================================
   00 · SAMPUL
   ========================================================================= */
.gate { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; background: var(--night); }
.gate__media { position: absolute; inset: 0; }
.gate::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 17, 16, .2) 0%, rgba(18, 17, 16, .1) 35%, rgba(18, 17, 16, .78) 70%, rgba(18, 17, 16, .95)); }
.gate__text { position: relative; z-index: 1; display: grid; justify-items: start; gap: 8px; width: 100%; padding: 0 var(--pad) max(8svh, 44px); }
.gate__names { font-family: var(--serif); font-size: clamp(2.5rem, 2rem + 3vw, 3rem); font-weight: 300; line-height: 1.05; }
.gate .rule { margin: 14px 0 6px; }
.gate__dear { font-family: var(--serif); font-style: italic; color: var(--soft); }
.gate__name { margin-top: -4px; font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; overflow-wrap: anywhere; }
.gate .note { margin-bottom: 14px; }


/* =========================================================================
   LOADING AWAL — "CELAH CAHAYA"
   --w  lebar celah (0 = satu garis · 100vw = terbuka penuh, dari theia.js)
   Foto di celah = foto sampul layar penuh yang dipotong clip-path, sama
   posisi & skalanya dengan .gate, jadi saat tirai terbuka tidak ada lompatan.
   ========================================================================= */
.loader {
  --w: 0px;
  position: fixed; inset: 0; z-index: 90; overflow: hidden; background: #0a0908;
  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__slit { position: absolute; inset: 0; clip-path: inset(0 calc(50% - var(--w) / 2)); }
.loader__slit img { width: 100%; height: 100%; max-width: none; object-fit: cover; transform: scale(1.08); filter: brightness(.95); }
/* pendaran cahaya di kegelapan sekitar celah */
.loader__spill {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(calc(var(--w) * .9 + 90px) 70% at 50% 50%, rgba(230, 201, 155, .16), transparent 70%);
}
/* tepi celah: garis cahaya tipis berpendar (berimpit = satu garis saat --w 0) */
.loader__edge {
  position: absolute; top: 0; bottom: 0; width: 1px; background: #fbf3e4;
  box-shadow: 0 0 6px 1px rgba(251, 243, 228, .9), 0 0 26px 4px rgba(230, 201, 155, .55);
  transform-origin: 50% 50%; animation: loader-grow 1.6s cubic-bezier(.7, 0, .2, 1) .2s both;
}
.loader__edge--l { left: calc(50% - var(--w) / 2); }
.loader__edge--r { left: calc(50% + var(--w) / 2 - 1px); }
@keyframes loader-grow { from { transform: scaleY(0); } }

.loader__text { position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%; z-index: 2; display: grid; justify-items: center; gap: 16px; padding: 0 var(--pad); text-align: center; }
.loader__kicker { animation: loader-in 1.2s .9s both; }
.loader__names { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .28em; font-family: var(--serif); font-size: clamp(2.75rem, 1.6rem + 6vw, 5rem); font-weight: 300; line-height: 1.05; text-shadow: 0 4px 30px rgba(10, 9, 8, .75); }
.loader__nm { display: inline-flex; }
.loader__amp { font-size: .8em; color: var(--light); }
.loader__ch { display: inline-block; white-space: pre; }
.loader__names .loader__ch, .loader__amp { opacity: 0; }   /* masuk satu per satu lewat theia.js */
.loader__meter { display: flex; gap: 1.2em; animation: loader-in 1.2s 1.1s both; }
.loader__meter > span:first-child { color: var(--white); font-variant-numeric: tabular-nums; }
@keyframes loader-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .loader__edge, .loader__kicker, .loader__meter { animation: none; }
  .loader__names .loader__ch, .loader__amp { opacity: 1; }
}


/* =========================================================================
   NAVIGASI "SOROT" — kapsul penanda + daftar isi pita foto
   ========================================================================= */
/* kapsul kaca atas-tengah: titik cahaya · nama bagian + garis kemajuan · ikon */
.capsule {
  position: fixed; z-index: 72; left: 50%; top: max(14px, env(safe-area-inset-top)); translate: -50% 0;
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 6px 0 18px; border: 0; border-radius: 999px;
  background: rgba(18, 17, 16, .55); color: var(--white); cursor: pointer; box-shadow: inset 0 0 0 1px var(--glass-line), 0 18px 40px -20px rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: opacity .6s, background-color .4s;
}
.capsule:hover { background: rgba(18, 17, 16, .75); }
.capsule__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--light); box-shadow: 0 0 10px 2px rgba(230, 201, 155, .8); animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 50% { opacity: .45; } }
.capsule__text { display: grid; gap: 6px; min-width: 96px; text-align: left; }
.capsule__label { font-size: .5625rem; letter-spacing: .24em; text-transform: uppercase; white-space: nowrap; }
.capsule__bar { position: relative; display: block; height: 1px; background: var(--line); }
.capsule__bar b { position: absolute; inset: 0; background: var(--light); transform-origin: left; transform: scaleX(0); }
.capsule__icon { display: grid; place-items: center; place-content: center; gap: 5px; width: 36px; height: 36px; border-radius: 50%; background: var(--glass); }
.capsule__icon span { display: block; width: 14px; height: 1px; background: currentColor; transition: transform .5s var(--ease); }
.nav-open .capsule__icon span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-open .capsule__icon span:last-child { transform: translateY(-3px) rotate(-45deg); }
.is-closed .capsule, .is-closed .music { opacity: 0; pointer-events: none; }
.is-closed .invite, .is-closed .side { visibility: hidden; }

/* daftar isi: terbuka seperti cahaya melebar dari kapsul (clip-path lingkaran) */
.nav-panel {
  position: fixed; z-index: 71; inset: 0; background: rgba(12, 11, 10, .96); visibility: hidden;
  clip-path: circle(0% at 50% 38px); transition: clip-path .7s cubic-bezier(.65, 0, .35, 1), visibility 0s .7s;
}
.nav-open .nav-panel { visibility: visible; clip-path: circle(150% at 50% 38px); transition: clip-path 1s cubic-bezier(.65, 0, .35, 1); }
.nav-panel__inner { display: flex; flex-direction: column; justify-content: center; gap: 22px; height: 100%; padding: 100px var(--pad) 48px; overflow-y: auto; }
.nav-panel__head { display: flex; align-items: baseline; justify-content: space-between; }
.nav-panel__names { font-family: var(--serif); font-size: 1.125rem; font-weight: 300; }
.nav-panel__names i { color: var(--light); }
/* baris bergaris tipis; bagian aktif "disorot": titik cahaya, huruf miring,
   sorot cahaya lembut di belakangnya */
.reels { border-top: 1px solid var(--line); }
.reel {
  position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 4px;
  border-bottom: 1px solid var(--line); text-decoration: none; color: var(--soft); transition: color .5s, padding .7s var(--ease);
}
.reel::before { content: ""; position: absolute; left: 4px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--light); box-shadow: 0 0 12px 3px rgba(230, 201, 155, .7); transform: translateY(-50%) scale(0); transition: transform .6s var(--ease); }
.reel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 0% 50%, rgba(230, 201, 155, .14), transparent 70%); opacity: 0; transition: opacity .6s; }
.reel__name { font-family: var(--serif); font-size: 1.625rem; font-weight: 300; line-height: 1.1; }
.reel__sub { font-size: .5625rem; letter-spacing: .24em; text-transform: uppercase; color: var(--soft); white-space: nowrap; }
.reel:hover { color: var(--white); }
.reel.is-active { padding-left: 24px; color: var(--white); }
.reel.is-active::before { transform: translateY(-50%) scale(1); }
.reel.is-active::after { opacity: 1; }
.reel.is-active .reel__name { font-style: italic; }
.reel.is-active .reel__sub { color: var(--light); }


/* =========================================================================
   LAYAR LEBAR — foto penuh di kiri, isi undangan di kanan
   ========================================================================= */
.side { display: none; }
@media (min-width: 900px) {
  .side { display: block; position: fixed; inset: 0 var(--col) 0 0; background: var(--night); }
  .side__media { position: absolute; inset: 0; }
  .side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(18, 17, 16, .85)); }
  .side__text { position: absolute; z-index: 1; left: 64px; bottom: 60px; display: grid; gap: 12px; }
  .side__names { font-family: var(--serif); font-size: clamp(3.5rem, 5vw, 5.5rem); font-weight: 300; line-height: 1; }
  .side__names i { color: var(--light); }
  .invite { margin-left: auto; width: var(--col); }
  .capsule { left: calc(100% - var(--col) / 2); }
  .nav-panel { left: auto; width: var(--col); clip-path: circle(0% at 50% 38px); }
}


/* =========================================================================
   LAYAR (kerangka umum) — rata kiri
   ========================================================================= */
.invite { position: relative; background: var(--night); }
.screen { position: relative; min-height: 100svh; display: grid; align-content: center; justify-items: start; gap: 16px; padding: 120px var(--pad) 110px; isolation: isolate; }
.scene { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; }
.scene__media { position: absolute; inset: 0; z-index: -1; }
.scene::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18, 17, 16, .35), rgba(18, 17, 16, .1) 30%, rgba(18, 17, 16, .55) 60%, rgba(18, 17, 16, .92)); }


/* =========================================================================
   01 · PROLOG — nama → kutipan dalam satu adegan
   ========================================================================= */
.prolog__names, .prolog__quote { display: grid; justify-items: start; gap: 14px; padding: 0 var(--pad); }
.prolog__names { min-height: 100svh; align-content: end; padding-bottom: 110px; }
.prolog__quote { padding-top: 40px; padding-bottom: 120px; }
/* nama: mengecil bila ada kata sangat panjang (var --nick-word dari core.js);
   cqi = lebar kolom pembungkusnya (bukan layar) */
.prolog__names, .screen.finale { container-type: inline-size; }
.prolog__title { font-family: var(--serif); font-size: min(clamp(3.75rem, 2.8rem + 5vw, 4.75rem), calc((100cqi - .5rem) / (var(--nick-word, 4) * .56))); font-weight: 300; line-height: .95; }
.prolog__title i { font-size: .6em; }
.hint { display: grid; place-items: center; width: 44px; height: 44px; margin-top: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--glass-line); animation: hint 2.4s ease-in-out infinite; }
@keyframes hint { 50% { transform: translateY(6px); } }
/* mode adegan ditahan (diaktifkan theia.js bila animasi aktif) */
.pin .prolog { height: 100svh; }
.pin .prolog__names { position: absolute; inset: 0; }
.pin .prolog__quote { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 96px; }


/* =========================================================================
   02 · MEMPELAI — foto menempel di belakang, keterangan bergulir
   ========================================================================= */
.couple { position: relative; }
.couple__stage { position: sticky; top: 0; height: 100svh; margin-bottom: -100svh; overflow: hidden; }
.couple__stage figure { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.couple__stage figure.is-on { opacity: 1; }
.couple__stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 17, 16, .45), rgba(18, 17, 16, .25) 30%, rgba(18, 17, 16, .65) 62%, rgba(18, 17, 16, .95)); }
.couple__list { position: relative; z-index: 1; text-shadow: 0 1px 14px rgba(0, 0, 0, .55); }
.person { display: grid; align-content: end; justify-items: start; gap: 8px; min-height: 100svh; padding: 120px var(--pad) 110px; }
.person__nick { font-family: var(--serif); font-size: clamp(3.25rem, 2.6rem + 4vw, 4rem); font-weight: 300; font-style: italic; line-height: 1; color: var(--light); }
.person__full { margin-bottom: 4px; font-family: var(--serif); font-size: 1.25rem; }


/* =========================================================================
   03 · KISAH — adegan ditahan, foto diusap per bab
   ========================================================================= */
.story__media { position: absolute; inset: 0; z-index: -1; }
.story__media figure { position: absolute; inset: 0; }
.story__label { position: absolute; top: 110px; left: var(--pad); }
.story__list { display: grid; gap: 60px; padding: 180px var(--pad) 120px; }
.chapter { display: grid; justify-items: start; gap: 8px; }
.chapter__year { font-family: var(--serif); font-size: 3.25rem; font-weight: 300; font-style: italic; line-height: 1; color: var(--light); }
.chapter__title { font-family: var(--serif); font-size: 1.625rem; font-weight: 400; line-height: 1.15; }
.story__count { position: absolute; right: var(--pad); top: 102px; font-size: .625rem; letter-spacing: .2em; color: var(--soft); }
.story__count b { font-family: var(--serif); font-size: 1.375rem; font-weight: 300; letter-spacing: 0; color: var(--white); }
.story__count { display: none; }
/* mode adegan ditahan: bab bertumpuk di bawah, hanya satu yang tampil */
.pin .story { height: 100svh; }
.pin .story__list { position: absolute; left: 0; right: 0; bottom: 96px; display: block; padding: 0 var(--pad); }
.pin .chapter { position: absolute; left: var(--pad); right: var(--pad); bottom: 0; }
.pin .story__count { display: block; }


/* =========================================================================
   04 · HARI BAHAGIA — save the date + acara
   ========================================================================= */
.day { gap: 18px; }
.day__top { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 20px; width: 100%; margin-top: 10px; }
.flip { position: relative; width: min(46vw, 180px); aspect-ratio: 1; border-radius: 4px; }
.flip img { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease, filter 1.8s var(--ease), transform 2.6s var(--ease); }
.flip img.is-on { opacity: 1; }
.day__date { display: grid; gap: 4px; }
.day__num { font-family: var(--serif); font-size: 4.5rem; font-weight: 300; line-height: .9; color: var(--light); }
.count { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; margin: 14px 0 6px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.count div { display: grid; justify-items: start; gap: 2px; padding: 16px 0 14px; }
.count div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.count__num { display: block; overflow: clip; }
.count__num b { display: block; font-family: var(--serif); font-size: 2.25rem; font-weight: 300; line-height: 1.05; font-variant-numeric: lining-nums tabular-nums; }
.count span:not(.count__num) { font-size: .5rem; letter-spacing: .24em; text-transform: uppercase; color: var(--soft); }
.events { display: grid; gap: 16px; width: 100%; margin-top: 70px; }
.events__list { border-top: 1px solid var(--line); }
.event { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.event__time { display: grid; align-content: start; gap: 2px; }
.event__time b { font-family: var(--serif); font-size: 1.75rem; font-weight: 300; line-height: 1; color: var(--light); }
.event__time span { font-size: .5625rem; letter-spacing: .24em; color: var(--soft); }
.event__info { display: grid; justify-items: start; gap: 6px; }
.event__name { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; line-height: 1.15; }
.event__venue { margin-top: 6px; font-size: .75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.dress { margin-top: 8px; font-family: var(--serif); font-style: italic; color: var(--soft); }


/* =========================================================================
   05 · FILM & GALERI
   ========================================================================= */
.moments { gap: 18px; }
.screenbox { position: relative; width: calc(100% + var(--pad) * 2); margin: 14px calc(var(--pad) * -1) 0; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.screenbox img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: transform 1.4s var(--ease); }
.screenbox:hover img { transform: scale(1.04); }
.screenbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.screenbox__play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 64px; height: 64px; border: 0; border-radius: 50%; background: var(--glass); color: var(--white); cursor: pointer; box-shadow: inset 0 0 0 1px var(--glass-line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform .5s var(--ease), background-color .4s; }
.screenbox__play:hover { transform: scale(1.08); background: rgba(243, 239, 232, .25); }
.screenbox__play svg { width: 20px; height: 20px; margin-left: 3px; fill: currentColor; stroke: none; }
.screenbox__empty { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; }
.moments .quote { margin-top: 4px; }
/* deretan foto: tengah tajam berwarna, samping buram & abu (diatur theia.js) */
.strip { display: grid; gap: 18px; width: calc(100% + var(--pad) * 2); margin: 46px calc(var(--pad) * -1) 0; }
.strip__track { display: flex; gap: 12px; padding: 0 18%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.strip__track::-webkit-scrollbar { display: none; }
.gslide { flex: 0 0 100%; aspect-ratio: 3 / 4.2; padding: 0; border: 0; overflow: hidden; border-radius: 4px; scroll-snap-align: center; background: var(--night-2); cursor: zoom-in; }
.gslide img { width: 100%; height: 100%; object-fit: cover; }
.pager { display: flex; align-items: center; gap: 18px; padding: 0 var(--pad); }
.pager__btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--glass); color: var(--white); cursor: pointer; box-shadow: inset 0 0 0 1px var(--glass-line); }
.pager__count { font-size: .625rem; letter-spacing: .2em; color: var(--soft); }
.pager__count b { font-family: var(--serif); font-size: 1.25rem; font-weight: 300; letter-spacing: 0; color: var(--white); }
.strip__note { padding: 0 var(--pad); }

.lightbox { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(18, 17, 16, .96); color: var(--white); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(18, 17, 16, .96); }
.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: 0; border-radius: 50%; background: var(--glass); color: var(--white); cursor: pointer; box-shadow: inset 0 0 0 1px var(--glass-line); }
.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(--soft); }


/* =========================================================================
   06 · RSVP, UCAPAN & TANDA KASIH — di atas foto buram hitam-putih
   ========================================================================= */
.respond { gap: 18px; }
.respond__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.respond__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) blur(14px) brightness(.45); transform: scale(1.15); }
.respond .glass { margin-top: 10px; }
.respond .glass > .body { margin-bottom: 6px; }
.form { display: grid; gap: 22px; margin-top: 10px; }
.field { display: grid; gap: 4px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field__label { font-size: .5625rem; letter-spacing: .26em; text-transform: uppercase; color: var(--soft); }
.field input[type="text"], .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--glass-line); border-radius: 0; background: transparent;
  font-family: var(--serif); font-size: 1.25rem; color: var(--white); 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(--white); }
.field__error { font-size: .75rem; color: #f1b3a3; }
.field.has-error input, .field.has-error textarea { border-bottom-color: #f1b3a3; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.choice label { display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--glass-line); cursor: pointer; font-size: .625rem; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); transition: background-color .3s, color .3s; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label:has(input:checked) { background: var(--white); color: var(--night); }
.choice label:has(input:focus-visible) { outline: 1px solid var(--white); outline-offset: 3px; }
.form__status { min-height: 1.4em; font-family: var(--serif); font-style: italic; color: var(--light); }
.wishes { display: grid; gap: 6px; width: 100%; margin-top: 50px; }
.wishes__title { font-family: var(--serif); font-size: 2.25rem; font-weight: 300; font-style: italic; line-height: 1; color: var(--light); }
.wishes__list { margin-top: 10px; }
.wish { display: grid; gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); }
.wish__msg { font-family: var(--serif); font-size: 1.0625rem; line-height: 1.5; overflow-wrap: anywhere; }
.wish__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .5625rem; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
.wish__meta b { font-weight: 500; color: var(--white); overflow-wrap: anywhere; }
.wishes .btn { justify-self: start; margin-top: 8px; }
.gift { display: grid; justify-items: start; gap: 10px; margin-top: 50px; }
.gift__title { font-family: var(--serif); font-size: 1.875rem; font-weight: 300; line-height: 1.1; }
.gift__title i { color: var(--light); }
.gift .btn { margin-top: 6px; }
.sheet { width: min(100vw - 32px, 400px); max-height: 86svh; margin: auto; padding: 0; border: 0; border-radius: 18px; background: rgba(27, 26, 24, .94); color: var(--white); overflow: auto; box-shadow: inset 0 0 0 1px var(--glass-line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.sheet::backdrop { background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet__inner { position: relative; display: grid; justify-items: start; gap: 10px; padding: 40px 26px 28px; }
.sheet__close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--white); cursor: pointer; }
.sheet__title { font-family: var(--serif); font-size: 2.25rem; font-weight: 300; line-height: 1; }
.sheet__title i { color: var(--light); }
.gift__list { display: grid; width: 100%; margin-top: 8px; }
.account { display: grid; justify-items: start; gap: 6px; padding: 22px 0; border-top: 1px solid var(--line); }
.account__number { font-family: var(--serif); font-size: 1.875rem; font-weight: 300; letter-spacing: .04em; font-variant-numeric: lining-nums tabular-nums; }
.account__name { margin-bottom: 8px; font-family: var(--serif); font-style: italic; color: var(--soft); }


/* =========================================================================
   07 · PENUTUP — foto penuh warna
   ========================================================================= */
.finale { align-content: end; padding-bottom: 180px; }
.finale__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.finale__media img { width: 100%; height: 100%; object-fit: cover; }
.finale__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 17, 16, .25), transparent 30%, rgba(18, 17, 16, .7) 62%, rgba(18, 17, 16, .95)); }
.finale__names { font-family: var(--serif); font-size: min(clamp(3.5rem, 2.7rem + 4.5vw, 4.5rem), calc((100cqi - .5rem) / (var(--nick-word, 4) * .56))); font-weight: 300; line-height: .95; }
.finale__names i { font-size: .6em; }
.signature { position: absolute; left: 0; right: 0; bottom: 40px; display: grid; justify-items: start; gap: 2px; padding: 0 var(--pad); }
.signature .caps { font-size: .5625rem; }
.signature__links { display: flex; flex-wrap: wrap; gap: 0 16px; }
.signature__links a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: .5625rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--soft); transition: color .3s; }
.signature__links a:hover { color: var(--white); }
.signature__links svg { width: 12px; height: 12px; color: var(--light); }
/* 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: start; justify-items: start; column-gap: 22px; } }


/* =========================================================================
   MUSIK & NOTIFIKASI
   ========================================================================= */
.music { position: fixed; z-index: 66; right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: var(--glass); color: var(--white); cursor: pointer; box-shadow: inset 0 0 0 1px var(--glass-line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: opacity .6s; }
.music[aria-pressed="true"] svg { animation: sway 2.4s ease-in-out infinite; }
@keyframes sway { 50% { transform: rotate(-12deg) translateY(-1px); } }
@media (min-width: 900px) { .music { right: 24px; } }

.toast { position: fixed; z-index: 90; left: 50%; bottom: 84px; translate: -50% 20px; padding: 12px 22px; border-radius: 999px; background: var(--white); color: var(--night); 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 — foto langsung tajam berwarna
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .focus img { filter: none; transform: none; }
}
