/* =========================================================================
   RAUHIN — TEMPLATE ATHENA · athena.css
   Athena, dewi kebijaksanaan. NETRAL SINEMATIK di atas VIDEO (standar EOS),
   tampil LAYAR PENUH di HP maupun laptop.
   Referensi:
   - Prelude: website Rauhin "It Begins Here." (teks menyala kata demi kata)
   - Save the Date: groovepublic Wellness (kartu foto berbingkai)
   - Galeri: website Rauhin "Our Moments" (kartu 3D melayang)
   Ciri khas ATHENA:
   - SAMPUL "JENDELA BIDIK": siku kamera di empat sudut + kode waktu berjalan
   - NAMA BERLUBANG: video terlihat di dalam huruf nama (sampul dalam) dan
     "Thank you" (penutup); huruf membesar hingga video memenuhi layar
   Ubah warna & ukuran huruf di TOKEN.
   ========================================================================= */


/* =========================================================================
   TOKEN
   ========================================================================= */
:root {
  --ink: #0d0d0c;
  --white: #f4f1ec;                     /* teks utama */
  --soft: rgba(244, 241, 236, .74);     /* teks kedua */
  --faint: rgba(244, 241, 236, .45);
  --line: rgba(244, 241, 236, .18);
  --grey: #c2c2c2;                      /* tombol datar (gaya Wellness) */
  --charcoal: #262627;
  --silver: linear-gradient(100deg, #ffffff 0%, #cfccc6 40%, #8f8b85 70%, #e9e6e0 100%);

  --display: "Libre Caslon Display", "Didot", Georgia, serif;   /* judul & nama */
  --serif: "Libre Caslon Text", Georgia, serif;                  /* aksen miring */
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --hand: "Mrs Saint Delafield", cursive;                         /* tulisan tangan */
  --fs-heading: clamp(2.5rem, 1.9rem + 3vw, 4.5rem);
  --fs-body: .875rem;

  --pad: clamp(24px, 6vw, 72px);
  --max: 1180px;
  --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(--ink); color: var(--white); font-family: var(--sans); font-weight: 300; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; font-synthesis: none; }
body.is-closed { overflow: hidden; }
img, video, iframe { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
/* huruf miring memakai Libre Caslon Text Italic (Display tidak punya miring) */
i { font-family: var(--serif); 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
   ========================================================================= */
.mono { font-family: var(--mono); font-size: .6875rem; font-weight: 400; letter-spacing: .02em; color: var(--soft); }
/* label mono bertanda kurung: [01 – Prelude] (gaya website Rauhin) */
.label { display: inline-flex; gap: .45em; font-family: var(--mono); font-size: .6875rem; font-weight: 500; color: var(--soft); }
.label b { font-weight: 500; color: var(--faint); }
.heading { font-family: var(--display); font-size: var(--fs-heading); font-weight: 400; line-height: 1.02; letter-spacing: -.01em; }
.heading i { font-size: .92em; }
.body { max-width: 36ch; font-size: var(--fs-body); line-height: 1.8; color: var(--soft); }
.statement { max-width: 24ch; font-family: var(--serif); font-size: clamp(1.375rem, 1.1rem + 1.4vw, 2.25rem); font-style: italic; line-height: 1.35; }
.note { font-size: .625rem; color: var(--soft); }
.hand { font-family: var(--hand); font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem); line-height: 1.15; color: var(--white); }
.link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-family: var(--mono); font-size: .6875rem; text-decoration: underline; text-underline-offset: 4px; color: var(--white); }
.link svg { width: 12px; height: 12px; }

/* kontainer isi: lebar penuh di HP, dibatasi rapi di laptop */
.wrap { display: grid; justify-items: start; gap: 18px; width: min(100%, var(--max)); margin-inline: auto; }
.wrap--center { justify-items: center; text-align: center; }

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

/* tombol datar persegi */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0 26px;
  border: 0; border-radius: 0; font-family: var(--sans); font-size: .875rem; font-weight: 400; letter-spacing: .01em; text-decoration: none;
  cursor: pointer; touch-action: manipulation; transition: background-color .35s, color .35s, transform .3s;
}
.btn:active { transform: scale(.98); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--grey); }
.btn--grey { background: var(--grey); color: var(--charcoal); }
.btn--grey:hover { background: var(--white); }
.btn--line { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px rgba(244, 241, 236, .55); }
.btn--line:hover { background: var(--white); color: var(--ink); }
.btn--small { min-height: 44px; padding: 0 18px; font-size: .8125rem; }
.btn--wide { justify-content: space-between; width: 100%; }
.btn[disabled] { opacity: .5; cursor: wait; }
.btn svg { width: 14px; height: 14px; }


/* =========================================================================
   PANGGUNG VIDEO
   ========================================================================= */
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--ink); }
.stage__poster { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.stage__video { --zoom: 1.4; position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.stage__video.is-ready { opacity: 1; }
/* video 16:9 menutupi layar; --zoom menyembunyikan tepi pemutar & pita hitam */
.stage__video iframe, .stage__video video {
  position: absolute; left: 50%; top: 50%; width: max(100vw, 177.78vh); max-width: none; height: max(100vh, 56.25vw);
  translate: -50% -50%; scale: var(--zoom); border: 0; pointer-events: none; object-fit: cover;
}
.stage__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 13, 12, .55), rgba(13, 13, 12, .35) 40%, rgba(13, 13, 12, .55) 70%, rgba(13, 13, 12, .85)); }


/* =========================================================================
   00 · SAMPUL — BINGKAI GALERI: foto dalam bingkai tipis di latar hitam,
   nama keluar dari tepi foto, "&" tulisan tangan di tengah
   --fw = lebar foto (menyesuaikan lebar & tinggi layar); ukuran nama
   mengikuti --fw dan jumlah huruf (--len, diisi athena.js)
   ========================================================================= */
.gate {
  --fw: min(64vw, 38svh, 360px);
  position: fixed; inset: 0; z-index: 80; display: grid; place-content: center; justify-items: center; gap: 0;
  padding: 40px var(--pad); overflow: hidden; text-align: center;
  background: radial-gradient(60% 50% at 50% 42%, #1b1b19, var(--ink));
}
.gate__kicker { margin-bottom: clamp(20px, 3.4svh, 34px); font-size: .625rem; letter-spacing: .32em; text-transform: uppercase; }
.gate__frame { position: relative; width: var(--fw); aspect-ratio: 5 / 7; }
/* garis bingkai tipis, berjarak dari foto */
.gate__frame::after { content: ""; position: absolute; inset: -9px; border: 1px solid rgba(244, 241, 236, .35); pointer-events: none; }
.gate__photo { --o: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; clip-path: inset(calc(var(--o) * 50%) 0); }
.gate__n {
  --len: 4; position: absolute; z-index: 2; font-family: var(--display); font-weight: 400; line-height: 1; letter-spacing: -.03em; white-space: nowrap;
  font-size: min(calc(var(--fw) * .36), calc(var(--fw) * 1.25 / (var(--len) * .55)));
  text-shadow: 0 6px 30px rgba(13, 13, 12, .35);
}
.gate__n--1 { left: calc(var(--fw) * -.19); top: 10%; }
.gate__n--2 { right: calc(var(--fw) * -.19); bottom: 8%; }
/* "&" tergores kiri→kanan: --w 1→0 (athena.js) */
.gate__amp { --w: 0; position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%; font-family: var(--hand); font-size: calc(var(--fw) * .5); line-height: .5; clip-path: inset(-60% calc(var(--w) * 100%) -60% -10%); }
.gate__date { margin-top: clamp(22px, 3.6svh, 36px); font-size: .625rem; letter-spacing: .3em; }
.gate__to { display: grid; gap: 2px; margin-top: clamp(18px, 3svh, 30px); }
.gate__guest { font-family: var(--serif); font-size: 1.375rem; font-style: italic; line-height: 1.25; overflow-wrap: anywhere; }
.gate .btn { margin-top: 16px; }
.is-closed .invite { visibility: hidden; }


/* =========================================================================
   LOADING AWAL — "BINGKAI DIGANTUNG"
   Ukuran bingkai = bingkai sampul (--fw sama) agar saat selesai bingkai
   tinggal meluncur ke tempatnya. Garis tergambar mengikuti progres (--p,
   diisi athena.js); sebelum JS jalan, kicker & garis samar sudah tampil.
   ========================================================================= */
.loader {
  --fw: min(64vw, 38svh, 360px);
  position: fixed; inset: 0; z-index: 90; display: grid; place-content: center; justify-items: center;
  background: radial-gradient(60% 50% at 50% 42%, #1b1b19, var(--ink));
  text-align: center;
  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__kicker { margin-bottom: clamp(20px, 3.4svh, 34px); font-size: .625rem; letter-spacing: .32em; text-transform: uppercase; color: var(--soft); animation: loader-in 1s .1s both; }
.loader__frame { position: relative; width: var(--fw); aspect-ratio: 5 / 7; }
/* garis berjarak 9px dari foto — sama persis dengan .gate__frame::after */
/* garis tergambar searah jarum jam: atas → kanan → bawah → kiri (--s 0..1 per sisi) */
.loader__line { position: absolute; inset: -9px; }
.loader__line::before { content: ""; position: absolute; inset: 0; border: 1px solid rgba(244, 241, 236, .12); animation: loader-in 1.2s both; }
.loader__seg { --s: 0; position: absolute; background: rgba(244, 241, 236, .6); }
.loader__seg--t { top: 0; left: 0; width: 100%; height: 1px; transform-origin: 0 0; transform: scaleX(var(--s)); }
.loader__seg--r { top: 0; right: 0; width: 1px; height: 100%; transform-origin: 0 0; transform: scaleY(var(--s)); }
.loader__seg--b { bottom: 0; right: 0; width: 100%; height: 1px; transform-origin: 100% 0; transform: scaleX(var(--s)); }
.loader__seg--l { bottom: 0; left: 0; width: 1px; height: 100%; transform-origin: 0 100%; transform: scaleY(var(--s)); }
.loader__mono { position: absolute; inset: 0; opacity: 0; }   /* tampil setelah inisial terisi (athena.js) */
.loader__l {
  position: absolute; font-family: var(--display); font-weight: 400; line-height: 1; letter-spacing: -.03em;
  font-size: calc(var(--fw) * .5);
}
.loader__l--1 { left: 13%; top: 9%; }
.loader__l--2 { right: 13%; bottom: 9%; }
.loader__amp { --w: 0; position: absolute; left: 50%; top: 52%; translate: -50% -50%; font-family: var(--hand); font-size: calc(var(--fw) * .42); line-height: .5; color: var(--soft); clip-path: inset(-60% calc(var(--w) * 100%) -60% -10%); }
.loader__count { display: flex; gap: .9em; margin-top: clamp(22px, 3.6svh, 36px); font-size: .625rem; letter-spacing: .3em; font-variant-numeric: tabular-nums; animation: loader-in 1s .3s both; }
.loader__of { color: var(--faint); }
@keyframes loader-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .loader__kicker, .loader__track, .loader__count { animation: none; }
}


/* =========================================================================
   NAVIGASI & PENANDA GULIR
   ========================================================================= */
/* kotak putih (seperti website Rauhin) */
.nav-btn { position: fixed; z-index: 72; top: max(14px, env(safe-area-inset-top)); right: 14px; display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: var(--white); color: var(--ink); cursor: pointer; transition: opacity .6s; }
.nav-btn__lines { display: grid; gap: 5px; width: 20px; }
.nav-btn__lines span { height: 1.5px; background: currentColor; transition: transform .5s var(--ease), opacity .3s; }
.nav-open .nav-btn__lines span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-btn__lines span:nth-child(2) { opacity: 0; }
.nav-open .nav-btn__lines span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.is-closed .nav-btn, .is-closed .progress, .is-closed .music { opacity: 0; pointer-events: none; }
.nav-panel { position: fixed; z-index: 71; inset: 0; background: rgba(13, 13, 12, .94); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.nav-open .nav-panel { opacity: 1; visibility: visible; }
.nav-panel__inner { display: flex; flex-direction: column; justify-content: center; gap: 22px; width: min(100%, 720px); height: 100%; margin-inline: auto; padding: 90px var(--pad) 40px; overflow-y: auto; scrollbar-width: none; }
.nav-panel__inner::-webkit-scrollbar { display: none; }   /* tanpa batang gulir di kanan */
.nav-panel__list { border-top: 1px solid var(--line); }
.nav-panel__list a { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: min(clamp(1.625rem, 1.3rem + 1.4vw, 2.5rem), 4.4vh); line-height: 1.1; text-decoration: none; color: var(--soft);   /* daftar muat setinggi layar */ transition: color .3s, padding .5s var(--ease); }
.nav-panel__list small { font-family: var(--mono); font-size: .625rem; color: var(--faint); }
.nav-panel__list a:hover, .nav-panel__list a.is-active { padding-left: 12px; color: var(--white); }
.nav-panel__foot { font-family: var(--display); font-size: 1.25rem; color: var(--soft); }
/* garis kemajuan bawah-tengah */
.progress { position: fixed; z-index: 66; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); width: 72px; height: 2px; translate: -50% 0; background: var(--line); transition: opacity .6s; }
.progress i { position: absolute; inset: 0; background: var(--white); transform-origin: left; transform: scaleX(0); }


/* =========================================================================
   LAYAR (kerangka umum) — lebar penuh
   ========================================================================= */
.invite { position: relative; z-index: 2; }
.screen { position: relative; min-height: 100svh; display: grid; align-content: center; padding: 120px var(--pad) 110px; }


/* =========================================================================
   01 · SAMPUL DALAM — OPENING TITLES + garis waktu penyunting
   ========================================================================= */
.titles__pin { position: relative; height: 100svh; overflow: hidden; }
.titles__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 13, 12, .3), rgba(13, 13, 12, .15) 45%, rgba(13, 13, 12, .6)); }
.titles__tl { position: absolute; z-index: 2; top: 28px; left: var(--pad); }
.titles__tr { position: absolute; z-index: 2; top: 30px; right: calc(var(--pad) + 60px); font-variant-numeric: tabular-nums; }
/* kartu judul: tiap kartu punya posisi sendiri agar komposisi berganti */
.tcard { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); display: grid; gap: 10px; }
.tcard--1 { bottom: 25%; justify-items: start; }
.tcard--2 { top: 15%; justify-items: end; text-align: right; }
.tcard--3 { top: 50%; translate: 0 -55%; justify-items: center; text-align: center; }
.tcard:not(.tcard--1) { opacity: 0; }
/* --len = jumlah huruf nama (athena.js) agar nama panjang tetap muat satu baris */
.tcard__name { --len: 4; font-family: var(--display); font-size: min(clamp(5.5rem, 2rem + 15vw, 15rem), calc((100vw - 2 * var(--pad)) / (var(--len) * .56))); font-weight: 400; line-height: .9; letter-spacing: -.02em; white-space: nowrap; }
.tcard__amp { font-size: clamp(3rem, 2rem + 4vw, 6rem); line-height: .8; }
.tcard__date { font-family: var(--display); font-size: clamp(2.75rem, 1rem + 8vw, 8.5rem); line-height: 1; letter-spacing: -.01em; white-space: nowrap; font-variant-numeric: lining-nums; }
.split .ch { display: inline-block; white-space: pre; }
/* garis waktu penyunting video: 4 adegan + kepala putar */
.edit { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: 52px; display: grid; gap: 0; }
.edit__hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 16px; }
.edit__hint svg { width: 9px; height: 9px; }
.edit__track { position: relative; height: 1px; background: rgba(244, 241, 236, .28); }
.edit__fill { position: absolute; inset: 0; background: var(--white); transform-origin: left; transform: scaleX(0); }
.edit__head { position: absolute; top: -7px; left: 0; width: 1px; height: 15px; background: var(--white); }
.edit__head::before { content: ""; position: absolute; top: -4px; left: -3px; border: 3.5px solid transparent; border-top: 4px solid var(--white); }
.edit__marks { display: grid; grid-template-columns: repeat(3, 1fr); }
.edit__marks li { display: flex; gap: 6px; min-width: 0; padding: 6px 0 0 6px; border-left: 1px solid rgba(244, 241, 236, .28); font-family: var(--mono); font-size: .5625rem; color: var(--faint); white-space: nowrap; overflow: hidden; transition: color .4s; }
.edit__marks li.is-on { color: var(--white); }
.edit__marks b { font-weight: 500; }
@media (min-width: 900px) { .edit__marks li { font-size: .625rem; } }
/* tanpa animasi: kartu ditumpuk biasa */
.no-pin .titles__pin { height: auto; display: grid; gap: 70px; padding: 120px var(--pad) 90px; }
.no-pin .tcard { position: relative; inset: auto; translate: none; opacity: 1; }
.no-pin .edit { display: none; }


/* =========================================================================
   02 · PRELUDE (website Rauhin) — garis silang, pendar, teks menyala
   ========================================================================= */
.prelude__pin { position: relative; display: grid; grid-template-rows: 1fr 1fr; min-height: 100svh; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, rgba(13, 13, 12, .62), rgba(13, 13, 12, .82)); }
.prelude__glow { position: absolute; z-index: -1; left: -30vmax; top: -24vmax; width: 70vmax; height: 70vmax; border-radius: 50%; background: radial-gradient(closest-side, rgba(244, 241, 236, .16), rgba(244, 241, 236, 0)); filter: blur(30px); }
.prelude__grid { position: absolute; inset: 0; z-index: -1; background: linear-gradient(var(--line), var(--line)) 50% 0 / 1px 100% no-repeat, linear-gradient(var(--line), var(--line)) 0 50% / 100% 1px no-repeat; }
.prelude__head { display: grid; justify-items: end; align-content: end; gap: 12px; padding: 110px var(--pad) 28px; text-align: right; }
.prelude__title { font-family: var(--sans); font-size: clamp(2.75rem, 1.6rem + 4.6vw, 5.5rem); font-weight: 300; line-height: 1; letter-spacing: -.035em; }
.prelude__body { display: grid; align-content: start; gap: 14px; padding: 28px var(--pad) 80px; }
/* kutipan prolog: Libre Caslon Text miring (sama seperti kutipan sebelumnya) */
.prelude__desc { max-width: 26ch; font-family: var(--serif); font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.25rem); font-style: italic; font-weight: 400; line-height: 1.35; }
@media (min-width: 900px) {
  .prelude__pin { grid-template-columns: 1fr 1fr; }
  .prelude__head { grid-column: 1; grid-row: 1; padding: 0 clamp(32px, 4vw, 64px) 40px 0; }
  .prelude__body { grid-column: 2; grid-row: 2; padding: 40px var(--pad) 0 clamp(32px, 4vw, 64px); }
}


/* =========================================================================
   03 · MEMPELAI — diptych
   ========================================================================= */
.diptych { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; width: 100%; margin-top: 30px; }
.diptych { max-width: 1000px; }
/* --photo-h diisi athena.js agar "&" tepat di tengah tinggi foto */
.diptych__amp { position: absolute; z-index: 2; left: 50%; top: calc(var(--photo-h, 260px) / 2); translate: -50% -50%; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--white); color: var(--ink); font-family: var(--serif); font-size: 1.5rem; font-style: italic; }
/* kolom setinggi kolom sebelahnya; tautan IG didorong ke bawah agar keduanya sejajar */
.person { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.person .link { margin-top: auto; }
.person__photo { width: 100%; aspect-ratio: 3 / 4.6; margin-bottom: 10px; overflow: hidden; }
/* --o 1→0 (athena.js): foto tersingkap dari tengah ke tepi */
.person__photo img { width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 calc(var(--o, 0) * 50%)); }
.person__nick { font-family: var(--display); font-size: clamp(2.125rem, 1.6rem + 2.4vw, 3.5rem); font-weight: 400; line-height: 1; }
.person__full { font-family: var(--serif); font-size: .875rem; font-style: italic; line-height: 1.4; }
.person__parents { font-size: .75rem; line-height: 1.6; color: var(--soft); }
.person:nth-of-type(2) { align-items: flex-end; text-align: right; }
@media (min-width: 900px) {
  .diptych { max-width: 880px; gap: 14px 28px; }
  .person__photo { aspect-ratio: 4 / 5; }
  .person__full { font-size: 1.125rem; }
  .person__parents { font-size: .875rem; }
}


/* =========================================================================
   04 · KISAH — tahun raksasa bergaris luar, terisi saat digulir
   ========================================================================= */
.years { width: 100%; margin-top: 30px; border-top: 1px solid var(--line); }
.year { display: grid; gap: 10px; padding: 26px 0 30px; border-bottom: 1px solid var(--line); }
/* tahun: garis luar putih; isinya naik dari bawah (--fill 0→1 oleh athena.js) */
.year__num {
  --fill: 0;
  font-family: var(--display); font-size: clamp(5rem, 3rem + 10vw, 9rem); line-height: .9; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(244, 241, 236, .7);
  background: linear-gradient(0deg, var(--white) calc(var(--fill) * 100%), transparent calc(var(--fill) * 100%));
  -webkit-background-clip: text; background-clip: text;
}
.no-pin .year__num { --fill: 1; }
.year__title { font-family: var(--serif); font-size: 1.5rem; font-style: italic; font-weight: 400; line-height: 1.2; }
.year__text { display: grid; gap: 6px; }
@media (min-width: 900px) {
  .year { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 40px; }
  .year__text .body { max-width: 44ch; }
}


/* =========================================================================
   05 · SAVE THE DATE (Wellness) — kartu foto berbingkai
   ========================================================================= */
.savedate .wrap { gap: 20px; }
.std { position: relative; display: grid; place-items: center; width: min(100%, 560px); aspect-ratio: 339 / 476; overflow: hidden; isolation: isolate; }
.std__media { position: absolute; inset: 0; z-index: -1; }
.std__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.6s ease, transform 6s linear; }
.std__media img.is-on { opacity: 1; transform: scale(1); }
.std__media::after { content: ""; position: absolute; inset: 0; background: rgba(13, 13, 12, .5); }
.std__text { display: grid; justify-items: center; gap: 16px; padding: 24px 18px; text-align: center; }
.std__title { font-family: var(--display); font-size: clamp(2.5rem, 2rem + 2.4vw, 3.75rem); font-weight: 400; line-height: 1.02; }
.count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; width: 100%; max-width: 300px; margin: 4px 0 6px; }
.count div { display: grid; justify-items: center; gap: 2px; }
.count__num { display: block; overflow: clip; }
.count__num b { display: block; font-family: var(--display); font-size: 2.125rem; font-weight: 400; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.count span:not(.count__num) { font-family: var(--mono); font-size: .5625rem; color: var(--soft); }


/* =========================================================================
   06 · ACARA — jam raksasa
   ========================================================================= */
.clocks { display: grid; gap: 0; width: 100%; margin-top: 26px; border-top: 1px solid var(--line); }
.clock { display: grid; justify-items: start; gap: 6px; padding: 26px 0 32px; border-bottom: 1px solid var(--line); }
.clock__idx { color: var(--faint); }
.clock__time { display: flex; align-items: baseline; gap: 10px; font-family: var(--sans); font-size: clamp(4.5rem, 3rem + 7vw, 7.5rem); font-weight: 300; line-height: .9; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.clock__time small { font-family: var(--mono); font-size: .75rem; letter-spacing: .04em; color: var(--soft); }
.clock__name { margin-top: 8px; font-family: var(--display); font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); font-weight: 400; line-height: 1.1; }
.clock__date { font-family: var(--serif); font-size: 1rem; font-style: italic; }
.clock__venue { margin-top: 8px; font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.dress { margin-top: 26px; font-family: var(--serif); font-size: 1.125rem; font-style: italic; color: var(--soft); }
@media (min-width: 900px) {
  .clocks { grid-template-columns: 1fr 1fr; border-top: 0; }
  .clock { padding: 30px 40px 36px 0; border-top: 1px solid var(--line); }
  .clock + .clock { padding-left: 40px; border-left: 1px solid var(--line); }
}


/* =========================================================================
   07 · OUR GALLERY (website Rauhin "Our Moments") — kartu 3D melayang
   ========================================================================= */
.moments__stage { position: relative; height: 100svh; min-height: 640px; overflow: hidden; isolation: isolate; background: radial-gradient(80% 60% at 50% 50%, rgba(13, 13, 12, .35), rgba(13, 13, 12, .82)); }
.moments__corner { position: absolute; z-index: 4; top: 30px; left: var(--pad); }
.moments__count { position: absolute; z-index: 4; top: 32px; right: calc(var(--pad) + 60px); }
/* judul di kiri bawah, DI ATAS kartu (tidak tertutup foto) */
.moments__title { position: absolute; z-index: 5; left: var(--pad); bottom: 70px; display: grid; justify-items: start; font-family: var(--display); font-size: clamp(3.25rem, 2rem + 5vw, 7rem); font-weight: 400; line-height: .9; letter-spacing: -.02em; text-align: left; pointer-events: none; transform-origin: left bottom; text-shadow: 0 4px 40px rgba(13, 13, 12, .6); }
.fly-card img { transition: transform .8s var(--ease); }
.fly-card:hover img, .fly-card:focus-visible img { transform: scale(1.05); }
.only-hover { display: none; }
@media (hover: hover) { .only-hover { display: inline; } }
.moments__title span:last-child i { color: transparent; background: var(--silver); -webkit-background-clip: text; background-clip: text; }
.moments__flight { position: absolute; inset: 0; z-index: 2; perspective: 1400px; }
.fly-card { position: absolute; left: 50%; top: 50%; width: clamp(200px, 54vw, 320px); aspect-ratio: 4 / 5; margin: 0; padding: 0; border: 0; overflow: hidden; background: #222; cursor: zoom-in; transform-style: preserve-3d; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .8); will-change: transform, opacity; }
@media (min-width: 900px) { .fly-card { width: clamp(220px, 21vw, 330px); } }
.fly-card img { width: 100%; height: 100%; object-fit: cover; }
.moments__foot { position: absolute; z-index: 4; left: var(--pad); top: 54px; font-family: var(--mono); font-size: .625rem; color: var(--soft); }
/* tanpa animasi: kisi biasa */
.no-pin .moments__stage { height: auto; display: grid; gap: 24px; padding: 110px var(--pad) 80px; }
.no-pin .moments__title, .no-pin .moments__corner, .no-pin .moments__count, .no-pin .moments__foot { position: static; }
.no-pin .moments__flight { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.no-pin .fly-card { position: relative; left: auto; top: auto; width: 100%; }

.lightbox { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(13, 13, 12, .96); color: var(--white); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(13, 13, 12, .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; background: var(--white); color: var(--ink); 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-family: var(--mono); font-size: .6875rem; color: var(--soft); }


/* =========================================================================
   08 · SHORT FILM
   ========================================================================= */
.screenbox { position: relative; width: min(100%, 980px); margin-top: 18px; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.screenbox img { width: 100%; height: 100%; object-fit: cover; opacity: .75; 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: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 22px 0 18px; border: 0; background: var(--white); color: var(--ink); font-size: .875rem; cursor: pointer; transition: transform .5s var(--ease); }
.screenbox__play:hover { transform: scale(1.05); }
.screenbox__play svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.screenbox__empty { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; }
.film .hand { max-width: 18ch; margin-top: 18px; }


/* =========================================================================
   09 · RSVP & UCAPAN
   ========================================================================= */
.rsvp__grid { display: grid; gap: 50px; width: 100%; margin-top: 12px; }
@media (min-width: 900px) { .rsvp__grid { grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; } }
.glass { width: 100%; padding: 26px 22px 22px; background: rgba(13, 13, 12, .55); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.glass > .body { margin-bottom: 8px; }
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 4px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field__label { font-family: var(--mono); font-size: .625rem; 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 rgba(244, 241, 236, .3); border-radius: 0; background: transparent;
  font-family: var(--display); 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; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font-size: .8125rem; 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(--ink); }
.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; }
.wishes { display: grid; gap: 6px; width: 100%; }
.wishes__title { font-size: 2.75rem; font-weight: 400; line-height: 1; }
.wishes__list { margin-top: 12px; }
.wish { display: grid; gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); }
.wish__msg { font-family: var(--serif); font-size: 1.0625rem; font-style: italic; line-height: 1.5; overflow-wrap: anywhere; }
.wish__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-family: var(--mono); font-size: .625rem; color: var(--soft); }
.wish__meta b { font-weight: 500; color: var(--white); overflow-wrap: anywhere; }
.wishes .btn { justify-self: start; margin-top: 8px; }


/* =========================================================================
   10 · TANDA KASIH
   ========================================================================= */
.gift .btn { margin-top: 8px; }
.sheet { width: min(100vw - 32px, 420px); max-height: 86svh; margin: auto; padding: 0; border: 0; background: #161615; color: var(--white); overflow: auto; box-shadow: inset 0 0 0 1px var(--line); }
.sheet::backdrop { background: rgba(0, 0, 0, .65); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet__inner { position: relative; display: grid; justify-items: start; gap: 10px; padding: 40px 24px 26px; }
.sheet__close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--white); cursor: pointer; }
.sheet__title { font-family: var(--display); font-size: 2.25rem; font-weight: 400; line-height: 1; }
.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(--display); font-size: 1.875rem; letter-spacing: .03em; font-variant-numeric: lining-nums tabular-nums; }
.account__name { margin-bottom: 8px; font-family: var(--serif); font-style: italic; color: var(--soft); }


/* =========================================================================
   11 · PENUTUP — END CREDITS bergulir di atas video yang meredup
   ========================================================================= */
.closing { position: relative; background: linear-gradient(180deg, rgba(13, 13, 12, 0), rgba(13, 13, 12, .72) 18%, rgba(13, 13, 12, .8) 80%, rgba(13, 13, 12, .92)); }
.credits { display: grid; justify-items: center; gap: 22px; padding: 40svh var(--pad) 10svh; text-align: center; }
.credits__lead { max-width: 30ch; font-family: var(--serif); font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); font-style: italic; line-height: 1.55; }
/* sumbu tengah: peran rata kanan · nama rata kiri (gaya kredit film) */
.roll { display: grid; gap: 22px; width: min(100%, 760px); margin: 14svh 0 0; }
.roll__row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px; align-items: baseline; }
.roll__row--gap { margin-top: 9svh; }
.roll dt { font-family: var(--mono); font-size: .5625rem; letter-spacing: .08em; text-align: right; text-transform: uppercase; color: var(--faint); }
.roll dd { margin: 0; font-family: var(--display); font-size: clamp(1.0625rem, .95rem + .6vw, 1.5rem); line-height: 1.3; text-align: left; overflow-wrap: anywhere; }
@media (min-width: 900px) { .roll__row { grid-template-columns: 1fr 1fr; gap: 36px; } .roll dt { font-size: .6875rem; } }
.finale { display: grid; place-content: center; justify-items: center; gap: 16px; min-height: 100svh; padding: 100px var(--pad) 110px; text-align: center; }
.finale__thanks { font-family: var(--display); font-size: clamp(4.5rem, 2rem + 11vw, 11rem); font-weight: 400; line-height: .9; letter-spacing: -.02em; }
.finale__thanks > * { display: inline-block; }
.finale__names { font-family: var(--display); font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem); line-height: 1.1; }
.signature { display: grid; justify-items: center; gap: 2px; margin-top: 40px; }
.signature b { font-weight: 500; color: var(--white); }
.signature__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 16px; }
.signature__links a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-family: var(--mono); font-size: .625rem; text-decoration: none; color: var(--soft); transition: color .3s; }
.signature__links a:hover { color: var(--white); }
.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; width: 100%; }
@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: 14px; bottom: max(14px, env(safe-area-inset-bottom)); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--white); cursor: pointer; transition: opacity .6s; }
.music svg { opacity: .5; transition: opacity .4s; }
.music[aria-pressed="true"] svg { opacity: 1; }   /* tanpa denyut: aktif = terang */
@media (min-width: 900px) { .nav-btn { right: 28px; top: 24px; } .music { right: 28px; } }

.toast { position: fixed; z-index: 90; left: 50%; bottom: 84px; translate: -50% 20px; padding: 12px 22px; background: var(--white); color: var(--ink); font-size: .75rem; 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; }
}
