/* =====================================================================
   Tito & Tari — Undangan Pernikahan
   Stylesheet utama. Mobile-first; breakpoint desktop = 900px
   (sama dengan konstanta BREAKPOINT di js/core.js — ubah keduanya bersamaan).
   Metodologi BEM (.block__element--modifier) + state class .is-*.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Token desain
   --------------------------------------------------------------------- */
:root {
  /* Warna — palet "Putih & Navy" */
  --bg: #FFFFFF;          /* latar utama */
  --bg-2: #F2F5FA;        /* section acara */
  --paper: #FFFFFF;       /* polaroid, kartu, form */
  --ink: #0F1F3D;         /* teks utama */
  --muted: #4A5872;       /* teks sekunder & label kecil (kontras ≥ 4.5:1) */
  --faint: #A9B3C6;       /* HANYA dekorasi & kata yang belum menyala */
  --moss: #1B2F5B;        /* tombol utama, aksen */
  --moss-dark: #12224A;   /* hover / tekan */
  --gate: #0B1730;        /* layar pembuka, permukaan gelap */
  --wheat: #C9D4EA;       /* aksen di permukaan gelap saja */
  --wheat-light: #E4EAF5;
  --line: rgba(15, 31, 61, .14);
  --danger: #9A3B2E;
  --ok: #2F7A4F;
  --on-dark: #F5F7FB;
  --on-dark-muted: rgba(245, 247, 251, .68);

  /* Font */
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Gerak */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-sheet: cubic-bezier(.32, .72, 0, 1);

  /* Lapisan */
  --z-nav: 50;
  --z-backdrop: 70;
  --z-sheet: 71;
  --z-rsvp: 90;
  --z-lightbox: 95;
  --z-gate: 100;
  --z-cam: 120;
  --z-popup: 130;
  --z-skip: 200;
}

/* ---------------------------------------------------------------------
   2. Dasar
   --------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

body.is-locked,
body.is-modal { overflow: hidden; }

[hidden] { display: none !important; }

img { display: block; max-width: 100%; }
img[src=""] { visibility: hidden; }

button,
input,
textarea { font: inherit; color: inherit; }

a { color: var(--moss); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; }

.on-dark :focus-visible,
.gate:focus-visible,
.lightbox :focus-visible,
.cam :focus-visible { outline-color: var(--wheat-light); }

section[id] { scroll-margin-top: 84px; }

#main:focus,
[tabindex="-1"]:focus { outline: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: var(--z-skip);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

.noscript {
  margin: 0;
  padding: 40px 24px;
  text-align: center;
  font-size: 16px;
}

.eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--moss { color: var(--moss); }
.eyebrow--wheat { color: var(--wheat); }

.serif { font-family: var(--serif); font-weight: 400; }

.section-title {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 11.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -.01em;
  font-variant-numeric: lining-nums;
}
.section-title em { font-style: italic; }

.icon { display: block; flex: none; }

/* Placeholder foto (dipakai saat src kosong) mengikuti rasio kontainer */
.ph-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #34425E;
  pointer-events: none;
}

/* ---------------------------------------------------------------------
   3. Tombol
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(15, 31, 61, .3);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), opacity .2s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[disabled]:active { transform: none; }

.btn--moss { background: var(--moss); border-color: var(--moss); color: #fff; }
.btn--ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--wheat { background: var(--wheat); border-color: var(--wheat); color: var(--gate); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--lg {
  min-height: 52px;
  padding: 0 40px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.btn--caps { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.btn.is-done { background: var(--moss); border-color: var(--moss); color: #fff; }

@media (hover: hover) {
  .btn:not([disabled]):hover { background: rgba(15, 31, 61, .06); }
  .btn--moss:not([disabled]):hover,
  .btn.is-done:hover { background: var(--moss-dark); border-color: var(--moss-dark); }
  .btn--ink:not([disabled]):hover { background: #000; }
  .btn--wheat:not([disabled]):hover { background: var(--wheat-light); border-color: var(--wheat-light); }
  .btn--ghost-light:not([disabled]):hover { background: rgba(255, 255, 255, .12); }
}

.icon-btn {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 31, 61, .07);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s, transform .25s var(--ease);
}
.icon-btn:active { transform: scale(.94); }
@media (hover: hover) { .icon-btn:hover { background: rgba(15, 31, 61, .13); } }

.link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: opacity .2s;
}
@media (hover: hover) { .link:hover { opacity: .65; } }

/* ---------------------------------------------------------------------
   4. Gate (layar pembuka)
   --------------------------------------------------------------------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: var(--z-gate);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6vh 24px 28vh;
  background: var(--gate);
  color: var(--on-dark);
  cursor: pointer;
  overflow: hidden;
  transition: opacity 1s var(--ease), visibility 1s;
  -webkit-tap-highlight-color: transparent;
}
.gate.is-open { opacity: 0; visibility: hidden; }
.gate.is-instant { transition: none; }

.gate__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: gateIn 1.6s var(--ease) both;
}

.arch {
  width: 112px;
  height: 148px;
  padding: 6px;
  display: flex;
  border: 1px solid rgba(201, 212, 234, .6);
  border-radius: 56px 56px 4px 4px;
}
.arch__in {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 14px;
  border: 1px solid rgba(201, 212, 234, .28);
  border-radius: 50px 50px 2px 2px;
  font-family: var(--serif);
  font-style: italic;
  line-height: 1;
  color: var(--wheat);
}
.arch__l { font-size: 44px; }
.arch__amp { font-size: 22px; margin: 0 3px; padding-top: 10px; }
.arch--sm { width: 64px; height: 84px; padding: 4px; border-radius: 32px 32px 3px 3px; }
.arch--sm .arch__in { padding-top: 6px; border-radius: 28px 28px 2px 2px; }
.arch--sm .arch__l { font-size: 24px; }
.arch--sm .arch__amp { font-size: 13px; margin: 0 1px; padding-top: 5px; }

.gate__eyebrow { margin-top: 34px; color: var(--wheat); letter-spacing: .32em; }
.gate__names {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(46px, 13.5vw, 72px);
  line-height: 1;
  letter-spacing: -.035em;
  font-variant-numeric: lining-nums;
}
.gate__date {
  margin: 16px 0 0;
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.gate__foot {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: clamp(40px, 7vh, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: gateIn 1.6s .5s var(--ease) both;
}
.gate__to { color: var(--on-dark-muted); letter-spacing: .22em; }
.gate__guest {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.gate__note {
  margin: 8px 0 0;
  max-width: 300px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--on-dark-muted);
}
.gate__btn {
  margin-top: 28px;
  min-height: 48px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  background: var(--wheat);
  color: var(--gate);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: transform .25s var(--ease), background .25s;
}
.gate:active .gate__btn { transform: scale(.97); }
@media (hover: hover) { .gate:hover .gate__btn { background: var(--wheat-light); } }

@keyframes gateIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (max-height: 660px) {
  .gate { padding-bottom: 34vh; }
  .arch { width: 84px; height: 110px; border-radius: 42px 42px 4px 4px; }
  .arch__in { border-radius: 36px 36px 2px 2px; padding-top: 8px; }
  .arch__l { font-size: 32px; }
  .gate__eyebrow { margin-top: 20px; }
  .gate__note { display: none; }
  .gate__btn { margin-top: 18px; }
}

/* ---------------------------------------------------------------------
   5. Navbar pill
   --------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: var(--z-nav);
  width: min(680px, calc(100% - 32px));
  min-height: 56px;
  padding: 0 6px 0 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 2px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 10px 40px rgba(15, 31, 61, .10);
  color: var(--ink);
  transform: translateX(-50%);
  transition: width .6s var(--ease), background .4s, box-shadow .4s, color .4s;
}
.nav.is-top {
  width: calc(100% - 24px);
  background: rgba(255, 255, 255, 0);
  box-shadow: 0 10px 40px rgba(15, 31, 61, 0);
  color: #fff;
}
.nav.is-open {
  width: min(680px, calc(100% - 32px));
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 10px 40px rgba(15, 31, 61, .14);
  color: var(--ink);
}

.nav__logo {
  height: 56px;
  display: flex;
  align-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -.01em;
  color: inherit;
  text-decoration: none;
}

.nav__links {
  order: 5;
  width: 100%;
  display: none;
  flex-direction: column;
  padding: 4px 12px 22px 0;
}
.nav.is-open .nav__links { display: flex; animation: navMenu .45s var(--ease) both; }

.nav__link {
  padding: 12px 0;
  font-size: 18px;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 31, 61, .1);
  transition: opacity .2s;
}
.nav__link--last { border-bottom: 0; }
.nav__menu-rsvp { margin-top: 16px; align-self: flex-start; }

.nav__tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}

.lang {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}
.lang__btn {
  min-width: 30px;
  height: 44px;
  padding: 0 3px;
  border: 0;
  background: none;
  color: inherit;
  opacity: .5;
  cursor: pointer;
  transition: opacity .2s;
}
.lang__btn[aria-pressed="true"] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.lang__sep { opacity: .35; }

.music {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.music[hidden] { display: none; }
.music__ring {
  width: 32px;
  height: 32px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding-bottom: 9px;
}
.music__bar {
  display: block;
  width: 2px;
  height: 4px;
  border-radius: 2px;
  background: currentColor;
}
.music.is-playing .music__bar { animation: bars .9s ease-in-out infinite alternate; }
.music.is-playing .music__bar:nth-child(2) { animation-delay: .3s; }
.music.is-playing .music__bar:nth-child(3) { animation-delay: .6s; }
@keyframes bars { from { height: 3px; } to { height: 12px; } }

.nav__rsvp { display: none; }

.burger {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.burger__line {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--ease);
}
.burger__line:nth-child(1) { top: 18px; }
.burger__line:nth-child(2) { top: 25px; }
.nav.is-open .burger__line:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .burger__line:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

@keyframes navMenu {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------------
   6. Intro: hero → kolase (scroll-driven)
   --------------------------------------------------------------------- */
.intro {
  position: relative;
  height: calc(100vh + 1200px);
  height: calc(100svh + 1200px);
}
.intro__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.intro__hero {
  position: absolute;
  left: 12px;
  top: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  overflow: hidden;
  border-radius: 24px;
  background: #1E3463;
  will-change: clip-path;
}
.intro__img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  transform-origin: 50% 50%;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}
.intro__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .18), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .28));
  pointer-events: none;
}
.intro__title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  color: #fff;
  text-align: center;
  will-change: transform;
}
.intro__eyebrow { color: #fff; letter-spacing: .32em; }
.intro__names {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(42px, 13.5vw, 72px);
  line-height: 1;
  letter-spacing: -.02em;
  white-space: nowrap;
  font-variant-numeric: lining-nums;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}
.intro__hint {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 44px;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, .45);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .35em;
  text-transform: uppercase;
  will-change: transform;
}
.intro__arrow { animation: bob 2.4s var(--ease) infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.tile {
  position: absolute;
  overflow: hidden;
  border-radius: 16px;
  background: #D5DCE8;
  opacity: 0;
  will-change: transform, opacity;
}
.tile img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------------
   7. Kata menyala
   --------------------------------------------------------------------- */
.words { padding: 20vh 24px; }
.words__text {
  margin: 0 auto;
  max-width: 1100px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 10.3vw, 56px);
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--faint);
}
.words--vision .words__text { font-style: italic; }
.words__sign { margin: 40px auto 0; max-width: 1100px; }
.word { color: var(--faint); transition: color .35s; }
.word.is-lit { color: var(--ink); }
.word.is-tail.is-lit { color: #8C97AD; }

/* ---------------------------------------------------------------------
   8. Mempelai
   --------------------------------------------------------------------- */
.couple {
  padding: 14vh 24px 14vh;
  text-align: center;
}
.couple__grid {
  margin: 56px auto 0;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 24px;
}
.couple__person {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.polaroid {
  position: relative;
  margin: 0;
  width: min(272px, 70vw);
  padding: 12px 12px 52px;
  background: var(--paper);
  border: 1px solid rgba(0, 0, 0, .05);
  box-shadow: 0 24px 50px rgba(15, 31, 61, .16);
}
.polaroid--tilt-l { transform: rotate(-3deg); }
.polaroid--tilt-r { transform: rotate(2.5deg); }
.polaroid__img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #D5DCE8;
}
.polaroid__img img { width: 100%; height: 100%; object-fit: cover; }
.polaroid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--muted);
}

.couple__name {
  margin: 36px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 48px;
  line-height: 1;
}
.couple__full { margin-top: 10px; color: var(--moss); letter-spacing: .24em; }
.couple__parents {
  margin: 14px 0 0;
  max-width: 290px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}
.couple__ig {
  margin-top: 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--moss);
  text-decoration: none;
}
@media (hover: hover) { .couple__ig:hover { text-decoration: underline; text-underline-offset: 4px; } }

.couple__amp {
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--moss);
}
.couple__amp-line { width: 56px; height: 1px; background: rgba(15, 31, 61, .2); }
.couple__amp-glyph {
  font-family: var(--serif);
  font-style: italic;
  font-size: 80px;
  line-height: .8;
}

.verse {
  margin: 64px auto 0;
  padding: 32px 8px 0;
  max-width: 560px;
  border-top: 1px solid var(--line);
}
.verse p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 6.6vw, 34px);
  line-height: 1.25;
}
.verse footer { margin-top: 18px; }

/* ---------------------------------------------------------------------
   9. Kisah kami (tumpukan polaroid sticky)
   --------------------------------------------------------------------- */
.story { position: relative; min-height: 400vh; }
.story__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.story__title {
  margin: 0;
  padding-top: 96px;
  text-align: center;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 19.5vw, 96px);
  line-height: .92;
  letter-spacing: -.02em;
}
.story__stage { position: relative; flex: 1; }
.story__chapter {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 18px;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  pointer-events: none;
}
.story__chapter.is-active { opacity: 1; transform: none; }
.story__chapter-title {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
}
.story__chapter-text {
  margin: 8px auto 0;
  max-width: 320px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.story__deck {
  position: absolute;
  left: 50%;
  top: 190px;
  width: min(310px, 80vw);
  transform: translateX(-50%);
}
.story__card {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  margin: 0;
  padding: 12px;
  background: var(--paper);
  box-shadow: 0 24px 50px rgba(15, 31, 61, .20);
  transform-origin: 50% 60%;
  will-change: transform;
}
.story__card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #D5DCE8;
}
.story__card-img img { width: 100%; height: 100%; object-fit: cover; }
.story__card figcaption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}
.story__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 30;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.story__dot {
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: rgba(15, 31, 61, .25);
  transition: width .4s var(--ease), background .4s;
}
.story__dot.is-active { width: 34px; background: var(--moss); }

@media (max-height: 700px) {
  .story__title { padding-top: 84px; font-size: clamp(54px, 15vw, 72px); }
  .story__chapter-text { display: none; }
  .story__deck { top: 110px; width: min(280px, 74vw); }
}

/* ---------------------------------------------------------------------
   10. Acara: tanggal, hitung mundur, venue, RSVP
   --------------------------------------------------------------------- */
.join {
  padding: 16vh 24px 14vh;
  background: var(--bg-2);
  text-align: center;
}
.join__inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.join__date {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 10.8vw, 48px);
  line-height: 1.05;
  letter-spacing: -.01em;
  font-variant-numeric: lining-nums;
}
.join__date em { font-style: italic; }

.countdown {
  margin-top: 32px;
  width: 100%;
  max-width: 560px;
  padding: 20px 8px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  border-radius: 22px;
  background: var(--paper);
}
.countdown__unit {
  min-width: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.countdown__num {
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}
.countdown__sep { font-size: 20px; line-height: 32px; color: var(--faint); }
.countdown__done {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
}

.events {
  margin-top: 48px;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.event {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.event:first-child { padding-top: 0; }
.event:last-child { padding-bottom: 0; }
.event + .event { border-top: 1px solid var(--line); }
.event__time {
  margin: 0;
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.05;
  font-variant-numeric: lining-nums;
}
.event__place { margin: 0; font-size: 14px; color: var(--muted); }

.venue { margin-top: 48px; width: 100%; }
.venue__art {
  position: relative;
  width: 100%;
  aspect-ratio: 1140 / 494;
  overflow: hidden;
  border-radius: 18px;
  background: #B9C4D6;
}
.venue__art img { width: 100%; height: 100%; object-fit: cover; }
.venue__name {
  margin: 24px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
}
.venue__addr {
  margin: 10px auto 0;
  max-width: 320px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}
.join__actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.join__rsvp {
  margin-top: 56px;
  width: 100%;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid var(--line);
}
.join__rsvp p {
  margin: 0 0 24px;
  max-width: 320px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------------------------------------------------------------------
   11. Kartu detail
   --------------------------------------------------------------------- */
.details { padding: 16vh 24px 14vh; }
.details__inner { max-width: 1240px; margin: 0 auto; }
.details__title { max-width: 300px; }
.details__lead {
  margin: 14px 0 0;
  max-width: 320px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}
.details__grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.dcard {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 324 / 246;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: var(--ink);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform .25s var(--ease);
}
.dcard:active { transform: scale(.985); }
.dcard img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.dcard::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, .1) 55%, rgba(0, 0, 0, 0));
  pointer-events: none;
}
.dcard__text {
  position: absolute;
  left: 22px;
  right: 84px;
  bottom: 22px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dcard__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .88);
}
.dcard__title { font-family: var(--serif); font-size: 32px; line-height: 1; }
.dcard__plus {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  transition: background .25s, transform .4s var(--ease);
}
@media (hover: hover) {
  .dcard:hover img { transform: scale(1.05); }
  .dcard:hover .dcard__plus { transform: rotate(90deg); background: rgba(255, 255, 255, .32); }
}

/* ---------------------------------------------------------------------
   12. FAQ (accordion grid-rows)
   --------------------------------------------------------------------- */
.faq { padding: 16vh 24px 14vh; }
.faq__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.faq__title { font-size: clamp(52px, 15vw, 64px); line-height: .95; letter-spacing: -.02em; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item h3 { margin: 0; font: inherit; }
.faq__q {
  width: 100%;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}
.faq__icon {
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: rgba(15, 31, 61, .08);
  transition: transform .35s var(--ease);
}
.faq__icon::before {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: translateY(-2px) rotate(45deg);
}
.faq__item.is-open .faq__icon { transform: rotate(180deg); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div {
  overflow: hidden;
  visibility: hidden;
  transition: visibility .45s;
}
.faq__item.is-open .faq__a > div { visibility: visible; }
.faq__a p {
  margin: 0;
  padding: 0 40px 22px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.faq__contact {
  margin-top: 40px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 20px;
  background: var(--paper);
}
.faq__contact-title { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.1; }
.faq__contact-text { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.faq__wa {
  flex: none;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--moss);
  color: #fff;
  text-decoration: none;
  transition: background .25s, transform .25s var(--ease);
}
.faq__wa:active { transform: scale(.94); }
@media (hover: hover) { .faq__wa:hover { background: var(--moss-dark); } }

/* ---------------------------------------------------------------------
   13. Penutup
   --------------------------------------------------------------------- */
.closing { padding: 0 8px 8px; }
.closing__card {
  position: relative;
  min-height: calc(100vh - 16px);
  min-height: calc(100svh - 16px);
  padding: 56px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  border-radius: 22px;
  background: #1E3463;
  color: #fff;
  text-align: center;
}
.closing__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.closing__shade { position: absolute; inset: 0; background: rgba(11, 23, 48, .55); }
.closing__content {
  position: relative;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.closing__quote {
  margin: 0;
  max-width: 340px;
  font-family: var(--serif);
  font-size: clamp(34px, 10vw, 50px);
  line-height: 1.08;
  letter-spacing: -.01em;
}
.closing__names { margin: 0; font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1; }
.closing__foot {
  position: relative;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.closing__foot .eyebrow { color: rgba(255, 255, 255, .78); letter-spacing: .22em; }
.closing__family { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .88); }

/* ---------------------------------------------------------------------
   14. Reveal on scroll
   --------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

.reveal--clip {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 100% 0 round 22px);
  transition: clip-path 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal--clip.is-visible { clip-path: inset(0 0 0 0 round 22px); }

/* Polaroid miring: transform statis di <figure>, reveal di parent → tidak saling menimpa */

/* ---------------------------------------------------------------------
   15. Bottom sheet
   --------------------------------------------------------------------- */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-backdrop);
  background: rgba(11, 23, 48, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
}
.sheet-backdrop.is-open { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  top: 24px;
  bottom: 0;
  z-index: var(--z-sheet);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border-radius: 28px 28px 0 0;
  background: var(--bg);
  box-shadow: 0 -10px 40px rgba(11, 23, 48, .18);
  transform: translateY(105%);
  visibility: hidden;
  transition: transform .55s var(--ease-sheet), visibility .55s;
}
.sheet.is-open { transform: none; visibility: visible; }
.sheet.is-dragging { transition: none; }

.sheet__bar {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 10px 20px 18px;
  background: linear-gradient(var(--bg) 75%, rgba(255, 255, 255, 0));
  touch-action: none;
  cursor: grab;
}
.sheet.is-dragging .sheet__bar { cursor: grabbing; }
.sheet__handle {
  width: 36px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 2px;
  background: rgba(15, 31, 61, .2);
}
.sheet__head {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sheet__title {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1;
}
.sheet__body {
  max-width: 800px; /* 760px konten + padding, sejajar dengan .sheet__head */
  margin: 0 auto;
  padding: 4px 20px calc(56px + env(safe-area-inset-bottom));
}
.sheet__lead {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}
.sheet__section-title {
  margin: 36px 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--moss);
}
.sheet__section-title:first-child { margin-top: 8px; }
.sheet__end {
  margin: 28px 0 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--muted);
}

/* Kotak info (tanda kasih) */
.infobox {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 20px;
  background: var(--paper);
}
.infobox + .infobox { margin-top: 14px; }
.infobox__label {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--moss);
}
.infobox__title { margin: 10px 0 0; font-size: 15px; font-weight: 700; }
.infobox__value {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.1;
  font-variant-numeric: lining-nums tabular-nums;
  overflow-wrap: anywhere;
  user-select: all;
}
.infobox__value--text {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  user-select: text;
}
.infobox__meta { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.infobox .btn { margin-top: 16px; }

/* Dress code */
.palette { display: flex; flex-wrap: wrap; gap: 16px; }
.swatch {
  width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 12px;
  line-height: 1.3;
}
.swatch__dot { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); }
.notes { margin: 0; padding: 0; list-style: none; }
.notes li {
  position: relative;
  padding: 12px 0 12px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.55;
}
.notes li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 21px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--moss);
}
.inspo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.inspo figure { margin: 0; }
.inspo__img {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #D5DCE8;
  cursor: zoom-in;
  width: 100%;
  display: block;
}
.inspo__img img { width: 100%; height: 100%; object-fit: cover; }
.inspo figcaption { margin-top: 8px; font-size: 12px; color: var(--muted); }

/* Galeri (masonry dense grid, siklus 7) */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 76px;
  grid-auto-flow: dense;
  gap: 10px;
}
.gallery__item {
  position: relative;
  grid-row: span 3;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #D5DCE8;
  cursor: zoom-in;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.gallery__item:nth-child(7n+1) { grid-column: span 2; grid-row: span 4; }
.gallery__item:nth-child(7n+5) { grid-row: span 4; }
.gallery__item:nth-child(7n+3) { grid-row: span 2; }
@media (hover: hover) { .gallery__item:hover img { opacity: .85; } }

/* Ucapan */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 12px; font-weight: 600; color: var(--muted); }
.field__input {
  width: 100%;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid rgba(15, 31, 61, .3);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  transition: border-color .2s;
}
.field__input:focus { outline: none; border-bottom-color: var(--ink); }
.field__input::placeholder { color: #7B869C; }
textarea.field__input { min-height: 96px; resize: vertical; line-height: 1.5; }

.wish-form {
  margin-top: 4px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 20px;
  background: var(--paper);
}
.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.flash {
  min-height: 1.3em;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--danger);
}
.flash.is-ok { color: var(--ok); }

.wishes-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.wishes-head .sheet__section-title { margin-bottom: 14px; }
.wishes-count { font-size: 12px; color: var(--muted); }
.wishes {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wish {
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--paper);
  animation: wishIn .5s var(--ease) both;
}
.wish__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.wish__name { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.wish__time { flex: none; font-size: 12px; color: var(--muted); }
.wish__text {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.wishes-empty,
.wall-empty {
  margin: 16px 0 0;
  padding: 22px;
  border-radius: 18px;
  border: 1px dashed rgba(15, 31, 61, .25);
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.wishes-more { margin-top: 14px; }
@keyframes wishIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.moment-cta {
  margin-top: 36px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border-radius: 22px;
  background: var(--gate);
  color: var(--on-dark);
}
.moment-cta__title { margin: 0; font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.moment-cta__text { margin: 0 0 6px; font-size: 14px; line-height: 1.55; color: var(--on-dark-muted); }

/* Dinding momen (siklus 9) + status unggah */
.moment__controls {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 20px;
  background: var(--paper);
}
.moment__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.moment__note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.moment__count { font-size: 12px; color: var(--muted); }
.wall {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 78px;
  grid-auto-flow: dense;
  gap: 10px;
}
.wall__item {
  position: relative;
  grid-row: span 3;
  overflow: hidden;
  border-radius: 14px;
  background: #DCE2EC;
  animation: wishIn .5s var(--ease) both;
}
.wall__item:nth-child(9n+1) { grid-column: span 2; grid-row: span 4; }
.wall__item:nth-child(9n+6) { grid-row: span 4; }
.wall__btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.wall__item img { width: 100%; height: 100%; object-fit: cover; transition: filter .3s; }
.wall__by {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  padding: 3px 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(11, 23, 48, .6);
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
}
.wall__item.is-kompres img,
.wall__item.is-unggah img { filter: saturate(.45) brightness(.72); }
.wall__item.is-kompres::after,
.wall__item.is-unggah::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, .28) 50%, rgba(255, 255, 255, 0) 80%);
  transform: translateX(-100%);
  animation: shimmer 1.1s linear infinite;
  pointer-events: none;
}
.wall__item.is-berhasil { outline: 2px solid var(--ok); outline-offset: -2px; }
.wall__item.is-gagal { outline: 2px solid var(--danger); outline-offset: -2px; }
.wall__status {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .4);
}
.wall__bar { height: 4px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, .3); }
.wall__bar i { display: block; width: 0; height: 100%; background: #fff; transition: width .3s; }
.wall__retry {
  align-self: flex-start;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-shadow: none;
}
.wall__check {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------------------------------------------------------------------
   16. RSVP overlay multi-step
   --------------------------------------------------------------------- */
.rsvp {
  position: fixed;
  inset: 0;
  z-index: var(--z-rsvp);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s;
}
.rsvp.is-open { opacity: 1; visibility: visible; }
.rsvp__top {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 16px 0 12px;
  background: var(--bg);
}
.rsvp__top-in {
  width: min(672px, calc(100% - 38px));
  margin: 0 auto;
}
.rsvp__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rsvp__brand { display: flex; align-items: baseline; gap: 12px; }
.rsvp__title { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 26px; line-height: 1; }
.rsvp__counter {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.rsvp__progress { margin-top: 14px; margin-right: 6px; display: flex; gap: 6px; }
.rsvp__progress span {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(15, 31, 61, .15);
  transition: background .45s;
}
.rsvp__progress span.is-on { background: var(--moss); }

.rsvp__form {
  width: min(672px, calc(100% - 48px));
  margin: 0 auto;
  padding: 14vh 0 160px;
}
.rsvp__step { display: none; animation: stepIn .5s var(--ease); }
.rsvp__step.is-active { display: block; }
.rsvp__q {
  display: block;
  margin: 14px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 9.6vw, 52px);
  line-height: 1.05;
}
.rsvp__input {
  display: block;
  width: 100%;
  margin-top: 32px;
  padding: 8px 0 12px;
  border: 0;
  border-bottom: 1px solid rgba(15, 31, 61, .3);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 32px);
  transition: border-color .2s;
}
.rsvp__input:focus { outline: none; border-bottom-color: var(--ink); }
.rsvp__input::placeholder { color: #7B869C; }
textarea.rsvp__input { margin-top: 28px; font-size: 18px; line-height: 1.5; resize: none; }
.rsvp__help { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

.choices { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(15, 31, 61, .3);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.choice:active { transform: scale(.97); }
.choice[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.stepper-row {
  margin-top: 36px;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  animation: stepIn .5s var(--ease);
}
.stepper-row[hidden] { display: none; }
.stepper-row__label { margin: 0; font-size: 15px; font-weight: 600; }
.stepper-row__help { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper__btn {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 31, 61, .3);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: opacity .2s, transform .25s var(--ease);
}
.stepper__btn:active { transform: scale(.94); }
.stepper__btn[disabled] { opacity: .35; cursor: not-allowed; }
.stepper__val {
  min-width: 40px;
  text-align: center;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}

.rsvp__nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
  background: linear-gradient(rgba(255, 255, 255, 0), var(--bg) 40%);
}
.rsvp__nav[hidden] { display: none; }
.rsvp__nav-in {
  width: min(672px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rsvp__back {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
}
.rsvp__back.is-hidden { visibility: hidden; }
.rsvp__flash {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--danger);
}
.rsvp__next {
  width: 56px;
  height: 56px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--moss);
  color: #fff;
  cursor: pointer;
  transition: background .25s, transform .25s var(--ease), opacity .2s;
}
.rsvp__next:active { transform: scale(.94); }
.rsvp__next[disabled] { opacity: .6; cursor: progress; }
@media (hover: hover) { .rsvp__next:not([disabled]):hover { background: var(--moss-dark); } }
.rsvp__next .spinner { display: none; }
.rsvp__next.is-busy .spinner { display: block; }
.rsvp__next.is-busy .rsvp__next-icon { display: none; }
.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.thanks {
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.thanks__check {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--moss);
  color: #fff;
  animation: pop .6s var(--ease) both;
}
.thanks__title {
  margin: 24px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 10vw, 52px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.thanks__title em { font-style: italic; }
.thanks__text {
  margin: 12px 0 0;
  max-width: 320px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}
.thanks__actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
@keyframes pop {
  0% { transform: scale(.6); opacity: 0; }
  70% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); }
}

.ticket {
  margin: 28px auto 0;
  width: min(340px, 100%);
  overflow: hidden;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 24px 50px rgba(15, 31, 61, .14);
  text-align: center;
}
.ticket__head { padding: 22px 20px 20px; background: var(--gate); color: var(--on-dark); }
.ticket__names {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  line-height: 1;
}
.ticket__date { margin: 8px 0 0; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-muted); }
.ticket__perf {
  position: relative;
  height: 0;
  margin: 0 18px;
  border-top: 2px dashed rgba(15, 31, 61, .18);
}
.ticket__perf::before,
.ticket__perf::after {
  content: '';
  position: absolute;
  top: -12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg);
}
.ticket__perf::before { left: -30px; }
.ticket__perf::after { right: -30px; }
.ticket__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ticket__for { margin: 0; }
.ticket__guest { margin: 0; font-family: var(--serif); font-size: 28px; line-height: 1.1; overflow-wrap: anywhere; }
.ticket__meta { margin: 0; font-size: 14px; color: var(--muted); }
.ticket__qr {
  margin-top: 14px;
  width: 196px;
  height: 196px;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
}
.ticket__qr svg { display: block; width: 100%; height: 100%; }
.ticket__code {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  font-variant-numeric: tabular-nums;
}
.ticket__hint { margin: 6px 0 0; max-width: 260px; font-size: 13px; line-height: 1.5; color: var(--muted); }

@keyframes stepIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------------
   17. Lightbox
   --------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  background: rgba(7, 14, 30, .94);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
  user-select: none;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 64px;
  padding: env(safe-area-inset-top) 12px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lightbox__counter { font-size: 13px; font-weight: 600; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.lightbox__stage {
  position: absolute;
  inset: 64px 0 96px;
  overflow: hidden;
  touch-action: none;
}
.lightbox__frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(.96);
  opacity: 0;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.lightbox.is-open .lightbox__frame.is-in { transform: none; opacity: 1; }
.lightbox__img {
  max-width: calc(100% - 32px);
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  transform-origin: 50% 50%;
  will-change: transform;
  -webkit-user-drag: none;
  cursor: zoom-in;
}
.lightbox__img.is-zoomed { cursor: grab; }
.lightbox__img.is-animating { transition: transform .3s var(--ease); }
.lightbox__bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 96px;
  padding: 0 16px env(safe-area-inset-bottom);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.lightbox__caption {
  flex: 1;
  max-width: 520px;
  margin: 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .82);
}
.lightbox .icon-btn { background: rgba(255, 255, 255, .12); color: #fff; }
@media (hover: hover) { .lightbox .icon-btn:hover { background: rgba(255, 255, 255, .22); } }
.lightbox .icon-btn[disabled] { opacity: .3; cursor: default; }

/* ---------------------------------------------------------------------
   18. Kamera
   --------------------------------------------------------------------- */
.cam {
  position: fixed;
  inset: 0;
  z-index: var(--z-cam);
  overflow: hidden;
  background: #000;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.cam.is-open { opacity: 1; visibility: visible; }
.cam__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam__video.is-mirror { transform: scaleX(-1); }
.cam__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: calc(12px + env(safe-area-inset-top)) 14px 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
}
.cam__title { margin: 0; font-family: var(--serif); font-size: 24px; }
.cam__sent { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.cam__bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 28px 28px calc(28px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .6));
}
.cam__thumb {
  position: relative;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 12px;
  background: rgba(255, 255, 255, .12);
}
.cam__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cam__shutter {
  width: 76px;
  height: 76px;
  padding: 0;
  border: 4px solid #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  cursor: pointer;
  transition: transform .15s, background .15s;
}
.cam__shutter:active { transform: scale(.92); background: rgba(255, 255, 255, .45); }
.cam .icon-btn { background: rgba(255, 255, 255, .16); color: #fff; }
.cam__flash { position: absolute; inset: 0; z-index: 1; background: #fff; opacity: 0; pointer-events: none; }
.cam__flash.is-on { animation: camFlash .35s ease-out; }
@keyframes camFlash { from { opacity: .85; } to { opacity: 0; } }

/* ---------------------------------------------------------------------
   19. Popup (alert / konfirmasi)
   --------------------------------------------------------------------- */
.popup {
  position: fixed;
  inset: 0;
  z-index: var(--z-popup);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 23, 48, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.popup.is-open { opacity: 1; visibility: visible; }
.popup__card {
  width: min(380px, 100%);
  padding: 24px;
  border-radius: 22px;
  background: var(--bg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .25);
  transform: scale(.96) translateY(8px);
  transition: transform .3s var(--ease);
}
.popup.is-open .popup__card { transform: none; }
.popup__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; }
.popup__text { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.popup__actions { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

/* ---------------------------------------------------------------------
   20. Desktop (≥ 900px) — sama dengan BREAKPOINT di js/core.js
   --------------------------------------------------------------------- */
@media (min-width: 900px) {
  section[id] { scroll-margin-top: 96px; }

  .gate__names { font-size: clamp(56px, 5vw, 80px); }

  .nav {
    width: min(880px, calc(100% - 32px));
    min-height: 64px;
    padding: 0 10px 0 22px;
    flex-wrap: nowrap;
    column-gap: 16px;
    border-radius: 32px;
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  .nav.is-top {
    width: calc(100% - 40px);
    background: rgba(255, 255, 255, 0);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .nav__logo { height: 64px; font-size: 26px; }
  .nav__links {
    order: 0;
    width: auto;
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 24px;
    padding: 0;
    animation: none;
  }
  .nav__link {
    padding: 8px 0;
    border-bottom: 0;
    font-size: 14px;
    font-weight: 600;
    opacity: .85;
  }
  .nav__menu-rsvp,
  .burger { display: none; }
  .nav__tools { margin-left: 0; gap: 6px; }
  .nav__rsvp { display: inline-flex; min-height: 44px; padding: 0 22px; }
  .nav.is-top .nav__rsvp { border-color: rgba(255, 255, 255, .55); color: #fff; }
  @media (hover: hover) {
    .nav__link:hover { opacity: 1; }
  }

  .intro { height: 260vh; height: 260svh; }
  .intro__hero { left: 20px; top: 14px; width: calc(100% - 40px); height: calc(100% - 28px); }
  .intro__title { bottom: 140px; gap: 22px; }
  .intro__eyebrow { font-size: 13px; }
  .intro__names { font-size: clamp(64px, 10.5vw, 150px); }
  .intro__hint { left: 48px; right: 48px; font-size: 12px; letter-spacing: .4em; }
  .tile { border-radius: 20px; }

  .words--invited .words__text { font-size: clamp(44px, 5.2vw, 76px); }
  .words--vision .words__text { font-size: clamp(46px, 6.2vw, 92px); }

  .couple__grid { grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; }
  .polaroid { width: min(320px, 78vw); padding: 14px 14px 56px; }
  .couple__name { font-size: 56px; }
  .couple__amp { flex-direction: column; margin: 0; }
  .couple__amp-line { width: 1px; height: 64px; }
  .couple__amp-glyph { font-size: 120px; }

  .story__title { padding-top: 112px; font-size: clamp(80px, 8.5vw, 140px); }
  .story__deck { top: 64px; width: min(440px, 36vw); }
  .story__card { padding: 20px; }
  .story__chapter {
    top: 42%;
    width: min(300px, 24vw);
    left: auto;
    right: auto;
    transform: translateY(calc(-50% + 16px));
  }
  .story__chapter.is-active { transform: translateY(-50%); }
  .story__chapter--l { right: calc(50% + min(220px, 18vw) + 56px); text-align: right; }
  .story__chapter--r { left: calc(50% + min(220px, 18vw) + 56px); text-align: left; }
  .story__chapter-title { font-size: 34px; }
  .story__chapter--l .story__chapter-text { margin-right: 0; }
  .story__chapter--r .story__chapter-text { margin-left: 0; }

  .join__date { font-size: clamp(56px, 6vw, 96px); }
  .countdown { padding: 28px 16px; gap: 14px; }
  .countdown__unit { min-width: 96px; }
  .countdown__num { font-size: clamp(34px, 4vw, 58px); }
  .countdown__label { font-size: 12px; }
  .countdown__sep { font-size: 32px; line-height: clamp(34px, 4vw, 58px); }
  .events { flex-direction: row; justify-content: center; }
  .event { flex: 1; padding: 8px 32px; }
  .event:first-child,
  .event:last-child { padding-top: 8px; padding-bottom: 8px; }
  .event + .event { border-top: 0; border-left: 1px solid var(--line); }
  .event__time { font-size: 38px; }
  .venue__addr { max-width: 520px; font-size: 13px; }
  .btn--lg { min-height: 56px; padding: 0 48px; }

  .details__title { max-width: none; }
  .details__lead { max-width: 480px; }
  .details__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .dcard { aspect-ratio: 414 / 310; border-radius: 24px; }
  .dcard__title { font-size: 36px; }
  .dcard__plus {
    width: 48px;
    height: 48px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  .faq__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .faq__head { position: sticky; top: 120px; }
  .faq__title { font-size: clamp(48px, 5vw, 72px); }
  .faq__q { font-size: 18px; }

  .closing { padding: 0 20px 20px; }
  .closing__card { min-height: calc(100vh - 40px); min-height: calc(100svh - 40px); border-radius: 24px; padding: 72px 40px 40px; }
  .closing__quote { max-width: 900px; font-size: clamp(42px, 5.5vw, 80px); }
  .closing__names { font-size: 40px; }

  .sheet { top: 45px; border-radius: 40px 40px 0 0; }
  .sheet__bar { padding: 14px 32px 24px; }
  .sheet__title { font-size: 44px; }
  .sheet__body { max-width: 824px; padding: 8px 32px calc(80px + env(safe-area-inset-bottom)); }
  .gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 86px; gap: 12px; }
  .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 86px; gap: 12px; }
  .inspo { gap: 16px; }
  .infobox__value { font-size: 34px; }

  .rsvp__form { padding-top: 24vh; }
  .rsvp__top-in { width: min(672px, calc(100% - 48px)); }
}

@media (min-width: 1001px) {
  .details__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------------
   21. Gerak dikurangi
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .wall__item.is-kompres::after,
  .wall__item.is-unggah::after { display: none; }
  .intro__arrow { animation: none; }
}
