/* ==========================================================================
   Undangan Pernikahan Digital — Tema Putih Biru Navy Minimalis
   Fokus utama: bersih, tenang, lega, dan hanya menggunakan dua pas foto.
   ========================================================================== */

:root {
  --bg-canvas: #eae0cf;
  --surface-white: #f7f1e5;
  --surface-card: #fcf9f2;
  --surface-tint: #efe6d6;
  --navy-950: #0b1c33;
  --navy-900: #102645;
  --navy-800: #1b3a63;
  --navy-600: #355887;
  --slate-500: #5d6670;
  --slate-400: #878c92;
  --border-subtle: #e2d6c1;
  --border-strong: #cbbba0;

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-soft: 0 12px 36px rgba(56, 42, 22, 0.08);
  --shadow-frame: 0 10px 28px rgba(56, 42, 22, 0.09);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--navy-900);
  background-color: var(--bg-canvas);
  background-image: radial-gradient(rgba(96, 74, 46, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-font-smoothing: antialiased;
}

body.locked {
  overflow: hidden;
  height: 100vh;
}

/* ==========================================================================
   SAMPUL UNDANGAN (COVER)
   ========================================================================== */

.cover {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  overflow-x: hidden;
  overflow-y: auto;
  background: linear-gradient(180deg, #faf4e7 0%, #f5ecdc 55%, #f2e8d6 100%);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.55s;
}

.cover.is-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cover-canvas {
  width: 100%;
  max-width: 400px;
  min-height: min(680px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: 8px 8px 10px;
  gap: 14px;
}

/* Monogram kaligrafi bersambung M A dengan warna & efek emboss krem lembut */
.cover-emboss-monogram {
  width: 100%;
  max-width: 248px;
  margin: 4px auto -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: opacity 0.42s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.cover-monogram-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.92;
  filter:
    drop-shadow(-1.5px -1.5px 1.5px rgba(255, 253, 248, 0.85))
    drop-shadow(2px 3px 4px rgba(154, 134, 100, 0.28));
  pointer-events: none;
}

/* You're INVITED */
.cover-invited-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 4px;
  transition: opacity 0.42s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.cover-script-line {
  margin: 0;
  font-family: "Great Vibes", cursive;
  font-size: clamp(40px, 10vw, 48px);
  font-weight: 400;
  line-height: 1;
  color: var(--navy-900);
  text-shadow: 0 2px 6px rgba(16, 38, 69, 0.14);
}

.cover-serif-line {
  margin: 2px 0 0;
  font-family: "Cinzel", var(--font-serif);
  font-size: clamp(28px, 7.5vw, 35px);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.1;
  color: var(--navy-900);
  text-shadow: 0 2px 5px rgba(16, 38, 69, 0.12);
}

/* ==========================================================================
   AMPLOP 3D INTERAKTIF — EFEK MATCH & MOVE REALISTIS (60FPS GPU)
   ========================================================================== */

.envelope-stage {
  position: relative;
  width: 100%;
  max-width: 288px;
  margin: 8px auto 12px;
}

/* Buket bunga baru di samping kiri & kanan bawah amplop */
.envelope-bouquet {
  position: absolute;
  bottom: -30px;
  width: 118px;
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 6;
  opacity: 0.94;
  filter: drop-shadow(0 8px 14px rgba(16, 38, 69, 0.16));
  transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.envelope-bouquet-left {
  left: -46px;
  transform: scaleX(-1) rotate(8deg);
}

.envelope-bouquet-right {
  right: -46px;
  transform: rotate(8deg);
}

/* Container amplop 2D agar z-index antar layer (back/flap-open < letter < pocket < flap-closed < seal) 100% akurat di semua browser HP */
.envelope-3d {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 769 / 535;
  cursor: pointer;
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  outline: none;
}

.envelope-3d:hover {
  transform: translate3d(0, -4px, 0);
}

.envelope-3d:focus-visible {
  outline: 2px solid rgba(16, 38, 69, 0.35);
  outline-offset: 6px;
}

/* Interior amplop dengan bayangan luar & kedalaman realistis */
.envelope-back {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: linear-gradient(180deg, #cbbba0 0%, #e4d8c3 46%, #f4ede0 100%);
  box-shadow:
    0 20px 36px rgba(66, 48, 24, 0.24),
    0 6px 14px rgba(66, 48, 24, 0.14),
    inset 0 24px 32px rgba(84, 62, 34, 0.24);
  z-index: 1;
  transition: opacity 0.55s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Kartu undangan di dalam amplop (z-index: 2 -> di depan tutup terbuka z:1, di belakang kantong z:3) */
.envelope-letter {
  position: absolute;
  left: 7%;
  right: 7%;
  top: 7%;
  bottom: 7%;
  z-index: 2;
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 7px;
  box-shadow: 0 6px 18px rgba(56, 42, 22, 0.14);
  transform: translate3d(0, 7%, 0) scale(0.93);
  transition: transform 0.82s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.82s ease,
    opacity 0.55s ease;
  will-change: transform, opacity;
}

.envelope-letter-inner {
  width: 100%;
  height: 100%;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px;
  background: linear-gradient(180deg, #fdfaf4 0%, #f5eee0 100%);
}

.letter-eyebrow {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy-600);
}

.letter-monogram {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--navy-950);
  margin-top: 2px;
}

.letter-names {
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-style: italic;
  color: var(--navy-800);
}

.letter-date {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--slate-500);
  margin-top: 2px;
}

.envelope-pocket {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  z-index: 3;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.55s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Engsel 3D terisolasi: memberi perspective 3D nyata & menangani fade/z-index tanpa merusak preserve-3d */
.envelope-flap-hinge {
  position: absolute;
  inset: 0;
  z-index: 4;
  perspective: 900px;
  -webkit-perspective: 900px;
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

/* PENTING: Hanya will-change: transform (JANGAN tambah opacity/filter di sini agar preserve-3d tetap aktif!) */
.envelope-flap-wrap {
  position: absolute;
  inset: 0;
  transform-origin: 50% 0%;
  -webkit-transform-origin: 50% 0%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transform: rotateX(0deg);
  transition: transform 0.8s cubic-bezier(0.32, 0.82, 0.28, 1);
  will-change: transform;
}

.envelope-flap-front,
.envelope-flap-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  user-select: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.envelope-flap-front {
  transform: rotateX(0deg) translateZ(0.5px);
}

/* rotateY(180deg) menjaga sisi engsel (y=0%) tetap menempel di garis atas amplop & ujung V menghadap ke atas saat terbuka! */
.envelope-flap-back {
  transform: rotateY(180deg) translateZ(0.5px);
}

.envelope-seal {
  position: absolute;
  left: 50.1%;
  top: 60.5%;
  width: 24%;
  aspect-ratio: 1;
  z-index: 5;
  transform: translate3d(-50%, -50%, 0) scale(1) rotate(0deg);
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  will-change: transform, opacity;
  pointer-events: none;
}

.envelope-seal img {
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  filter: drop-shadow(0 5px 10px rgba(48, 18, 16, 0.32));
}

.seal-monogram {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: clamp(13px, 3.6vw, 17px);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #f9ebd2;
  text-shadow: 0 1px 2px rgba(68, 8, 10, 0.72), 0 -0.5px 0 rgba(255, 236, 200, 0.35);
  user-select: none;
}

/* ==========================================================================
   KOREOGRAFI 4-TAHAP BUKA AMPLOP 3D SEJATI
   ========================================================================== */

/* Tahap 1: Teks & bunga meredup, segel lilin M & A terlepas, tutup amplop melipat 180° ke atas */
.cover.is-opening .cover-emboss-monogram,
.cover.is-opening .cover-invited-head {
  opacity: 0;
  transform: translate3d(0, -18px, 0);
}

.cover.is-opening .cover-bottom {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  pointer-events: none;
}

.cover.is-opening .envelope-bouquet {
  opacity: 0;
}

.cover.is-opening .envelope-bouquet-left {
  transform: scaleX(-1) rotate(8deg) translate3d(18px, 10px, 0);
}

.cover.is-opening .envelope-bouquet-right {
  transform: rotate(8deg) translate3d(18px, 10px, 0);
}

.cover.is-opening .envelope-3d {
  transform: translate3d(0, 52px, 0) scale(1.03);
  cursor: default;
}

.cover.is-opening .envelope-seal {
  transform: translate3d(-50%, -64%, 0) scale(1.18) rotate(-8deg);
  opacity: 0;
}

.cover.is-opening .envelope-flap-wrap {
  transform: rotateX(180deg);
  transition-delay: 0.12s;
}

/* Tahap 2: Tepat saat tutup melewati 90°, pindah bersih ke z-index: 1 (di belakang kartu z-index: 2) */
.cover.is-flap-behind .envelope-flap-hinge {
  z-index: 1;
}

/* Tahap 3: Setelah tutup terbuka penuh, kartu undangan ditarik keluar bersih di depan tutup terbuka */
.cover.is-card-pulling .envelope-3d {
  transform: translate3d(0, 78px, 0) scale(1.01);
}

.cover.is-card-pulling .envelope-letter {
  transform: translate3d(0, -78%, 0) scale(1.04);
  box-shadow: 0 22px 42px rgba(56, 42, 22, 0.22);
}

/* Tahap 4 (Match & Move): Badan amplop turun & hilang, kartu membesar mulus memenuhi layar */
.cover.is-card-expanding .envelope-back,
.cover.is-card-expanding .envelope-pocket,
.cover.is-card-expanding .envelope-flap-hinge {
  opacity: 0;
  transform: translate3d(0, 72px, 0) scale(0.94);
}

.cover.is-card-expanding .envelope-letter {
  z-index: 12;
  transform: translate3d(0, -34%, 0) scale(2.05);
  box-shadow: 0 32px 64px rgba(16, 38, 69, 0.18);
  opacity: 0;
  transition: transform 0.68s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.56s ease 0.16s,
    box-shadow 0.68s ease;
}

@media (prefers-reduced-motion: reduce) {
  .envelope-flap-wrap,
  .envelope-letter,
  .envelope-seal,
  .envelope-3d,
  .cover {
    transition-duration: 0.2s !important;
    animation: none !important;
  }
}

/* Ornamen bunga garis halus (simple & elegan) */
.floral-corner {
  position: absolute;
  width: 118px;
  height: 118px;
  color: var(--navy-600);
  opacity: 0.42;
  pointer-events: none;
  z-index: 0;
}

.floral-tl {
  top: -6px;
  left: -6px;
}

.floral-br {
  bottom: -6px;
  right: -6px;
  transform: rotate(180deg);
}

.floral-hero-tl {
  top: -8px;
  left: -8px;
  width: 116px;
  height: 116px;
  opacity: 0.3;
}

.floral-hero-tr {
  top: -8px;
  right: -8px;
  width: 116px;
  height: 116px;
  opacity: 0.3;
  transform: scaleX(-1);
}

.floral-footer-tl {
  top: -8px;
  left: -8px;
  width: 114px;
  height: 114px;
  color: #ffffff;
  opacity: 0.16;
}

.floral-sprig {
  display: block;
  width: 136px;
  height: 24px;
  margin: 14px auto 0;
  color: var(--navy-600);
  opacity: 0.72;
}

.floral-sprig-sm {
  width: 116px;
  margin: 0 auto 10px;
  opacity: 0.65;
}

.monogram-seal {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 1px solid var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--navy-900);
  background: var(--surface-white);
}

.monogram-sm {
  width: 48px;
  height: 48px;
  font-size: 15px;
  margin-bottom: 18px;
}

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

.couple-title {
  margin: 6px 0 4px;
  font-family: var(--font-serif);
  font-size: clamp(34px, 8.8vw, 44px);
  font-weight: 500;
  line-height: 1.08;
  color: var(--navy-950);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.couple-title .ampersand {
  font-size: 26px;
  font-style: italic;
  font-weight: 400;
  color: var(--navy-600);
  line-height: 1.1;
}

.hairline-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 22px auto 16px;
  width: 150px;
  color: var(--navy-600);
}

.hairline-divider span {
  flex: 1;
  height: 1px;
  background: var(--border-strong);
}

.cover-date {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--slate-500);
}

.cover-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 4px;
  transition: opacity 0.42s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.cover-dear {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--navy-800);
}

.guest-name {
  margin: 0 0 14px;
  font-family: "Lora", var(--font-serif);
  font-size: clamp(20px, 5.5vw, 24px);
  font-weight: 600;
  color: var(--navy-950);
  line-height: 1.25;
}

.cover-apology {
  margin: 0 0 22px;
  max-width: 300px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-style: italic;
  font-weight: 400;
  color: var(--slate-500);
  line-height: 1.4;
}

.btn-cover-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 11px 32px;
  border-radius: 999px;
  border: 1px solid var(--navy-900);
  background: var(--navy-900);
  color: #faf4e7;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(16, 38, 69, 0.24);
  transition: background-color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}

.btn-cover-open:hover {
  background: var(--navy-800);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(16, 38, 69, 0.3);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn-primary,
.btn-outline,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 12px 26px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--navy-900);
  color: #ffffff;
  border: 1px solid var(--navy-900);
}

.btn-primary:hover {
  background: var(--navy-800);
  border-color: var(--navy-800);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--surface-card);
  color: var(--navy-900);
  border: 1px solid var(--navy-900);
}

.btn-outline:hover {
  background: var(--navy-900);
  color: #ffffff;
}

.btn-ghost {
  background: var(--surface-tint);
  color: var(--navy-800);
  border: 1px solid var(--border-subtle);
  padding: 9px 16px;
  font-size: 12px;
}

.btn-ghost:hover {
  border-color: var(--navy-600);
  background: #e7dcc8;
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   SHELL UTAMA (MOBILE-FIRST EDITORIAL CARD)
   ========================================================================== */

.invitation-shell {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: var(--surface-white);
  box-shadow: var(--shadow-soft);
  min-height: 100vh;
  padding-bottom: 0;
}

.section {
  position: relative;
  padding: 56px 26px;
  border-bottom: 1px solid var(--border-subtle);
}

.section-tinted {
  background: var(--surface-tint);
}

.section-hero {
  position: relative;
  overflow: hidden;
  padding-top: 108px;
  padding-bottom: 96px;
}

.section-hero::before,
.section-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 132px;
  background-repeat: no-repeat;
  background-size: 100% auto;
  pointer-events: none;
  z-index: 0;
}

.section-hero::before {
  top: 0;
  background-image: url("./assets/floral-top.png");
  background-position: top center;
  opacity: 0.42;
}

.section-hero::after {
  bottom: 0;
  background-image: url("./assets/floral-bottom.png");
  background-position: bottom center;
  opacity: 0.34;
}

.section-hero > * {
  position: relative;
  z-index: 1;
}

#acara,
#rsvp {
  overflow: hidden;
  padding-top: 76px;
  padding-bottom: 76px;
}

#acara::before,
#rsvp::before,
#acara::after,
#rsvp::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 118px;
  background-repeat: no-repeat;
  background-size: 100% auto;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
}

#acara::before,
#rsvp::before {
  top: 0;
  background-image: url("./assets/floral-top.png");
  background-position: top center;
}

#acara::after,
#rsvp::after {
  bottom: 0;
  background-image: url("./assets/floral-bottom.png");
  background-position: bottom center;
}

#acara > *,
#rsvp > * {
  position: relative;
  z-index: 1;
}

.section-heading {
  text-align: center;
  margin-bottom: 30px;
}

.section-title {
  margin: 8px 0 10px;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--navy-950);
}

.section-subtitle {
  margin: 0 auto;
  max-width: 390px;
  font-size: 13px;
  color: var(--slate-500);
}

/* ==========================================================================
   HERO & DUA PAS FOTO
   ========================================================================== */

.hero-header {
  text-align: center;
  margin-bottom: 34px;
}

.hero-names {
  margin: 10px 0 8px;
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--navy-950);
}

.ampersand-inline {
  font-style: italic;
  font-weight: 400;
  color: var(--navy-600);
  margin: 0 6px;
}

.hero-meta {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-500);
}

.dot-sep {
  margin: 0 8px;
  color: var(--border-strong);
}

/* Susunan atas-bawah dengan bingkai bersudut melengkung */
.pas-foto-duo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.pas-foto-card {
  margin: 0;
  width: 100%;
  max-width: 340px;
}

.pas-foto-mat {
  width: 100%;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 20px 22px 24px;
  box-shadow: var(--shadow-frame);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.pas-foto-mat:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.pas-foto-frame {
  width: 192px;
  max-width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  background: #1e5aa8;
  border: 3px solid var(--surface-tint);
  box-shadow: 0 0 0 1px var(--border-strong), 0 8px 20px rgba(16, 38, 69, 0.12);
}

.pas-foto-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.pas-foto-caption {
  padding-top: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.pas-foto-tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-600);
}

.pas-foto-name {
  margin: 4px 0 4px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy-950);
}

.pas-foto-parents {
  margin: 0;
  max-width: 280px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--slate-500);
}

.pas-foto-parents strong {
  font-weight: 500;
  color: var(--navy-900);
}

.couple-ampersand-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 160px;
  margin: 2px 0;
}

.couple-ampersand-sep span {
  flex: 1;
  height: 1px;
  background: var(--border-strong);
}

.couple-ampersand-sep em {
  font-family: var(--font-serif);
  font-size: 26px;
  font-style: italic;
  line-height: 1;
  color: var(--navy-600);
}

/* Kutipan */
.quote-block {
  margin: 0;
  padding: 22px 20px;
  background: var(--surface-tint);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--navy-900);
  border-radius: 16px;
  text-align: center;
}

.quote-text {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 17px;
  font-style: italic;
  line-height: 1.65;
  color: var(--navy-900);
}

.quote-source {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-600);
}

/* ==========================================================================
   COUNTDOWN
   ========================================================================== */

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.countdown-item {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px 8px;
  text-align: center;
}

.countdown-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  color: var(--navy-950);
  margin-bottom: 6px;
}

.countdown-label {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-500);
}

/* ==========================================================================
   RANGKAIAN ACARA
   ========================================================================== */

.events-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.event-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.event-card-header {
  background: var(--navy-900);
  color: #ffffff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.event-card-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.event-card-day {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.event-card-body {
  padding: 20px;
}

.event-meta-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--navy-900);
}

.event-meta-item svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--navy-600);
}

.event-address {
  display: block;
  font-size: 12.5px;
  color: var(--slate-500);
  margin-top: 2px;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================================================
   TANDA KASIH (GIFT)
   ========================================================================== */

.gift-wrapper {
  text-align: center;
}

#toggle-gift-btn svg {
  transition: transform 0.2s ease;
}

#toggle-gift-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.gift-list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.atm-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 370px;
  border-radius: 18px;
  padding: 20px 22px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #0c2242 0%, #173f78 55%, #23589e 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 32px rgba(12, 34, 66, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.atm-card-alt {
  background: linear-gradient(135deg, #102a4f 0%, #1e4b85 52%, #2c65ad 100%);
}

/* Efek kilau halus & lingkaran geometris ala kartu ATM */
.atm-card::before,
.atm-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.atm-card::before {
  width: 220px;
  height: 220px;
  top: -110px;
  right: -70px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 72%);
}

.atm-card::after {
  width: 180px;
  height: 180px;
  bottom: -95px;
  left: -60px;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.atm-card > * {
  position: relative;
  z-index: 1;
}

.atm-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.atm-bank {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
}

.atm-type {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
}

.atm-contactless {
  color: rgba(255, 255, 255, 0.7);
  transform: rotate(180deg);
}

.atm-chip-row {
  margin-bottom: 16px;
}

.atm-chip {
  width: 44px;
  height: 33px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.22));
}

.atm-number {
  margin: 0 0 18px;
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  word-spacing: 0.08em;
}

.atm-card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.atm-holder-wrap {
  min-width: 0;
}

.atm-holder-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.64);
  margin-bottom: 2px;
}

.atm-holder {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.atm-copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.atm-copy-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
}

/* ==========================================================================
   RSVP & UCAPAN
   ========================================================================== */

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.field-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--navy-800);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--navy-950);
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--navy-900);
  box-shadow: 0 0 0 3px rgba(16, 38, 69, 0.08);
}

.field textarea {
  resize: vertical;
  min-height: 84px;
}

.wishes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-800);
}

.wishes-count {
  font-weight: 500;
  color: var(--slate-500);
}

.wishes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wish-item {
  padding: 15px 16px;
  background: var(--surface-tint);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.wish-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.wish-name {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--navy-950);
}

.wish-badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e5dac6;
  color: var(--navy-800);
}

.wish-badge.absent {
  background: #ebe4d7;
  color: var(--slate-500);
}

.wish-message {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--navy-900);
}

.wish-time {
  font-size: 11px;
  color: var(--slate-400);
}

.wish-empty {
  margin: 0;
  padding: 20px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--slate-500);
  background: var(--surface-tint);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   FOOTER & PENUTUP
   ========================================================================== */

.section-footer {
  position: relative;
  overflow: hidden;
  border-bottom: none;
  background: var(--navy-900);
  color: #ffffff;
  text-align: center;
  padding: 52px 28px 104px;
}

.footer-content {
  position: relative;
  z-index: 1;
}

.section-footer .monogram-seal {
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
  background: transparent;
}

.closing-note {
  margin: 0 auto 22px;
  max-width: 390px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}

.closing-sign {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.closing-couple {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 500;
  color: #ffffff;
}

.footer-credit-bar {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-credit {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   MUSIK LATAR (YOUTUBE)
   ========================================================================== */

.yt-music-host {
  position: fixed;
  width: 200px;
  height: 200px;
  right: 0;
  bottom: 0;
  z-index: -1;
  opacity: 0.001;
  pointer-events: none;
  overflow: hidden;
}

.music-toggle {
  position: fixed;
  right: 18px;
  bottom: 78px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(252, 249, 242, 0.95);
  color: var(--navy-900);
  box-shadow: 0 8px 22px rgba(56, 42, 22, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.music-toggle:hover {
  transform: translateY(-2px);
}

.music-toggle .icon-muted {
  display: none;
}

.music-toggle.is-playing {
  background: var(--navy-900);
  color: #ffffff;
  border-color: var(--navy-900);
}

.music-toggle.is-playing .icon-music {
  animation: musicPulse 2s ease-in-out infinite;
}

.music-toggle.is-paused .icon-music {
  display: none;
}

.music-toggle.is-paused .icon-muted {
  display: block;
}

@keyframes musicPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

/* ==========================================================================
   NAVIGASI BAWAH
   ========================================================================== */

.bottom-nav {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: rgba(252, 249, 242, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(56, 42, 22, 0.16);
}

.bottom-nav[hidden] {
  display: none;
}

.nav-link {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--slate-500);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link.active,
.nav-link:hover {
  background: var(--navy-900);
  color: #ffffff;
}

/* ==========================================================================
   TOAST & REVEAL
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 76px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 120;
  background: var(--navy-950);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 12.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.reveal-right {
  transform: translate3d(56px, 0, 0);
  transition: opacity 0.88s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.88s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Efek halus bertahap: foto masuk dulu dari kanan, disusul nama & orang tua */
.pas-foto-card.reveal-right .pas-foto-caption {
  opacity: 0;
  transform: translate3d(28px, 0, 0);
  transition: opacity 0.78s cubic-bezier(0.22, 1, 0.36, 1) 0.16s,
    transform 0.78s cubic-bezier(0.22, 1, 0.36, 1) 0.16s;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.pas-foto-card.reveal-right.is-visible .pas-foto-caption {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.reveal-right,
  .pas-foto-card.reveal-right .pas-foto-caption {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (max-width: 420px) {
  .cover {
    padding: 16px 16px;
  }

  .cover-emboss-monogram {
    max-width: 214px;
  }

  .envelope-stage {
    max-width: 252px;
  }

  .envelope-bouquet {
    width: 98px;
    bottom: -24px;
  }

  .envelope-bouquet-left {
    left: -34px;
  }

  .envelope-bouquet-right {
    right: -34px;
  }

  .section {
    padding: 44px 18px;
  }

  .section-hero {
    padding-top: 86px;
    padding-bottom: 78px;
  }

  #acara,
  #rsvp {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .pas-foto-mat {
    padding: 18px 18px 22px;
  }

  .pas-foto-frame {
    width: 176px;
  }

  .pas-foto-name {
    font-size: 22px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .atm-card {
    padding: 18px 18px 16px;
  }

  .atm-number {
    font-size: 16.5px;
    letter-spacing: 0.08em;
  }
}
