/* ==========================================================================
   THIỆP CƯỚI VĂN NAM & KIM TIẾN — LUXURY INDOCHINE EDITORIAL EDITION
   Palette: Imperial Burgundy (#6E0C17) · Antique Champagne Gold (#A2855E) · Alabaster (#FFFFFF)
   Typography:
     - Cormorant Garamond (Couple names, formal editorial headings, dates, prose)
     - Great Vibes (Airy English editorial accents only: Save the date, Timeline, Our Album, Thank you!)
     - Be Vietnam Pro (Clean UI forms, addresses, buttons)
   ========================================================================== */

:root {
  --outer-bg: #201315;
  --paper: #FFFFFF;
  --paper-warm: #FAF7F3;
  --burgundy: #6E0C17;
  --burgundy-mid: #821220;
  --burgundy-dark: #4E0710;
  --gold: #8E7047;
  --gold-light: #BFA47C;
  --gold-pale: #E9DEC9;
  --ink: #271F1D;
  --muted: #5A4E47;
  --line: #E2D7C9;
  --serif: 'Cormorant Garamond', 'Palatino Linotype', Georgia, serif;
  --accent-script: 'Great Vibes', 'Cormorant Garamond', cursive;
  --sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink);
  background: radial-gradient(circle at 50% 0%, #3A161B 0%, #1C0D10 68%, #13080A 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
a { text-decoration: none; color: inherit; }
.hidden { display: none !important; }

/* Lining uniform numerals on Cormorant Garamond */
.lnum {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

/* ===== MAIN MOBILE-FIRST EDITORIAL CANVAS ===== */
.shell {
  width: 100%;
  max-width: 450px;
  min-height: 100vh;
  background: var(--paper);
  position: relative;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  overflow-x: clip;
}

#secInvite, #secSchedule, #secAlbum, #secRsvp, #secGift {
  scroll-margin-top: 10px;
}

/* ===== 0. IMPERIAL BURGUNDY DOUBLE-DOOR OPENING WITH GOLD 囍 SEAL ===== */
.door-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  justify-content: center;
  pointer-events: auto;
  transition: visibility 1.45s;
}
.door-overlay.opened {
  visibility: hidden;
  pointer-events: none;
}

.door-stage {
  position: relative;
  width: 100%;
  max-width: 450px;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
}

.door-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.2%;
  background-color: var(--burgundy);
  background-image:
    radial-gradient(circle at 50% 45%, rgba(140, 24, 38, 0.55) 0%, rgba(86, 8, 17, 0.92) 78%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%23CBB390' stroke-opacity='0.08' stroke-width='1'%3E%3Ccircle cx='110' cy='110' r='52'/%3E%3Ccircle cx='110' cy='110' r='34'/%3E%3Cpath d='M110 30 C130 62 158 90 190 110 C158 130 130 158 110 190 C90 158 62 130 30 110 C62 90 90 62 110 30 Z'/%3E%3Cpath d='M20 40 Q55 28 85 45 T150 40'/%3E%3Cpath d='M60 185 Q105 170 140 186 T205 180'/%3E%3C/g%3E%3C/svg%3E");
  transition: transform 1.35s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

.door-panel.left {
  left: 0;
  border-right: 1px solid rgba(203, 179, 144, 0.32);
}
.door-panel.right {
  right: 0;
  border-left: 1px solid rgba(203, 179, 144, 0.2);
}

.door-overlay.opened .door-panel.left { transform: translateX(-104%); }
.door-overlay.opened .door-panel.right { transform: translateX(104%); }

/* Gold wax seal mounted on the center edge of the left door (glides with door!) */
.door-seal-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 92px;
  height: 92px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #EEDAB4 0%, #C8A56B 46%, #94703E 82%, #765529 100%);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.48),
    inset 0 2px 5px rgba(255, 248, 232, 0.72),
    inset 0 -4px 8px rgba(72, 47, 16, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 1.35s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.55s ease 0.7s;
  animation: sealGlow 3s ease-in-out infinite;
}
.door-seal-btn::before {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1.5px solid rgba(98, 66, 26, 0.48);
}
.door-seal-btn::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(233, 222, 201, 0.42);
  animation: sealRing 2.8s ease-out infinite;
}
.door-overlay.opened .door-seal-btn {
  animation: none;
  transform: translate(calc(-50% - 54vw), -50%) rotate(-12deg);
  opacity: 0;
}

.door-seal-hy {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  color: #5C3D18;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(255, 245, 220, 0.65);
}

.door-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 13%;
  z-index: 4;
  text-align: center;
  padding: 0 24px;
  transition: opacity 0.45s ease;
}
.door-overlay.opened .door-caption { opacity: 0; }

.door-couple {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 7vw, 31px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.22;
  color: #FFF6EB;
  margin: 0 0 10px;
}
.door-couple .door-amp {
  display: block;
  font-family: var(--accent-script);
  font-style: normal;
  font-size: 24px;
  line-height: 0.9;
  color: var(--gold-light);
  margin: 2px 0;
}
.door-guest-line {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-pale);
  margin: 0 0 18px;
}
.door-hint {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(240, 230, 212, 0.94);
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(233, 222, 201, 0.45);
  background: rgba(0, 0, 0, 0.2);
}

@keyframes sealGlow {
  0%, 100% { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.48), inset 0 2px 5px rgba(255, 248, 232, 0.72); }
  50% { box-shadow: 0 14px 36px rgba(203, 179, 144, 0.32), inset 0 2px 6px rgba(255, 248, 232, 0.85); }
}
@keyframes sealRing {
  0% { transform: scale(0.95); opacity: 0.65; }
  100% { transform: scale(1.28); opacity: 0; }
}

/* ===== SUBTLE SCROLL REVEAL (MEASURED & ELEGANT) ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
}
.reveal.from-left { transform: translateX(-26px); }
.reveal.from-right { transform: translateX(26px); }
.reveal.in-view { opacity: 1; transform: none; }

/* ===== ORNAMENTAL INDOCHINE CLOUDS & CRANE BANDS ===== */
.ornament-band {
  position: relative;
  height: 76px;
  background: var(--paper);
  overflow: hidden;
  pointer-events: none;
}
.ornament-cloud-left {
  position: absolute;
  left: -8px;
  top: 10px;
  width: 175px;
  opacity: 0.75;
  animation: cloudDrift 14s ease-in-out infinite alternate;
}
.ornament-crane-right {
  position: absolute;
  right: 12px;
  top: 6px;
  width: 112px;
  opacity: 0.92;
  animation: craneGlide 8s ease-in-out infinite alternate;
}
.ornament-crane-left {
  position: absolute;
  left: 14px;
  top: 6px;
  width: 108px;
  opacity: 0.92;
  animation: craneGlide 8s ease-in-out infinite alternate;
}
.ornament-cloud-right {
  position: absolute;
  right: -8px;
  bottom: 6px;
  width: 170px;
  opacity: 0.72;
  animation: cloudDrift 15s ease-in-out infinite alternate-reverse;
}

@keyframes cloudDrift {
  0% { transform: translateX(0); }
  100% { transform: translateX(10px); }
}
@keyframes craneGlide {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-6px, -4px); }
}

/* ===== 1. FULL-BLEED CINEMATIC HERO COVER (JMII 00:02 - 00:04) ===== */
.hero-cover {
  position: relative;
  width: 100%;
  height: min(82vh, 660px);
  min-height: 520px;
  overflow: hidden;
  background: var(--burgundy-dark);
}

.hero-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transform: scale(1.06);
  transition: transform 2.2s cubic-bezier(0.22, 1, 0.36, 1);
  animation: gentleKenBurns 22s ease-in-out infinite alternate;
}
body.hero-ready .hero-cover-img {
  transform: scale(1);
}

.hero-cover-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(38, 8, 12, 0.14) 0%,
    rgba(38, 8, 12, 0.05) 36%,
    rgba(48, 8, 14, 0.62) 66%,
    rgba(46, 7, 13, 0.92) 100%
  );
  pointer-events: none;
}

.hero-cover-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 2;
  text-align: center;
  padding: 0 18px;
  color: #FFFFFF;
}

/* Crisp, bold, ultra-readable Editorial Serif Italic for full Vietnamese names */
.hero-couple-names {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(30px, 8vw, 38px);
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.18;
  margin: 0 0 12px;
  color: #FFFDF9;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s ease 0.35s, transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
}
.hero-couple-names .name-line {
  display: block;
  white-space: nowrap;
}
.hero-couple-names .amp {
  display: block;
  font-family: var(--accent-script);
  font-style: normal;
  font-size: 0.84em;
  line-height: 0.85;
  color: var(--gold-pale);
  margin: 2px 0;
}

.hero-save-line {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin: 0 0 6px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s ease 0.55s, transform 0.9s ease 0.55s;
}

.hero-date-sub {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255, 253, 249, 0.96);
  margin: 0;
  opacity: 0;
  transition: opacity 0.9s ease 0.72s;
}

body.hero-ready .hero-couple-names,
body.hero-ready .hero-save-line,
body.hero-ready .hero-date-sub {
  opacity: 1;
  transform: none;
}

@keyframes gentleKenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.065); }
}

/* ===== 2. SELF-OPENING BURGUNDY ENVELOPE & RISING COUNTDOWN CARD (JMII 00:05 - 00:09) ===== */
.envelope-stage-section {
  position: relative;
  padding: 16px 20px 44px;
  background: var(--paper);
  overflow: hidden;
}

.env-scene {
  position: relative;
  width: 100%;
  max-width: 336px;
  height: 478px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Burgundy Orchid Botanical Accent on Bottom-Left & Top-Right */
.orchid-accent-left {
  position: absolute;
  left: -26px;
  bottom: -24px;
  width: 126px;
  z-index: 6;
  pointer-events: none;
  opacity: 0.94;
}
.peony-accent-right {
  position: absolute;
  right: -24px;
  top: 168px;
  width: 96px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.9;
}

.env-pocket-back {
  position: relative;
  width: 304px;
  height: 204px;
  background: var(--burgundy-dark);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 18px 42px rgba(78, 7, 16, 0.24);
}

/* Triangular top envelope flap */
.env-flap-tri {
  position: absolute;
  top: -86px;
  left: 0;
  width: 100%;
  height: 87px;
  background: var(--burgundy);
  clip-path: polygon(0 100%, 50% 4%, 100% 100%);
  transform-origin: bottom center;
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}

/* Rising Ivory Textured Invitation & Countdown Card */
.env-letter-card {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  min-height: 256px;
  padding: 20px 14px 56px;
  background: #FAF8F4;
  border: 1px solid #EAE2D6;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(46, 26, 28, 0.14);
  text-align: center;
  z-index: 3;
  transform: translateY(34px);
  opacity: 0.85;
  transition: transform 1.25s cubic-bezier(0.22, 1, 0.36, 1) 0.18s, opacity 0.9s ease 0.18s;
}

.env-scene.is-open .env-letter-card {
  transform: translateY(-128px);
  opacity: 1;
}

.letter-kicker {
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.5;
  margin: 0 0 10px;
}

.letter-names {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20.5px, 5.5vw, 24.5px);
  font-weight: 700;
  line-height: 1.24;
  color: var(--gold);
  margin: 0 0 14px;
}
.letter-names .letter-line {
  display: block;
  white-space: nowrap;
}
.letter-names .amp-small {
  display: block;
  font-family: var(--accent-script);
  font-style: normal;
  font-size: 21px;
  line-height: 0.95;
  color: var(--burgundy);
  margin: 2px 0;
}

.letter-cd-kicker {
  font-family: var(--serif);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

.letter-cd-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
}
.lcd-unit-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 40px;
}
.lcd-num {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--burgundy);
  line-height: 1;
}
.lcd-lbl {
  font-family: var(--serif);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 3px;
}
.lcd-sep {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--gold);
}

/* Front Pocket V-Cut covering lower part of card */
.env-pocket-front {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  pointer-events: none;
}
.env-pocket-front::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, var(--burgundy-mid) 0%, var(--burgundy) 55%, var(--burgundy-dark) 100%);
  clip-path: polygon(0 0, 50% 42%, 100% 0, 100% 100%, 0 100%);
}
.env-pocket-front::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(42, 4, 9, 0.28) 100%);
  clip-path: polygon(0 100%, 50% 42%, 100% 100%);
}

.env-mini-seal {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #F0DEB8 0%, #C5A167 52%, #8B6735 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.34), inset 0 1px 3px rgba(255, 250, 236, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: #5C3D18;
}

/* ===== 3. "Forever & Always" INTERLUDE PHOTO (JMII 00:09 - 00:11) ===== */
.interlude-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
  background: var(--burgundy-dark);
  cursor: pointer;
}
.interlude-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: gentleKenBurns 24s ease-in-out infinite alternate;
}
.interlude-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(46, 9, 14, 0.64) 100%);
  pointer-events: none;
}
.interlude-script {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 2;
  text-align: center;
  font-family: var(--accent-script);
  font-size: 38px;
  font-weight: 400;
  color: rgba(255, 248, 238, 0.94);
  margin: 0;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.35);
}

/* ===== 4. FORMAL INVITATION SUITE (JMII 00:11 - 00:18) ===== */
.formal-suite {
  position: relative;
  padding: 6px 24px 36px;
  background: var(--paper);
  text-align: center;
  overflow: hidden;
}

.families-formal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 26px;
  position: relative;
}
.families-formal::before {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}

.fam-col-title {
  font-family: var(--serif);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 2px;
}
.fam-col-en {
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.fam-col-parent {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin: 0 0 4px;
}
.fam-col-addr {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.invite-formal-kicker {
  font-family: var(--serif);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 3px;
}
.invite-formal-en {
  font-family: var(--serif);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.guest-underline {
  display: inline-block;
  font-family: var(--serif);
  font-size: 25.5px;
  font-weight: 700;
  color: var(--ink);
  padding: 0 18px 6px;
  border-bottom: 1.5px solid var(--gold-light);
  margin: 0 0 22px;
}

/* Crisp, bold, super-readable diagonal Serif couple names */
.formal-couple-names {
  max-width: 356px;
  margin: 0 auto 24px;
  padding: 6px 0;
}
.formal-name-top {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(27px, 7.2vw, 34px);
  font-weight: 700;
  line-height: 1.14;
  white-space: nowrap;
  color: var(--burgundy);
  text-align: left;
  padding-left: 4px;
  margin: 0;
}
.formal-name-amp {
  font-family: var(--accent-script);
  font-size: 27px;
  color: var(--gold);
  line-height: 0.85;
  margin: 3px 0;
  display: block;
  text-align: center;
}
.formal-name-bottom {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(27px, 7.2vw, 34px);
  font-weight: 700;
  line-height: 1.14;
  white-space: nowrap;
  color: var(--burgundy);
  text-align: right;
  padding-right: 4px;
  margin: 0;
}

/* Individual Formal Event Block (matches Jmii 00:13 - 00:16) */
.formal-event {
  padding: 20px 4px;
  position: relative;
}
.formal-event + .formal-event {
  border-top: 1px solid var(--line);
}

.fe-tag {
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin: 0 0 6px;
}

.fe-time-lead {
  font-family: var(--serif);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
}

.fe-time-val {
  font-family: var(--serif);
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 14px;
}

.fe-date-triad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 auto 10px;
}

.fe-side {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 6px 2px;
  border-top: 1.5px solid var(--gold-pale);
  border-bottom: 1.5px solid var(--gold-pale);
  min-width: 96px;
}

.fe-day-big {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 600;
  line-height: 0.9;
  color: var(--burgundy);
}

.fe-lunar {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
  margin: 4px 0 8px;
}

.fe-sub-note {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.55;
  max-width: 326px;
  margin: 0 auto;
}

/* Unified Venue Location & Miniature Map Preview Cards */
.formal-venues {
  margin-top: 6px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 22px;
}

.venue-map-card {
  padding: 20px 16px 22px;
  border-radius: 14px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(46, 20, 24, 0.06);
}

.fe-venue-kicker {
  font-family: var(--serif);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 4px;
}
.fe-venue-name {
  font-family: var(--serif);
  font-size: 19.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin: 0 0 4px;
}
.fe-venue-addr {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.55;
  max-width: 320px;
  margin: 0 auto 14px;
}

.mini-map-thumb {
  position: relative;
  display: block;
  width: 100%;
  height: 182px;
  border-radius: 11px;
  overflow: hidden;
  border: 1.5px solid var(--gold-light);
  box-shadow: 0 8px 20px rgba(78, 7, 16, 0.12);
  margin: 0 auto 12px;
  background-color: #EFE9DE;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='182' viewBox='0 0 320 182'%3E%3Crect width='320' height='182' fill='%23F3EEE5'/%3E%3Cg stroke='%23DFD4C3' stroke-width='1.5' fill='none'%3E%3Cpath d='M0 44 Q90 36 160 66 T320 50'/%3E%3Cpath d='M0 124 Q110 104 200 132 T320 112'/%3E%3Cpath d='M78 0 Q96 90 64 182'/%3E%3Cpath d='M224 0 Q205 90 238 182'/%3E%3C/g%3E%3Ccircle cx='160' cy='86' r='8' fill='%236E0C17' fill-opacity='0.22'/%3E%3Ccircle cx='160' cy='86' r='3.5' fill='%236E0C17'/%3E%3C/svg%3E");
  background-size: cover;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mini-map-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(78, 7, 16, 0.18);
}
.mini-map-thumb iframe {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.venue-map-note {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 auto 14px;
  max-width: 310px;
}

.fe-map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--burgundy);
  background: var(--burgundy);
  color: #FFFDF9;
  font-family: var(--serif);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(110, 12, 23, 0.2);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.fe-map-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.fe-map-btn:hover {
  background: var(--burgundy-dark);
  border-color: var(--burgundy-dark);
}
.fe-map-btn:active {
  transform: scale(0.97);
}

/* Subtle Botanical Peony Bottom Border */
.peony-footer-svg {
  width: 100%;
  max-width: 390px;
  margin: 8px auto -24px;
  opacity: 0.42;
  pointer-events: none;
}

/* ===== 5. DARK EDITORIAL POLAROID COUPLE STORY (JMII 00:19 - 00:22) ===== */
.polaroid-story {
  position: relative;
  padding: 40px 20px 44px;
  background-color: #2B1317;
  overflow: hidden;
  color: #FFFFFF;
}
.polaroid-story-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: blur(1.5px) sepia(18%);
  pointer-events: none;
}
.polaroid-story::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(44, 15, 20, 0.72) 0%, rgba(36, 12, 16, 0.80) 100%);
  pointer-events: none;
}

.story-grid {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.story-row {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 16px;
  align-items: center;
}
.story-row.reverse {
  grid-template-columns: 0.88fr 1.12fr;
}

.polaroid-card {
  background: #FFFFFF;
  padding: 9px 9px 14px;
  border-radius: 3px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.36);
  text-align: center;
  cursor: pointer;
  transition: transform 0.35s ease;
}
.polaroid-card:hover { transform: translateY(-3px); }

.polaroid-img {
  width: 100%;
  aspect-ratio: 3 / 3.65;
  object-fit: cover;
  margin-bottom: 10px;
}

.polaroid-role {
  font-family: var(--accent-script);
  font-size: 23px;
  color: var(--gold);
  line-height: 1;
  margin: 0 0 3px;
}
.polaroid-name {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}

.story-copy {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.62;
  color: rgba(255, 250, 244, 0.96);
  margin: 0;
}

/* ===== 6. SAVE THE DATE CALENDAR, VERTICAL TIMELINE & DRESS CODE (JMII 00:22 - 00:26) ===== */
.schedule-suite {
  position: relative;
  padding: 36px 24px 34px;
  background: var(--paper);
  text-align: center;
  overflow: hidden;
}

.accent-heading {
  font-family: var(--accent-script);
  font-size: 46px;
  font-weight: 400;
  color: var(--gold);
  line-height: 1.08;
  margin: 0 0 4px;
}

.cal-sub-month {
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 18px;
}

.cal-clean-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 10px;
  text-align: center;
  align-items: center;
  max-width: 340px;
  margin: 0 auto 12px;
}

.cal-hd {
  font-family: var(--serif);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.cal-cell {
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  padding: 4px 0;
}
.cal-cell.sun { color: var(--burgundy); font-weight: 700; }

.cal-heart-mark {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cal-heart-mark svg {
  position: absolute;
  width: 34px;
  height: 34px;
  animation: gentleHeart 2.4s ease-in-out infinite;
}
.cal-heart-mark.solid span {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
}
.cal-heart-mark.outline span {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--burgundy);
}

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

.cal-notes {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--serif);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 34px;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

/* Vertical Gold-Burgundy Editorial Timeline (JMII 00:23 - 00:25) */
.timeline-axis {
  position: relative;
  max-width: 350px;
  margin: 22px auto 34px;
  padding: 6px 0;
}
.timeline-axis::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--burgundy) 12%, var(--burgundy) 88%, transparent);
  opacity: 0.45;
}

.tl-row {
  display: grid;
  grid-template-columns: 1fr 22px 1fr;
  align-items: center;
  margin-bottom: 24px;
}
.tl-row:last-child { margin-bottom: 0; }

.tl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--burgundy);
  margin: 0 auto;
  box-shadow: 0 0 0 4px var(--paper);
}

.tl-col-left {
  text-align: right;
  padding-right: 14px;
}
.tl-col-right {
  text-align: left;
  padding-left: 14px;
}

.tl-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.tl-icon-wrap svg {
  width: 36px;
  height: 36px;
}

.tl-time-str {
  font-family: var(--serif);
  font-size: 17.5px;
  font-weight: 700;
  color: var(--burgundy);
  letter-spacing: 0.08em;
  margin: 0 0 2px;
}
.tl-label-str {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 3px;
}
.tl-sub-str {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

/* Dress Code Block */
.dresscode-wrap {
  padding-top: 10px;
}
.dress-title {
  font-family: var(--accent-script);
  font-size: 36px;
  color: var(--gold);
  margin: 0 0 6px;
}
.dress-sub {
  font-family: var(--serif);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 12px;
}
.dress-swatches {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* ===== 7. SPINNING VINYL RECORD PLAYER FEATURE BLOCK (JMII 00:26 - 00:27) ===== */
.vinyl-section {
  background: var(--burgundy);
  padding: 36px 24px 32px;
  text-align: center;
  color: #FFFDF9;
  position: relative;
}

.vinyl-stage {
  position: relative;
  width: 236px;
  height: 236px;
  margin: 0 auto 18px;
  cursor: pointer;
}

.vinyl-record {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, transparent 0 43%, rgba(255, 255, 255, 0.07) 43.5%, transparent 44%),
    repeating-radial-gradient(circle at center, #121011 0 3px, #1D1A1C 3px 6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: vinylSpin 14s linear infinite;
  animation-play-state: paused;
}
.vinyl-section.is-playing .vinyl-record {
  animation-play-state: running;
}

.vinyl-label-img {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #2A1618;
}

/* Metallic Turntable Tonearm Needle */
.vinyl-arm {
  position: absolute;
  top: -8px;
  right: -12px;
  width: 68px;
  height: 112px;
  transform-origin: 48px 18px;
  transform: rotate(-18deg);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.vinyl-section.is-playing .vinyl-arm {
  transform: rotate(8deg);
}

.vinyl-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(233, 222, 201, 0.55);
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-pale);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.vinyl-play-btn:hover { background: rgba(255, 255, 255, 0.14); }
.vinyl-play-btn:active { transform: scale(0.94); }

.vinyl-song-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold-pale);
  margin: 0;
}

@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== 8. IMPERIAL BURGUNDY "Our Album" EDITORIAL GALLERY (JMII 00:28 - 00:33) ===== */
.album-burgundy {
  background: var(--burgundy);
  padding: 28px 14px 36px;
  color: #FFFFFF;
}

.album-heading {
  font-family: var(--accent-script);
  font-size: 46px;
  font-weight: 400;
  color: #F7EBDA;
  text-align: center;
  margin: 0 0 20px;
}

.album-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.album-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.album-row-asym {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 8px;
}

.album-stack-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.al-frame {
  overflow: hidden;
  border-radius: 3px;
  background: var(--burgundy-dark);
  cursor: pointer;
}
.al-frame.wide { aspect-ratio: 16 / 10; }
.al-frame.tall { aspect-ratio: 3 / 4; }
.al-frame.square { aspect-ratio: 4 / 3.4; }
.al-frame.fill { height: 100%; }

.al-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}
.al-frame:hover img { transform: scale(1.04); }

/* ===== 9. CLEAN RSVP FORM + MINIMALIST HỘP MỪNG CƯỚI (JMII 00:33 - 00:38) ===== */
.rsvp-suite {
  position: relative;
  padding: 34px 22px 34px;
  background: var(--paper);
  text-align: center;
  overflow: hidden;
}

.rsvp-intro {
  font-family: var(--serif);
  font-size: 17.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
  max-width: 340px;
  margin: 0 auto 20px;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 11px;
  text-align: left;
  margin-bottom: 24px;
}

.rsvp-field {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #DFD4C6;
  background: #FFFFFF;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.rsvp-field:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(162, 133, 94, 0.14);
}

.rsvp-submit {
  width: 100%;
  padding: 13px 18px;
  border-radius: 8px;
  border: none;
  background: var(--gold);
  color: #FFFFFF;
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 4px;
  box-shadow: 0 8px 20px rgba(162, 133, 94, 0.28);
  transition: background 0.2s ease, transform 0.15s ease;
}
.rsvp-submit:hover { background: var(--burgundy); }
.rsvp-submit:active { transform: scale(0.985); }

/* Recent wishes list */
.wishes-drawer {
  text-align: left;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-bottom: 28px;
}
.wishes-kicker {
  font-family: var(--serif);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
  text-align: center;
}
.wishes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 185px;
  overflow-y: auto;
}
.wish-card {
  padding: 10px 13px;
  border-radius: 8px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 500;
}
.wish-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.wish-author { font-weight: 700; color: var(--burgundy); }
.wish-tag {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid var(--line);
}
.wish-body { margin: 0; color: var(--muted); line-height: 1.5; font-weight: 500; }

/* Refined Minimalist Hộp Mừng Cưới */
.gift-block {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.gift-heading {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 700;
  color: var(--burgundy);
  margin: 0 0 4px;
}
.gift-note {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 16px;
}
.gift-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gift-tile {
  padding: 16px 12px;
  border-radius: 10px;
  border: 1px solid var(--gold-pale);
  background: var(--paper-warm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.gift-tile:hover {
  border-color: var(--burgundy);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(110, 12, 23, 0.1);
}
.gift-tile-icon {
  width: 44px;
  height: 44px;
}
.gift-tile-title {
  font-family: var(--serif);
  font-size: 18.5px;
  font-weight: 700;
  color: var(--ink);
}
.gift-tile-sub {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
}

/* ===== 10. CINEMATIC DARK-VIGNETTE "Thank you!" FOOTER (JMII 00:36 - 00:37) ===== */
.footer-cinema {
  position: relative;
  min-height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--burgundy-dark);
  color: #FFFFFF;
  text-align: center;
  padding: 36px 26px;
}
.footer-cinema-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}
.footer-cinema::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(64, 10, 17, 0.56) 0%, rgba(36, 5, 9, 0.86) 100%);
  pointer-events: none;
}
.footer-cinema-inner {
  position: relative;
  z-index: 2;
}
.footer-quote {
  font-family: var(--serif);
  font-size: 17.5px;
  font-weight: 600;
  line-height: 1.6;
  color: rgba(255, 250, 244, 0.96);
  max-width: 330px;
  margin: 0 auto 14px;
}
.footer-thanks-script {
  font-family: var(--accent-script);
  font-size: 52px;
  font-weight: 400;
  line-height: 1.05;
  color: #F7EBDA;
  margin: 0;
}

.footer-bar {
  background: var(--paper);
  padding: 18px 18px calc(126px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ===== FIXED BOTTOM QUICK-NAVIGATION MENU (LUXURY IVORY & BURGUNDY DOCK) ===== */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(calc(100vw - 20px), 426px);
  z-index: 56;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 6px 4px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(203, 179, 144, 0.65);
  box-shadow: 0 10px 30px rgba(32, 12, 15, 0.22);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

body:not(.hero-ready) .bottom-nav {
  opacity: 0;
  transform: translate(-50%, 24px);
  pointer-events: none;
}

.bnav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 2px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.bnav-item svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.85;
  transition: transform 0.2s ease;
}

.bnav-item span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
}

.bnav-item:active svg {
  transform: scale(0.9);
}

.bnav-item.active {
  color: var(--burgundy);
  background: rgba(110, 12, 23, 0.09);
}
.bnav-item.active span {
  font-weight: 700;
}

/* ===== DISCREET FLOATING AUDIO DISC TOGGLE (ABOVE FIXED FOOTER MENU) ===== */
.audio-fab {
  position: fixed;
  right: max(14px, calc(50% - 210px));
  bottom: calc(max(10px, env(safe-area-inset-bottom)) + 68px);
  z-index: 55;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid rgba(203, 179, 144, 0.85);
  border-radius: 50%;
  background: rgba(250, 244, 232, 0.95);
  color: var(--burgundy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(26, 8, 10, 0.28);
  transition: transform 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.audio-fab:active { transform: scale(0.92); }
.audio-fab-ring {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1px dashed rgba(110, 12, 23, 0.35);
  animation: vinylSpin 8s linear infinite;
  animation-play-state: paused;
  pointer-events: none;
}
.audio-fab.is-playing .audio-fab-ring { animation-play-state: running; }
.audio-fab svg {
  width: 19px;
  height: 19px;
  position: relative;
  z-index: 2;
}
.audio-fab-slash {
  position: absolute;
  width: 24px;
  height: 1.8px;
  background: var(--burgundy);
  transform: rotate(-45deg);
  z-index: 3;
  transition: opacity 0.2s ease;
}
.audio-fab.is-playing .audio-fab-slash { opacity: 0; }

/* ===== MODALS (RSVP THANK-YOU POPUP + GIFT QR MODAL + LIGHTBOX) ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(24, 9, 12, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-box {
  width: 100%;
  max-width: 410px;
  max-height: 90vh;
  background: var(--paper);
  border: 1px solid var(--gold-pale);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
}

.modal-head {
  padding: 16px 20px;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-kicker {
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 2px;
}
.modal-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--burgundy);
  margin: 0;
}
.close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #FFFFFF;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* RSVP Thank-You Modal (matches Jmii 00:44!) */
.rsvp-thanks-card {
  position: relative;
  text-align: center;
}
.rsvp-thanks-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 20%;
}
.rsvp-thanks-body {
  padding: 22px 22px 26px;
}
.rsvp-thanks-text {
  font-family: var(--serif);
  font-size: 17.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 10px;
}
.rsvp-thanks-script {
  font-family: var(--accent-script);
  font-size: 40px;
  color: var(--gold);
  margin: 0;
}
.rsvp-thanks-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  cursor: pointer;
}

/* QR Modal */
.qr-tabs {
  padding: 12px 16px 4px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.qr-tab {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--paper-warm);
  color: var(--muted);
  cursor: pointer;
}
.qr-tab.active {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: #FFFFFF;
}
.qr-grid {
  padding: 14px 16px 16px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 480px) {
  .qr-grid.two-cols { grid-template-columns: 1fr 1fr; }
}
.qr-card {
  padding: 16px 12px;
  border-radius: 12px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.qr-role-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--burgundy);
  color: #FFF;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.qr-person {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.qr-frame {
  width: 148px;
  height: 148px;
  padding: 8px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-bank { font-size: 12px; font-weight: 600; color: var(--burgundy); margin: 0; }
.qr-acc { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; font-weight: 700; letter-spacing: 0.05em; margin: 2px 0; }
.qr-owner { font-size: 11px; color: var(--muted); text-transform: uppercase; margin: 0; }
.qr-actions { display: flex; gap: 6px; margin-top: 2px; }
.qr-mini-btn {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #FFFFFF;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.modal-foot {
  padding: 11px 16px;
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(16, 7, 9, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  gap: 12px;
}
.lb-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #FFF;
  font-size: 18px;
  cursor: pointer;
}
.lb-stage {
  position: relative;
  width: 100%;
  max-width: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-nav {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: #FFF;
  font-size: 22px;
  cursor: pointer;
}
.lb-nav.prev { left: 4px; }
.lb-nav.next { right: 4px; }
.lb-img {
  max-width: 86vw;
  max-height: 78vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.lb-counter {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--burgundy-dark);
  color: #FFFDF9;
  font-size: 12px;
  border: 1px solid rgba(203, 179, 144, 0.45);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .hero-cover-img, .interlude-photo img, .ornament-cloud-left, .ornament-cloud-right,
  .ornament-crane-right, .ornament-crane-left, .door-seal-btn, .door-seal-btn::after,
  .cal-heart-mark svg {
    animation: none !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
