/* ==========================================================================
   МАРГАРИТА & КОНСТАНТИН — COUTURE 3D ИНТЕРАКТИВНА СВАТБЕНА ПОКАНА
   Цветова система: Нежно Прасковено (Warm Peach), Топъл Кайсиев/Теракотен Залез, Шампанско, Злато
   ========================================================================== */

:root {
  --ivory: #fffaf5;
  --ivory-warm: #fceddf;
  --paper-cream: #fffdf9;
  --champagne: #f6dec8;
  --gold: #cf9658;
  --gold-light: #ebbf8d;
  --gold-dark: #9c6830;
  --burgundy: #9e4733;
  --burgundy-deep: #6b291b;
  --burgundy-soft: #bf6149;
  --peach: #f4b698;
  --peach-soft: #fad4c0;
  --ink: #38211b;
  --ink-muted: #78554b;
  --rose-dust: #eab099;
  --sage-gold: #a68868;
  --shadow-soft: 0 20px 50px rgba(107, 41, 27, 0.13);
  --shadow-deep: 0 30px 80px rgba(74, 24, 14, 0.34);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Great Vibes', 'Marck Script', cursive;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--ivory);
  color: var(--ink);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  line-height: 1.65;
}

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

/* Subtle luxury handmade paper noise overlay */
.paper-grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.28;
  background-image: radial-gradient(rgba(148, 110, 53, 0.08) 1px, transparent 0),
                    radial-gradient(rgba(88, 19, 34, 0.05) 1px, transparent 0);
  background-size: 26px 26px;
  background-position: 0 0, 13px 13px;
  mix-blend-mode: multiply;
}

/* Full-Width Luxury Top Header Bar (Replay, Music, Language, Menu) */
.floating-controls {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px 20px;
  background: rgba(255, 250, 245, 0.95);
  background: color-mix(in srgb, var(--ivory) 95%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1.5px solid rgba(197, 155, 95, 0.45);
  box-shadow: 0 6px 26px rgba(42, 14, 10, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1150;
  pointer-events: auto;
}

.floating-controls > * {
  pointer-events: auto;
}

.control-group {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(197, 155, 95, 0.45);
  color: var(--burgundy);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(56, 9, 19, 0.12);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.pill-btn:hover {
  transform: translateY(-2px);
  background: var(--burgundy);
  color: var(--paper-cream);
  border-color: var(--gold);
}

.pill-btn svg {
  width: 15px;
  height: 15px;
}

.pill-btn.active {
  background: var(--burgundy);
  color: var(--gold-light);
}

/* ==========================================================================
   STAGE 1: 3D ВЪЛШЕБЕН СВАТБЕН ПЛИК С ВОСЪЧЕН ПЕЧАТ
   ========================================================================== */

.envelope-stage {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 252, 245, 0.96) 0%, rgba(242, 231, 213, 0.96) 58%, rgba(224, 206, 181, 0.98) 100%);
  perspective: 1800px;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.envelope-stage.is-dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.envelope-ambient-ornament {
  position: absolute;
  width: min(680px, 95vw);
  height: min(680px, 95vw);
  border-radius: 50%;
  border: 1px dashed rgba(197, 155, 95, 0.35);
  pointer-events: none;
  animation: slowSpin 80s linear infinite;
}

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

.envelope-header-text {
  text-align: center;
  margin-bottom: 26px;
  z-index: 5;
  transition: transform 0.7s ease, opacity 0.7s ease;
}

.guest-personal-greeting {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 999px;
  background: rgba(88, 19, 34, 0.08);
  border: 1px solid rgba(197, 155, 95, 0.45);
  color: var(--burgundy);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.envelope-couple-names {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 6vw, 3.5rem);
  font-weight: 600;
  color: var(--burgundy);
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.envelope-couple-names span.amp {
  font-family: var(--font-script);
  color: var(--gold-dark);
  font-weight: 400;
  padding: 0 8px;
  font-size: 1.15em;
}

.envelope-date-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-muted);
  margin-top: 4px;
  letter-spacing: 0.14em;
}

/* 3D Envelope Wrapper */
.envelope-3d-wrapper {
  position: relative;
  width: min(460px, 90vw);
  height: min(315px, 62vw);
  min-height: 250px;
  transform-style: preserve-3d;
  cursor: pointer;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.envelope-3d-wrapper:hover {
  transform: translateY(-6px) rotateX(4deg) rotateY(-3deg);
}

.envelope-shadow {
  position: absolute;
  inset: 14px -10px -24px -10px;
  background: radial-gradient(ellipse at center, rgba(42, 10, 18, 0.42) 0%, rgba(42, 10, 18, 0) 72%);
  filter: blur(18px);
  transform: translateZ(-40px);
  transition: all 0.9s ease;
}

/* Back of the envelope */
.envelope-back {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--burgundy-soft) 0%, var(--burgundy) 100%);
  border-radius: 12px;
  border: 1px solid var(--gold-light);
  box-shadow: inset 0 0 40px rgba(20, 8, 6, 0.32);
  overflow: hidden;
}

/* Inner golden floral liner inside envelope */
.envelope-inner-liner {
  position: absolute;
  inset: 6px;
  border-radius: 9px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 245, 225, 0.32), transparent 72%),
    linear-gradient(180deg, var(--burgundy) 0%, var(--burgundy-deep) 100%);
  border: 1px dashed var(--gold-light);
}

/* The Invitation Card tucked inside the envelope */
.envelope-letter-card {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 7%;
  bottom: 7%;
  background: linear-gradient(180deg, #fffdf9 0%, var(--ivory-warm) 100%);
  border-radius: 10px;
  border: 1px solid var(--gold);
  box-shadow: 0 12px 35px rgba(28, 10, 8, 0.25);
  padding: 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  transform: translateY(0) scale(0.96);
  transform-origin: center center;
}

.envelope-letter-lace-frame {
  position: absolute;
  inset: 8px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  pointer-events: none;
}

.envelope-letter-lace-frame::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px dotted var(--gold);
  border-radius: 4px;
}

.letter-mini-overline {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 4px;
}

.letter-mini-names {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 4.2vw, 2.1rem);
  color: var(--burgundy);
  line-height: 1.15;
  margin-bottom: 4px;
}

.letter-mini-date {
  font-family: var(--font-serif);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  padding: 3px 12px;
  margin-top: 2px;
}

/* Envelope Side & Bottom Pocket Flaps */
.envelope-pocket {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: 12px;
  overflow: hidden;
}

.envelope-pocket-left {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, var(--burgundy-soft) 0%, var(--burgundy) 100%);
  clip-path: polygon(0 0, 53% 52%, 0 100%);
  border-right: 1px solid var(--gold-light);
}

.envelope-pocket-right {
  position: absolute;
  inset: 0;
  background: linear-gradient(235deg, var(--burgundy-soft) 0%, var(--burgundy-deep) 100%);
  clip-path: polygon(100% 0, 47% 52%, 100% 100%);
}

.envelope-pocket-bottom {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--burgundy) 0%, var(--burgundy-soft) 100%);
  clip-path: polygon(0 100%, 50% 45%, 100% 100%);
  box-shadow: 0 -8px 25px rgba(24, 8, 6, 0.25);
}

/* Gold Foil Trim along pocket edges */
.envelope-gold-trim {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

/* Top Flap (opens in 3D on click) */
.envelope-top-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60%;
  z-index: 5;
  transform-origin: top center;
  transform-style: preserve-3d;
}

.envelope-top-flap-front {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--burgundy-soft) 0%, var(--burgundy) 100%);
  clip-path: polygon(0 0, 100% 0, 50% 94%);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  filter: drop-shadow(0 10px 14px rgba(24, 8, 6, 0.35));
}

/* Interactive 3D Wax Seal with Monogram */
.wax-seal-btn {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(16px);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 32% 28%, #e8c78e 0%, #c59b5f 42%, #8c642b 82%, #5e4016 100%);
  box-shadow:
    0 10px 25px rgba(25, 4, 9, 0.55),
    inset 0 3px 6px rgba(255, 248, 231, 0.65),
    inset 0 -5px 10px rgba(68, 42, 10, 0.75);
  z-index: 7;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.wax-seal-btn::before {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1.5px dashed rgba(94, 64, 22, 0.55);
  box-shadow: inset 0 2px 6px rgba(46, 28, 6, 0.45);
}

.wax-seal-btn:hover {
  transform: translate(-50%, -50%) translateZ(22px) scale(1.07);
}

.wax-seal-monogram {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.28rem;
  color: #3f2608;
  text-shadow: 0 1px 1px rgba(255, 244, 214, 0.65);
  letter-spacing: 0.04em;
}

.wax-seal-pulse {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(223, 190, 137, 0.65);
  animation: pulseRing 2.2s infinite ease-out;
  pointer-events: none;
}

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

.envelope-touch-prompt {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 5;
}

.touch-prompt-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 24px;
  border-radius: 999px;
  background: var(--burgundy);
  color: var(--paper-cream);
  border: 1px solid var(--gold);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(88, 19, 34, 0.28);
  cursor: pointer;
  animation: gentleFloat 2.8s ease-in-out infinite;
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ==========================================================================
   MAIN EXPERIENCE WRAPPER & HERO LACE INVITATION CARD
   ========================================================================== */

.invitation-experience {
  position: relative;
  z-index: 10;
}

.hero-invitation-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 18px 70px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 15%, #fffdf9 0%, #f6ede0 65%, #eadbc5 100%);
}

/* Floating parallax floral & lace corners */
.parallax-ornament {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  opacity: 0.72;
  will-change: transform;
}

.ornament-top-left {
  top: -20px;
  left: -20px;
  width: clamp(160px, 28vw, 310px);
}

.ornament-top-right {
  top: -20px;
  right: -20px;
  width: clamp(160px, 28vw, 310px);
  transform: scaleX(-1);
}

.ornament-bottom-left {
  bottom: -20px;
  left: -20px;
  width: clamp(160px, 28vw, 310px);
  transform: scaleY(-1);
}

.ornament-bottom-right {
  bottom: -20px;
  right: -20px;
  width: clamp(160px, 28vw, 310px);
  transform: scale(-1, -1);
}

/* Physical Couture Invitation Sheet */
.couture-invitation-sheet {
  position: relative;
  z-index: 4;
  width: min(690px, 95vw);
  background:
    radial-gradient(circle at 50% 0%, #ffffff 0%, #fffdf8 55%, #f7efe2 100%);
  border-radius: 22px;
  padding: clamp(28px, 6vw, 64px) clamp(22px, 5vw, 56px);
  box-shadow:
    0 30px 90px rgba(56, 9, 19, 0.18),
    0 4px 16px rgba(56, 9, 19, 0.08),
    inset 0 0 0 1px rgba(197, 155, 95, 0.45);
  text-align: center;
  transform-style: preserve-3d;
}

.couture-lace-border {
  position: absolute;
  inset: 14px;
  border: 1.5px solid rgba(197, 155, 95, 0.65);
  border-radius: 15px;
  pointer-events: none;
}

.couture-lace-border::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(197, 155, 95, 0.45);
  border-radius: 11px;
}

.embossed-crest {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #fffdf9 0%, #f1e4cf 100%);
  border: 1px solid var(--gold);
  box-shadow:
    inset 0 2px 5px rgba(255, 255, 255, 0.9),
    inset 0 -3px 6px rgba(148, 110, 53, 0.25),
    0 8px 20px rgba(88, 19, 34, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--burgundy);
}

.invitation-overline {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.invitation-main-names {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 7.5vw, 4.7rem);
  font-weight: 600;
  color: var(--burgundy);
  line-height: 1.05;
  margin-bottom: 14px;
}

.invitation-main-names .script-amp {
  display: inline-block;
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--gold-dark);
  font-size: 1.15em;
  margin: 0 10px;
}

.invitation-poem {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.12rem, 2.6vw, 1.38rem);
  color: var(--ink-muted);
  max-width: 520px;
  margin: 0 auto 26px;
}

.invitation-hero-photo-frame {
  position: relative;
  width: min(350px, 78vw);
  margin: 0 auto 28px;
  padding: 12px 12px 18px 12px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow:
    0 18px 42px rgba(42, 16, 22, 0.18),
    0 2px 6px rgba(42, 16, 22, 0.08);
  transform: rotate(-1.5deg);
  transition: transform 0.5s ease;
  display: flex;
  flex-direction: column;
}

.invitation-hero-photo-frame:hover {
  transform: rotate(0deg) scale(1.02);
}

.invitation-hero-photo-frame .photo-crop-box,
.polaroid-card .photo-crop-box {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
  background: #f8f0e8;
}

.invitation-hero-photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}

.invitation-hero-photo-caption {
  position: static;
  margin-top: 12px;
  padding: 2px 8px 0;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  font-family: var(--font-script);
  font-size: 1.38rem;
  color: var(--burgundy);
}

/* Date Badge inside the invitation sheet */
.invitation-date-ribbon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 14px 28px;
  border-top: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  margin: 8px 0 24px;
  flex-wrap: wrap;
}

.date-ribbon-part {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
}

.date-ribbon-center {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--burgundy);
  line-height: 1;
}

/* Live Countdown Timer */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 440px;
  margin: 0 auto 26px;
}

.countdown-box {
  background: rgba(244, 236, 224, 0.72);
  border: 1px solid rgba(197, 155, 95, 0.45);
  border-radius: 12px;
  padding: 10px 6px;
}

.countdown-num {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
  color: var(--burgundy);
  line-height: 1.1;
}

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

.hero-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-luxury {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-deep) 100%);
  color: var(--paper-cream);
  border: 1px solid var(--gold);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(88, 19, 34, 0.28);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-luxury:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(88, 19, 34, 0.38);
  background: linear-gradient(135deg, var(--burgundy-soft) 0%, var(--burgundy) 100%);
}

.btn-luxury-outline {
  background: rgba(255, 253, 249, 0.9);
  color: var(--burgundy);
  border: 1.5px solid var(--gold);
  box-shadow: 0 8px 20px rgba(88, 19, 34, 0.08);
}

.btn-luxury-outline:hover {
  background: var(--gold);
  color: var(--burgundy-deep);
}

/* ==========================================================================
   ANIMATED SCROLLING COUPLE WALKING TOWARDS EACH OTHER & DANCING
   ========================================================================== */

.scroll-couple-stage {
  position: relative;
  padding: 64px 18px 68px;
  background: linear-gradient(180deg, #6e2a1b 0%, #581e11 55%, #42140a 100%);
  color: #fffdf9;
  overflow: hidden;
  text-align: center;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
}

.paper-wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.paper-wave-divider svg {
  display: block;
  width: 100%;
  height: 56px;
}

.couple-meeting-arena {
  position: relative;
  max-width: 780px;
  height: 250px;
  margin: 24px auto 12px;
  border-bottom: 1.5px solid rgba(223, 190, 137, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.couple-starlight-arch {
  position: absolute;
  inset: 10px 15% 0 15%;
  border: 1px dashed rgba(223, 190, 137, 0.38);
  border-bottom: none;
  border-radius: 300px 300px 0 0;
  pointer-events: none;
}

.illustrated-character {
  position: absolute;
  bottom: 0;
  width: 125px;
  height: 210px;
  will-change: transform;
  transition: filter 0.3s ease;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}

.bride-character {
  left: calc(50% - 115px);
  transform: translateX(-160px);
}

.groom-character {
  right: calc(50% - 115px);
  transform: translateX(160px);
}

.couple-heart-spark {
  position: absolute;
  bottom: 165px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 56px;
  height: 56px;
  z-index: 5;
  filter: drop-shadow(0 0 16px rgba(223, 190, 137, 0.9));
}

/* ==========================================================================
   GENERAL SECTION TYPOGRAPHY & THEMES
   ========================================================================== */

.section-block {
  position: relative;
  padding: clamp(68px, 10vw, 115px) 18px;
  overflow: hidden;
}

.section-ivory {
  background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-warm) 100%);
  color: #2f1812;
}

.section-burgundy {
  background:
    radial-gradient(circle at 50% 10%, #7d301f 0%, #5c2012 60%, #3d1208 100%);
  color: #fffdf9;
}

.container-narrow {
  max-width: 1060px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

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

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burgundy);
  background: rgba(207, 150, 88, 0.16);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.section-burgundy .section-eyebrow,
.scroll-couple-stage .section-eyebrow {
  color: #fff6e5 !important;
  background: rgba(255, 253, 249, 0.14);
  border: 1px solid rgba(255, 236, 196, 0.45);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--burgundy-deep);
}

.section-burgundy .section-title,
.scroll-couple-stage .section-title {
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.section-script-accent {
  font-family: var(--font-script);
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  color: var(--burgundy);
  margin-top: 2px;
  display: block;
}

.section-burgundy .section-script-accent {
  color: var(--gold-light);
}

.section-lead {
  max-width: 640px;
  margin: 14px auto 0;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
}

.section-burgundy .section-lead,
.scroll-couple-stage .section-lead {
  color: #fff6ee !important;
}

/* ==========================================================================
   OUR STORY & POLAROID PHOTO GALLERY (REAL PHOTOS OF MARGARITA & KONSTANTIN)
   ========================================================================== */

.story-timeline-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 58px;
}

.story-milestone-card {
  background: var(--paper-cream);
  border-radius: 18px;
  padding: 28px 24px;
  border: 1px solid rgba(197, 155, 95, 0.45);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.story-year-badge {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--burgundy);
  background: rgba(197, 155, 95, 0.2);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.story-milestone-card h3 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--burgundy);
  margin-bottom: 8px;
}

.polaroid-scatter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  align-items: stretch;
}

.polaroid-card {
  background: #ffffff;
  padding: 14px 14px 20px 14px;
  border-radius: 8px;
  box-shadow:
    0 20px 45px rgba(42, 16, 22, 0.16),
    0 3px 10px rgba(42, 16, 22, 0.08);
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

.polaroid-card:nth-child(odd) {
  transform: rotate(-2.2deg);
}

.polaroid-card:nth-child(even) {
  transform: rotate(2.1deg);
}

.polaroid-card:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.03) !important;
  box-shadow: 0 28px 60px rgba(88, 19, 34, 0.25);
  z-index: 6;
}

/* Gold Washi Tape on top of polaroid */
.polaroid-tape {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 92px;
  height: 24px;
  z-index: 4;
  background: linear-gradient(90deg, rgba(223, 190, 137, 0.72), rgba(197, 155, 95, 0.55));
  border-left: 2px dotted rgba(255, 255, 255, 0.6);
  border-right: 2px dotted rgba(255, 255, 255, 0.6);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.polaroid-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.polaroid-caption {
  position: static;
  margin-top: 14px;
  padding: 4px 8px 2px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.24;
  font-family: var(--font-script);
  font-size: 1.42rem;
  color: var(--burgundy);
  background: #ffffff;
}

/* ==========================================================================
   THE WEDDING DAY TIMELINE & ANIMATED 3D WEDDING CAKE
   ========================================================================== */

.timeline-track {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold-light) 12%, var(--gold) 88%, transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  align-items: center;
  margin-bottom: 36px;
}

.timeline-content-card {
  grid-row: 1;
  align-self: center;
  background: rgba(34, 10, 5, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(250, 212, 192, 0.5);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 16px 38px rgba(15, 2, 6, 0.35);
}

.timeline-item:nth-of-type(even) .timeline-content-card,
.timeline-item.timeline-left .timeline-content-card {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  text-align: right;
}

.timeline-item:nth-of-type(odd) .timeline-content-card,
.timeline-item.timeline-right .timeline-content-card {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  text-align: left;
}

.timeline-node {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #fad4c0, #cf9658);
  color: #42140a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px rgba(250, 212, 192, 0.22);
  z-index: 2;
}

.timeline-time {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fad4c0;
  letter-spacing: 0.08em;
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: #ffffff;
  margin: 4px 0 6px;
}

.timeline-desc {
  font-size: 0.94rem;
  color: #fff6ee;
  line-height: 1.55;
}

/* Interactive Animated Wedding Cake Showcase */
.wedding-cake-showcase {
  margin-top: 56px;
  background: rgba(255, 253, 249, 0.06);
  border: 1px solid rgba(223, 190, 137, 0.4);
  border-radius: 24px;
  padding: 36px 24px;
  text-align: center;
}

.cake-svg-stage {
  width: min(320px, 82vw);
  margin: 0 auto 16px;
  cursor: pointer;
}

.cake-sparkle {
  animation: twinkle 1.8s infinite alternate ease-in-out;
}

@keyframes twinkle {
  from { opacity: 0.35; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1.18); }
}

/* ==========================================================================
   VENUE TRANSFORMING ILLUSTRATION (4 ARTISTIC SCROLL LAYERS)
   ========================================================================== */

.venue-transformation-card {
  background: var(--paper-cream);
  border-radius: 24px;
  border: 1.5px solid rgba(197, 155, 95, 0.55);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  padding: clamp(20px, 4vw, 40px);
}

.venue-layers-viewport {
  position: relative;
  width: 100%;
  height: clamp(260px, 46vw, 430px);
  border-radius: 16px;
  overflow: hidden;
  background: #f9f2e7;
  border: 1px solid rgba(197, 155, 95, 0.4);
  margin-bottom: 24px;
}

.venue-art-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, transform 0.6s ease;
}

.venue-art-layer svg {
  width: 100%;
  height: 100%;
}

.venue-layer-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.layer-Step-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(197, 155, 95, 0.55);
  background: var(--ivory);
  color: var(--burgundy);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.layer-Step-chip.active {
  background: var(--burgundy);
  color: var(--paper-cream);
  border-color: var(--gold);
}

.venue-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  text-align: left;
}

.venue-detail-box {
  background: var(--ivory);
  border: 1px solid rgba(197, 155, 95, 0.38);
  border-radius: 16px;
  padding: 22px;
}

.venue-detail-box h4 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--burgundy);
  margin-bottom: 6px;
}

/* ==========================================================================
   INTERACTIVE DRESS CODE & PALETTE EXPLORER
   ========================================================================== */

.dresscode-wrapper {
  background: var(--paper-cream);
  border-radius: 24px;
  border: 1px solid rgba(197, 155, 95, 0.5);
  padding: clamp(24px, 5vw, 48px);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.palette-swatches {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 26px 0;
}

.swatch-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 14px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.swatch-btn:hover,
.swatch-btn.active {
  transform: translateY(-5px);
  background: rgba(197, 155, 95, 0.14);
}

.swatch-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 8px 20px rgba(42, 16, 22, 0.18);
}

.swatch-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
}

.dresscode-silhouettes {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.silhouette-card {
  width: 200px;
  padding: 18px;
  border-radius: 18px;
  background: var(--ivory);
  border: 1px solid rgba(197, 155, 95, 0.38);
}

/* ==========================================================================
   HOTELS, TRANSPORTATION & GIFTS
   ========================================================================== */

.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 24px;
}

.luxury-info-card {
  background: var(--paper-cream);
  color: var(--ink);
  border-radius: 20px;
  border: 1px solid rgba(197, 155, 95, 0.48);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hotel-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(88, 19, 34, 0.09);
  color: var(--burgundy);
  font-size: 0.74rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.luxury-info-card h3 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--burgundy);
  margin-bottom: 8px;
}

/* ==========================================================================
   QR PHOTO & VIDEO CLOUD HUB (GOOGLE DRIVE + DIRECT MOBILE UPLOAD + ZIP)
   ========================================================================== */

.photo-cloud-hub {
  background: linear-gradient(145deg, #fffdf9 0%, #f6ebdc 100%);
  border-radius: 26px;
  border: 2px solid var(--gold);
  padding: clamp(24px, 5vw, 50px);
  box-shadow: var(--shadow-deep);
  color: var(--ink);
}

.cloud-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  gap: 32px;
  align-items: start;
}

.qr-showcase-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(197, 155, 95, 0.55);
  padding: 26px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.qr-image-box {
  width: 210px;
  height: 210px;
  margin: 14px auto;
  padding: 12px;
  border-radius: 16px;
  border: 2px dashed var(--gold);
  background: #fffdf9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-image-box img {
  width: 100%;
  height: 100%;
  display: block;
}

.upload-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  border: 2px dashed var(--burgundy);
  background: linear-gradient(145deg, rgba(158, 71, 51, 0.05) 0%, rgba(207, 150, 88, 0.1) 100%);
  border-radius: 18px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 16px;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
  background: rgba(88, 19, 34, 0.1);
  border-color: var(--gold-dark);
}

.guest-media-wall {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 12px;
}

.guest-media-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(197, 155, 95, 0.4);
  aspect-ratio: 1 / 1;
}

.guest-media-thumb img,
.guest-media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.guest-media-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px 6px;
  background: linear-gradient(transparent, rgba(28, 5, 10, 0.85));
  color: #fff;
  font-size: 0.68rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   "ПОТВЪРДЕТЕ ПРИСЪСТВИЕТО СИ" — INTERACTIVE FORM WITH +N GUESTS & MENUS
   ========================================================================== */

.attendance-card {
  background: var(--paper-cream);
  border-radius: 26px;
  border: 2px solid var(--gold);
  padding: clamp(24px, 5vw, 54px);
  box-shadow: var(--shadow-deep);
  max-width: 840px;
  margin: 0 auto;
  color: var(--ink);
}

.menu-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 34px;
}

.menu-showcase-card {
  background: var(--ivory);
  border: 1px solid rgba(197, 155, 95, 0.5);
  border-radius: 16px;
  padding: 18px;
  transition: transform 0.25s ease;
}

.menu-showcase-card:hover {
  transform: translateY(-4px);
}

.menu-showcase-card h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--burgundy);
}

.menu-showcase-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 6px;
}

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

.field-group {
  margin-bottom: 16px;
  text-align: left;
}

.field-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--burgundy);
  margin-bottom: 6px;
}

.luxury-input,
.luxury-select,
.luxury-textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(197, 155, 95, 0.55);
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.luxury-input:focus,
.luxury-select:focus,
.luxury-textarea:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(88, 19, 34, 0.12);
}

.attendance-choice-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

.choice-radio-card {
  position: relative;
  border: 2px solid rgba(197, 155, 95, 0.5);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  background: var(--ivory);
  transition: all 0.25s ease;
}

.choice-radio-card.selected {
  border-color: var(--burgundy);
  background: rgba(88, 19, 34, 0.08);
  box-shadow: 0 8px 20px rgba(88, 19, 34, 0.12);
}

.dynamic-guests-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0 24px;
}

.guest-person-row {
  background: var(--ivory);
  border: 1px solid rgba(197, 155, 95, 0.5);
  border-radius: 16px;
  padding: 18px;
}

.guest-person-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--burgundy);
}

/* Modal for Newlyweds Dashboard & Lightbox */
.luxury-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(26, 4, 10, 0.82);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.luxury-modal-backdrop.open {
  display: flex;
}

.luxury-modal-box {
  background: var(--paper-cream);
  color: var(--ink);
  width: min(920px, 96vw);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 24px;
  border: 2px solid var(--gold);
  padding: clamp(20px, 4vw, 38px);
  position: relative;
}

.stats-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.kpi-tile {
  background: var(--ivory);
  border: 1px solid rgba(197, 155, 95, 0.45);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}

.kpi-tile strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--burgundy);
}

.rsvp-table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}

.rsvp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.rsvp-table th,
.rsvp-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(197, 155, 95, 0.3);
  text-align: left;
}

.rsvp-table th {
  background: rgba(88, 19, 34, 0.08);
  color: var(--burgundy);
}

/* Responsive Mobile-First Adjustments */
@media (max-width: 768px) {
  .timeline-line {
    left: 24px;
  }
  .timeline-item {
    grid-template-columns: 48px 1fr;
    gap: 12px;
    align-items: center;
  }
  .timeline-node {
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: center !important;
  }
  .timeline-item .timeline-content-card,
  .timeline-item.timeline-left .timeline-content-card,
  .timeline-item.timeline-right .timeline-content-card {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: center !important;
    text-align: left !important;
  }
  .cloud-grid,
  .form-row-2,
  .attendance-choice-group {
    grid-template-columns: 1fr;
  }
  .floating-controls {
    top: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
  }
  .pill-btn {
    padding: 7px 11px;
    font-size: 0.7rem;
  }
  .pill-btn span.hide-mobile {
    display: none;
  }
}

/* Interactive Timeline Nodes & Animated Transitions */
.timeline-node {
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, background 0.35s ease;
  animation: gentleFloatNode 3.6s ease-in-out infinite;
}

.timeline-item:nth-child(even) .timeline-node {
  animation-delay: 1.4s;
}

.timeline-node:hover,
.timeline-node:active,
.timeline-node.is-pulsing {
  transform: scale(1.26) rotate(8deg);
  box-shadow: 0 0 26px rgba(250, 212, 192, 0.9), 0 0 42px rgba(207, 150, 88, 0.65);
  background: linear-gradient(135deg, #fffdf9 0%, #fde2cc 100%);
}

@keyframes gentleFloatNode {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

.timeline-content-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.timeline-content-card:hover {
  transform: translateY(-4px);
  border-color: rgba(250, 212, 192, 0.85);
  box-shadow: 0 18px 40px rgba(32, 10, 8, 0.28);
}

/* Restaurant Menu Course List Styling */
.menu-course-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-course-list li {
  font-size: 0.84rem;
  color: var(--ink);
  line-height: 1.45;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(207, 150, 88, 0.1);
  border-left: 3px solid var(--gold);
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   16 MULTI-TEMPLATE THEME VARIATIONS (YANI VOWS™ ATELIER)
   ========================================================================== */

/* 1. 🌸 Прасковена Градина & Златен Залез (warm-peach) */
body[data-template="warm-peach"] {
  --burgundy: #9e4733;
  --burgundy-deep: #6e2a1b;
  --burgundy-soft: #bc6049;
  --gold: #cf9658;
  --gold-light: #fad4c0;
  --gold-dark: #9c6830;
  --ivory: #fff9f4;
  --ivory-warm: #fceddf;
}

/* 2. 🌿 Тосканска Маслинова Градина (tuscan-sun) */
body[data-template="tuscan-sun"] {
  --burgundy: #4a5d4e;
  --burgundy-deep: #2f3e33;
  --burgundy-soft: #637a68;
  --gold: #c87d55;
  --gold-light: #e6ceac;
  --gold-dark: #8f5334;
  --ivory: #faf7f0;
  --ivory-warm: #f0e9db;
}

/* 3. 🌊 Морски Бриз & Санторини (aegean-sea) */
body[data-template="aegean-sea"] {
  --burgundy: #1b4965;
  --burgundy-deep: #0f2c3f;
  --burgundy-soft: #2c6e91;
  --gold: #d4a359;
  --gold-light: #bee9e8;
  --gold-dark: #9c7234;
  --ivory: #f4faff;
  --ivory-warm: #e3f2fd;
  --ink: #0f293a;
  --ink-muted: #416278;
}

/* 4. 🌲 Горска Приказка & Светулки (enchanted-garden) */
body[data-template="enchanted-garden"] {
  --burgundy: #1d4332;
  --burgundy-deep: #10281d;
  --burgundy-soft: #2b5f48;
  --gold: #c9a769;
  --gold-light: #e6cca0;
  --gold-dark: #8e6d34;
  --ivory: #f8fbf8;
  --ivory-warm: #ebf2ec;
  --ink: #13281e;
}

/* 5. 🏔️ Планински Връх & Алпийско Шале (alpine-chalet) */
body[data-template="alpine-chalet"] {
  --burgundy: #2c3e35;
  --burgundy-deep: #19241e;
  --burgundy-soft: #3f574b;
  --gold: #b87d4b;
  --gold-light: #e2c5a8;
  --gold-dark: #7d4e27;
  --ivory: #f9f6f0;
  --ivory-warm: #ede5d8;
  --ink: #1e2622;
}

/* 6. 🌾 Бохо Рустик & Лавандула (boho-rustic) */
body[data-template="boho-rustic"] {
  --burgundy: #5e4b56;
  --burgundy-deep: #3d2e37;
  --burgundy-soft: #7a6270;
  --gold: #b89b72;
  --gold-light: #dcd0e8;
  --gold-dark: #856b47;
  --ivory: #fcf9f5;
  --ivory-warm: #f2ece4;
  --ink: #2f242b;
}

/* 7. 🏙️ Градски Шик & Vogue Editorial (champagne-noir) */
body[data-template="champagne-noir"] {
  --burgundy: #1e1c1a;
  --burgundy-deep: #0e0d0c;
  --burgundy-soft: #36322e;
  --gold: #d2b076;
  --gold-light: #ebd1a3;
  --gold-dark: #9c7b44;
  --ivory: #fcfaf7;
  --ivory-warm: #f2ece2;
  --ink: #171615;
}

/* 8. 👑 Кралски Дворец & Императорско Бордо (velvet-burgundy) */
body[data-template="velvet-burgundy"] {
  --burgundy: #581322;
  --burgundy-deep: #380913;
  --burgundy-soft: #782033;
  --gold: #c59b5f;
  --gold-light: #e8d3b9;
  --gold-dark: #8e6832;
  --ivory: #fffdf9;
  --ivory-warm: #f7efe2;
}

/* 9. 🍷 Винарско Имение & Шато Рубин (vineyard-winery) */
body[data-template="vineyard-winery"] {
  --burgundy: #4a1525;
  --burgundy-deep: #2b0a14;
  --burgundy-soft: #6e2339;
  --gold: #b6864c;
  --gold-light: #e5c69b;
  --gold-dark: #805828;
  --ivory: #fbf6f0;
  --ivory-warm: #f2e7da;
}

/* 10. 🥂 Перлено Шампанско & Бяла Коприна (champagne-pearl / pearl-minimal) */
body[data-template="champagne-pearl"],
body[data-template="pearl-minimal"] {
  --burgundy: #5c4735;
  --burgundy-deep: #3d2e20;
  --burgundy-soft: #7a614a;
  --gold: #c59b38;
  --gold-light: #f3e5ab;
  --gold-dark: #876818;
  --ivory: #fffefa;
  --ivory-warm: #f7f3e8;
  --ink: #241c14;
  --ink-muted: #5c4b3b;
}

/* 11. ❄️ Зимна Кристална Приказка (winter-wonderland) */
body[data-template="winter-wonderland"] {
  --burgundy: #1e3a5f;
  --burgundy-deep: #102138;
  --burgundy-soft: #2e5485;
  --gold: #7ca5c9;
  --gold-light: #dbeafe;
  --gold-dark: #3b6387;
  --ivory: #f5f9ff;
  --ivory-warm: #e6f0fa;
  --ink: #0f2138;
  --ink-muted: #395575;
}

/* 12. ✨ Звездна Нощ под Открито Небе (starlight-night / starlight-celestial) */
body[data-template="starlight-night"],
body[data-template="starlight-celestial"] {
  --burgundy: #182242;
  --burgundy-deep: #0b1024;
  --burgundy-soft: #283666;
  --gold: #d4a855;
  --gold-light: #fae3b4;
  --gold-dark: #8c651e;
  --ivory: #f6f7fb;
  --ivory-warm: #eaecf5;
  --ink: #121830;
  --ink-muted: #424c6e;
}

/* 13. 💍 Властелинът на Пръстените — Ривендел & Графството (lotr-rivendell) */
body[data-template="lotr-rivendell"] {
  --burgundy: #1b3624;
  --burgundy-deep: #0e1f14;
  --burgundy-soft: #2b5237;
  --gold: #c9a236;
  --gold-light: #f5df98;
  --gold-dark: #7a5c0c;
  --ivory: #f8f1e1;
  --ivory-warm: #ede0c4;
  --paper-cream: #f6ebd4;
  --ink: #1d160b;
  --ink-muted: #4d3e26;
}

/* 14. 🐇 Алиса в Страната на Чудесата — Чаено Парти (alice-wonderland) */
body[data-template="alice-wonderland"] {
  --burgundy: #7b1e3a;
  --burgundy-deep: #4d0f22;
  --burgundy-soft: #9e2b4e;
  --gold: #c99642;
  --gold-light: #ffe4ec;
  --gold-dark: #875c18;
  --ivory: #fff8fa;
  --ivory-warm: #fcebf0;
  --ink: #2b1019;
  --ink-muted: #663847;
}

/* 15. 🏰 Приказен Замък & Кралска Романтика (fairytale-castle) */
body[data-template="fairytale-castle"] {
  --burgundy: #2b3a67;
  --burgundy-deep: #182240;
  --burgundy-soft: #3f538f;
  --gold: #c98f76;
  --gold-light: #f7d6e0;
  --gold-dark: #8c543e;
  --ivory: #fdf8fa;
  --ivory-warm: #f5ebf0;
  --ink: #182038;
  --ink-muted: #495478;
}

/* 16. 🎷 Великият Гетсби — Art Deco 1920s (gatsby-artdeco) */
body[data-template="gatsby-artdeco"] {
  --burgundy: #171614;
  --burgundy-deep: #080807;
  --burgundy-soft: #2e2b26;
  --gold: #d4af37;
  --gold-light: #f7e39c;
  --gold-dark: #85660c;
  --ivory: #faf6ee;
  --ivory-warm: #efe7d6;
  --ink: #121110;
  --ink-muted: #4a453d;
}

/* Ensure dark/themed sections dynamically follow the active theme (--burgundy & --burgundy-deep) */
body[data-template] .section-burgundy,
body[data-template] .scroll-couple-stage {
  background: linear-gradient(165deg, var(--burgundy) 0%, var(--burgundy-deep) 60%, #0e0908 100%);
  color: #fffdf9;
}
body[data-template] .timeline-node {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1a120b !important;
  font-weight: 700;
}
body[data-template] .timeline-time {
  color: var(--gold-light) !important;
}
body[data-template] .timeline-title {
  color: #ffffff !important;
}
body[data-template] .timeline-desc {
  color: #f7f2eb !important;
}
body[data-template] .timeline-content-card {
  background: rgba(14, 12, 16, 0.72);
  border-color: var(--gold);
  color: #fffdf9;
}
body[data-template] .section-burgundy .section-eyebrow,
body[data-template] .section-burgundy .section-script-accent,
body[data-template] .scroll-couple-stage .section-eyebrow,
body[data-template] .scroll-couple-stage .section-script-accent {
  color: var(--gold-light) !important;
}
body[data-template] .section-ivory .section-eyebrow {
  color: var(--burgundy-deep) !important;
  background: rgba(207, 150, 88, 0.2);
}
body[data-template] .section-ivory .section-title {
  color: var(--burgundy-deep) !important;
}
body[data-template] .section-ivory .section-script-accent {
  color: var(--burgundy) !important;
}
body[data-template] .section-ivory .section-lead {
  color: var(--ink) !important;
}

/* ==========================================================================
   ONLINE WEDDING GUESTBOOK & PHOTOBOOK GENERATOR (СВАТБЕНА КНИГА С ПОЖЕЛАНИЯ)
   ========================================================================== */

.guestbook-hub {
  background: linear-gradient(145deg, #fffdf9 0%, #fceddf 55%, #fff9f2 100%);
  border-radius: 26px;
  border: 2px solid var(--gold);
  padding: clamp(24px, 5vw, 48px);
  box-shadow: var(--shadow-deep);
  color: var(--ink);
  max-width: 760px;
  margin: 0 auto;
}

.guestbook-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.guestbook-form-card {
  background: var(--ivory);
  border: 1px solid rgba(197, 155, 95, 0.5);
  border-radius: 20px;
  padding: clamp(20px, 4vw, 32px);
}

/* Open 3D Book Spread Preview */
.photobook-spread-viewer {
  background: linear-gradient(90deg, #f3e8d7 0%, #fffdf9 48%, #e5d5be 50%, #fffdf9 52%, #f3e8d7 100%);
  border-radius: 18px;
  border: 2px solid var(--gold);
  box-shadow:
    0 24px 60px rgba(42, 12, 18, 0.25),
    inset 0 0 30px rgba(148, 110, 53, 0.14);
  padding: clamp(18px, 3.5vw, 32px);
  position: relative;
}

.photobook-pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 6px;
}

.wish-book-page {
  background: #ffffff;
  border: 1px solid rgba(197, 155, 95, 0.45);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(42, 16, 22, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.wish-book-page::before {
  content: '❝';
  position: absolute;
  top: 8px;
  right: 14px;
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: rgba(197, 155, 95, 0.28);
  line-height: 1;
}

.wish-page-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(197, 155, 95, 0.4);
  margin-bottom: 12px;
}

.wish-page-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.48;
}

.wish-page-author {
  font-family: var(--font-script);
  font-size: 1.45rem;
  color: var(--burgundy);
  border-top: 1px dashed rgba(197, 155, 95, 0.45);
  padding-top: 6px;
}

.envelope-mini-photo {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  margin-bottom: 6px;
  box-shadow: 0 6px 16px rgba(88, 19, 34, 0.2);
}

/* ==========================================================================
   TOP-RIGHT DROPDOWN NAVIGATION MENU & BACK-TO-TOP BUTTON
   ========================================================================== */

.pill-btn-menu {
  display: inline-flex;
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-deep) 100%);
  color: #fffdf9;
  border-color: var(--gold-light);
}

.pill-btn-menu:hover {
  background: linear-gradient(135deg, var(--burgundy-deep) 0%, #49180e 100%);
  color: var(--gold-light);
}

.section-nav-bar {
  display: none;
  position: fixed;
  top: 64px;
  right: 16px;
  width: min(310px, calc(100vw - 32px));
  background: rgba(255, 251, 246, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 2px solid var(--gold);
  padding: 14px;
  border-radius: 22px;
  box-shadow: 0 22px 54px rgba(48, 22, 16, 0.28);
  pointer-events: auto;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  z-index: 1080;
  animation: menuSlideDown 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes menuSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.section-nav-bar.open {
  display: flex !important;
}

.sec-nav-link {
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(207, 150, 88, 0.11);
  border: 1px solid rgba(207, 150, 88, 0.28);
  transition: all 0.22s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.sec-nav-link:hover {
  background: rgba(158, 71, 51, 0.16);
  color: var(--burgundy);
  transform: translateX(3px);
}

.sec-nav-cta {
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-deep) 100%);
  color: #fffdf9 !important;
  border-color: var(--gold);
  justify-content: center;
  margin-top: 2px;
}

.sec-nav-cta:hover {
  background: var(--burgundy-deep) !important;
  transform: translateY(-2px);
}

.sec-nav-couple-btn {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed rgba(207, 150, 88, 0.6);
  background: linear-gradient(135deg, #fff5eb 0%, #fde4cf 100%);
  color: var(--burgundy-deep) !important;
  border: 1.5px solid var(--gold);
  justify-content: center;
  font-family: var(--font-sans);
  width: 100%;
}

.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 980;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--gold-light);
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-deep) 100%);
  color: #fffdf9;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(48, 22, 16, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 18px 38px rgba(48, 22, 16, 0.45);
}

/* ==========================================================================
   HEART-TOUCHING FEATURES: LIVE TOAST, VOICE WISH & TIME CAPSULE
   ========================================================================== */

.live-toast-bar {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed rgba(207, 150, 88, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.toast-clink-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--gold);
  background: linear-gradient(135deg, #fff6ec 0%, #fde5d2 100%);
  color: var(--burgundy-deep);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(158, 71, 51, 0.14);
  transition: all 0.25s ease;
}

.toast-clink-btn:hover {
  transform: translateY(-2px) scale(1.03);
  background: linear-gradient(135deg, #fde5d2 0%, #f4b698 100%);
}

.toast-glasses-icon {
  font-size: 1.25rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.toast-clink-btn:active .toast-glasses-icon {
  transform: scale(1.35) rotate(-12deg);
}

.toast-counter-pill {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.toast-counter-pill strong {
  color: var(--burgundy);
  font-size: 0.95rem;
}

.voice-wish-box {
  background: rgba(207, 150, 88, 0.12);
  border: 1px dashed var(--gold-dark);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.time-capsule-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #cf9658, #9c6830);
  color: #fffdf9;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}


/* ==========================================================================
   MULTI-ARCHITECTURE WORDPRESS-LEVEL TEMPLATE ENGINE
   7 DISTINCT INTERACTIVE OPENING CEREMONIES + 6 DISTINCT PAGE ARCHITECTURES
   ========================================================================== */

/* Hide all intro scenes by default except envelope unless data-intro is set */
.intro-scene {
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

body:not([data-intro]) .intro-scene-envelope,
body[data-intro="envelope"] .intro-scene-envelope {
  display: block;
}

body[data-intro="scroll"] .intro-scene-scroll,
body[data-intro="keyhole"] .intro-scene-keyhole,
body[data-intro="gates"] .intro-scene-gates,
body[data-intro="curtains"] .intro-scene-curtains,
body[data-intro="shell"] .intro-scene-shell,
body[data-intro="lantern"] .intro-scene-lantern {
  display: block;
}

.seal-theme-icon {
  display: none;
  font-size: 1.45rem;
  line-height: 1;
  margin-bottom: 2px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

body[data-intro]:not([data-intro="envelope"]) .seal-theme-icon {
  display: block;
}

body[data-intro]:not([data-intro="envelope"]) .wax-seal-monogram {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   INTRO SCENE 2: ANCIENT ELVISH PARCHMENT SCROLL & ONE RING (scroll)
   -------------------------------------------------------------------------- */
.intro-scene-scroll {
  z-index: 4;
}

.scroll-parchment-body {
  position: absolute;
  inset: 18px 16px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 245, 214, 0.96), rgba(222, 198, 146, 0.96) 72%, rgba(182, 145, 86, 0.98) 100%);
  border: 2px solid #c9a646;
  border-radius: 8px;
  box-shadow:
    inset 0 0 38px rgba(92, 62, 18, 0.45),
    0 22px 50px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 28px 20px;
  text-align: center;
}

.scroll-runes-border {
  font-family: 'Cinzel Decorative', 'Cormorant Garamond', serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: #6b4c1b;
  border-top: 1px solid rgba(138, 102, 33, 0.45);
  border-bottom: 1px solid rgba(138, 102, 33, 0.45);
  padding: 6px 10px;
  width: 100%;
}

.scroll-elvish-crest {
  font-family: 'Cinzel Decorative', 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #2d4c39;
  letter-spacing: 0.1em;
}

.scroll-roller {
  position: absolute;
  left: -18px;
  right: -18px;
  height: 28px;
  display: flex;
  align-items: center;
  z-index: 6;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5));
}

.scroll-roller-top {
  top: 4px;
}

.scroll-roller-bottom {
  bottom: 4px;
}

.scroll-wood-bar {
  flex: 1;
  height: 22px;
  background: linear-gradient(180deg, #5c3818 0%, #8c5828 45%, #3d220a 100%);
  border-top: 1.5px solid #e4c570;
  border-bottom: 1.5px solid #9e782f;
  border-radius: 4px;
}

.scroll-finial {
  width: 26px;
  height: 28px;
  background: radial-gradient(circle at 35% 35%, #fbe69c, #c9a23f 65%, #6e5211 100%);
  border-radius: 50%;
  border: 1px solid #fff3c4;
}

body[data-intro="scroll"] .wax-seal-btn {
  background: radial-gradient(circle at 30% 30%, #ffe885 0%, #d4af37 45%, #8a640f 90%);
  color: #241805;
  border: 3px solid #fff3b0;
  box-shadow:
    0 0 28px rgba(255, 215, 70, 0.85),
    inset 0 0 14px rgba(120, 72, 0, 0.65);
}

/* --------------------------------------------------------------------------
   INTRO SCENE 3: WONDERLAND STORYBOOK DOORS & POCKET WATCH (keyhole)
   -------------------------------------------------------------------------- */
.intro-scene-keyhole {
  z-index: 4;
  perspective: 1200px;
}

.wonderland-door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(160deg, #2d5a7b 0%, #1d3c54 60%, #152b3d 100%);
  border: 2.5px solid #d9a74a;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 22px 14px;
  transform-style: preserve-3d;
}

.wonderland-door-left {
  left: 0;
  border-radius: 140px 0 0 16px;
  transform-origin: left center;
}

.wonderland-door-right {
  right: 0;
  border-radius: 0 140px 16px 0;
  transform-origin: right center;
}

.wonderland-card-suits {
  font-size: 1.25rem;
  letter-spacing: 0.35em;
  color: #fce8c3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.wonderland-door-panel {
  width: 78%;
  height: 55%;
  border: 1.5px dashed rgba(244, 213, 141, 0.6);
  border-radius: 60px 60px 10px 10px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
}

.wonderland-watch-crown {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #fff6e0, #f3d285);
  color: #4a2040;
  border: 2px solid #c43652;
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  z-index: 7;
  box-shadow: 0 8px 20px rgba(74, 32, 64, 0.25);
}

body[data-intro="keyhole"] .wax-seal-btn {
  background: radial-gradient(circle at 35% 35%, #fff9e6 0%, #f1c865 55%, #b3801c 100%);
  color: #5b1830;
  border: 3px double #c43652;
  width: 94px;
  height: 94px;
}

/* --------------------------------------------------------------------------
   INTRO SCENE 4: 1920s GATSBY ART DECO DOUBLE GATES (gates)
   -------------------------------------------------------------------------- */
.intro-scene-gates {
  z-index: 4;
  overflow: hidden;
  border-radius: 6px;
}

.gatsby-gate {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(229, 193, 88, 0.12) 0px,
      rgba(229, 193, 88, 0.12) 2px,
      transparent 2px,
      transparent 14px
    ),
    linear-gradient(180deg, #16161c 0%, #0b0b0f 100%);
  border: 2.5px solid #e5c158;
  box-shadow: inset 0 0 22px rgba(229, 193, 88, 0.25);
}

.gatsby-gate-left {
  left: 0;
}

.gatsby-gate-right {
  right: 0;
}

.gatsby-sunburst {
  position: absolute;
  top: 50%;
  width: 150px;
  height: 150px;
  border: 2px solid #e5c158;
  transform: translateY(-50%) rotate(45deg);
  background: repeating-conic-gradient(from 0deg, rgba(229, 193, 88, 0.22) 0deg 6deg, transparent 6deg 15deg);
}

.gatsby-gate-left .gatsby-sunburst {
  right: -75px;
}

.gatsby-gate-right .gatsby-sunburst {
  left: -75px;
}

.gatsby-geo-lines {
  position: absolute;
  inset: 14px;
  border: 1.5px solid rgba(229, 193, 88, 0.55);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
}

.gatsby-marquee-top {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: #0d0d11;
  border: 1.5px solid #e5c158;
  color: #f6e094;
  font-family: 'Poiret One', 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  padding: 5px 16px;
  white-space: nowrap;
  z-index: 6;
}

body[data-intro="gates"] .wax-seal-btn {
  border-radius: 10px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: linear-gradient(135deg, #f8e296 0%, #c99e32 50%, #231c09 100%);
  color: #111;
  border: 2px solid #fff3c4;
}

body[data-intro="gates"] .wax-seal-btn .seal-theme-icon,
body[data-intro="gates"] .wax-seal-btn .wax-seal-monogram {
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   INTRO SCENE 5: ROYAL VELVET CURTAINS & CROWN VALANCE (curtains)
   -------------------------------------------------------------------------- */
.intro-scene-curtains {
  z-index: 4;
  overflow: hidden;
  border-radius: 18px;
}

.royal-valance-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  background: linear-gradient(180deg, #540b1c 0%, #80142c 100%);
  border-bottom: 3px solid #e5c365;
  color: #fae6a7;
  font-family: 'Cinzel Decorative', 'Playfair Display', serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.royal-curtain {
  position: absolute;
  top: 36px;
  bottom: 0;
  width: 52%;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.28) 0px,
      transparent 16px,
      rgba(255, 255, 255, 0.08) 28px,
      rgba(0, 0, 0, 0.32) 44px
    ),
    linear-gradient(180deg, #7a1228 0%, #4a0715 80%, #2e030c 100%);
  border-bottom: 4px solid #e5c365;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.royal-curtain-left {
  left: 0;
  border-right: 2px solid #e5c365;
  border-bottom-right-radius: 80px;
}

.royal-curtain-right {
  right: 0;
  border-left: 2px solid #e5c365;
  border-bottom-left-radius: 80px;
}

/* --------------------------------------------------------------------------
   INTRO SCENE 6: AEGEAN MOTHER-OF-PEARL SEASHELL (shell)
   -------------------------------------------------------------------------- */
.intro-scene-shell {
  z-index: 4;
}

.sea-shell-bottom {
  position: absolute;
  inset: 22px 10px 0 10px;
  background: radial-gradient(circle at 50% 90%, #d4f1f9 0%, #eef9fd 55%, #ffffff 100%);
  border: 2px solid #76bfd4;
  border-radius: 50% 50% 35% 35% / 65% 65% 35% 35%;
  box-shadow: inset 0 -16px 32px rgba(24, 122, 160, 0.18);
}

.sea-shell-top {
  position: absolute;
  inset: 6px 6px 12px 6px;
  background:
    repeating-conic-gradient(
      from -75deg at 50% 100%,
      rgba(43, 146, 184, 0.14) 0deg 8deg,
      rgba(255, 255, 255, 0.92) 8deg 18deg
    ),
    linear-gradient(180deg, #e0f5fc 0%, #b5e4f5 65%, #82cce6 100%);
  border: 2px solid #5bb0cc;
  border-radius: 50% 50% 28% 28% / 78% 78% 22% 22%;
  transform-origin: center bottom;
  box-shadow: 0 18px 40px rgba(15, 76, 108, 0.28);
}

.sea-waves-ribbon {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #6ec3de;
  color: #0e4a66;
  padding: 5px 18px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  z-index: 6;
}

body[data-intro="shell"] .wax-seal-btn {
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #f5f9fc 50%, #cde8f2 85%, #96c7db 100%);
  color: #0e4a66;
  border: 2px solid #ffffff;
  box-shadow:
    0 10px 30px rgba(14, 74, 102, 0.32),
    inset 0 0 16px rgba(255, 255, 255, 0.95);
}

/* --------------------------------------------------------------------------
   INTRO SCENE 7: ENCHANTED FOREST FIREFLY LANTERN / DOME (lantern)
   -------------------------------------------------------------------------- */
.intro-scene-lantern {
  z-index: 4;
}

.lantern-base-pedestal {
  position: absolute;
  bottom: 0;
  left: 12%;
  right: 12%;
  height: 36px;
  background: linear-gradient(90deg, #3e2c1c, #7a5835 50%, #3e2c1c);
  border-top: 2.5px solid #d8b467;
  border-radius: 12px 12px 20px 20px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
  z-index: 5;
}

.lantern-glass-dome {
  position: absolute;
  top: 0;
  bottom: 24px;
  left: 15%;
  right: 15%;
  background:
    radial-gradient(circle at 50% 55%, rgba(255, 232, 148, 0.42) 0%, rgba(36, 74, 52, 0.78) 68%, rgba(16, 36, 25, 0.92) 100%);
  border: 2.5px solid #d8b467;
  border-radius: 180px 180px 16px 16px;
  box-shadow:
    inset 0 0 42px rgba(255, 224, 122, 0.45),
    0 18px 45px rgba(0, 0, 0, 0.48);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px;
}

.lantern-handle-ring {
  width: 38px;
  height: 22px;
  border: 3px solid #d8b467;
  border-radius: 50%;
  margin-top: -32px;
}

.lantern-fireflies {
  display: flex;
  gap: 18px;
  color: #ffe98a;
  font-size: 1.15rem;
  text-shadow: 0 0 12px #ffd84d;
  animation: fireflyFloat 2.8s ease-in-out infinite alternate;
}

.lantern-botanical-silhouette {
  font-size: 1.2rem;
  letter-spacing: 0.25em;
  opacity: 0.9;
}

@keyframes fireflyFloat {
  0% { transform: translateY(-4px) scale(0.95); opacity: 0.75; }
  100% { transform: translateY(5px) scale(1.08); opacity: 1; }
}

/* ==========================================================================
   6 DISTINCT PAGE LAYOUT ARCHITECTURES (body[data-arch="..."])
   Transforming Shapes, Fonts, Hero Structure, Galleries, Buttons & Timelines!
   ========================================================================== */

/* --------------------------------------------------------------------------
   ARCHITECTURE 1: ELVISH FANTASY / LORD OF THE RINGS (data-arch="arch-fantasy")
   -------------------------------------------------------------------------- */
body[data-arch="arch-fantasy"] {
  --font-serif: 'Cinzel Decorative', 'Cormorant Garamond', serif;
  --font-display: 'Cinzel Decorative', 'Cormorant Garamond', serif;
  --font-script: 'Marck Script', cursive;
}

body[data-arch="arch-fantasy"] .envelope-stage,
body[data-arch="arch-fantasy"] .hero-invitation-section {
  background:
    radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(47, 87, 60, 0.35) 0%, transparent 55%),
    linear-gradient(180deg, #102016 0%, #193022 50%, #0d1a12 100%);
}

body[data-arch="arch-fantasy"] .envelope-couple-names,
body[data-arch="arch-fantasy"] .envelope-date-sub {
  color: #f5df98 !important;
}

body[data-arch="arch-fantasy"] .guest-personal-greeting {
  background: rgba(16, 32, 22, 0.85);
  color: #f5df98 !important;
  border-color: #d4af37;
}

body[data-arch="arch-fantasy"] .couture-invitation-sheet {
  border-radius: 240px 240px 26px 26px;
  border: 2.5px solid #d4af37;
  background:
    radial-gradient(circle at 50% 15%, #fff9e6 0%, #f1e2be 68%, #dec796 100%);
  color: #1c150a;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.65),
    inset 0 0 60px rgba(138, 100, 28, 0.25);
}

body[data-arch="arch-fantasy"] .couture-invitation-sheet h2,
body[data-arch="arch-fantasy"] .couture-invitation-sheet p,
body[data-arch="arch-fantasy"] .couture-invitation-sheet .countdown-num,
body[data-arch="arch-fantasy"] .couture-invitation-sheet .invitation-hero-photo-caption {
  color: #162b1e !important;
}

body[data-arch="arch-fantasy"] .couture-lace-border {
  border-radius: 230px 230px 18px 18px;
  border: 1.5px dashed rgba(140, 98, 20, 0.78);
}

body[data-arch="arch-fantasy"] .invitation-hero-photo-frame {
  border-radius: 180px 180px 16px 16px;
  border: 3px solid #b88c28;
  background: #fdf5e2;
  padding: 12px 12px 20px;
  transform: none;
}

body[data-arch="arch-fantasy"] .invitation-hero-photo-frame .photo-crop-box {
  border-radius: 168px 168px 8px 8px;
}

body[data-arch="arch-fantasy"] .story-milestone-card {
  border-radius: 110px 110px 18px 18px;
  border: 2px solid #b88c28;
  background: linear-gradient(180deg, #fffaf0 0%, #f3e5c8 100%);
  text-align: center;
}

body[data-arch="arch-fantasy"] .polaroid-card {
  border-radius: 130px 130px 14px 14px !important;
  border: 2px solid #d4af37 !important;
  background: linear-gradient(180deg, #16291e 0%, #0d1a12 100%) !important;
  transform: none !important;
}

body[data-arch="arch-fantasy"] .polaroid-card .photo-crop-box,
body[data-arch="arch-fantasy"] .polaroid-card img {
  border-radius: 118px 118px 8px 8px;
}

body[data-arch="arch-fantasy"] .polaroid-tape {
  display: none !important;
}

body[data-arch="arch-fantasy"] .polaroid-caption {
  background: transparent !important;
  color: #f5df98 !important;
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.92rem;
  font-weight: 700;
}

body[data-arch="arch-fantasy"] .countdown-box {
  border-radius: 26px 26px 8px 8px;
  border: 1.5px solid #b88c28;
  background: rgba(255, 250, 235, 0.94);
}

/* Fantasy Quest Map Grid instead of standard vertical line */
body[data-arch="arch-fantasy"] .timeline-track,
body[data-arch="arch-fantasy"] .program-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
  max-width: 980px;
}

body[data-arch="arch-fantasy"] .timeline-track .timeline-line,
body[data-arch="arch-fantasy"] .program-timeline .timeline-line {
  display: none;
}

body[data-arch="arch-fantasy"] .timeline-item,
body[data-arch="arch-fantasy"] .timeline-item.timeline-left,
body[data-arch="arch-fantasy"] .timeline-item.timeline-right {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  margin-bottom: 0 !important;
}

body[data-arch="arch-fantasy"] .timeline-content-card {
  width: 100%;
  border-radius: 90px 90px 16px 16px;
  border: 1.5px solid #d4af37;
  background: rgba(12, 24, 17, 0.85);
  text-align: center !important;
  order: 2;
}

body[data-arch="arch-fantasy"] .timeline-node {
  order: 1;
  margin-bottom: -14px;
  z-index: 3;
  border: 2px solid #fff3b8;
}

/* --------------------------------------------------------------------------
   ARCHITECTURE 2: ROARING 1920s ART DECO GALA (data-arch="arch-artdeco")
   -------------------------------------------------------------------------- */
body[data-arch="arch-artdeco"] {
  --font-serif: 'Poiret One', 'Forum', serif;
  --font-display: 'Poiret One', 'Forum', serif;
  --font-script: 'Great Vibes', cursive;
}

body[data-arch="arch-artdeco"] .envelope-stage,
body[data-arch="arch-artdeco"] .hero-invitation-section {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(212, 175, 55, 0.05) 0px,
      rgba(212, 175, 55, 0.05) 2px,
      transparent 2px,
      transparent 18px
    ),
    radial-gradient(circle at 50% 20%, #24211c 0%, #12110e 65%, #090807 100%);
}

body[data-arch="arch-artdeco"] .envelope-couple-names,
body[data-arch="arch-artdeco"] .envelope-date-sub {
  color: #f7e39c !important;
}

body[data-arch="arch-artdeco"] .guest-personal-greeting {
  background: #14120f;
  color: #f7e39c !important;
  border: 1.5px solid #e5c158;
  border-radius: 0;
}

body[data-arch="arch-artdeco"] .couture-invitation-sheet {
  border-radius: 0;
  clip-path: polygon(28px 0, calc(100% - 28px) 0, 100% 28px, 100% calc(100% - 28px), calc(100% - 28px) 100%, 28px 100%, 0 calc(100% - 28px), 0 28px);
  border: 3px solid #e5c158;
  background: linear-gradient(180deg, #fffdf8 0%, #f5ebd6 100%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75);
}

body[data-arch="arch-artdeco"] .couture-lace-border {
  border-radius: 0;
  border: 2px double #b89028;
  inset: 14px;
}

body[data-arch="arch-artdeco"] .invitation-main-names {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-arch="arch-artdeco"] .story-milestone-card {
  border-radius: 0;
  border: 2px solid #c9a236;
  outline: 1px solid rgba(201, 162, 54, 0.4);
  outline-offset: -6px;
}

body[data-arch="arch-artdeco"] .invitation-hero-photo-frame,
body[data-arch="arch-artdeco"] .polaroid-card {
  border-radius: 0 !important;
  border: 2px solid #e5c158 !important;
  outline: 1px solid rgba(229, 193, 88, 0.45);
  outline-offset: -7px;
  transform: none !important;
  background: #141311 !important;
}

body[data-arch="arch-artdeco"] .invitation-hero-photo-caption,
body[data-arch="arch-artdeco"] .polaroid-caption {
  background: transparent !important;
  color: #f7e39c !important;
  font-family: 'Poiret One', serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.92rem;
  font-weight: 700;
}

body[data-arch="arch-artdeco"] .polaroid-tape {
  display: none !important;
}

body[data-arch="arch-artdeco"] .countdown-box {
  border-radius: 4px;
  transform: rotate(45deg);
  width: 82px;
  height: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid #b89028;
  background: #141311;
  margin: 10px auto;
}

body[data-arch="arch-artdeco"] .countdown-num {
  transform: rotate(-45deg);
  color: #f7e39c !important;
}

body[data-arch="arch-artdeco"] .countdown-label {
  transform: rotate(-45deg);
  color: #e5c158 !important;
}

body[data-arch="arch-artdeco"] .btn-luxury {
  border-radius: 0;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Art Deco 2-Column Symmetrical Gala Playbill Timeline */
body[data-arch="arch-artdeco"] .timeline-track,
body[data-arch="arch-artdeco"] .program-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 18px;
  max-width: 980px;
}

body[data-arch="arch-artdeco"] .timeline-track .timeline-line,
body[data-arch="arch-artdeco"] .program-timeline .timeline-line {
  display: none;
}

body[data-arch="arch-artdeco"] .timeline-item,
body[data-arch="arch-artdeco"] .timeline-item.timeline-left,
body[data-arch="arch-artdeco"] .timeline-item.timeline-right {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
  text-align: left !important;
  margin-bottom: 0 !important;
}

body[data-arch="arch-artdeco"] .timeline-node {
  border-radius: 4px;
  transform: rotate(45deg);
  flex-shrink: 0;
  order: 1 !important;
}

body[data-arch="arch-artdeco"] .timeline-content-card {
  order: 2 !important;
  border-radius: 0;
  border: 1.5px solid #e5c158;
  background: rgba(15, 14, 12, 0.9);
  text-align: left !important;
  width: 100%;
}

/* --------------------------------------------------------------------------
   ARCHITECTURE 3: WONDERLAND STORYBOOK & FAIRYTALE (data-arch="arch-wonderland")
   -------------------------------------------------------------------------- */
body[data-arch="arch-wonderland"] {
  --font-serif: 'Alice', 'Playfair Display', serif;
  --font-display: 'Alice', 'Playfair Display', serif;
  --font-script: 'Marck Script', cursive;
}

body[data-arch="arch-wonderland"] .envelope-stage,
body[data-arch="arch-wonderland"] .hero-invitation-section {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 214, 230, 0.55) 0%, transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(189, 224, 254, 0.45) 0%, transparent 50%),
    linear-gradient(180deg, #fff7fa 0%, #f9e6ef 100%);
}

body[data-arch="arch-wonderland"] .couture-invitation-sheet {
  border-radius: 68px 20px 68px 20px;
  border: 3px double var(--burgundy);
  box-shadow:
    12px 12px 0 rgba(123, 30, 58, 0.14),
    0 26px 65px rgba(74, 32, 64, 0.18);
}

body[data-arch="arch-wonderland"] .invitation-hero-photo-frame {
  border-radius: 50% / 38%;
  padding: 16px;
  border: 3px dashed var(--gold-dark);
  background: #ffffff;
}

body[data-arch="arch-wonderland"] .invitation-hero-photo-frame .photo-crop-box {
  border-radius: 50% / 38%;
}

body[data-arch="arch-wonderland"] .story-milestone-card {
  border-radius: 42px 12px 42px 12px;
  border: 2px dashed var(--burgundy);
}

body[data-arch="arch-wonderland"] .polaroid-card {
  border-radius: 46px 14px 46px 14px !important;
  border: 2px solid var(--gold) !important;
  background: #ffffff !important;
}

body[data-arch="arch-wonderland"] .polaroid-caption {
  background: transparent !important;
  color: var(--burgundy-deep) !important;
}

body[data-arch="arch-wonderland"] .countdown-box {
  border-radius: 50%;
  width: 90px;
  height: 90px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 2px dashed var(--burgundy);
  background: #fffdf9;
}

/* --------------------------------------------------------------------------
   ARCHITECTURE 4: COASTAL AEGEAN & PEARL MINIMAL (data-arch="arch-coastal")
   -------------------------------------------------------------------------- */
body[data-arch="arch-coastal"] {
  --font-serif: 'Bodoni Moda', 'Cormorant Garamond', serif;
  --font-display: 'Bodoni Moda', 'Cormorant Garamond', serif;
}

body[data-arch="arch-coastal"] .envelope-stage,
body[data-arch="arch-coastal"] .hero-invitation-section {
  background:
    radial-gradient(circle at 50% 10%, #ffffff 0%, #e6f4fb 58%, #cbe7f5 100%);
}

body[data-arch="arch-coastal"] .couture-invitation-sheet {
  border-radius: 48px;
  border: 1.5px solid rgba(44, 110, 145, 0.35);
  box-shadow: 0 28px 70px rgba(14, 74, 102, 0.14);
}

body[data-arch="arch-coastal"] .invitation-hero-photo-frame {
  border-radius: 160px 160px 32px 32px;
  padding: 12px;
  background: #ffffff;
  transform: none;
}

body[data-arch="arch-coastal"] .invitation-hero-photo-frame .photo-crop-box {
  border-radius: 150px 150px 24px 24px;
}

body[data-arch="arch-coastal"] .polaroid-tape {
  display: none !important;
}

body[data-arch="arch-coastal"] .polaroid-card {
  border-radius: 28px !important;
  transform: none !important;
  background: #ffffff !important;
  border: 1px solid rgba(44, 110, 145, 0.25) !important;
}

body[data-arch="arch-coastal"] .polaroid-card .photo-crop-box,
body[data-arch="arch-coastal"] .polaroid-card img {
  border-radius: 20px;
}

body[data-arch="arch-coastal"] .polaroid-caption {
  background: transparent !important;
  color: var(--burgundy-deep) !important;
}

/* --------------------------------------------------------------------------
   ARCHITECTURE 5: ENCHANTED BOTANICAL / RUSTIC WOODLAND (data-arch="arch-rustic")
   -------------------------------------------------------------------------- */
body[data-arch="arch-rustic"] {
  --font-serif: 'Playfair Display', 'Cormorant Garamond', serif;
  --font-display: 'Playfair Display', 'Cormorant Garamond', serif;
}

body[data-arch="arch-rustic"] .envelope-stage,
body[data-arch="arch-rustic"] .hero-invitation-section {
  background:
    radial-gradient(circle at 50% 15%, #faf8f2 0%, #e7efe6 65%, #d6e3d5 100%);
}

body[data-arch="arch-rustic"] .couture-invitation-sheet {
  border-radius: 24px 64px 24px 64px;
  border: 2px solid var(--gold);
}

body[data-arch="arch-rustic"] .invitation-hero-photo-frame {
  border-radius: 24px;
  border: 2px dashed var(--gold-dark);
  background: #ffffff;
}

body[data-arch="arch-rustic"] .polaroid-caption {
  background: transparent !important;
  color: var(--burgundy-deep) !important;
}

/* ==========================================================================
   PER-TEMPLATE FLOATING AMBIENT WEDDING PARTICLES & UNIVERSAL CONTRAST GUARD
   ========================================================================== */
.theme-ambient-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 950;
  overflow: hidden;
}

.theme-particle {
  position: absolute;
  top: -40px;
  font-size: 1.15rem;
  opacity: 0.72;
  user-select: none;
  pointer-events: none;
  animation: floatWeddingParticle linear infinite;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}

@keyframes floatWeddingParticle {
  0% {
    transform: translate3d(0, -40px, 0) rotate(0deg) scale(0.85);
    opacity: 0;
  }
  12% {
    opacity: 0.75;
  }
  50% {
    transform: translate3d(26px, 50vh, 0) rotate(180deg) scale(1.05);
  }
  88% {
    opacity: 0.72;
  }
  100% {
    transform: translate3d(-18px, 106vh, 0) rotate(360deg) scale(0.9);
    opacity: 0;
  }
}

/* Universal Contrast Guard across all 16 templates */
body[data-template] .btn-luxury:not(.btn-luxury-outline) {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

body[data-template] .btn-luxury.btn-luxury-outline {
  background: #fffdf9 !important;
  color: var(--burgundy-deep) !important;
  text-shadow: none !important;
  font-weight: 700;
}

body[data-template] .pill-btn {
  background: rgba(255, 253, 249, 0.95);
  color: var(--burgundy-deep);
}

body[data-template] .pill-btn:hover,
body[data-template] .pill-btn.active {
  background: var(--burgundy-deep) !important;
  color: #ffffff !important;
}
