/* =============================================================================
   MAULID — tier Craft (peringatan Maulid Nabi Muhammad SAW).
   Arah "Segel Madinah": zamrud gelap datar + emas sebagai foil/garis tipis,
   girih bintang delapan HANYA di dua tempat (segel cover + pembatas girih),
   kaligrafi sebagai elemen utama di dalam lengkung Moorish, tipografi
   Cormorant Garamond + Plus Jakarta Sans + Amiri Arabic. TANPA blob gradien,
   TANPA marquee, TANPA confetti, TANPA bayangan keras — semua bidang datar,
   hairline 1px, whitespace lega (rujukan: Seal the Date "Madinah", Pinkep
   "Bintang Delapan 01"). BUKTI TIER CRAFT: TANPA gsap/lenis — hanya CSS +
   `Reveal` (IO). Semua kelas ter-scope `.ml`. Reveal state hanya aktif di
   bawah `.is-js` → tanpa JS konten terbaca; reduced-motion dinetralkan.
   CSS ini SUMBER KEBENARAN; `scripts/build-theme-css.mjs` menyalinnya ke
   `public/themes/maulid.{hash}.css`. JANGAN di-import dari index.tsx
   (DECISIONS #31) — ia dikirim lewat <ThemeStyles slug="maulid" />.
============================================================================= */

.ml {
  --ml-cream: #f7f3e8;
  --ml-cream-2: #efe7d2;
  --ml-sun: #c9a227;
  --ml-gold-deep: #7a5f16;
  --ml-coral: #0e5e3f;
  --ml-teal: #0e5e3f;
  --ml-choco: #1e3d2f;
  --ml-deep: #0a4530;
  --ml-coral-ink: #0a4530;
  --ml-choco-d: #122b1f;
  --ml-muted: rgba(30, 61, 47, 0.72);
  --ml-hairline: rgba(30, 61, 47, 0.16);
  --ml-goldline: rgba(201, 162, 39, 0.55);
  --ml-disp-stack: var(--ml-disp), "Cormorant Garamond", Georgia, serif;
  --ml-body-stack: var(--ml-body), system-ui, sans-serif;

  position: relative;
  background: var(--ml-cream);
  color: var(--ml-choco);
  font-family: var(--ml-body-stack);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.ml *,
.ml *::before,
.ml *::after {
  box-sizing: border-box;
}
.ml ::selection {
  background: var(--ml-sun);
  color: var(--ml-choco);
}

/* Grain halus (tekstur kertas, bukan efek) ---------------------------------- */
.ml-grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 60;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Reveal (Craft: CSS + IO) ------------------------------------------------- */
.ml .reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.ml.is-js .reveal {
  opacity: 0;
  transform: translateY(22px);
}
.ml.is-js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .ml.is-js .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }
}

/* Tipografi ---------------------------------------------------------------- */
.ml-eyebrow {
  font-family: var(--ml-disp-stack);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ml-coral-ink);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.ml-eyebrow::before,
.ml-eyebrow::after {
  content: "";
  height: 1px;
  width: 30px;
  background: var(--ml-sun);
  flex: none;
}
.ml-center {
  text-align: center;
}
.ml-lead {
  color: var(--ml-muted);
  font-size: 14.5px;
  line-height: 1.85;
  max-width: 320px;
  margin: 14px auto 0;
}
.ml-inner {
  max-width: 460px;
  margin: 0 auto;
}
.ml-section {
  position: relative;
  padding: 80px 26px;
  scroll-margin-top: 12px;
}

/* Segel girih — bintang delapan (khatam): dua bujur sangkar diputar 45° di
   dalam cincin. Geometri murni CSS, tanpa gambar. Dipakai di cover (besar)
   dan di atas nama penyelenggara (kecil, --sm). */
.ml-seal {
  --seal: 96px;
  position: relative;
  width: var(--seal);
  height: var(--seal);
  margin: 0 auto 20px;
  flex: none;
}
.ml-seal--sm {
  --seal: 58px;
  margin-bottom: 16px;
}
.ml-seal::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--ml-sun);
  border-radius: 50%;
}
.ml-seal::after {
  content: "";
  position: absolute;
  inset: 24%;
  border: 1px solid var(--ml-sun);
  transform: rotate(45deg);
}
.ml-seal span {
  position: absolute;
  inset: 24%;
  border: 1px solid var(--ml-sun);
}
.ml-seal span::after {
  content: "";
  position: absolute;
  inset: 38%;
  background: var(--ml-sun);
  border-radius: 50%;
}

/* --------------------------------------------------------------- Cover ----- */
.ml-cover {
  display: none;
}
.ml.is-js .ml-cover {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  overflow: hidden;
  /* Foto latar (masjid zamrud-emas) — scrim GRADIEN ATAS-RINGAN: langit &
     menara terlihat di atas (0.6), makin berat ke bawah (0.88) tempat teks
     & tombol berada. Fokus foto di kubah/menara bagian atas. */
  background-color: var(--ml-cream);
  background-image:
    linear-gradient(
      180deg,
      rgba(247, 243, 232, 0.6) 0%,
      rgba(247, 243, 232, 0.66) 28%,
      rgba(247, 243, 232, 0.86) 55%,
      rgba(247, 243, 232, 0.88) 100%
    ),
    url("/demo/maulid/cover-bg.jpg");
  background-size: cover;
  background-position: center 18%;
  color: var(--ml-choco);
  transition: transform 1s cubic-bezier(0.7, 0, 0.3, 1);
}
.ml.is-js.is-open .ml-cover {
  transform: translateY(-100%);
}
@media (prefers-reduced-motion: reduce) {
  .ml.is-js .ml-cover {
    transition: none;
  }
}

/* Elemen melayang: bintang girih emas naik pelan + kelip (SVG, CSS-only).
   `.ml-drift` = di dalam sampul (absolute, ikut wipe); `--page` = lapisan
   tipis fixed di seluruh undangan (z-40, di bawah sampul z-50, svg lebih
   redup). Hanya transform/opacity yang dianimasikan. */
.ml-drift {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.ml-drift--page {
  position: fixed;
  z-index: 40;
  /* Redupkan seluruh lapisan halaman (bukan per-svg: kelip menganimasikan
     opacity svg, jadi peredupan harus di wadah agar tidak tertimpa). */
  opacity: 0.6;
}
.ml-drift__item {
  position: absolute;
  top: 0;
  display: block;
  animation: ml-drift-rise linear infinite;
  will-change: transform, opacity;
}
.ml-drift__item svg {
  display: block;
  animation:
    ml-drift-sway 3s ease-in-out infinite alternate,
    ml-drift-twinkle 2.6s ease-in-out infinite alternate;
  /* Bayangan lembut supaya bintang emas terbaca di atas foto latar krem. */
  filter: drop-shadow(0 1px 2px rgb(122 95 22 / 0.3));
}
.ml-drift__item:nth-child(even) svg {
  animation-duration: 3.8s, 3.4s;
}
@keyframes ml-drift-rise {
  0% {
    transform: translate3d(0, 112vh, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  85% {
    opacity: 0.78;
  }
  100% {
    transform: translate3d(0, -12vh, 0) rotate(45deg);
    opacity: 0;
  }
}
@keyframes ml-drift-sway {
  from {
    transform: translateX(-12px);
  }
  to {
    transform: translateX(12px);
  }
}
@keyframes ml-drift-twinkle {
  from {
    opacity: 0.65;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ml-drift {
    display: none;
  }
}
/* min-width:0 — tanpa itu item grid melebar mengikuti kata terpanjang nama,
   sehingga seluruh isi sampul bergeser keluar layar alih-alih namanya yang
   dikecilkan. */
.ml-cover__inner {
  position: relative;
  text-align: center;
  padding: 40px 24px;
  max-width: 430px;
  width: 100%;
  min-width: 0;
  /* Bingkai kartu ala "Madinah": rangka tipis emas di sekeliling isi sampul. */
  border: 1px solid var(--ml-goldline);
}
.ml.is-js .ml-cover__inner > * {
  animation: ml-rise 0.7s both cubic-bezier(0.22, 1, 0.36, 1);
}
.ml.is-js .ml-cover__inner > *:nth-child(2) {
  animation-delay: 0.08s;
}
.ml.is-js .ml-cover__inner > *:nth-child(3) {
  animation-delay: 0.16s;
}
.ml.is-js .ml-cover__inner > *:nth-child(4) {
  animation-delay: 0.24s;
}
.ml.is-js .ml-cover__inner > *:nth-child(5) {
  animation-delay: 0.32s;
}
.ml.is-js .ml-cover__inner > *:nth-child(6) {
  animation-delay: 0.4s;
}
.ml.is-js .ml-cover__inner > *:nth-child(7) {
  animation-delay: 0.48s;
}
@keyframes ml-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ml.is-js .ml-cover__inner > * {
    animation: none;
  }
}
.ml-badge {
  display: inline-block;
  font-family: var(--ml-disp-stack);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ml-gold-deep);
  padding: 9px 18px;
  border: 1px solid var(--ml-goldline);
  border-radius: 999px;
}
/* Nama serif EMAS PEKAT di atas krem (ala java-1) — kontras dijaga dengan
   emas yang lebih gelap + guratan sedikit ditebalkan; halo gelap versi lama
   tidak cocok di latar terang. */
.ml-cover__name {
  font-family: var(--ml-disp-stack);
  font-weight: 600;
  font-size: clamp(44px, 13vw, 66px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 22px 0 6px;
  color: var(--ml-gold-deep);
  -webkit-text-stroke: 0.3px var(--ml-gold-deep);
  text-shadow: 0 2px 10px rgba(122, 95, 22, 0.16);
}
.ml-chips {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 18px 0 24px;
}
.ml-chip {
  font-family: var(--ml-body-stack);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  background: #fff;
  border: 1px solid var(--ml-hairline);
  color: var(--ml-choco);
  border-radius: 999px;
  padding: 9px 14px;
}
.ml-chip--sun {
  border-color: var(--ml-goldline);
  color: var(--ml-gold-deep);
}
.ml-guest {
  margin: 0 auto 24px;
  max-width: 290px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--ml-hairline);
  border-radius: 4px;
}
.ml-guest small {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ml-muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.ml-guest strong {
  font-family: var(--ml-disp-stack);
  font-weight: 600;
  font-size: 18px;
  color: var(--ml-choco);
}
.ml-open {
  appearance: none;
  border: 1px solid var(--ml-sun);
  background: var(--ml-sun);
  color: var(--ml-deep);
  font-family: var(--ml-disp-stack);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 36px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s;
}
.ml-open:hover {
  background: #d9b23a;
}
/* Panah bawah bentuk pil (ala java-1) — juga membuka undangan. */
.ml-cover__scroll {
  display: block;
  margin: 18px auto 0;
  width: 46px;
  height: 30px;
  border: 1px solid var(--ml-sun);
  border-radius: 999px;
  background: transparent;
  color: var(--ml-coral-ink);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.ml-cover__scroll:hover {
  background: rgba(201, 162, 39, 0.14);
}

/* Pembatas girih — hairline emas + bintang delapan di tengah. Satu-satunya
   ornamen pengulang selain segel cover. */
.ml-girih {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 26px;
  color: var(--ml-sun);
  font-size: 15px;
  line-height: 1;
}
.ml-girih::before,
.ml-girih::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ml-goldline);
}

/* Opening: kartu lengkung Moorish + nama penyelenggara --------------------- */
.ml-archcard {
  margin: 30px auto 0;
  max-width: 340px;
  border: 1px solid var(--ml-goldline);
  border-radius: 170px 170px 6px 6px;
  padding: 56px 26px 30px;
  background: #fff;
}
.ml-quote {
  font-family: var(--ml-disp-stack);
  font-weight: 500;
  color: var(--ml-choco);
  font-size: 21px;
  line-height: 1.7;
  margin: 0;
}
.ml-quote__src {
  display: block;
  font-family: var(--ml-body-stack);
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ml-coral-ink);
  margin-top: 12px;
}
.ml-kid {
  margin-top: 26px;
}
.ml-kid__name {
  font-family: var(--ml-disp-stack);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.15;
}
.ml-kid__parents {
  color: var(--ml-muted);
  font-size: 13.5px;
  line-height: 1.8;
  margin-top: 8px;
}
.ml-kid__parents b {
  color: var(--ml-choco);
  font-weight: 700;
}

/* Countdown — section ZAMRUD GELAP (ala java-1) -------------------------------- */
/* 4 kotak KREM bersudut agak membulat di atas section zamrud gelap. */
.ml-section--dark {
  background: var(--ml-deep);
  color: var(--ml-cream);
}
.ml-seal--on-dark {
  margin-bottom: 18px;
}
.ml-countdown-title {
  font-family: var(--ml-disp-stack);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--ml-cream);
  margin: 0;
}
.ml-countdown-date {
  font-family: var(--ml-body-stack);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(247, 243, 232, 0.85);
  margin: 10px 0 0;
}
.ml .countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 390px;
  margin: 28px auto 0;
}
.ml .count-box {
  background: var(--ml-cream);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 14px;
  padding: 16px 4px 14px;
  text-align: center;
}
.ml .count-num {
  font-family: var(--ml-disp-stack);
  font-weight: 600;
  font-size: clamp(28px, 8vw, 36px);
  font-variant-numeric: tabular-nums;
  display: block;
  color: var(--ml-coral-ink);
}
.ml .count-label {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ml-muted);
  font-weight: 600;
  margin-top: 4px;
  display: block;
}
.ml .countdown-done {
  font-family: var(--ml-disp-stack);
  font-weight: 600;
  font-size: 20px;
  color: var(--ml-cream);
}

/* Kartu acara TERANG (ala java-1): krem gading, sudut sangat membulat,
   judul serif gelap tebal di tengah, hiasan girih di sudut kartu, SATU
   tombol pil zamrud gelap "Lihat Lokasi". */
/* Kalimat undangan (serif miring) di atas kartu acara — ala java-1. */
.ml-invite-line {
  font-family: var(--ml-disp-stack);
  font-style: italic;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.85;
  text-align: center;
  color: var(--ml-muted);
  max-width: 34em;
  margin: 0 auto 10px;
}
.ml-event {
  position: relative;
  background: #fff;
  border: 1px solid var(--ml-goldline);
  border-radius: 28px;
  padding: 34px 20px 28px;
  margin-top: 18px;
  text-align: center;
}
/* Hiasan sudut atas kartu: bintang delapan girih. */
.ml-event__deco {
  position: absolute;
  top: 12px;
  left: 16px;
  line-height: 1;
  color: var(--ml-sun);
  font-size: 20px;
  pointer-events: none;
}
.ml-event__name {
  font-family: var(--ml-disp-stack);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  color: var(--ml-choco);
  margin: 0;
}
.ml-event__day {
  font-family: var(--ml-disp-stack);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.4;
  color: var(--ml-coral-ink);
  margin: 10px 0 0;
}
.ml-event__meta {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ml-muted);
  margin-top: 12px;
}
.ml-event__meta b {
  color: var(--ml-choco);
  font-weight: 700;
}
.ml-event__maps {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  background: var(--ml-coral);
  color: #fff;
  border: 1px solid var(--ml-coral);
  border-radius: 999px;
  padding: 11px 26px;
  font-family: var(--ml-body-stack);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
}
.ml-event__maps:hover {
  background: var(--ml-coral-ink);
}
.ml-pill {
  font-family: var(--ml-body-stack);
  font-weight: 600;
  font-size: 12.5px;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--ml-choco);
  color: var(--ml-choco);
  background: #fff;
  cursor: pointer;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.ml-pill:hover {
  border-color: var(--ml-coral-ink);
  color: var(--ml-coral-ink);
}
.ml-pill--teal {
  background: var(--ml-coral);
  border-color: var(--ml-coral);
  color: #fff;
}

/* Galeri — carousel (ala java-1) -------------------------------------------- */
.ml-carousel {
  margin-top: 26px;
}
.ml-carousel__frame {
  position: relative;
}
.ml-carousel__frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}
.ml-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--ml-coral);
  color: #fff;
  border: 1px solid rgba(247, 243, 232, 0.4);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
}
.ml-carousel__btn--prev {
  left: 10px;
}
.ml-carousel__btn--next {
  right: 10px;
}
.ml-carousel__btn:active {
  background: var(--ml-coral-ink);
}
.ml-carousel__count {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(247, 243, 232, 0.94);
  color: var(--ml-choco);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* Doa wall ----------------------------------------------------------------- */
.ml-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.ml-wish {
  display: flex;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--ml-hairline);
  border-radius: 4px;
  padding: 14px;
}
.ml-wish__ava {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--ml-disp-stack);
  font-weight: 600;
  color: var(--ml-coral-ink);
  background: transparent;
  border: 1px solid var(--ml-goldline);
}
.ml-wish b {
  font-family: var(--ml-disp-stack);
  font-weight: 600;
  font-size: 15px;
}
.ml-wish__from {
  font-size: 11px;
  color: var(--ml-muted);
  margin-left: 6px;
}
.ml-wish p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ml-muted);
  margin-top: 3px;
}

/* Amplop ------------------------------------------------------------------- */
.ml-acct {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--ml-hairline);
  border-radius: 4px;
  padding: 16px;
}
.ml-acct b {
  font-family: var(--ml-disp-stack);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.02em;
}
.ml-acct small {
  display: block;
  font-size: 11.5px;
  color: var(--ml-muted);
  margin-top: 2px;
}
.ml-acct--addr {
  display: block;
}
.ml-acct--addr p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ml-muted);
}
.ml-copy {
  font-family: var(--ml-body-stack);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  border: 1px solid var(--ml-choco);
  background: transparent;
  color: var(--ml-choco);
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: 0.2s;
}
.ml-copy:hover {
  background: var(--ml-coral);
  border-color: var(--ml-coral);
  color: #fff;
}

/* Footer ------------------------------------------------------------------- */
.ml-footer {
  padding: 64px 26px 90px;
  background: var(--ml-deep);
  color: var(--ml-cream);
  border-top: 1px solid var(--ml-goldline);
}
.ml-footer__big {
  font-family: var(--ml-disp-stack);
  font-weight: 600;
  font-size: 30px;
}
.ml-footer__note {
  font-size: 13px;
  margin-top: 10px;
  line-height: 1.8;
  max-width: 320px;
  margin-inline: auto;
  color: rgba(247, 243, 232, 0.85);
}
.ml-watermark {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--ml-body-stack);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ml-cream);
  border: 1px solid rgba(247, 243, 232, 0.4);
  padding: 8px 14px;
  border-radius: 999px;
}
.ml-watermark a {
  color: inherit;
}

/* Tombol musik ------------------------------------------------------------- */
.ml-music {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 55;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--ml-goldline);
  background: #fff;
  color: var(--ml-choco);
  display: none;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(18, 43, 31, 0.18);
}
.ml.is-open .ml-music {
  display: grid;
}

/* ================================================================ Video ===
   Section video (FASE J) — kelas generik `_shared/video` ditata dengan token
   tema. Tanpa aturan reduced-motion: komponennya sendiri yang tak autoplay. */
.ml-video {
  margin-top: 22px;
}
.ml .video-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  background: var(--ml-choco-d);
  border: 1px solid var(--ml-hairline);
}
.ml .video-frame--yt {
  aspect-ratio: 16 / 9;
}
.ml .video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}
.ml .video-mute,
.ml .video-play {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ml-sun);
  color: var(--ml-choco-d);
}
.ml .video-mute {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--ml-choco);
  cursor: pointer;
}
.ml .video-lite {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  background-color: var(--ml-choco-d);
  background-size: cover;
  background-position: center;
}
.ml .video-lite::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(53, 37, 25, 0.25);
}
.ml .video-play {
  position: relative;
  width: 64px;
  height: 64px;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
}
.ml .video-play svg {
  margin-left: 3px;
}
.ml .video-mute:focus-visible {
  outline: 2px solid var(--ml-coral-ink);
  outline-offset: 2px;
}
.ml .video-lite:focus-visible {
  outline: 2px solid var(--ml-coral-ink);
  outline-offset: -5px;
}

/* Tombol live streaming di section acara (Premium, DECISIONS #116) — gaya
   tombolnya `ml-pill ml-pill--teal` yang sama dengan "Petunjuk Arah". */
.ml-live {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

/* Amplop — toggle (ala java-1) ---------------------------------------------- */
.ml-envelope__toggle {
  display: block;
  margin: 4px auto 0;
  background: var(--ml-coral);
  color: #fff;
  border: 1px solid var(--ml-coral);
  border-radius: 999px;
  padding: 13px 28px;
  font-family: var(--ml-disp-stack);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
.ml-envelope__toggle:hover {
  background: var(--ml-coral-ink);
}
.ml-envelope__cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

/* Buku tamu — Doa & Ucapan dulu, baru RSVP ----------------------------------- */
.ml-wishes {
  margin-bottom: 40px;
}
.ml-rsvp-form {
  border-top: 1px solid var(--ml-hairline);
  padding-top: 36px;
}
.ml-title {
  font-family: var(--ml-disp-stack);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
  text-align: center;
  margin: 8px 0 0;
  color: var(--ml-choco);
}
.ml-greeting {
  text-align: center;
  line-height: 1.8;
  color: var(--ml-muted);
  margin: 18px auto 0;
  max-width: 34em;
}

/* Sticky bottom nav (ala java-1, lokal tema ini) ------------------------------ */
.ml-nav {
  display: none;
}
.ml.is-open .ml-nav {
  display: flex;
  position: fixed;
  /* Sedikit ke kanan dari tengah supaya tak menabrak tombol musik
     (fixed bottom-left); di desktop digeser lagi ke wilayah kolom kanan. */
  left: calc(50% + 22px);
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 45;
  gap: 2px;
  padding: 6px;
  background: var(--ml-choco-d);
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(18, 43, 31, 0.4);
}
.ml-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 48px;
  padding: 6px 4px 5px;
  color: rgba(247, 243, 232, 0.85);
  text-decoration: none;
  font-size: 9px;
  letter-spacing: 0.04em;
  border-radius: 999px;
}
.ml-nav__item:active {
  background: rgba(201, 162, 39, 0.25);
  color: var(--ml-cream);
}
@media (max-width: 380px) {
  .ml-nav__item {
    min-width: 44px;
  }
}

/* Panel desktop — split-screen ala java-1 ------------------------------------ */
/* Di ponsel panel hilang (satu kolom penuh); di layar lebar ia fixed di kiri
   sementara kolom undangan menggulir sendiri di kanan. */
.ml-panel {
  display: none;
}
@media (min-width: 900px) {
  .ml {
    --ml-panel-w: clamp(340px, 42vw, 540px);
    padding-left: var(--ml-panel-w);
  }
  .ml-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--ml-panel-w);
    z-index: 5;
    text-align: center;
    padding: 48px 32px;
    color: var(--ml-cream);
    background-color: var(--ml-deep);
    /* Foto latar (masjid zamrud-emas) + scrim zamrud gelap — foto terlihat
       redup di balik teks panel; pola girih digantikan foto. */
    background-image:
      linear-gradient(rgba(10, 69, 48, 0.8), rgba(10, 69, 48, 0.8)),
      url("/demo/maulid/cover-bg.jpg");
    background-size: cover;
    background-position: center;
  }
  /* Bingkai girih samar di dalam panel. */
  .ml-panel::before {
    content: "";
    position: absolute;
    inset: 22px;
    border: 1px solid rgba(201, 162, 39, 0.55);
    border-radius: 8px;
    pointer-events: none;
  }
  .ml-panel__seal {
    margin-bottom: 8px;
  }
  .ml-panel__kicker {
    font-family: var(--ml-disp-stack);
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ml-sun);
    margin: 0;
  }
  .ml-panel__to {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(247, 243, 232, 0.75);
    margin: 18px 0 0;
  }
  .ml-panel__guest {
    font-family: var(--ml-disp-stack);
    font-weight: 600;
    font-size: 26px;
    line-height: 1.3;
    margin: 6px 0 0;
  }
  .ml-panel__girih {
    color: var(--ml-sun);
    font-size: 16px;
    line-height: 1;
    margin-top: 16px;
  }
  .ml-panel__name {
    font-family: var(--ml-disp-stack);
    font-weight: 600;
    font-size: 30px;
    line-height: 1.2;
    color: var(--ml-cream);
    margin: 14px 0 0;
  }
  .ml-panel__date {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(247, 243, 232, 0.8);
    margin: 6px 0 0;
  }
  /* Cover hanya menutup kolom kanan — panel tetap terlihat saat tertutup. */
  .ml.is-js .ml-cover {
    left: var(--ml-panel-w);
  }
  /* Nav + musik bergeser ke wilayah kolom kanan (tengah sisa layar). */
  .ml.is-open .ml-nav {
    left: calc(var(--ml-panel-w) + (100vw - var(--ml-panel-w)) / 2);
  }
  .ml-music {
    left: calc(var(--ml-panel-w) + 16px);
  }
}

/* Latar per-slide (aesthetic, islami Maulid zamrud-emas) */
.ml-section.ml-center:first-of-type,
.ml-section:has(.ml-opening),
.ml-section:has(.ml-hero) {
  background:
    radial-gradient(
      120% 80% at 50% 0%,
      color-mix(in srgb, var(--ml-gold, #c9a227) 16%, transparent),
      transparent 55%
    ),
    radial-gradient(
      70% 50% at 90% 85%,
      color-mix(in srgb, var(--ml-emerald, #0e5e3f) 12%, transparent),
      transparent 50%
    ),
    var(--ml-cream, #f7f3e8);
}
.ml-section--dark {
  background:
    radial-gradient(
      120% 80% at 50% 0%,
      color-mix(in srgb, var(--ml-gold, #c9a227) 20%, transparent),
      transparent 45%
    ),
    linear-gradient(160deg, #083726, var(--ml-emerald, #0e5e3f));
}
.ml-section:has(.ml-event),
.ml-section:has(.ml-schedule) {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--ml-gold, #c9a227) 6%, #f7f3e8),
    #f3ede0
  );
}
.ml-section:has(.ml-gallery),
.ml-section:has(.ml-carousel) {
  background:
    radial-gradient(
      80% 60% at 15% 30%,
      color-mix(in srgb, var(--ml-emerald, #0e5e3f) 10%, transparent),
      transparent 55%
    ),
    #f7f3e8;
}
.ml-section:has(.ml-wishes),
.ml-section:has(.ml-quote) {
  background: linear-gradient(
    135deg,
    #f4efe2 0%,
    color-mix(in srgb, var(--ml-gold, #c9a227) 8%, #f7f3e8) 100%
  );
}
.ml-section:has(.ml-envelope),
.ml-section:has(.ml-rsvp-form) {
  background:
    radial-gradient(
      90% 60% at 80% 70%,
      color-mix(in srgb, var(--ml-gold, #c9a227) 12%, transparent),
      transparent 55%
    ),
    #f5f0e4;
}
.ml-footer {
  background: linear-gradient(
    180deg,
    #f3ede0,
    color-mix(in srgb, var(--ml-emerald, #0e5e3f) 10%, #ece5d6)
  );
}

/* === Motion Bali (dedup+motion 12 Nov 2026): reveal-on-scroll, latar, panjang === */
/* Reveal: konten section muncul saat di-scroll (zoom-in halus ala referensi).
   `.is-js` hanya ada setelah JS jalan -> tanpa JS konten tetap terlihat. */
.ml.is-js .reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.965);
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.ml.is-js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Foto & kartu di dalam section: muncul menyusul (stagger) setelah section. */
.ml.is-js .reveal img,
.ml.is-js .reveal .ml-card,
.ml.is-js .reveal .ml-foto {
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition:
    opacity 0.9s ease 0.18s,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.18s;
}
.ml.is-js .reveal.is-visible img,
.ml.is-js .reveal.is-visible .ml-card,
.ml.is-js .reveal.is-visible .ml-foto {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .ml.is-js .reveal,
  .ml.is-js .reveal img,
  .ml.is-js .reveal .ml-card,
  .ml.is-js .reveal .ml-foto {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* Latar berlapis tiap section: semburat aksen di atas + gradien kertas ke aksen. */
.ml-section {
  background:
    radial-gradient(
      120% 55% at 50% 0%,
      color-mix(in srgb, var(--ml-acc) 12%, transparent),
      transparent 62%
    ),
    linear-gradient(
      180deg,
      var(--ml-paper),
      color-mix(in srgb, var(--ml-paper) 84%, var(--ml-acc))
    );
  padding: clamp(84px, 14vw, 128px) 20px;
}
/* Preview lebih panjang: foto mempelai & galeri lebih besar. */
.ml-foto {
  width: min(82%, 320px);
}
.ml-section > img {
  border-radius: 16px;
  margin-bottom: 18px;
}

/* === Motion Bali v2 (12 Nov 2026): ritme latar selang-seling + bingkai === */
/* Section genap: latar aksen pekat + pola wajik samar (ritme terang-gelap). */
div[data-section-id]:nth-child(even) .ml-section {
  background:
    radial-gradient(
      110% 50% at 50% 0%,
      color-mix(in srgb, var(--ml-acc) 30%, transparent),
      transparent 65%
    ),
    repeating-linear-gradient(
      45deg,
      color-mix(in srgb, var(--ml-acc) 4%, transparent) 0 2px,
      transparent 2px 26px
    ),
    repeating-linear-gradient(
      -45deg,
      color-mix(in srgb, var(--ml-acc) 4%, transparent) 0 2px,
      transparent 2px 26px
    ),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--ml-acc) 28%, var(--ml-paper)),
      color-mix(in srgb, var(--ml-acc) 20%, var(--ml-paper))
    );
}
/* Bingkai ornamen ganda di tiap section (kartu berbingkai emas/aksen). */
.ml-section {
  border: 2px solid color-mix(in srgb, var(--ml-acc) 60%, transparent);
  outline: 1px solid color-mix(in srgb, var(--ml-acc) 40%, transparent);
  outline-offset: 6px;
  border-radius: 24px;
  margin: 20px 14px;
}
/* Foto mempelai bentuk arch (lengkung atas) + bingkai emas + bayangan. */
.ml-foto {
  border-radius: 999px 999px 18px 18px;
  box-shadow: 0 18px 40px color-mix(in srgb, var(--ml-acc) 45%, transparent);
}
/* Drift lebih kentara: opacity naik (page variant). */
.ml-drift--page .ml-drift__item svg {
  opacity: 0.4;
}

/* === Tombol Lihat Lokasi (12 Nov 2026): lengkapi data preview === */
.ml-maps {
  display: inline-block;
  margin-top: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--ml-acc);
  color: var(--ml-on-acc, #fff);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}
