/* ==========================================================================
   HI & NU WEDDING — SAIGON CINEMA & HAUTE COUTURE EDITORIAL SYSTEM
   Palette: Handmade Cotton Ivory × Velvet Espresso × Cinnamon Champagne Gold
   Typography: Cormorant Garamond (Vietnamese Display) + Be Vietnam Pro (UI)
   ========================================================================== */

:root {
  --bg-ivory: #f6f1e9;
  --bg-ivory-soft: #eee5d8;
  --bg-ivory-card: #fbf8f3;
  --bg-noir: #120f0d;
  --bg-noir-soft: #1b1613;
  --bg-noir-card: #211b17;

  --cinnamon: #b57c52;
  --cinnamon-deep: #8b5636;
  --cinnamon-light: #d7ae84;
  --champagne: #e6d3bd;
  --rose-blush: #f7dde3;
  --rose-blush-deep: #f0ccd5;
  --rose-watermark: #e9bac5;
  --rose-crimson: #961d24;
  --rose-crimson-dark: #6f1218;
  --wax-red: #8e1c23;
  --wax-red-dark: #540d12;
  --sage: #586651;

  --ink-dark: #1d1714;
  --ink-body: #463c35;
  --ink-muted: #7b6d62;
  --ink-light: #f6efe5;
  --ink-light-soft: rgba(246, 239, 229, 0.78);
  --ink-light-muted: rgba(246, 239, 229, 0.54);

  --line-dark: rgba(29, 23, 20, 0.12);
  --line-gold: rgba(181, 124, 82, 0.32);
  --line-light: rgba(246, 239, 229, 0.16);

  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-serif-num: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-calligraphy: "WindSong", "Corinthia", cursive;
  --font-script: "Pinyon Script", "WindSong", cursive;
  --font-sans: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-luxury: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-paper: 0 28px 70px rgba(18, 15, 13, 0.12), 0 4px 16px rgba(18, 15, 13, 0.05);
  --shadow-cinema: 0 36px 90px rgba(0, 0, 0, 0.55);
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 22px;
  --radius-pill: 999px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: var(--bg-noir);
  color: var(--ink-dark);
  scrollbar-gutter: stable;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.72;
  background-color: var(--bg-ivory);
  color: var(--ink-body);
  overflow-x: hidden;
}

body.gate-locked {
  overflow: hidden;
  touch-action: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font-family: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(181, 124, 82, 0.28);
  color: var(--ink-dark);
}

/* ---------- Subtle Atmospheric Vignette (Zero Blend-Mode Cost) ---------- */
.film-grain {
  display: none;
}

/* ---------- GPU-Only Scroll Progress Hairline ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 100%;
  background: linear-gradient(90deg, var(--cinnamon-deep), var(--cinnamon-light), #f3dec3);
  z-index: 950;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  box-shadow: 0 0 10px rgba(215, 174, 132, 0.55);
}

/* ---------- Celebration Petal Canvas ---------- */
#celebration-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1200;
}

/* ==========================================================================
   1. 3D WAX-SEALED ENVELOPE OPENING GATE (4-STAGE SILK CHOREOGRAPHY)
   ========================================================================== */
.envelope-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  background: #0e0b09;
  overflow: hidden;
  will-change: opacity, transform;
  transition:
    opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 1s;
}

.envelope-gate.is-revealed {
  opacity: 0;
  transform: translate3d(0, -28px, 0);
  visibility: hidden;
  pointer-events: none;
}

/* Static GPU-promoted soft backdrop (no animated blur repaint!) */
.gate-backdrop {
  position: absolute;
  inset: -24px;
  background-image: url("../assets/photos/hero-staircase-portrait.jpg");
  background-size: cover;
  background-position: center 30%;
  filter: blur(14px) brightness(0.28) saturate(0.85);
  transform: translateZ(0);
  will-change: opacity;
}

.gate-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(24, 17, 13, 0.2) 0%,
    rgba(12, 9, 7, 0.88) 78%
  );
  pointer-events: none;
}

#gate-dust-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

.gate-inner {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.gate-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--cinnamon-light);
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUpIn 0.9s var(--ease-luxury) 0.15s forwards;
}

.gate-guest-banner {
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUpIn 0.9s var(--ease-luxury) 0.3s forwards;
}

/* ==========================================================================
   BLUSH-ROSE WEDDING ENVELOPE (FAITHFUL TO VUQUY.JPG & TANHON.JPG)
   ========================================================================== */
.gate-inner {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.gate-edition-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(244, 198, 210, 0.36);
  background: rgba(28, 16, 19, 0.58);
  backdrop-filter: blur(8px);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #f6ced8;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUpIn 0.85s var(--ease-luxury) 0.14s forwards;
}

/* 3D Blush Envelope Sleeve Stage */
.envelope-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1.38 / 1;
  perspective: 1500px;
  transform-style: preserve-3d;
  cursor: pointer;
  opacity: 0;
  transform: translate3d(0, 20px, 0) scale(0.96);
  animation: envelopeAppear 0.95s var(--ease-luxury) 0.28s forwards;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

@keyframes envelopeAppear {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.envelope-box {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-luxury);
}

.envelope-stage:not(.stage-seal):hover .envelope-box {
  transform: translate3d(0, -5px, 0);
}

/* Inner White Floral Letterpress Card (slides out from inside blush sleeve) */
.envelope-letter {
  position: absolute;
  inset: 3.5%;
  z-index: 2;
  background: linear-gradient(180deg, #ffffff 0%, #fcf7f8 100%);
  border: 1px solid rgba(150, 29, 36, 0.28);
  border-radius: 3px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.38);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 26px;
  overflow: hidden;
  will-change: transform, opacity;
  transition:
    transform 0.92s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.92s cubic-bezier(0.22, 1, 0.36, 1);
}

.envelope-letter::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(150, 29, 36, 0.16);
  pointer-events: none;
}

.envelope-letter-eyebrow {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose-crimson);
  margin-bottom: 6px;
}

.envelope-letter-names {
  font-family: var(--font-calligraphy);
  font-size: clamp(2.1rem, 6.2vw, 3.1rem);
  font-weight: 400;
  color: var(--rose-crimson);
  line-height: 1.15;
}

.envelope-letter-date {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: #4b2d30;
}

/* Front Blush-Rose Envelope Face (exact vuquy.jpg & tanhon.jpg layout!) */
.envelope-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: linear-gradient(155deg, #fbe4e9 0%, #f7d9e1 52%, #f3ced7 100%);
  border: 1.5px solid var(--rose-crimson);
  border-radius: 3px;
  box-shadow:
    0 34px 86px rgba(0, 0, 0, 0.72),
    0 0 56px rgba(244, 198, 210, 0.16),
    inset 0 0 42px rgba(255, 255, 255, 0.38);
  padding: clamp(18px, 3.8vw, 32px) clamp(20px, 4.4vw, 42px) clamp(16px, 3.4vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  will-change: transform, opacity;
  transition:
    transform 0.92s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.78s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s ease;
}

.envelope-stage:not(.stage-seal):hover .envelope-cover {
  box-shadow:
    0 42px 96px rgba(0, 0, 0, 0.78),
    0 0 68px rgba(244, 198, 210, 0.26),
    inset 0 0 46px rgba(255, 255, 255, 0.45);
}

/* Subtle diagonal silk shimmer across blush paper */
.envelope-cover::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    120deg,
    transparent 38%,
    rgba(255, 255, 255, 0.34) 50%,
    transparent 62%
  );
  transform: translate3d(-115%, 0, 0);
  pointer-events: none;
  animation: envelopePaperGlow 6.5s ease-in-out 1.4s infinite;
}

@keyframes envelopePaperGlow {
  0%,
  72% {
    transform: translate3d(-115%, 0, 0);
    opacity: 0;
  }
  82% {
    opacity: 1;
  }
  100% {
    transform: translate3d(115%, 0, 0);
    opacity: 0;
  }
}

/* Top "SAVE the DATE" header */
.env-save-date {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  color: var(--rose-crimson);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(0.9rem, 2.3vw, 1.32rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.env-save-the {
  font-family: var(--font-calligraphy);
  font-size: clamp(1.5rem, 3.8vw, 2.1rem);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 0.7;
  transform: rotate(-8deg) translateY(2px);
  display: inline-block;
  margin: 0 2px 0 8px;
}

/* Center Giant Watermark Date + Calligraphic Names Overlay */
.env-center-art {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2px 0;
}

.env-watermark-date {
  font-family: var(--font-serif-num);
  font-weight: 600;
  font-size: clamp(3.6rem, 11.5vw, 5.75rem);
  line-height: 0.88;
  letter-spacing: 0.03em;
  color: var(--rose-watermark);
  text-align: center;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.env-couple-calligraphy {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(5px, 1.3vw, 10px);
  font-family: var(--font-calligraphy);
  font-size: clamp(1.18rem, 3.85vw, 1.98rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--rose-crimson);
  white-space: nowrap;
  padding: 0 8px;
  text-shadow: 0 1px 0 rgba(255, 245, 248, 0.65);
  transform: translateY(-2%);
}

.env-heart-svg {
  width: clamp(15px, 2.8vw, 22px);
  height: clamp(15px, 2.8vw, 22px);
  color: var(--rose-crimson);
  flex-shrink: 0;
  transform: translateY(2px);
}

/* Bottom "TRÂN TRỌNG KÍNH MỜI: ............" signature line */
.env-guest-row {
  position: relative;
  z-index: 2;
  width: 90%;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  color: var(--rose-crimson);
  font-size: clamp(0.62rem, 1.7vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-bottom: 4px;
}

.env-guest-label {
  white-space: nowrap;
  flex-shrink: 0;
}

.env-guest-dots {
  position: relative;
  flex: 1;
  min-width: 60px;
  border-bottom: 1.5px dotted var(--rose-crimson);
  min-height: 1.2em;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.env-guest-handwriting {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(0.95rem, 2.6vw, 1.24rem);
  text-transform: none;
  letter-spacing: 0.01em;
  color: #7d151c;
  line-height: 1;
  transform: translateY(-2px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Sculpted Crimson Wax Seal Corner Crest (never covers couple names!) */
.wax-seal-btn {
  position: absolute;
  right: -14px;
  bottom: -14px;
  z-index: 8;
  width: 68px;
  height: 68px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.wax-seal-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(246, 198, 210, 0.65);
  animation: waxPulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes waxPulse {
  0% {
    transform: scale(0.88);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.44);
    opacity: 0;
  }
}

.wax-seal-disc {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 48% 52% 50% 50% / 51% 48% 52% 49%;
  background: radial-gradient(
    circle at 32% 28%,
    #c6343d 0%,
    var(--wax-red) 46%,
    var(--wax-red-dark) 100%
  );
  box-shadow:
    0 10px 26px rgba(24, 6, 8, 0.58),
    inset 0 2px 5px rgba(255, 224, 228, 0.36),
    inset 0 -4px 8px rgba(34, 4, 7, 0.68);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.38s var(--ease-luxury);
}

.wax-seal-disc::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid rgba(250, 218, 224, 0.48);
}

.wax-seal-monogram {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fde9ee;
  text-shadow: 0 1px 2px rgba(25, 4, 6, 0.72);
}

.envelope-stage:hover .wax-seal-disc {
  transform: scale(1.08);
}

/* 4-Stage True-Physics Blush Sleeve Opening Choreography */
.envelope-stage.stage-seal .wax-seal-btn {
  transform: scale(1.36);
  opacity: 0;
  pointer-events: none;
}

.envelope-stage.stage-flap .envelope-cover {
  transform: translate3d(0, 26%, -40px) rotateX(12deg) scale(0.95);
  opacity: 0.14;
}

.envelope-stage.stage-card .envelope-letter {
  transform: translate3d(0, -10%, 70px) scale(1.05);
  box-shadow: 0 32px 78px rgba(0, 0, 0, 0.55);
  z-index: 7;
}

.envelope-gate.is-fading-ui .gate-edition-pill,
.envelope-gate.is-fading-ui .gate-cta-wrap {
  opacity: 0 !important;
  transform: translate3d(0, -10px, 0) !important;
  transition: opacity 0.42s ease, transform 0.5s var(--ease-luxury);
}

.gate-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUpIn 0.9s var(--ease-luxury) 0.58s forwards;
}

.gate-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(215, 174, 132, 0.34);
  background: rgba(24, 18, 15, 0.62);
  backdrop-filter: blur(12px);
  color: var(--ink-light);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.gate-hint:hover {
  border-color: var(--cinnamon-light);
  background: rgba(38, 28, 22, 0.82);
  transform: translateY(-1px);
}

.gate-music-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cinnamon-light);
  box-shadow: 0 0 10px var(--cinnamon-light);
}

.gate-silent-btn {
  background: none;
  border: none;
  color: var(--ink-light-muted);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 12px;
  transition: color 0.3s ease;
}

.gate-silent-btn:hover {
  color: var(--ink-light);
}

@keyframes fadeUpIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   2. FLOATING NAVIGATION BAR
   ========================================================================== */
.top-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translate(-50%, -120%);
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  background: rgba(18, 15, 13, 0.76);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(215, 174, 132, 0.22);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  transition: transform 0.6s var(--ease-luxury), opacity 0.6s ease;
  opacity: 0;
  max-width: calc(100vw - 24px);
}

.top-nav.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.nav-monogram {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--cinnamon-light);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light-soft);
  white-space: nowrap;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--cinnamon-light);
  transition: width 0.35s var(--ease-luxury);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink-light);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ==========================================================================
   3. FULL-BLEED CINEMATIC HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-noir);
  color: var(--ink-light);
  overflow: hidden;
  padding: clamp(24px, 3.2vw, 40px) 20px clamp(20px, 3vw, 34px);
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  transform: scale(1.11) translate3d(0, 0, 0);
  will-change: transform;
  transition: transform 2.1s cubic-bezier(0.16, 1, 0.3, 1);
}

body.hero-ready .hero-photo {
  transform: scale(1.02) translate3d(0, 0, 0);
  animation: heroKenBurns 26s ease-in-out 2.1s infinite alternate;
}

@keyframes heroKenBurns {
  0% {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.08) translate3d(-0.6%, -0.8%, 0);
  }
}

/* Staggered Silk Hero Typographic Reveal after Curtain Lifts */
.hero-top,
.hero-script,
.hero-names,
.hero-meta-row,
.hero-quote,
.hero-scroll-cue {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  will-change: transform, opacity;
  transition:
    opacity 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

body.hero-ready .hero-top {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.08s;
}
body.hero-ready .hero-script {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.2s;
}
body.hero-ready .hero-names {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.34s;
}
body.hero-ready .hero-meta-row {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.48s;
}
body.hero-ready .hero-quote {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.6s;
}
body.hero-ready .hero-scroll-cue {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.72s;
}

/* Edge-only Cinema Scrim: keeps the middle couple zone 100% bright & clear */
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(12, 9, 7, 0.72) 0%,
      rgba(12, 9, 7, 0.42) 22%,
      rgba(12, 9, 7, 0.04) 38%,
      rgba(12, 9, 7, 0.04) 70%,
      rgba(12, 9, 7, 0.68) 87%,
      rgba(12, 9, 7, 0.92) 100%
    );
  pointer-events: none;
}

.hero-frame {
  position: absolute;
  inset: clamp(12px, 2vw, 24px);
  border: 1px solid rgba(215, 174, 132, 0.25);
  pointer-events: none;
  z-index: 2;
}

.hero-frame::before,
.hero-frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(215, 174, 132, 0.65);
  border-style: solid;
}

.hero-frame::before {
  top: -1px;
  left: -1px;
  border-width: 1.5px 0 0 1.5px;
}

.hero-frame::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 1.5px 1.5px 0;
}

.hero-top {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  padding-top: 4px;
}

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--cinnamon-light);
}

.hero-guest-pill[hidden] {
  display: none !important;
}

.hero-guest-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(215, 174, 132, 0.34);
  background: rgba(18, 15, 13, 0.45);
  backdrop-filter: blur(8px);
  font-size: 0.76rem;
  color: var(--ink-light-soft);
}

.hero-guest-pill strong {
  color: var(--ink-light);
  font-weight: 500;
}

.hero-bottom {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-script {
  font-family: var(--font-script);
  font-size: clamp(1.55rem, 3.2vw, 2.4rem);
  color: #ebd0b0;
  line-height: 1;
  margin-top: 4px;
  text-shadow: 0 3px 20px rgba(10, 7, 5, 0.85), 0 1px 4px rgba(10, 7, 5, 0.9);
}

.hero-names {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5.4vw, 4.15rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: 0.03em;
  color: var(--ink-light);
  text-shadow: 0 10px 36px rgba(10, 7, 5, 0.76), 0 2px 10px rgba(10, 7, 5, 0.6);
}

.hero-names .amp {
  font-style: italic;
  font-weight: 300;
  color: var(--cinnamon-light);
  margin: 0 0.08em;
}

.hero-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--champagne);
}

.hero-meta-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cinnamon-light);
}

.hero-quote {
  max-width: 560px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.96rem, 1.8vw, 1.16rem);
  line-height: 1.48;
  color: var(--ink-light-soft);
  text-shadow: 0 2px 14px rgba(10, 7, 5, 0.85);
}

.hero-scroll-cue {
  margin-top: 4px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-light-muted);
}

.hero-scroll-line {
  width: 1px;
  height: 24px;
  background: linear-gradient(180deg, var(--cinnamon-light), transparent);
  animation: scrollLine 2.2s var(--ease-luxury) infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
  }
  45% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }
  55% {
    transform: scaleY(1);
    transform-origin: bottom;
    opacity: 1;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
    opacity: 0;
  }
}

/* ==========================================================================
   4. SHARED EDITORIAL LAYOUT & REVEALS
   ========================================================================== */
section[id],
div[id="story"] {
  scroll-margin-top: 84px;
}

.section {
  position: relative;
  padding: clamp(72px, 10vw, 132px) clamp(18px, 4vw, 48px);
}

.section--ivory {
  background-color: var(--bg-ivory);
  color: var(--ink-body);
}

.section--ivory-soft {
  background-color: var(--bg-ivory-soft);
  color: var(--ink-body);
}

.section--noir {
  background-color: var(--bg-noir);
  color: var(--ink-light);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.container--narrow {
  max-width: 880px;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(42px, 6vw, 68px);
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cinnamon);
  margin-bottom: 12px;
}

.section--noir .eyebrow {
  color: var(--cinnamon-light);
}

.display-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.2vw, 3.85rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--ink-dark);
}

.section--noir .display-title {
  color: var(--ink-light);
}

.display-subtitle {
  margin-top: 14px;
  font-size: 0.96rem;
  color: var(--ink-muted);
  line-height: 1.75;
}

.section--noir .display-subtitle {
  color: var(--ink-light-soft);
}

.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 22px auto;
  max-width: 240px;
}

.ornament-divider::before,
.ornament-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-gold);
}

.ornament-diamond {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  border: 1px solid var(--cinnamon);
}

/* Scroll Reveal Animation (Hardware GPU Composited) */
.reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  will-change: transform, opacity;
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-inview {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* Luxury Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.4s var(--ease-luxury);
}

.btn--primary {
  background: var(--ink-dark);
  color: var(--ink-light);
  border-color: var(--ink-dark);
}

.btn--primary:hover {
  background: var(--cinnamon-deep);
  border-color: var(--cinnamon-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(139, 86, 54, 0.28);
}

.btn--outline {
  background: transparent;
  color: var(--ink-dark);
  border-color: rgba(29, 23, 20, 0.28);
}

.btn--outline:hover {
  border-color: var(--cinnamon);
  color: var(--cinnamon-deep);
  transform: translateY(-2px);
}

.btn--gold {
  background: linear-gradient(135deg, var(--cinnamon) 0%, var(--cinnamon-deep) 100%);
  color: var(--ink-light);
  box-shadow: 0 12px 32px rgba(181, 124, 82, 0.32);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(181, 124, 82, 0.44);
}

.btn--ghost-light {
  background: rgba(246, 239, 229, 0.08);
  color: var(--ink-light);
  border-color: rgba(215, 174, 132, 0.42);
  backdrop-filter: blur(8px);
}

.btn--ghost-light:hover {
  background: rgba(215, 174, 132, 0.2);
  border-color: var(--cinnamon-light);
  transform: translateY(-2px);
}

/* ==========================================================================
   5. LETTERPRESS INVITATION CARD (THIỆP BÁO HỶ)
   ========================================================================== */
.invitation-card {
  position: relative;
  background: #fffdfb;
  border: 1px solid rgba(150, 29, 36, 0.24);
  border-radius: var(--radius-sm);
  padding: clamp(36px, 6vw, 72px) clamp(22px, 5vw, 66px);
  box-shadow: var(--shadow-paper);
  text-align: center;
  overflow: hidden;
}

.invitation-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(150, 29, 36, 0.16);
  pointer-events: none;
}

/* Crimson Botanical Corner Florals (echoing vuquyinfo & tanhoninfo) */
.card-floral {
  position: absolute;
  bottom: 10px;
  width: clamp(92px, 16vw, 152px);
  color: rgba(150, 29, 36, 0.45);
  pointer-events: none;
  z-index: 1;
}

.card-floral--left {
  left: 10px;
}

.card-floral--right {
  right: 10px;
  transform: scaleX(-1);
}

.card-inner-z {
  position: relative;
  z-index: 2;
}

.card-heart-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  font-family: var(--font-calligraphy);
  font-size: clamp(2.1rem, 5.5vw, 3.2rem);
  color: var(--rose-crimson);
  line-height: 1.08;
}

.card-heart-header svg {
  width: 34px;
  height: 30px;
  color: var(--rose-crimson);
  flex-shrink: 0;
}

.families-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: start;
  margin: 26px 0 34px;
}

.family-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.family-side {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rose-crimson);
  margin-bottom: 4px;
}

.family-parent {
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 2.2vw, 1.36rem);
  font-weight: 600;
  color: var(--ink-dark);
}

.family-address {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 3px;
  line-height: 1.5;
}

.families-sep {
  width: 1px;
  height: 92px;
  align-self: center;
  background: linear-gradient(180deg, transparent, rgba(150, 29, 36, 0.26), transparent);
}

.invite-lead {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dark);
  margin-bottom: 14px;
}

.couple-formal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 22px;
}

.couple-formal-name {
  font-family: var(--font-calligraphy);
  font-size: clamp(2.35rem, 5.8vw, 3.6rem);
  font-weight: 400;
  color: var(--rose-crimson);
  line-height: 1.18;
}

.couple-formal-role {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.couple-formal-amp {
  font-family: var(--font-calligraphy);
  font-size: 2.3rem;
  color: var(--rose-crimson);
  line-height: 0.9;
  margin: 4px 0;
}

.ceremony-home-box {
  max-width: 560px;
  margin: 18px auto 26px;
  padding: 16px 20px;
  border-radius: 4px;
  background: rgba(247, 221, 227, 0.28);
  border: 1px solid rgba(150, 29, 36, 0.18);
}

.ceremony-home-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-crimson);
  margin-bottom: 4px;
}

.ceremony-home-time {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 600;
  color: var(--ink-dark);
}

.ceremony-home-place {
  font-size: 0.84rem;
  color: var(--ink-body);
  margin-top: 3px;
}

.party-venue-highlight {
  margin: 12px auto 10px;
}

.party-venue-lead {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.party-venue-script {
  font-family: var(--font-calligraphy);
  font-size: clamp(2rem, 5vw, 2.9rem);
  color: var(--rose-crimson);
  line-height: 1.18;
}

.party-venue-hall {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-dark);
  margin-top: 2px;
}

.party-venue-addr {
  font-size: 0.86rem;
  color: var(--ink-body);
  margin-top: 2px;
}

.invite-closing-script {
  font-family: var(--font-calligraphy);
  font-size: clamp(1.85rem, 4.4vw, 2.45rem);
  color: var(--rose-crimson);
  margin: 6px 0 24px;
}

.edition-switch-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(244, 198, 210, 0.32);
  background: rgba(255, 255, 255, 0.05);
  color: #f6ced8;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}

.edition-switch-link:hover {
  border-color: #f6ced8;
  background: rgba(150, 29, 36, 0.28);
  color: #fff;
}

/* Architectural Date Ribbon */
.date-ribbon {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  max-width: 560px;
  margin: 34px auto 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line-gold);
  border-bottom: 1px solid var(--line-gold);
}

.date-ribbon-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.date-ribbon-label {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.date-ribbon-val {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 500;
  color: var(--ink-dark);
}

.date-ribbon-day {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 4.3rem);
  font-weight: 400;
  line-height: 1;
  color: var(--cinnamon-deep);
  padding: 0 22px;
  border-left: 1px solid var(--line-gold);
  border-right: 1px solid var(--line-gold);
}

.lunar-date {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.06rem;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.invite-body {
  max-width: 580px;
  margin: 0 auto 30px;
  font-size: 0.94rem;
  color: var(--ink-body);
}

.invite-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ==========================================================================
   6. COUNTDOWN & BESPOKE HAND-CIRCLED WEDDING CALENDAR
   ========================================================================== */
.countdown-section {
  position: relative;
  overflow: hidden;
  padding: clamp(78px, 10vw, 128px) clamp(18px, 4vw, 48px);
  color: var(--ink-light);
  background: var(--bg-noir);
}

.countdown-bg {
  position: absolute;
  inset: -10% 0;
  background-image: url("../assets/photos/heritage-gallery-wide.jpg");
  background-size: cover;
  background-position: center;
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.04);
  will-change: transform;
}

.countdown-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 13, 11, 0.84) 0%, rgba(16, 13, 11, 0.72) 50%, rgba(16, 13, 11, 0.9) 100%);
}

.countdown-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

.countdown-panel {
  text-align: left;
}

.countdown-panel .eyebrow {
  color: var(--cinnamon-light);
}

.countdown-panel .display-title {
  color: var(--ink-light);
}

.countdown-quote {
  margin-top: 14px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.18rem;
  color: var(--ink-light-soft);
}

.timer-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.timer-box {
  background: rgba(246, 239, 229, 0.06);
  border: 1px solid rgba(215, 174, 132, 0.26);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-sm);
  padding: 20px 10px;
  text-align: center;
}

.timer-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  font-weight: 400;
  line-height: 1;
  color: var(--ink-light);
}

.timer-label {
  display: block;
  margin-top: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cinnamon-light);
}

/* Bespoke Calendar Tear-Sheet */
.calendar-card {
  background: rgba(251, 248, 243, 0.96);
  color: var(--ink-dark);
  border-radius: var(--radius-sm);
  padding: 30px 26px 26px;
  box-shadow: var(--shadow-cinema);
  border: 1px solid var(--line-gold);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-dark);
}

.calendar-month {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--ink-dark);
}

.calendar-year {
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  color: var(--cinnamon-deep);
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  gap: 4px;
}

.calendar-weekdays span {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  padding: 6px 0;
}

.cal-day {
  position: relative;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.86rem;
  color: var(--ink-body);
}

.cal-day.is-muted {
  opacity: 0.25;
}

.cal-day.is-wedding {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--wax-red);
}

.cal-heart-ring {
  position: absolute;
  width: 40px;
  height: 40px;
  pointer-events: none;
}

.cal-heart-ring path {
  fill: rgba(181, 124, 82, 0.12);
  stroke: var(--wax-red);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-dasharray: 180;
  stroke-dashoffset: 0;
  animation: drawHeart 3.4s ease-in-out infinite alternate;
}

@keyframes drawHeart {
  0% {
    stroke-dashoffset: 24;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.calendar-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   7. THE CINNAMON LUMIÈRE — 5-ACT SPARKLING CINEMA SHOWCASE
   ========================================================================== */
.lumiere-showcase {
  position: relative;
  background: linear-gradient(180deg, #0d0a08 0%, #15100d 32%, #110d0b 68%, #0b0807 100%);
  color: var(--ink-light);
  overflow: hidden;
}

.lumiere-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.lumiere-ambient-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.lumiere-orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  animation: lumiereFloat 16s ease-in-out infinite alternate;
}

.lumiere-orb--1 {
  width: 540px;
  height: 540px;
  top: 4%;
  left: -8%;
  background: radial-gradient(circle, rgba(215, 162, 106, 0.22) 0%, rgba(215, 162, 106, 0) 70%);
}

.lumiere-orb--2 {
  width: 620px;
  height: 620px;
  top: 42%;
  right: -12%;
  background: radial-gradient(circle, rgba(196, 134, 92, 0.2) 0%, rgba(196, 134, 92, 0) 70%);
  animation-delay: -6s;
}

.lumiere-orb--3 {
  width: 480px;
  height: 480px;
  bottom: 4%;
  left: 18%;
  background: radial-gradient(circle, rgba(164, 104, 138, 0.18) 0%, rgba(164, 104, 138, 0) 70%);
  animation-delay: -10s;
}

@keyframes lumiereFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(28px, -32px, 0) scale(1.12);
  }
}

.lumiere-act {
  position: relative;
  z-index: 2;
  padding: clamp(64px, 8vw, 112px) clamp(18px, 4vw, 48px);
}

.lumiere-act--ribbons {
  padding-left: 0;
  padding-right: 0;
}

.lumiere-heading {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(34px, 5vw, 54px);
}

.lumiere-heading .eyebrow,
.lumiere-subhead .eyebrow,
.nocturne-copy .eyebrow {
  color: var(--cinnamon-light);
}

.lumiere-heading .display-title,
.nocturne-copy .display-title {
  color: var(--ink-light);
}

.lumiere-shimmer-text {
  background: linear-gradient(
    110deg,
    #f6efe5 18%,
    #e9c69b 42%,
    #fff7eb 50%,
    #d4a272 58%,
    #f6efe5 82%
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  animation: champagneShimmer 7.5s ease-in-out infinite;
}

@keyframes champagneShimmer {
  0% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.lumiere-lead {
  margin-top: 12px;
  font-size: 0.94rem;
  color: var(--ink-light-soft);
}

/* ---------- ACT I: Scroll-Driven Golden Arch Curtain Bloom ---------- */
.arch-bloom-stage {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
}

.arch-bloom-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: #14100d;
  border: 1px solid rgba(235, 200, 152, 0.34);
  box-shadow:
    0 36px 96px rgba(0, 0, 0, 0.68),
    0 0 60px rgba(215, 174, 132, 0.14);
  cursor: zoom-in;
  /* Scroll-driven arch mask (--bloom goes smoothly 0 -> 1 via damped LERP) */
  clip-path: inset(
    calc((1 - var(--bloom, 0.25)) * 8%)
    calc((1 - var(--bloom, 0.25)) * 18%)
    calc((1 - var(--bloom, 0.25)) * 6%)
    calc((1 - var(--bloom, 0.25)) * 18%)
    round calc(14px + (1 - var(--bloom, 0.25)) * 220px)
          calc(14px + (1 - var(--bloom, 0.25)) * 220px)
          14px
          14px
  );
  will-change: clip-path;
}

.arch-bloom-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(calc(1.16 - var(--bloom, 0.25) * 0.14));
  will-change: transform;
}

.arch-bloom-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 10, 8, 0.08) 0%, rgba(13, 10, 8, 0.15) 55%, rgba(13, 10, 8, 0.84) 100%);
  pointer-events: none;
}

.arch-bloom-sheen {
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    115deg,
    transparent 36%,
    rgba(255, 236, 205, 0.22) 48%,
    rgba(255, 248, 236, 0.38) 50%,
    rgba(255, 236, 205, 0.18) 52%,
    transparent 64%
  );
  transform: translate3d(-110%, 0, 0);
  pointer-events: none;
  z-index: 2;
}

.arch-bloom-frame.is-bloomed .arch-bloom-sheen {
  animation: silkSheenSweep 2.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes silkSheenSweep {
  0% {
    transform: translate3d(-110%, 0, 0);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translate3d(115%, 0, 0);
    opacity: 0;
  }
}

.arch-bloom-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: clamp(20px, 3vw, 38px);
  text-align: center;
}

.arch-bloom-caption span {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cinnamon-light);
  margin-bottom: 6px;
}

.arch-bloom-caption p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.18rem, 2.7vw, 1.85rem);
  color: var(--ink-light);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
}

.sparkle-star {
  position: absolute;
  width: 28px;
  height: 28px;
  color: #f3d6ad;
  pointer-events: none;
  z-index: 4;
  filter: drop-shadow(0 0 12px rgba(243, 214, 173, 0.85));
  animation: starTwinkle 3.8s ease-in-out infinite alternate;
}

.sparkle-star--tl {
  top: -14px;
  left: 10%;
}

.sparkle-star--br {
  bottom: -14px;
  right: 10%;
  width: 22px;
  height: 22px;
  animation-delay: -1.9s;
}

@keyframes starTwinkle {
  0% {
    transform: scale(0.72) rotate(0deg);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.18) rotate(22deg);
    opacity: 1;
  }
}

/* ---------- ACT II: Shimmering Luminous Portrait Cascade ---------- */
.lumiere-subhead {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.lumiere-act-num {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 7vw, 5.2rem);
  font-weight: 300;
  line-height: 0.9;
  color: rgba(215, 174, 132, 0.35);
}

.lumiere-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.9rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--ink-light);
}

.luminous-cascade {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.8vw, 30px);
  align-items: start;
}

.cascade-card {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #1b1613;
  border: 1px solid rgba(235, 200, 152, 0.22);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.56);
  cursor: zoom-in;
  opacity: 0;
  transform: perspective(1000px) rotateX(11deg) translate3d(0, 46px, 0) scale(0.94);
  will-change: transform, opacity;
  transition:
    opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s ease,
    box-shadow 0.45s ease;
}

.cascade-card:nth-child(3n + 2) {
  margin-top: 48px;
}

.cascade-card.is-inview {
  opacity: 1;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate3d(0, 0, 0) scale(1);
}

.cascade-card.is-inview:hover {
  border-color: rgba(243, 214, 173, 0.68);
  box-shadow:
    0 34px 76px rgba(0, 0, 0, 0.68),
    0 0 34px rgba(215, 174, 132, 0.24);
}

.cascade-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.08);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.cascade-card.is-inview img {
  transform: scale(1);
}

.cascade-card.is-inview:hover img {
  transform: scale(1.055);
}

.luminous-glint {
  position: absolute;
  inset: -30%;
  background: linear-gradient(
    118deg,
    transparent 40%,
    rgba(255, 240, 214, 0.34) 50%,
    transparent 60%
  );
  transform: translate3d(-120%, 0, 0);
  pointer-events: none;
  z-index: 2;
}

.cascade-card.is-inview .luminous-glint {
  animation: silkSheenSweep 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

.cascade-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  padding: 36px 18px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(12, 9, 7, 0.88) 100%);
  transform: translate3d(0, 6px, 0);
  opacity: 0.92;
  transition: transform 0.4s var(--ease-luxury), opacity 0.4s ease;
}

.cascade-card:hover .cascade-card-overlay {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.cascade-tag {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cinnamon-light);
}

.cascade-caption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--ink-light);
  margin-top: 2px;
}

/* ---------- ACT III: GRAND INTERACTIVE 3D REVOLVING AURA STAGE (ALL 28 PHOTOS) ---------- */
.lumiere-act--stage {
  position: relative;
  padding-top: clamp(76px, 9vw, 124px);
  padding-bottom: clamp(86px, 10vw, 136px);
  overflow: hidden;
}

/* Dynamic Color-Shifting Cinema Atmosphere (synced to active photo every 2s!) */
.aura-ambient-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aura-bg-layer {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  object-fit: cover;
  object-position: center;
  filter: blur(26px) saturate(1.25) brightness(0.45);
  opacity: 0;
  transform: scale(1.06) translateZ(0);
  will-change: opacity;
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.aura-bg-layer.is-visible {
  opacity: 0.44;
}

.aura-bg-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #110d0b 0%, rgba(15, 11, 9, 0.45) 22%, rgba(15, 11, 9, 0.42) 76%, #0b0807 100%),
    radial-gradient(ellipse at center, rgba(16, 12, 10, 0.14) 0%, rgba(11, 8, 7, 0.86) 78%);
}

/* Volumetric Top Museum Spotlight Cone */
.aura-spotlight-beam {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(860px, 110vw);
  height: 82%;
  background: conic-gradient(
    from 180deg at 50% 0%,
    transparent 148deg,
    rgba(244, 214, 174, 0.09) 168deg,
    rgba(255, 236, 206, 0.16) 180deg,
    rgba(244, 214, 174, 0.09) 192deg,
    transparent 212deg
  );
  pointer-events: none;
  z-index: 1;
}

/* Chapter Quick-Jump Glow Pills */
.aura-chapters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-bottom: clamp(24px, 3.6vw, 38px);
}

.aura-chap-pill {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(235, 200, 152, 0.28);
  background: rgba(18, 14, 12, 0.56);
  color: var(--ink-light-soft);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.38s var(--ease-luxury);
}

.aura-chap-pill:hover {
  border-color: rgba(247, 222, 184, 0.72);
  color: var(--ink-light);
  transform: translateY(-1px);
}

.aura-chap-pill.is-active {
  background: linear-gradient(135deg, var(--cinnamon) 0%, #cf9868 100%);
  border-color: #f3d6ad;
  color: #140f0c;
  font-weight: 600;
  box-shadow: 0 0 26px rgba(224, 178, 128, 0.45);
}

.aura-stage-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.aura-halo {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(680px, 96vw);
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(235, 192, 142, 0.3) 0%,
    rgba(181, 124, 82, 0.1) 46%,
    rgba(18, 15, 13, 0) 74%
  );
  pointer-events: none;
  animation: haloPulse 5.5s ease-in-out infinite alternate;
}

@keyframes haloPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.94);
    opacity: 0.78;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.07);
    opacity: 1;
  }
}

/* Rotating Celestial Gold Orbit Rings behind Pedestal */
.aura-orbit-ring {
  position: absolute;
  top: 40%;
  left: 50%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.aura-orbit-ring--outer {
  width: clamp(340px, 46vw, 540px);
  height: clamp(340px, 46vw, 540px);
  border: 1px solid rgba(235, 200, 152, 0.22);
  transform: translate(-50%, -50%);
  animation: orbitSpinCW 36s linear infinite;
}

.aura-orbit-ring--outer::before,
.aura-orbit-ring--outer::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f8dfb9;
  box-shadow: 0 0 14px 3px rgba(248, 223, 185, 0.85);
}

.aura-orbit-ring--outer::before {
  top: -3.5px;
  left: 50%;
  transform: translateX(-50%);
}

.aura-orbit-ring--outer::after {
  bottom: -3.5px;
  left: 50%;
  transform: translateX(-50%);
}

.aura-orbit-ring--inner {
  width: clamp(280px, 37vw, 435px);
  height: clamp(280px, 37vw, 435px);
  border: 1px dashed rgba(235, 200, 152, 0.2);
  transform: translate(-50%, -50%);
  animation: orbitSpinCCW 26s linear infinite;
}

@keyframes orbitSpinCW {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes orbitSpinCCW {
  from {
    transform: translate(-50%, -50%) rotate(360deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

.aura-stage {
  position: relative;
  z-index: 3;
  width: 100%;
  height: clamp(410px, 58vh, 540px);
  perspective: 1450px;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
  user-select: none;
}

.aura-card {
  position: absolute;
  width: clamp(228px, 28vw, 316px);
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: #1a1512;
  border: 1px solid rgba(235, 200, 152, 0.26);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.68);
  cursor: pointer;
  will-change: transform, opacity;
  transition:
    transform 0.64s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.56s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s ease,
    box-shadow 0.45s ease;
}

.aura-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  pointer-events: none;
  transition: transform 2.1s ease-out;
}

.aura-card.is-active {
  border: 1.5px solid rgba(250, 226, 188, 0.92);
  box-shadow:
    0 38px 92px rgba(0, 0, 0, 0.84),
    0 0 58px rgba(235, 192, 140, 0.42),
    inset 0 0 0 1px rgba(255, 248, 232, 0.35);
  cursor: zoom-in;
}

.aura-card.is-active img {
  transform: scale(1.045);
}

.aura-card.is-active::after {
  content: "";
  position: absolute;
  inset: -25%;
  background: linear-gradient(
    118deg,
    transparent 38%,
    rgba(255, 244, 224, 0.34) 50%,
    transparent 62%
  );
  animation: silkSheenSweep 1.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  pointer-events: none;
}

/* Luminous Pedestal Floor Reflection */
.aura-floor-glow {
  position: relative;
  z-index: 2;
  width: min(460px, 78vw);
  height: 28px;
  margin-top: -12px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(235, 194, 144, 0.34) 0%,
    rgba(181, 124, 82, 0.12) 48%,
    transparent 74%
  );
  pointer-events: none;
}

.aura-controls {
  position: relative;
  z-index: 5;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3.6vw, 34px);
  max-width: 660px;
  width: 100%;
}

.aura-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(235, 200, 152, 0.4);
  background: rgba(20, 16, 13, 0.72);
  backdrop-filter: blur(8px);
  color: var(--ink-light);
  font-size: 1.55rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.35s var(--ease-luxury);
}

.aura-nav-btn:hover {
  background: var(--cinnamon);
  border-color: #f3d6ad;
  transform: scale(1.08);
  box-shadow: 0 0 26px rgba(224, 178, 128, 0.5);
}

.aura-meta {
  text-align: center;
  flex: 1;
  min-width: 0;
}

.aura-chapter {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cinnamon-light);
}

.aura-caption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.08rem, 2.4vw, 1.38rem);
  color: var(--ink-light);
  margin-top: 4px;
  min-height: 1.5em;
  transition: opacity 0.24s ease;
}

/* Live 2-Second Golden Progress Beam */
.aura-timer-rail {
  width: min(300px, 76%);
  height: 2.5px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: rgba(235, 200, 152, 0.18);
  overflow: hidden;
}

.aura-timer-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--cinnamon), #f8dfb9, #ffffff);
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}

.aura-timer-fill.is-running {
  animation: auraBeat2s 2s linear forwards;
}

.aura-timer-fill.is-paused {
  animation-play-state: paused;
}

@keyframes auraBeat2s {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.aura-action-bar {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.aura-mini-btn {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(235, 200, 152, 0.3);
  background: rgba(20, 16, 13, 0.62);
  color: var(--ink-light-soft);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.aura-mini-btn:hover {
  border-color: #f3d6ad;
  color: var(--ink-light);
  background: rgba(181, 124, 82, 0.25);
}

/* ==========================================================================
   8. TIMELINE, VENUE & DRESS CODE
   ========================================================================== */
.event-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.timeline-list {
  position: relative;
  padding-left: 34px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, var(--cinnamon), rgba(181, 124, 82, 0.2));
}

.timeline-item {
  position: relative;
  background: var(--bg-ivory-card);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  transition: transform 0.45s var(--ease-luxury), border-color 0.4s ease, box-shadow 0.4s ease;
}

.timeline-item:hover {
  transform: translateX(4px);
  border-color: var(--line-gold);
  box-shadow: 0 14px 36px rgba(29, 23, 20, 0.07);
}

.timeline-dot {
  position: absolute;
  left: -30px;
  top: 26px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg-ivory);
  border: 2px solid var(--cinnamon);
  box-shadow: 0 0 0 4px var(--bg-ivory);
}

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

.timeline-time {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--cinnamon-deep);
  letter-spacing: 0.06em;
}

.timeline-icon {
  width: 24px;
  height: 24px;
  color: var(--cinnamon);
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 500;
  color: var(--ink-dark);
  line-height: 1.25;
}

.timeline-sub {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 2px;
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.89rem;
  color: var(--ink-body);
  line-height: 1.68;
}

/* Venue & Dress Code Stack */
.venue-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.venue-card,
.dresscode-card {
  background: var(--bg-ivory-card);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-sm);
  padding: clamp(26px, 4vw, 38px);
  box-shadow: var(--shadow-paper);
}

.venue-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cinnamon-deep);
  margin-bottom: 12px;
}

.venue-name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 500;
  color: var(--ink-dark);
  line-height: 1.18;
  margin-bottom: 10px;
}

.venue-address {
  font-size: 0.94rem;
  color: var(--ink-body);
  margin-bottom: 22px;
}

.venue-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 16px 0;
  margin-bottom: 22px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.venue-meta-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.venue-meta-value {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 500;
  color: var(--ink-dark);
}

.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex: 1 1 70px;
}

.swatch-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 6px 16px rgba(29, 23, 20, 0.16), 0 0 0 1px rgba(29, 23, 20, 0.12);
  transition: transform 0.35s var(--ease-luxury);
}

.swatch-item:hover .swatch-circle {
  transform: scale(1.14) translateY(-3px);
}

.swatch-name {
  font-size: 0.72rem;
  color: var(--ink-muted);
  text-align: center;
}

/* ==========================================================================
   9. FULLSCREEN CINEMA LIGHTBOX
   ========================================================================== */
/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(10, 8, 7, 0.94);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  will-change: opacity;
  transition: opacity 0.36s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.36s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-stage {
  position: relative;
  max-width: min(92vw, 1140px);
  max-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 32px 84px rgba(0, 0, 0, 0.72);
  will-change: transform, opacity;
  transition:
    opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox-img.is-fading-next {
  opacity: 0;
  transform: translate3d(26px, 0, 0) scale(0.985);
}

.lightbox-img.is-fading-prev {
  opacity: 0;
  transform: translate3d(-26px, 0, 0) scale(0.985);
}

.lightbox-meta {
  margin-top: 18px;
  text-align: center;
  color: var(--ink-light);
  transition: opacity 0.28s ease, transform 0.32s var(--ease-luxury);
}

.lightbox-meta.is-fading {
  opacity: 0;
  transform: translate3d(0, 6px, 0);
}

.lightbox-chapter {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cinnamon-light);
}

.lightbox-caption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  margin-top: 4px;
}

.lightbox-counter {
  font-size: 0.74rem;
  color: var(--ink-light-muted);
  margin-top: 4px;
  letter-spacing: 0.16em;
}

.lightbox-btn {
  position: fixed;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(215, 174, 132, 0.35);
  background: rgba(18, 15, 13, 0.65);
  color: var(--ink-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lightbox-btn:hover {
  background: var(--cinnamon);
  border-color: var(--cinnamon);
}

.lightbox-close {
  top: 20px;
  right: 22px;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* ==========================================================================
   10. RSVP & LIVE WISHES WALL (SỔ LƯU BÚT)
   ========================================================================== */
.rsvp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.rsvp-card,
.wishes-panel {
  background: var(--bg-ivory-card);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-sm);
  padding: clamp(26px, 4vw, 42px);
  box-shadow: var(--shadow-paper);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 15px;
  background: var(--bg-ivory);
  border: 1px solid rgba(29, 23, 20, 0.16);
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  color: var(--ink-dark);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--cinnamon);
  box-shadow: 0 0 0 3px rgba(181, 124, 82, 0.14);
}

.form-textarea {
  min-height: 108px;
  resize: vertical;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.choice-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.choice-btn {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(29, 23, 20, 0.18);
  background: var(--bg-ivory);
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.choice-btn.is-selected {
  background: var(--ink-dark);
  color: var(--ink-light);
  border-color: var(--ink-dark);
}

.wishes-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-dark);
}

.wishes-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--ink-dark);
}

.wishes-count {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cinnamon-deep);
}

.wishes-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 510px;
  overflow-y: auto;
  padding-right: 4px;
}

.wish-card {
  background: var(--bg-ivory);
  border: 1px solid rgba(181, 124, 82, 0.22);
  border-left: 3px solid var(--cinnamon);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  animation: wishPop 0.55s var(--ease-luxury);
}

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

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

.wish-author {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--ink-dark);
}

.wish-badge {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(181, 124, 82, 0.14);
  color: var(--cinnamon-deep);
}

.wish-body {
  font-size: 0.9rem;
  color: var(--ink-body);
  line-height: 1.65;
}

.wish-sub {
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   11. GIFT ENVELOPE SECTION & MODAL (HỘP MỪNG CƯỚI VIETQR)
   ========================================================================== */
.gift-banner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-ivory-card);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-sm);
  padding: clamp(32px, 5vw, 56px) clamp(22px, 4vw, 48px);
  box-shadow: var(--shadow-paper);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1080;
  background: rgba(12, 9, 7, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  will-change: opacity;
  transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.32s ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-ivory-card);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-md);
  padding: 32px 26px 28px;
  box-shadow: var(--shadow-cinema);
  transform: translateY(18px) scale(0.97);
  transition: transform 0.45s var(--ease-luxury);
}

.modal-backdrop.is-open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  background: var(--bg-ivory);
  color: var(--ink-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.modal-close:hover {
  background: var(--ink-dark);
  color: var(--ink-light);
}

.gift-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 18px 0 22px;
  padding: 4px;
  background: var(--bg-ivory-soft);
  border-radius: var(--radius-pill);
}

.gift-tabs::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: var(--radius-pill);
  background: var(--ink-dark);
  transform: translate3d(0, 0, 0);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.gift-tabs[data-active="bride"]::before {
  transform: translate3d(100%, 0, 0);
}

.gift-tab {
  position: relative;
  z-index: 1;
  padding: 9px 14px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink-muted);
  transition: color 0.32s ease;
}

.gift-tab.is-active {
  background: transparent;
  color: var(--ink-light);
}

.gift-panel-content {
  transition: opacity 0.24s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.gift-panel-content.is-switching {
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(0.985);
}

.qr-frame {
  width: 224px;
  height: 224px;
  margin: 0 auto 18px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(29, 23, 20, 0.08);
}

.qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bank-info-box {
  background: var(--bg-ivory);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: center;
  margin-bottom: 16px;
}

.bank-name {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cinnamon-deep);
}

.bank-number {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-dark);
  margin: 4px 0;
}

.bank-owner {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-muted);
}

/* ==========================================================================
   12. GRAND FINALE FOOTER
   ========================================================================== */
.finale {
  position: relative;
  min-height: 76vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 20px 64px;
  background: var(--bg-noir);
  color: var(--ink-light);
  overflow: hidden;
}

.finale-bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/photos/bason-bridge-wide.jpg");
  background-size: cover;
  background-position: center 38%;
  filter: brightness(0.42) saturate(0.9);
}

.finale::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 15, 13, 0.55) 0%, rgba(18, 15, 13, 0.88) 100%);
}

.finale-content {
  position: relative;
  z-index: 2;
  max-width: 660px;
}

.finale-script {
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  color: var(--cinnamon-light);
  line-height: 1.1;
}

.finale-names {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7.2vw, 4.8rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  margin: 8px 0 14px;
}

.finale-note {
  font-size: 0.96rem;
  color: var(--ink-light-soft);
  margin-bottom: 24px;
}

.finale-hashtag {
  display: inline-block;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(215, 174, 132, 0.36);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  color: var(--cinnamon-light);
}

.finale-studio-bar {
  position: relative;
  z-index: 2;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid rgba(246, 239, 229, 0.14);
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--ink-light-muted);
}

.studio-trigger-link {
  background: none;
  border: none;
  color: var(--cinnamon-light);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  opacity: 0.78;
  transition: opacity 0.25s ease;
}

.studio-trigger-link:hover {
  opacity: 1;
}

/* ==========================================================================
   13. FLOATING SPINNING VINYL MUSIC CONTROLLER
   ========================================================================== */
.vinyl-player {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 860;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 16px 7px 7px;
  border-radius: var(--radius-pill);
  background: rgba(18, 15, 13, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(215, 174, 132, 0.34);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
  color: var(--ink-light);
  cursor: pointer;
  transition: transform 0.35s var(--ease-luxury), border-color 0.3s ease;
}

.vinyl-player:hover {
  transform: translateY(-2px);
  border-color: var(--cinnamon-light);
}

.vinyl-disc {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--cinnamon-light) 0 7px, #161311 7.5px 9px, #25201d 9.5px 13px, #14110f 13.5px 17px, #241f1c 17.5px 21px);
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.14), 0 3px 10px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vinyl-disc::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #14110f;
}

.vinyl-player.is-playing .vinyl-disc {
  animation: vinylSpin 7.5s linear infinite;
}

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

.vinyl-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.25;
}

.vinyl-title {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-light);
  white-space: nowrap;
}

.vinyl-artist {
  font-size: 0.66rem;
  color: var(--cinnamon-light);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.vinyl-eq {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
  margin-left: 4px;
}

.vinyl-eq span {
  width: 2.5px;
  height: 4px;
  border-radius: 2px;
  background: var(--cinnamon-light);
  transition: height 0.2s ease;
}

.vinyl-player.is-playing .vinyl-eq span:nth-child(1) {
  animation: eqBar 0.85s ease-in-out infinite alternate;
}
.vinyl-player.is-playing .vinyl-eq span:nth-child(2) {
  animation: eqBar 0.65s ease-in-out 0.15s infinite alternate;
}
.vinyl-player.is-playing .vinyl-eq span:nth-child(3) {
  animation: eqBar 0.95s ease-in-out 0.3s infinite alternate;
}
.vinyl-player.is-playing .vinyl-eq span:nth-child(4) {
  animation: eqBar 0.72s ease-in-out 0.1s infinite alternate;
}

@keyframes eqBar {
  from {
    height: 3px;
  }
  to {
    height: 14px;
  }
}

/* Visually hidden but onscreen 240x240 YouTube Host (required by YouTube IFrame playback policy) */
.yt-audio-host {
  position: fixed;
  width: 240px;
  height: 240px;
  right: 0;
  bottom: 0;
  opacity: 0.001;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

/* ==========================================================================
   14. STUDIO PERSONALIZER DRAWER (?edit=1) & TOAST
   ========================================================================== */
.studio-drawer {
  max-width: 560px;
}

.studio-link-box {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translate(-50%, 16px);
  z-index: 1250;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  background: rgba(18, 15, 13, 0.92);
  color: var(--ink-light);
  border: 1px solid rgba(215, 174, 132, 0.42);
  font-size: 0.82rem;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.4s var(--ease-luxury);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   15. RESPONSIVE REFINEMENT (MOBILE-FIRST ZALO / IPHONE PERFECTION)
   ========================================================================== */
@media (max-width: 960px) {
  .countdown-grid,
  .nocturne-duet,
  .event-layout,
  .rsvp-grid {
    grid-template-columns: 1fr;
  }

  .luminous-cascade {
    grid-template-columns: repeat(2, 1fr);
  }

  .cascade-card:nth-child(3n + 2) {
    margin-top: 0;
  }

  .cascade-card:nth-child(even) {
    margin-top: 32px;
  }

  .countdown-panel,
  .nocturne-copy {
    text-align: center;
  }
  .calendar-card {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 680px) {
  .gate-hint {
    font-size: 0.76rem;
    padding: 10px 18px;
    white-space: nowrap;
  }

  .top-nav {
    top: 12px;
    padding: 9px 14px;
    gap: 10px;
    max-width: calc(100vw - 18px);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-monogram {
    display: none;
  }

  .nav-links {
    gap: 13px;
  }

  .nav-links a {
    font-size: 0.64rem;
    letter-spacing: 0.09em;
  }

  .hero {
    padding-top: 22px;
    padding-bottom: 72px;
  }

  .hero-photo {
    object-position: center 36%;
  }

  .hero-scrim {
    background:
      linear-gradient(
        180deg,
        rgba(12, 9, 7, 0.78) 0%,
        rgba(12, 9, 7, 0.46) 24%,
        rgba(12, 9, 7, 0.04) 36%,
        rgba(12, 9, 7, 0.04) 74%,
        rgba(12, 9, 7, 0.72) 88%,
        rgba(12, 9, 7, 0.94) 100%
      );
  }

  .hero-names {
    font-size: clamp(1.95rem, 7.8vw, 2.55rem);
  }

  .env-couple-calligraphy {
    font-size: clamp(1.1rem, 4.5vw, 1.38rem);
  }

  .wax-seal-btn {
    right: -6px;
    bottom: -10px;
    width: 56px;
    height: 56px;
  }

  .wax-seal-disc {
    width: 50px;
    height: 50px;
  }

  .wax-seal-monogram {
    font-size: 0.84rem;
  }

  .hero-quote {
    display: none;
  }

  .hero-meta-row {
    gap: 8px 10px;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    flex-wrap: nowrap;
  }

  .families-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .families-sep {
    width: 72px;
    height: 1px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, var(--line-gold), transparent);
  }

  .date-ribbon {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .date-ribbon-day {
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--line-gold);
    border-bottom: 1px solid var(--line-gold);
    padding: 10px 0;
  }

  .timer-row {
    gap: 8px;
  }

  .timer-box {
    padding: 14px 6px;
  }

  .arch-bloom-frame {
    aspect-ratio: 4 / 5;
  }

  .luminous-cascade {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cascade-card:nth-child(even) {
    margin-top: 0;
  }

  .lumiere-act--stage {
    padding-bottom: 108px;
  }

  .aura-stage {
    height: 375px;
  }

  .aura-card {
    width: 214px;
  }

  .aura-chap-pill {
    padding: 6px 12px;
    font-size: 0.64rem;
    letter-spacing: 0.1em;
  }

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

  .vinyl-player {
    right: 12px;
    bottom: 12px;
    padding: 5px 12px 5px 5px;
    gap: 9px;
  }

  .vinyl-disc {
    width: 34px;
    height: 34px;
  }

  .vinyl-title {
    font-size: 0.73rem;
  }

  .vinyl-artist {
    font-size: 0.62rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
