/* =========================================================================
   RAUHIN — TEMPLATE IRIS · iris.css
   Iris, dewi pelangi & pembawa pesan. PUTIH BERSIH EDITORIAL (standar EOS):
   kertas putih-gading, teks gelap, ruang kosong lega, foto berbingkai
   ukuran sedang, sesekali bagian gelap/foto penuh sebagai kontras.
   Dipelajari dari groovepublic Snapp Minimalist & Claire.
   Ciri khas IRIS:
   - DIAFRAGMA LENSA: foto & video terbuka dari lingkaran kecil seperti
     iris kamera yang membuka
   - GARIS PELANGI: garis tipis & cincin penanda gulir berkilau pastel
   Ubah warna & ukuran huruf di TOKEN.
   ========================================================================= */


/* =========================================================================
   TOKEN
   ========================================================================= */
:root {
  --paper: #f6f4ef;                     /* latar kertas putih-gading */
  --paper-2: #eeebe4;
  --ink: #22201d;                       /* teks utama, kontras 14:1 */
  --soft: #6b665f;                      /* teks kedua, kontras 5.3:1 */
  --line: rgba(34, 32, 29, .14);
  --grey: #e3e0d9;                      /* tombol datar */
  --night: #151413;                     /* bagian gelap */
  --white: #f6f4ef;
  --iri: linear-gradient(90deg, #c9b8e8, #b8d8e8 30%, #e8dcb8 60%, #e8b8c8 85%, #c9b8e8);

  --serif: "Newsreader", "Times New Roman", serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --fs-heading: clamp(2.375rem, 2rem + 2vw, 2.875rem);
  --fs-body: .875rem;

  --col: 480px;
  --pad: clamp(28px, 8vw, 44px);
  --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(--paper); 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; }
i { font-style: italic; }
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; }


/* =========================================================================
   TIPOGRAFI & KOMPONEN BERSAMA
   ========================================================================= */
.caps { font-size: .6875rem; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; }
.caps--soft { color: var(--soft); }
.caps--wide { letter-spacing: .5em; margin-right: -.5em; }
.caps b { font-weight: 500; }
.heading { font-family: var(--serif); font-size: var(--fs-heading); font-weight: 300; line-height: 1.08; letter-spacing: -.01em; }
.body { max-width: 34ch; font-size: var(--fs-body); line-height: 1.85; color: var(--soft); }
.statement { max-width: 20ch; font-family: var(--serif); font-size: clamp(1.625rem, 1.4rem + 1.2vw, 1.875rem); font-weight: 300; font-style: italic; line-height: 1.35; }
.quote { max-width: 30ch; font-family: var(--serif); font-size: 1.25rem; font-weight: 300; font-style: italic; line-height: 1.5; }
.note { font-size: .625rem; letter-spacing: .02em; opacity: .8; }

/* GARIS PELANGI — garis tipis berkilau pastel */
.iri { display: block; width: 64px; height: 1px; background: var(--iri); background-size: 200% 100%; animation: iri 6s linear infinite; }
@keyframes iri { to { background-position: -200% 0; } }

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

/* DIAFRAGMA LENSA: foto terbuka dari lingkaran kecil (--a 0→1 oleh iris.js;
   tanpa animasi = langsung terbuka penuh) */
.aperture { --a: 1; clip-path: circle(calc(var(--a) * 75%) at 50% 50%); }

/* tombol kotak datar (gaya editorial) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 28px;
  border: 0; border-radius: 0; font-size: .6875rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; touch-action: manipulation; transition: background-color .4s, color .4s, transform .3s;
}
.btn:active { transform: scale(.98); }
.btn--grey { background: var(--grey); color: var(--ink); }
.btn--grey:hover { background: var(--ink); color: var(--paper); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: #000; }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--grey); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: .625rem; }
.btn--wide { justify-content: space-between; width: 100%; }
.btn[disabled] { opacity: .5; cursor: wait; }
.btn svg { width: 14px; height: 14px; }

/* wadah video sematan: video 16:9 menutupi wadah (seperti object-fit: cover),
   diperbesar (--zoom) agar tepi pemutar & pita hitam sinematik tak terlihat */
.js-video { position: relative; overflow: hidden; background: var(--night); }
.js-video > img { width: 100%; height: 100%; object-fit: cover; }
.js-video .vid { --zoom: 1.4; position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; container-type: size; }
.js-video .vid.is-ready { opacity: 1; }
.js-video .vid iframe, .js-video .vid video {
  position: absolute; left: 50%; top: 50%; width: max(100cqw, 177.78cqh); max-width: none; height: max(100cqh, 56.25cqw);
  translate: -50% -50%; scale: var(--zoom); border: 0; pointer-events: none; object-fit: cover;
}


/* =========================================================================
   00 · SAMPUL — video penuh gelap
   ========================================================================= */
.gate {
  position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: max(12svh, 76px) var(--pad) max(8svh, 40px); text-align: center; color: var(--white); background: var(--night);
}
.gate__media { position: absolute; inset: 0; }
.gate::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 20, 19, .55), rgba(21, 20, 19, .15) 40%, rgba(21, 20, 19, .3) 62%, rgba(21, 20, 19, .82)); }
.gate__top, .gate__bottom { position: relative; z-index: 1; display: grid; justify-items: center; gap: 12px; }
.gate__names { font-family: var(--serif); font-size: clamp(2.5rem, 2rem + 3vw, 3.125rem); font-weight: 300; line-height: 1.1; }
.gate__dear { font-family: var(--serif); font-size: 1rem; font-style: italic; opacity: .85; }
.gate__guest { margin-top: -6px; font-family: var(--serif); font-size: 1.5rem; font-weight: 300; letter-spacing: .04em; overflow-wrap: anywhere; }
.gate .note { margin: -2px 0 12px; }


/* =========================================================================
   LOADING AWAL — "LENSA MEMBUKA"
   --d  diameter lensa · --cy  tinggi titik tengah lensa
   --p  progres 0..1 (cincin pelangi) · --x  0 = lensa · 1 = layar penuh
   Lapisan lensa = foto layar penuh yang dipotong lingkaran, jadi saat
   lingkaran membesar foto itu tepat menjadi latar sampul (+ bayangan sama).
   ========================================================================= */
.loader {
  --d: min(62vw, 300px, 40svh); --cy: 44%; --p: 0; --x: 0;
  position: fixed; inset: 0; z-index: 90; overflow: hidden; background: var(--paper); color: var(--ink);
  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__lens { position: absolute; inset: 0; background: var(--night); clip-path: circle(calc(var(--d) / 2 + var(--x) * 120vmax) at 50% var(--cy)); }
.loader__photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* bayangan = .gate::after, muncul saat lensa membesar */
.loader__shade { position: absolute; inset: 0; opacity: var(--x); background: linear-gradient(180deg, rgba(21, 20, 19, .55), rgba(21, 20, 19, .15) 40%, rgba(21, 20, 19, .3) 62%, rgba(21, 20, 19, .82)); }
.loader__blades { position: absolute; left: 50%; top: var(--cy); width: var(--d); height: var(--d); translate: -50% -50%; overflow: visible; }
.loader__seams { fill: none; stroke: rgba(246, 244, 239, .16); stroke-width: .35; }

/* cincin: garis tipis + busur pelangi yang tergambar sesuai progres */
.loader__ring { position: absolute; left: 50%; top: var(--cy); width: calc(var(--d) + 30px); height: calc(var(--d) + 30px); translate: -50% -50%; rotate: -90deg; overflow: visible; animation: loader-in 1.2s both; }
.loader__ring circle { fill: none; stroke-width: .35; }
.loader__track { stroke: var(--line); }
.loader__arc { stroke: url(#iriLine); stroke-width: .9 !important; stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: calc(100 - var(--p) * 100); }

.loader__kicker { position: absolute; left: 0; right: 0; top: max(8svh, 44px); text-align: center; animation: loader-in 1.2s .1s both; }
.loader__text { position: absolute; left: 0; right: 0; top: calc(var(--cy) + var(--d) / 2 + 40px); display: grid; justify-items: center; gap: 14px; padding: 0 var(--pad); text-align: center; }
.loader__names { font-family: var(--serif); font-size: clamp(2.25rem, 1.8rem + 2.6vw, 2.875rem); font-weight: 300; line-height: 1.1; }
.loader__names > * { display: inline-block; opacity: 0; }   /* tampil lewat iris.js */
.loader__stop { display: flex; gap: 1.2em; color: var(--soft); animation: loader-in 1.2s .3s both; }
.loader__stop > span:first-child { color: var(--ink); font-variant-numeric: tabular-nums; min-width: 3.6em; text-align: right; }
@keyframes loader-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .loader__kicker, .loader__ring, .loader__stop { animation: none; }
  .loader__names > * { opacity: 1; }
}


/* =========================================================================
   NAVIGASI & PENANDA GULIR
   ========================================================================= */
.nav-btn { position: fixed; z-index: 72; top: max(14px, env(safe-area-inset-top)); right: 14px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: var(--paper); color: var(--ink); cursor: pointer; box-shadow: 0 0 0 1px var(--line); transition: opacity .6s; }
.nav-btn__lines { display: grid; gap: 6px; width: 18px; }
.nav-btn__lines span { height: 1px; background: currentColor; transition: transform .5s var(--ease); }
.nav-open .nav-btn__lines span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-open .nav-btn__lines span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.is-closed .nav-btn, .is-closed .ring, .is-closed .music { opacity: 0; pointer-events: none; }
.is-closed .invite, .is-closed .side { visibility: hidden; }
/* panel daftar isi — terbuka seperti iris mata/rana kamera dari tombol menu,
   cahaya pelangi lembut berputar pelan di sudut, daftar bernomor rata kiri */
.nav-panel {
  --at: calc(100% - 36px) max(36px, calc(env(safe-area-inset-top) + 36px));   /* titik pusat = tombol menu */
  position: fixed; z-index: 71; inset: 0; overflow: hidden; background: var(--paper);
  clip-path: circle(0 at var(--at)); visibility: hidden;
  transition: clip-path .9s var(--ease), visibility 0s .9s;
}
.nav-open .nav-panel { clip-path: circle(150% at var(--at)); visibility: visible; transition: clip-path 1.1s var(--ease), visibility 0s; }
.nav-panel::before {   /* cahaya pelangi (tanpa isi, hanya hiasan) */
  content: ""; position: absolute; top: -30vmax; right: -30vmax; width: 80vmax; height: 80vmax; border-radius: 50%;
  background: conic-gradient(from 0deg, #c9b8e8, #b8d8e8, #e8dcb8, #e8b8c8, #c9b8e8);
  filter: blur(70px); opacity: .45; animation: iris-glow 24s linear infinite;
}
@keyframes iris-glow { to { rotate: 360deg; } }
.nav-panel__inner { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 22px; height: 100%; padding: 96px var(--pad) 40px; overflow-y: auto; scrollbar-width: none; }
.nav-panel__inner::-webkit-scrollbar { display: none; }
.nav-panel__inner > .caps { display: flex; align-items: center; gap: 14px; }
.nav-panel__inner > .caps::after { content: ""; flex: 0 0 48px; height: 1px; background: var(--iri); background-size: 200% 100%; animation: iri 6s linear infinite; }
.nav-panel__list { counter-reset: nav; border-top: 1px solid var(--line); }
.nav-panel__list li { counter-increment: nav; border-bottom: 1px solid var(--line); }
.nav-panel__list a { display: grid; grid-template-columns: 2.25rem 1fr auto; align-items: baseline; padding: min(11px, 1.3vh) 0; font-family: var(--serif); font-size: min(1.75rem, 4.1vh); font-weight: 300; line-height: 1.15; text-decoration: none; color: var(--soft); transition: color .35s, transform .6s var(--ease); }
.nav-panel__list a::before { content: counter(nav, decimal-leading-zero); font-style: normal; font-family: var(--sans); font-size: .6875rem; font-weight: 400; letter-spacing: .08em; color: var(--soft); }
.nav-panel__list a::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--iri); background-size: 300% 100%; opacity: 0; scale: .4; transition: opacity .4s, scale .5s var(--ease); align-self: center; }
.nav-panel__list a:hover, .nav-panel__list a.is-active { color: var(--ink); font-style: italic; transform: translateX(6px); }
.nav-panel__list a.is-active::after { opacity: 1; scale: 1; }
.nav-panel__foot { font-family: var(--serif); font-size: 1.125rem; font-style: italic; color: var(--soft); }
.nav-panel .iri { display: none; }   /* garis pelangi pindah ke judul "Contents" */
@media (prefers-reduced-motion: reduce) {
  .nav-panel, .nav-open .nav-panel { transition: none; }
  .nav-panel::before { animation: none; }
}
/* cincin "iris" kiri bawah: terisi garis pelangi sesuai posisi gulir */
.ring { position: fixed; z-index: 66; left: 14px; bottom: max(14px, env(safe-area-inset-bottom)); width: 44px; height: 44px; transform: rotate(-90deg); transition: opacity .6s; }
.ring__track { fill: rgba(246, 244, 239, .85); stroke: var(--line); stroke-width: 1; }
.ring__fill { fill: none; stroke: url(#iriGrad); stroke-width: 2; stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; }


/* =========================================================================
   LAYAR LEBAR — video di kiri, kertas undangan di kanan
   ========================================================================= */
.side { display: none; }
@media (min-width: 900px) {
  .side { display: block; position: fixed; inset: 0 var(--col) 0 0; color: var(--white); }
  .side__media { position: absolute; inset: 0; }
  .side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 20, 19, .2), rgba(21, 20, 19, .7)); }
  .side__text { position: absolute; z-index: 1; left: 64px; bottom: 60px; display: grid; gap: 14px; }
  .side__names { font-family: var(--serif); font-size: clamp(3.5rem, 5vw, 5.25rem); font-weight: 300; line-height: 1; }
  .invite { margin-left: auto; width: var(--col); }
  .nav-btn { right: 24px; }
  .nav-panel { left: auto; width: var(--col); --at: calc(100% - 46px) max(36px, calc(env(safe-area-inset-top) + 36px)); }   /* tombol menu di right: 24px */
  .ring { left: calc(100% - var(--col) + 18px); }
}


/* =========================================================================
   LAYAR (kerangka umum)
   ========================================================================= */
.invite { position: relative; background: var(--paper); }
.screen { position: relative; min-height: 100svh; display: grid; align-content: center; justify-items: start; gap: 18px; padding: 120px var(--pad) 110px; overflow: clip; }
.screen--center { justify-items: center; text-align: center; }
.screen--center .body, .screen--center .quote, .screen--center .statement { margin-inline: auto; }
/* bagian gelap (kontras) */
.dark { background: var(--night); color: var(--white); }
.dark .body, .dark .caps--soft { color: rgba(246, 244, 239, .72); }


/* =========================================================================
   01 · SAMPUL DALAM — nama besar + jendela video
   ========================================================================= */
.hero { gap: 16px; padding-top: 110px; padding-bottom: 80px; }
.hero__names { font-family: var(--serif); font-size: clamp(3.5rem, 2.6rem + 5vw, 4.5rem); font-weight: 300; line-height: .98; letter-spacing: -.02em; }
.hero__names i { font-size: .62em; }
.window { width: min(86%, 340px); aspect-ratio: 3 / 4; margin-top: 18px; }


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


/* =========================================================================
   03 · MEMPELAI — foto kecil berbingkai di tengah
   ========================================================================= */
.couple__list { display: grid; gap: 90px; margin-top: 26px; }
.person { display: grid; justify-items: center; gap: 14px; }
.person__role { font-family: var(--serif); font-size: 2.5rem; font-weight: 300; font-style: italic; line-height: 1; }
.person__photo { width: 200px; aspect-ratio: 3 / 4; margin: 8px 0 6px; overflow: hidden; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__full { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; letter-spacing: .06em; }
.person .body { max-width: 30ch; }


/* =========================================================================
   04 · KISAH — sepasang foto kecil + bab teks
   ========================================================================= */
.story__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; margin: 18px 0 10px; }
.story__pair figure { aspect-ratio: 5 / 6; overflow: hidden; }
.story__pair figure:nth-child(2) { margin-top: 36px; }
.story__pair img { width: 100%; height: 100%; object-fit: cover; }
.chapters { display: grid; gap: 34px; width: 100%; margin-top: 24px; }
.chapter { display: grid; gap: 6px; }
.chapter__title { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; line-height: 1.2; }
.chapter .body { max-width: none; text-align: justify; hyphens: auto; }


/* =========================================================================
   05 · ACARA — foto penuh gelap
   ========================================================================= */
.events { gap: 16px; isolation: isolate; }
.events__media { position: absolute; inset: 0; z-index: -1; }
.events__media img { width: 100%; height: 100%; object-fit: cover; }
.events__media::after { content: ""; position: absolute; inset: 0; background: rgba(21, 20, 19, .66); }
.events__list { display: grid; gap: 56px; margin-top: 14px; }
.event { display: grid; justify-items: center; gap: 6px; }
.event__name { font-family: var(--serif); font-size: 1.375rem; font-weight: 300; font-style: italic; }
.event__date { font-family: var(--serif); font-size: 1.625rem; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2; }
.event__time { font-family: var(--serif); font-size: 1.25rem; font-weight: 300; }
.event__venue { margin-top: 10px; font-size: .75rem; letter-spacing: .26em; text-transform: uppercase; }
.event .btn { margin-top: 12px; }
.dress { display: grid; justify-items: center; gap: 8px; margin-top: 30px; padding-top: 30px; border-top: 1px solid rgba(246, 244, 239, .2); }


/* =========================================================================
   06 · SAVE THE DATE
   ========================================================================= */
.countdown { gap: 22px; }
.count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; max-width: 340px; margin: 10px 0 8px; }
.count div { display: grid; justify-items: center; gap: 2px; }
.count__num { display: block; overflow: clip; }
.count__num b { display: block; font-family: var(--serif); font-size: 3rem; font-weight: 300; line-height: 1.05; font-variant-numeric: lining-nums tabular-nums; }
.count span:not(.count__num) { font-size: .5625rem; letter-spacing: .26em; text-transform: uppercase; color: var(--soft); }


/* =========================================================================
   07 · GALERI — kisi 2 kolom, tinggi berselang
   ========================================================================= */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 26px; }
.grid__item { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; padding: 0; border: 0; overflow: hidden; background: var(--paper-2); cursor: zoom-in; }
.grid__item:nth-child(3n + 1) { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.grid__item:hover img { transform: scale(1.04); }

.lightbox { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(246, 244, 239, .98); color: var(--ink); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(246, 244, 239, .98); }
.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(--grey); 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-size: .6875rem; letter-spacing: .3em; color: var(--soft); }


/* =========================================================================
   08 · RSVP — formulir bergaris tipis
   ========================================================================= */
.form { display: grid; gap: 24px; width: 100%; margin-top: 18px; }
.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 rgba(34, 32, 29, .3); border-radius: 0; background: transparent;
  font-family: var(--serif); font-size: 1.25rem; 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(--ink); }
.field__error { font-size: .75rem; color: #a3412f; }
.field.has-error input, .field.has-error textarea { border-bottom-color: #a3412f; }
.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; background: var(--grey); 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(--ink); color: var(--paper); }
.choice label:has(input:focus-visible) { outline: 1px solid var(--ink); outline-offset: 3px; }
.form__status { min-height: 1.4em; font-family: var(--serif); font-style: italic; }


/* =========================================================================
   09 · UCAPAN — gelap, berselang kiri-kanan
   ========================================================================= */
.wishes { align-content: start; gap: 12px; padding-top: 100px; min-height: auto; }
.wishes__list { display: grid; gap: 26px; width: 100%; margin-top: 22px; }
.wish { display: grid; gap: 8px; max-width: 82%; }
.wish:nth-child(even) { justify-self: end; text-align: right; }
.wish__msg { font-family: var(--serif); font-size: 1.125rem; font-weight: 300; 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: rgba(246, 244, 239, .65); }
.wish:nth-child(even) .wish__meta { justify-content: flex-end; }
.wish__meta b { font-weight: 500; color: var(--white); overflow-wrap: anywhere; }
.wishes .btn { margin-top: 18px; }


/* =========================================================================
   10 · TANDA KASIH
   ========================================================================= */
.gift .btn { margin-top: 8px; }
.sheet { width: min(100vw - 32px, 400px); max-height: 86svh; margin: auto; padding: 0; border: 0; background: var(--paper); color: var(--ink); overflow: auto; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .35); }
.sheet::backdrop { background: rgba(34, 32, 29, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet__inner { position: relative; display: grid; justify-items: center; gap: 12px; padding: 42px 26px 30px; text-align: center; }
.sheet__close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.sheet__title { font-family: var(--serif); font-size: 2.25rem; font-weight: 300; line-height: 1; }
.gift__list { display: grid; width: 100%; margin-top: 8px; }
.account { display: grid; justify-items: center; gap: 6px; padding: 24px 0; }
.account + .account { border-top: 1px solid var(--line); }
.account__number { font-family: var(--serif); font-size: 1.875rem; font-weight: 300; letter-spacing: .06em; font-variant-numeric: lining-nums tabular-nums; }
.account__name { margin-bottom: 8px; font-family: var(--serif); font-style: italic; color: var(--soft); }


/* =========================================================================
   11 · FILM — layar 16:9
   ========================================================================= */
.screenbox { position: relative; width: calc(100% + var(--pad) * 2 - 32px); margin-top: 22px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--night); }
.screenbox img { width: 100%; height: 100%; object-fit: cover; 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(--paper); color: var(--ink); cursor: pointer; box-shadow: 0 0 0 8px rgba(246, 244, 239, .25); transition: transform .5s var(--ease); }
.screenbox__play:hover { transform: scale(1.08); }
.screenbox__play svg { width: 20px; height: 20px; margin-left: 3px; fill: currentColor; stroke: none; }
.screenbox__empty { position: absolute; left: 0; right: 0; bottom: 14px; color: var(--white); }
.film .quote { margin-top: 14px; }


/* =========================================================================
   12 · PENUTUP — foto penuh gelap + foto kecil berbingkai
   ========================================================================= */
.closing { gap: 18px; padding-bottom: 190px; isolation: isolate; }
.closing__media { position: absolute; inset: 0; z-index: -1; }
.closing__media img { width: 100%; height: 100%; object-fit: cover; filter: blur(2px); scale: 1.05; }
.closing__media::after { content: ""; position: absolute; inset: 0; background: rgba(21, 20, 19, .72); }
.closing__photo { width: 190px; aspect-ratio: 2 / 3; margin: 8px 0; overflow: hidden; }
.closing__photo img { width: 100%; height: 100%; object-fit: cover; }
.closing__names { letter-spacing: .45em; margin-right: -.45em; }
.signature { position: absolute; left: 0; right: 0; bottom: 40px; display: grid; justify-items: center; gap: 2px; padding: 0 var(--pad); }
.signature .caps { font-size: .5625rem; }
.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-size: .5625rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: rgba(246, 244, 239, .72); 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; }
@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: var(--paper); color: var(--ink); cursor: pointer; box-shadow: 0 0 0 1px var(--line); 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; background: var(--ink); color: var(--paper); font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; opacity: 0; visibility: hidden; transition: translate .5s var(--ease), opacity .3s, visibility .5s; }
.toast.is-show { translate: -50% 0; opacity: 1; visibility: visible; }


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