/* =========================================================================
   RAUHIN — TEMPLATE PERSEPHONE · persephone.css
   Persephone, dewi musim semi. Kemewahan alami ala resort: foto penuh,
   ruang lapang, huruf tipis, palet krem · sage · hijau zaitun.
   Ciri khas: CAHAYA BAYANG DAUN di atas foto & kertas, BUNGA PENANDA yang mekar di
   kapsul navigasi, amplop bersegel lilin, dan TRANSISI LEMBARAN.
   Ubah warna & ukuran huruf di TOKEN.
   ========================================================================= */


/* =========================================================================
   TOKEN
   ========================================================================= */
:root {
  /* terang */
  --cream: #f1ece2;           /* krem (latar utama) */
  --cream-2: #e7e1d4;
  --paper: #faf7f0;
  --ink: #2a2f29;             /* kontras 13:1 */
  --muted: #5e665b;           /* kontras 5.5:1 */
  --sage: #8f9e87;            /* ornamen */
  --sage-text: #56684f;       /* sage untuk teks kecil, kontras 5:1 */
  --line: rgba(42, 47, 41, .16);

  /* gelap */
  --olive: #2c352d;           /* hijau zaitun tua */
  --olive-2: #374137;
  --on-dark: #f3eee4;
  --on-dark-muted: rgba(243, 238, 228, .76);
  --sage-light: #c8d2bd;      /* sage di atas gelap, kontras 9:1 */
  --line-dark: rgba(243, 238, 228, .24);

  --display: "Gilda Display", Georgia, serif;             /* judul & nama: anggun, jelas */
  --italic: "Cormorant Garamond", Georgia, serif;         /* aksen miring (&, kutipan) */
  --sans: "Manrope", "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);
  --radius: 24px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}


/* =========================================================================
   DASAR
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:not(.js-motion) { scroll-behavior: smooth; }
body { margin: 0; background: var(--olive); color: var(--ink); 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; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid currentColor; 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 hangat & lembut */
img { filter: saturate(.82) sepia(.08) contrast(1.02); }


/* =========================================================================
   TIPOGRAFI & KOMPONEN BERSAMA
   ========================================================================= */
.display { font-family: var(--display); font-weight: 400; letter-spacing: .005em; }
.display em, .heading em { font-family: var(--italic); font-style: italic; font-weight: 300; color: var(--sage); }
.photo .display em, .dark .display em, .gate .display em, .side .display em, .nav-panel .display em { color: var(--sage-light); }
.heading { font-size: var(--fs-heading); line-height: 1.1; }
.caps { font-size: .625rem; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; }
.caps--dim { opacity: .74; }
.caps--sage { color: var(--sage-text); }
.caps b { font-weight: 500; }
.body { max-width: 34ch; font-size: var(--fs-body); line-height: 1.9; color: var(--muted); }
.photo .body, .dark .body { color: var(--on-dark-muted); }
.statement { max-width: 18ch; font-family: var(--display); font-size: clamp(1.75rem, 1.4rem + 1.8vw, 2.125rem); line-height: 1.32; }
.hairline { display: block; width: 44px; height: 1px; background: var(--sage); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 30px;
  border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink);
  font-size: .625rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; touch-action: manipulation; transition: background-color .4s, color .4s, border-color .4s, transform .3s;
}
.btn:hover { background: var(--ink); color: var(--cream); }
.btn:active { transform: scale(.98); }
.btn--light { border-color: rgba(243, 238, 228, .7); color: var(--on-dark); }
.btn--light:hover { background: var(--on-dark); color: var(--olive); border-color: var(--on-dark); }
.btn--cream { background: var(--on-dark); border-color: var(--on-dark); color: var(--olive); }
.btn--cream:hover { background: var(--sage-light); border-color: var(--sage-light); color: var(--olive); }
.btn--wide { justify-content: space-between; width: 100%; min-height: 54px; }
.btn--small { min-height: 44px; padding: 0 20px; }
.btn[disabled] { opacity: .5; cursor: wait; }


/* =========================================================================
   CAHAYA BAYANG DAUN — ciri khas PERSEPHONE
   Bayangan dahan (dibuat persephone.js) diburamkan & bergoyang pelan,
   seperti sinar matahari sore yang menembus dedaunan.
   ========================================================================= */
.leafshade { position: absolute; inset: -12%; z-index: 1; pointer-events: none; overflow: hidden; }
.leafshade svg { width: 100%; height: 100%; fill: #141a14; stroke: none; filter: blur(8px); opacity: .26; mix-blend-mode: multiply; transform-origin: 20% 0%; animation: sway 11s ease-in-out infinite alternate; }
.leafshade--paper svg { opacity: .14; }
@keyframes sway { from { transform: rotate(-1.6deg) translate(-1%, 0); } to { transform: rotate(1.8deg) translate(1.2%, .8%); } }


/* =========================================================================
   00 · SAMPUL — latar foto buram + foto tajam di jendela oval (liontin)
   ========================================================================= */
.gate { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: var(--olive); color: var(--on-dark); text-align: center; }
.gate__media { position: absolute; inset: 0; }
.gate__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); filter: blur(5px) saturate(.85) brightness(.92); }
.gate::after { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(80% 55% at 50% 38%, rgba(44, 53, 45, .1), rgba(30, 37, 31, .7)); }
.gate__top, .gate__bottom { position: relative; z-index: 3; display: grid; justify-items: center; gap: 10px; padding: 0 var(--pad); }
.gate__top { padding-top: max(7svh, 44px); }
.gate__bottom { padding-bottom: max(6svh, 34px); gap: 4px; }
/* liontin: oval tajam berbingkai garis ganda */
.locket { position: relative; width: min(56vw, 34svh, 240px); aspect-ratio: 3 / 4.1; margin: 14px 0 0; }
.locket__photo { position: absolute; inset: 0; overflow: hidden; border-radius: 50%; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.locket__photo img { width: 100%; height: 100%; object-fit: cover; }
.locket__ring { position: absolute; inset: -10px; border: 1px solid rgba(243, 238, 228, .5); border-radius: 50%; }
.locket__ring::after { content: ""; position: absolute; inset: -8px; border: 1px solid rgba(243, 238, 228, .22); border-radius: 50%; }
.gate__names { margin-top: -.6em; font-size: clamp(2.75rem, 2.1rem + 3.6vw, 3.5rem); line-height: 1; text-shadow: 0 6px 30px rgba(0, 0, 0, .45); }
.gate__names em { font-size: .8em; }
.gate__date { font-family: var(--italic); font-size: 1.125rem; font-style: italic; color: var(--on-dark-muted); }
.gate__guest { margin-bottom: 16px; font-family: var(--display); font-size: 1.5rem; line-height: 1.25; overflow-wrap: anywhere; }
/* kantong amplop: tepi atas berbentuk V, segel di ujung V */
.pocket { position: relative; z-index: 3; isolation: isolate; height: 42svh; min-height: 260px; padding: 0 var(--pad) max(5svh, 28px); justify-content: center; align-content: end; gap: 0; }
/* bentuk kantong di lapisan belakang, supaya segel di ujung V tidak ikut terpotong */
.pocket::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #4d5d45 0%, #3d4a37 60%, #333f2f 100%); clip-path: polygon(0 0, 50% 30%, 100% 0, 100% 100%, 0 100%); }
.pocket .seal { position: absolute; left: 50%; top: 30%; translate: -50% -33px; }
.pocket__to { display: grid; justify-items: center; gap: 4px; }
.pocket .gate__guest { margin-bottom: 0; }


/* =========================================================================
   LOADING AWAL — "BUNGA MEKAR"
   Kertas krem + bayang daun; bunga garis sage (kelopak dibuat
   persephone.js). Saat selesai, lubang oval (mask) terbuka tepat di posisi
   liontin sampul lalu membesar: --hx/--hy pusat · --hw/--hh ukuran lubang.
   ========================================================================= */
.loader {
  --hx: 50%; --hy: 30%; --hw: 1px; --hh: 1px;
  position: fixed; inset: 0; z-index: 90; display: grid; place-content: center; justify-items: center; gap: clamp(10px, 2svh, 18px);
  overflow: hidden; text-align: center; color: var(--ink);
  background: radial-gradient(80% 60% at 50% 40%, var(--paper), var(--cream) 70%, var(--cream-2));
  animation: loader-safety 14s step-end forwards;   /* pengaman bila JS gagal */
}
/* lubang oval hanya dipasang saat fase keluar (persephone.js) */
.loader.is-opening {
  -webkit-mask-image: radial-gradient(ellipse var(--hw) var(--hh) at var(--hx) var(--hy), transparent 96%, #000 100%);
  mask-image: radial-gradient(ellipse var(--hw) var(--hh) at var(--hx) var(--hy), transparent 96%, #000 100%);
}
@keyframes loader-safety { to { visibility: hidden; } }
.loader.is-gone { opacity: 0; transition: opacity .5s; pointer-events: none; }
.loader .leafshade { z-index: 0; }
.loader > :not(.leafshade) { position: relative; z-index: 1; }
.loader__kicker { color: var(--sage-text); animation: loader-in 1.2s .1s both; }
.loader__flower { width: auto; height: min(40svh, 330px); overflow: visible; }
.loader__stem, .loader__leaf, .loader__petal, .loader__stamen { fill: none; stroke: var(--sage-text); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.loader__leaf { fill: rgba(143, 158, 135, 0); }
.loader__petal { fill: url(#petalFill); fill-opacity: 0; }
.loader__stamen { stroke-width: .8; opacity: 0; }
.loader__names { font-size: clamp(2.375rem, 1.9rem + 2.6vw, 3rem); line-height: 1.05; }
.loader__names > * { display: inline-block; opacity: 0; }   /* tampil lewat persephone.js */
.loader__count { display: flex; gap: 1.2em; color: var(--sage-text); animation: loader-in 1.2s .3s both; }
.loader__count > span:first-child { color: var(--ink); font-variant-numeric: tabular-nums; }
@keyframes loader-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .loader__kicker, .loader__count { animation: none; }
  .loader__names > * { opacity: 1; }
}

/* segel lilin = tombol buka */
.seal { display: grid; justify-items: center; gap: 10px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; touch-action: manipulation; }
.seal__wax {
  display: flex; align-items: center; justify-content: center; width: 66px; height: 66px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #b6c4a8 0%, #7d9272 45%, #56694d 100%);
  box-shadow: 0 0 0 4px #6c8162, 0 0 0 5px rgba(0, 0, 0, .25), inset 0 -6px 12px rgba(0, 0, 0, .3), inset 0 6px 10px rgba(255, 255, 255, .3), 0 14px 26px -8px rgba(0, 0, 0, .7);
  font-family: var(--italic); font-size: 1.375rem; font-style: italic; color: #fbf6ea; text-shadow: 0 1px 1px rgba(0, 0, 0, .35);
  transition: transform .5s var(--ease); animation: breathe 3.2s ease-in-out infinite;
}
@keyframes breathe { 50% { box-shadow: 0 0 0 4px #6c8162, 0 0 0 12px rgba(200, 210, 189, .18), inset 0 -6px 12px rgba(0, 0, 0, .3), inset 0 6px 10px rgba(255, 255, 255, .3), 0 14px 26px -8px rgba(0, 0, 0, .7); } }
.seal:hover .seal__wax { transform: scale(1.06) rotate(-6deg); }
.seal__label { font-size: .5625rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; }


/* =========================================================================
   NAVIGASI — pulau kapsul mengambang yang memekar menjadi daftar isi
   ========================================================================= */
.island {
  position: fixed; z-index: 72; top: max(14px, env(safe-area-inset-top)); left: 50%; translate: -50% 0;
  width: 196px; overflow: hidden; border-radius: 28px; background: rgba(36, 44, 37, .72); color: var(--on-dark);
  border: 1px solid rgba(243, 238, 228, .18); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  transition: width .7s var(--ease), background-color .5s, opacity .6s, transform .6s var(--ease);
}
.nav-open .island { width: min(100vw - 28px, 380px); background: rgba(36, 44, 37, .96); }
.is-closed .island { opacity: 0; pointer-events: none; transform: translateY(-16px); }
.island__bar { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 0 8px 0 16px; border: 0; background: none; color: inherit; cursor: pointer; text-align: left; }
.island__bloom { width: 20px; height: 20px; flex: none; overflow: visible; }
.island__bloom ellipse { fill: var(--sage-light); stroke: none; transform-box: fill-box; transform-origin: 50% 100%; transition: transform .6s var(--ease); }
.island__bloom-core { fill: #e9d8b4; stroke: none; }
/* garis kemajuan tipis di bawah kapsul */
.island__progress { position: absolute; left: 18px; right: 18px; bottom: 0; height: 1px; background: rgba(243, 238, 228, .14); }
.island__progress span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--sage-light); }
.nav-open .island__progress { opacity: 0; }
.island__label { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--display); font-size: .9375rem; }
.island__toggle { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(243, 238, 228, .12); transition: background-color .4s, transform .6s var(--ease); }
.island__toggle i { position: absolute; width: 12px; height: 1px; background: currentColor; transition: transform .5s var(--ease); }
.island__toggle i:first-child { transform: translateY(-3px); }
.island__toggle i:last-child { transform: translateY(3px); }
.nav-open .island__toggle { background: var(--on-dark); color: var(--olive); transform: rotate(90deg); }
.nav-open .island__toggle i:first-child { transform: rotate(45deg); }
.nav-open .island__toggle i:last-child { transform: rotate(-45deg); }
/* panel: tinggi memekar dengan trik grid 0fr → 1fr */
.island__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.nav-open .island__panel { grid-template-rows: 1fr; }
.island__inner { min-height: 0; overflow: hidden; }
.island__list { padding: 6px 22px 4px; }
.island__list li + li { border-top: 1px solid rgba(243, 238, 228, .1); }
.island__list a { display: flex; align-items: center; justify-content: space-between; min-height: 46px; text-decoration: none; color: var(--on-dark-muted); }
.island__list a::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sage-light); opacity: 0; transform: scale(0); transition: opacity .3s, transform .4s var(--ease); }
.island__list a.is-active { color: var(--on-dark); }
.island__list a.is-active::after { opacity: 1; transform: scale(1); }
/* huruf bergulir saat disentuh */
.roll { position: relative; display: inline-block; overflow: hidden; font-family: var(--display); font-size: 1.3125rem; line-height: 1.3; }
.roll::after { content: attr(data-t); position: absolute; left: 0; top: 100%; color: var(--on-dark); }
.roll, .roll::after { transition: transform .5s var(--ease); }
.island__list a:hover .roll { transform: translateY(-100%); }
.island__foot { padding: 12px 22px 18px; font-family: var(--italic); font-style: italic; color: var(--sage-light); }


/* =========================================================================
   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(--olive); color: var(--on-dark); }
  .side img { width: 100%; height: 100%; object-fit: cover; }
  .side::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(30, 37, 31, .05) 40%, rgba(30, 37, 31, .85)); }
  .side__text { position: absolute; z-index: 3; left: 64px; bottom: 60px; display: grid; gap: 12px; }
  .side__names { font-size: clamp(3.5rem, 5vw, 5.5rem); line-height: 1; }
  .invite { margin-left: auto; width: var(--col); }
  .island { left: calc(100% - var(--col) / 2); }
}


/* =========================================================================
   LAYAR & TRANSISI LEMBARAN
   Setiap bagian menempel (sticky); bagian berikutnya naik menumpuk,
   bagian sebelumnya mengecil & meredup (persephone.js).
   ========================================================================= */
.invite { position: relative; }
.screen {
  position: sticky; top: var(--stick, 0px); min-height: 100svh; display: grid; align-content: center; justify-items: start; gap: 14px;
  padding: 104px var(--pad) 96px calc(var(--pad) + 12px); overflow: clip; background: var(--cream);
  border-radius: var(--radius) var(--radius) 0 0; box-shadow: 0 -24px 50px -26px rgba(0, 0, 0, .5); transform-origin: 50% 0%;
}
.screen > *:not(.leafshade):not(.veil):not(.photo__media):not(.person__photo):not(.hero__side):not(.hero__mono):not(.hero__cue):not(.chapter__year):not(.signature):not(.gift__frame):not(.gift__mark) { position: relative; z-index: 2; }
.screen--center { justify-items: center; text-align: center; padding-left: var(--pad); }
.screen--center .body { margin-inline: auto; }
.veil { position: absolute; inset: 0; z-index: 9; background: #0e130f; opacity: 0; pointer-events: none; }
.dark { background: var(--olive); color: var(--on-dark); }

/* layar berfoto penuh */
.photo { align-content: end; background: var(--olive); color: var(--on-dark); }
.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: linear-gradient(180deg, rgba(30, 37, 31, .35) 0%, transparent 28%, rgba(30, 37, 31, .45) 60%, rgba(30, 37, 31, .9) 100%); }


/* =========================================================================
   01 · SAMPUL DALAM — foto penuh
   ========================================================================= */
.hero { border-radius: 0; box-shadow: none; padding-bottom: 92px; }
.hero__mono { position: absolute; z-index: 2; top: 30px; left: 50%; translate: -50% 0; display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border: 1px solid rgba(243, 238, 228, .55); border-radius: 50%; font-family: var(--italic); font-size: 1.125rem; font-style: italic; }
.hero__side { position: absolute; z-index: 2; right: 18px; top: 50%; translate: 0 -50%; writing-mode: vertical-rl; letter-spacing: .5em; opacity: .8; }
.hero__text { display: grid; gap: 12px; }
/* nama: mengecil bila ada kata sangat panjang (var --nick-word dari core.js);
   cqi = lebar kolom pembungkusnya (bukan layar) */
.hero { container-type: inline-size; }   /* lebar sampul ditentukan halaman — aman sebagai patokan */
.hero__names { display: grid; font-size: min(clamp(3.5rem, 2.6rem + 5vw, 4.5rem), calc((100cqi - 4rem) / (var(--nick-word, 4) * .6))); line-height: .95; }
.hero__names > span:last-child { padding-left: .55em; }
.hero__names em { font-size: .8em; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-family: var(--italic); font-size: 1.0625rem; font-style: italic; color: var(--on-dark-muted); }
.hero__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--sage-light); }
.hero__cue { position: absolute; z-index: 2; left: 50%; bottom: 28px; width: 1px; height: 40px; background: linear-gradient(var(--on-dark), transparent); animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }


/* =========================================================================
   02 · PEMBUKA — pernyataan besar + foto memanjang
   ========================================================================= */
.opening { gap: 20px; align-content: center; padding-bottom: 0; }
.opening__strip { width: calc(100% + var(--pad) * 2); height: 30svh; margin: 22px calc(var(--pad) * -1) 0; overflow: hidden; }
.opening__strip img { width: 100%; height: 130%; object-fit: cover; }


/* =========================================================================
   03 · MEMPELAI — foto besar memudar ke krem
   ========================================================================= */
.person { align-content: end; }
.person__photo {
  position: absolute; top: 0; left: 0; right: 0; height: 68svh; overflow: hidden; z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__text { display: grid; justify-items: start; gap: 6px; padding-top: 52svh; }
.person__nick { font-size: clamp(3rem, 2.3rem + 3.8vw, 3.75rem); line-height: 1; }
.person__full { margin-bottom: 8px; font-family: var(--italic); font-size: 1.3125rem; font-style: italic; color: var(--muted); }
.ig-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .8125rem; color: var(--sage-text); text-decoration: none; }


/* =========================================================================
   04 · KISAH — satu layar foto penuh per bab
   ========================================================================= */
.chapter__year { position: absolute; z-index: 2; top: 84px; left: calc(var(--pad) + 12px); font-size: clamp(4.5rem, 3rem + 8vw, 6rem); line-height: 1; color: rgba(243, 238, 228, .88); }
.chapter__text { display: grid; gap: 8px; }
.chapter__title { font-size: 2rem; line-height: 1.1; }


/* =========================================================================
   05 · SAVE THE DATE — foto penuh berselimut zaitun
   ========================================================================= */
.countdown { align-content: center; }
.countdown::after { background: radial-gradient(90% 70% at 50% 50%, rgba(30, 37, 31, .55), rgba(30, 37, 31, .85)); }
.bigdate { font-size: clamp(2.5rem, 1.9rem + 3.6vw, 3.25rem); letter-spacing: .02em; line-height: 1.1; white-space: nowrap; }
.countdown__day { font-family: var(--italic); font-size: 1.1875rem; font-style: italic; color: var(--on-dark-muted); }
.count { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; max-width: 330px; margin: 18px 0 20px; }
.count div { display: grid; justify-items: center; gap: 4px; }
.count div + div { border-left: 1px solid var(--line-dark); }
.count__num { display: block; overflow: clip; }
.count__num b { display: block; font-family: var(--display); font-size: 2.25rem; font-weight: 400; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.count span:not(.count__num) { font-size: .5rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--on-dark-muted); }


/* =========================================================================
   06 · RANGKAIAN ACARA — kartu acara berfoto, digeser ke samping
   ========================================================================= */
.events { align-content: center; }
.suites {
  display: flex; gap: 14px; width: calc(100% + var(--pad) + 12px); margin: 14px calc(var(--pad) * -1) 0 0; padding: 10px var(--pad) 26px 0;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.suites::-webkit-scrollbar { display: none; }
.suite { flex: 0 0 84%; display: grid; overflow: hidden; border-radius: 6px; background: var(--paper); scroll-snap-align: start; box-shadow: 0 30px 50px -32px rgba(42, 47, 41, .55); }
.suite__photo { position: relative; aspect-ratio: 4 / 3.1; overflow: hidden; }
.suite__photo img { width: 100%; height: 100%; object-fit: cover; }
.suite__time { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(250, 247, 240, .92); color: var(--ink); font-size: .5625rem; font-weight: 500; letter-spacing: .2em; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.suite__time b { font-family: var(--display); font-size: 1.25rem; font-weight: 400; letter-spacing: 0; }
.suite__body { display: grid; justify-items: start; gap: 6px; padding: 20px 20px 22px; }
.suite__name { font-size: 1.625rem; line-height: 1.15; }
.suite__when { font-family: var(--italic); font-size: 1.0625rem; font-style: italic; color: var(--muted); }
.suite .hairline { margin: 6px 0 4px; }
.suite__venue { color: var(--ink); }
.suite .body { font-size: .8125rem; }
.suite .btn { margin-top: 10px; }
.events__dress { font-family: var(--italic); font-size: 1.0625rem; font-style: italic; color: var(--muted); }


/* =========================================================================
   07 · GALERI — foto utama besar + empat foto kecil (hijau zaitun)
   ========================================================================= */
.gallery { gap: 14px; }
/* tumpukan foto cetak berbingkai krem, sedikit miring acak */
.pile { position: relative; width: min(76vw, 300px); aspect-ratio: 4 / 5.2; margin: 26px 0 10px; touch-action: pan-y; }
.print {
  position: absolute; inset: 0; padding: 10px 10px 34px; border: 0; border-radius: 3px; background: var(--paper);
  box-shadow: 0 30px 50px -26px rgba(0, 0, 0, .75), 0 2px 6px rgba(0, 0, 0, .15); cursor: grab; user-select: none; -webkit-user-select: none;
  transition: transform .7s var(--ease), box-shadow .4s;
}
.print img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.print.is-top { box-shadow: 0 40px 60px -26px rgba(0, 0, 0, .85), 0 2px 6px rgba(0, 0, 0, .15); }
.print.is-drag { transition: none; cursor: grabbing; }
.pile__bar { display: flex; align-items: center; justify-content: center; gap: 24px; }
.pile__btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-dark); border-radius: 50%; background: transparent; color: var(--on-dark); cursor: pointer; transition: background-color .3s, color .3s; }
.pile__btn:hover { background: var(--on-dark); color: var(--olive); }
.pile__count { min-width: 70px; font-size: .625rem; letter-spacing: .26em; color: var(--on-dark-muted); }
.pile__count b { font-family: var(--display); font-size: 1.25rem; font-weight: 400; letter-spacing: .04em; color: var(--on-dark); }

.lightbox { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(24, 30, 25, .97); color: var(--on-dark); }
.lightbox[open] { display: grid; place-items: center; align-content: center; gap: 14px; }
.lightbox::backdrop { background: rgba(24, 30, 25, .97); }
.lightbox img { max-width: 92vw; max-height: 76svh; object-fit: contain; border-radius: 3px; }
.lightbox__caption { font-family: var(--italic); font-style: italic; color: var(--on-dark-muted); }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-dark); border-radius: 50%; background: transparent; 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%; }


/* =========================================================================
   08 · SHORT FILM — kotak video berbingkai di atas krem
   ========================================================================= */
.film { gap: 14px; }
.filmbox { position: relative; display: grid; width: 100%; margin-top: 12px; overflow: hidden; border-radius: 6px; background: var(--olive); color: var(--on-dark); text-decoration: none; cursor: pointer; box-shadow: 0 40px 60px -36px rgba(42, 47, 41, .7); }
.filmbox__screen { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.filmbox__screen img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform 1.4s var(--ease); }
.filmbox:hover .filmbox__screen img { transform: scale(1.05); }
.filmbox__play { position: absolute; left: 50%; top: calc(50% - 22px); translate: -50% -50%; display: grid; place-items: center; width: 70px; height: 70px; border: 1px solid rgba(243, 238, 228, .9); border-radius: 50%; background: rgba(30, 37, 31, .3); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: transform .6s var(--ease); }
.filmbox:hover .filmbox__play { transform: scale(1.08); }
.filmbox__play svg { width: 20px; height: 20px; margin-left: 3px; fill: currentColor; stroke: none; }
.film__ring { position: absolute; inset: -10px; border: 1px dashed rgba(243, 238, 228, .5); border-radius: 50%; animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.filmbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; font-size: .5625rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }
.filmbox__bar span:first-child { font-family: var(--display); font-size: .9375rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.film__quote { max-width: 28ch; margin-top: 10px; font-family: var(--italic); font-size: 1.25rem; font-style: italic; line-height: 1.5; color: var(--muted); }


/* =========================================================================
   09 · RSVP & UCAPAN — kartu krem melayang di atas foto
   ========================================================================= */
.rsvp { align-content: center; justify-items: stretch; gap: 16px; padding-top: 96px; }
.rsvp::after { background: linear-gradient(180deg, rgba(30, 37, 31, .55), rgba(30, 37, 31, .75)); }
.rsvp-card { display: grid; gap: 10px; width: 100%; max-width: 400px; justify-self: center; padding: 30px 22px 24px; border-radius: 6px; background: rgba(250, 247, 240, .96); color: var(--ink); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.rsvp-card .body { color: var(--muted); }
.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; font-weight: 500; 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.1875rem; color: var(--ink); transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--sage-text); }
.field__error { font-size: .75rem; color: #9b3324; }
.field.has-error input, .field.has-error textarea { border-bottom-color: #9b3324; }
/* pilihan kehadiran: satu kapsul terbagi dua */
.choice { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-top: 8px; padding: 4px; border-radius: 999px; background: var(--cream-2); }
.choice label { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 999px; cursor: pointer; font-size: .625rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: color .4s, background-color .4s; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label:has(input:checked) { background: var(--olive); color: var(--on-dark); }
.choice label:has(input:focus-visible) { outline: 1px solid var(--olive); outline-offset: 2px; }
.btn--olive { background: var(--olive); border-color: var(--olive); color: var(--on-dark); }
.btn--olive:hover { background: var(--sage-text); border-color: var(--sage-text); }
.form__status { min-height: 1.4em; font-family: var(--italic); font-style: italic; color: var(--sage-text); }
.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(--italic); font-size: 1.1875rem; font-style: italic; line-height: 1.5; 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(--ink); overflow-wrap: anywhere; }
.wishes .btn { justify-self: start; margin-top: 8px; }


/* =========================================================================
   10 · TANDA KASIH (latar) — krem bercahaya, bingkai ganda, monogram samar
   ========================================================================= */
.gift { background: radial-gradient(70% 50% at 50% 42%, #fbf8f1 0%, var(--cream) 60%, #e6dfd0 100%); }
.gift__frame { position: absolute; inset: 18px; z-index: 1; border: 1px solid rgba(86, 104, 79, .35); border-radius: 2px; pointer-events: none; }
.gift__frame::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(86, 104, 79, .16); }
.gift__mark { position: absolute; z-index: 0; left: 50%; top: 50%; translate: -50% -50%; display: flex; align-items: baseline; gap: .04em; font-family: var(--italic); font-size: 15rem; font-style: italic; line-height: 1; color: rgba(86, 104, 79, .07); pointer-events: none; white-space: nowrap; }


/* =========================================================================
   10 · TANDA KASIH — amplop sage bersegel + jendela rekening
   ========================================================================= */
.gift-envelope {
  position: relative; display: block; width: min(78vw, 300px); aspect-ratio: 1.45; margin-top: 18px; padding: 0; border: 0; border-radius: 4px; cursor: pointer;
  background: linear-gradient(160deg, #7f9476, #6a7f62); box-shadow: 0 40px 60px -30px rgba(30, 37, 31, .7); transition: transform .6s var(--ease);
}
.gift-envelope:hover { transform: translateY(-4px) rotate(-1deg); }
.gift-envelope__flap { position: absolute; inset: 0 0 auto; height: 56%; background: linear-gradient(180deg, #8ba082, #74896b); clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 4px 4px 0 0; }
.gift-envelope__seal { position: absolute; left: 50%; top: 56%; translate: -50% -50%; display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #fbf6ea, #e3d8c0 70%); box-shadow: 0 0 0 3px #d9cdb2, 0 8px 14px -6px rgba(0, 0, 0, .5); font-family: var(--italic); font-size: 1.125rem; font-style: italic; color: var(--sage-text); }
.gift-envelope__label { position: absolute; left: 0; right: 0; bottom: 14px; font-size: .5625rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--on-dark); }

.sheet { width: min(100vw - 32px, 400px); max-height: 86svh; margin: auto; padding: 0; border: 0; border-radius: 4px; background: var(--paper); color: var(--ink); overflow: auto; box-shadow: inset 0 0 0 10px var(--paper), inset 0 0 0 11px var(--line); }
.sheet::backdrop { background: rgba(24, 30, 25, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet__inner { position: relative; display: grid; justify-items: center; gap: 10px; padding: 40px 26px 30px; text-align: center; }
.sheet__close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.sheet__close:hover { background: var(--cream-2); }
.gift__list { display: grid; gap: 22px; width: 100%; margin-top: 14px; }
.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.75rem; letter-spacing: .06em; font-variant-numeric: lining-nums tabular-nums; }
.account__name { margin-bottom: 8px; font-family: var(--italic); font-style: italic; color: var(--muted); }


/* =========================================================================
   11 · PENUTUP — foto penuh
   ========================================================================= */
.closing { align-content: center; gap: 14px; padding-bottom: 170px; }
.closing::after { background: radial-gradient(90% 65% at 50% 45%, rgba(30, 37, 31, .45), rgba(30, 37, 31, .9)); }
.closing__mono { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border: 1px solid rgba(243, 238, 228, .55); border-radius: 50%; font-family: var(--italic); font-size: 1.125rem; font-style: italic; }
.closing__thanks { font-size: clamp(2.75rem, 2.2rem + 3vw, 3.5rem); line-height: 1.05; }
.closing__names { margin-top: 6px; font-size: 1.75rem; }
.signature { position: absolute; z-index: 2; left: 0; right: 0; bottom: 80px; 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; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--on-dark-muted); transition: color .3s; }
.signature__links a:hover { color: var(--on-dark); }
.signature__links svg { width: 12px; height: 12px; }
/* 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(243, 238, 228, .45); border-radius: 50%; background: rgba(44, 53, 45, .55); color: var(--on-dark); cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: opacity .6s; }
.music svg { width: 20px; height: 20px; }
.music[aria-pressed="true"] svg { animation: swing 2.4s ease-in-out infinite alternate; transform-origin: 50% 90%; }
@keyframes swing { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
.is-closed .music { opacity: 0; pointer-events: none; }
@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(--olive); color: var(--on-dark); 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; }


/* =========================================================================
   HP & TABLET — efek dibuat ringan agar tidak berkedip/glitch
   Lembaran menempel + bayang daun buram yang bergoyang & dicampur (multiply)
   + kaca buram (backdrop-filter) di atasnya terlalu berat untuk GPU HP.
   Bayang daun tetap ada, tapi diam & tanpa pencampuran; kaca diganti warna padat.
   ========================================================================= */
@media (hover: none), (max-width: 899px) {
  .leafshade svg { animation: none; mix-blend-mode: normal; opacity: .16; transform: rotate(.2deg); }
  .leafshade--paper svg { opacity: .09; }
  /* bayang daun di dalam layar-layar undangan ditiadakan (tetap ada di loading & sampul):
     lapisan buram seukuran layar ×13 terlalu berat untuk GPU HP */
  .screen .leafshade { display: none; }
  .island { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(36, 44, 37, .94); }
  .music { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(44, 53, 45, .9); }
  .rsvp-card, .suite__time, .filmbox__play { -webkit-backdrop-filter: none; backdrop-filter: none; }
}


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