/* ==========================================================================
   HETALI WEDS VATSAL — PREMIUM INDIAN WEDDING INVITATION
   Palette: Deep Maroon, Royal Burgundy, Gold, Ivory, Cream & Beige
   ========================================================================== */

:root {
  /* Core Palette */
  --maroon-deepest: #2d060c;
  --maroon-deep: #4a0e17;
  --maroon-royal: #631322;
  --burgundy: #78192b;
  --ivory: #faf5ec;
  --cream: #f4ead8;
  --beige: #eadbc2;
  --ivory-card: rgba(255, 252, 245, 0.88);

  --gold: #d4af37;
  --gold-light: #f0d788;
  --gold-pale: #f8ecc4;
  --gold-dark: #9c761c;
  --gold-muted: rgba(212, 175, 55, 0.35);

  --ink-maroon: #3b0d15;
  --ink-body: #4f252c;
  --ink-ivory: #fbf4e6;

  /* Typography */
  --font-display: 'Cinzel', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;

  /* Transitions */
  --ease-royal: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-curtain: cubic-bezier(0.76, 0, 0.24, 1);
}

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

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background-color: var(--maroon-deepest);
  color: var(--ink-maroon);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* ==========================================================================
   MAIN STAGE & SCREEN LAYERS
   ========================================================================== */

.invitation-stage {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--ivory);
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(64px, 9vh, 92px) clamp(18px, 4vw, 48px) clamp(104px, 14vh, 130px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px) scale(0.99);
  transition:
    opacity 0.72s var(--ease-royal),
    transform 0.72s var(--ease-royal),
    visibility 0.72s;
  overflow: hidden;
}

.screen.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  z-index: 2;
}

.screen.is-exiting {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px) scale(0.99);
  z-index: 1;
}

.screen-inner {
  position: relative;
  z-index: 3;
  width: min(860px, 100%);
  max-height: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Staggered Entrance Animations when Curtain Opens & Screen Activates */
.anim-stagger {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.75s var(--ease-royal) var(--d, 0s),
    transform 0.75s var(--ease-royal) var(--d, 0s);
}

.invitation-stage.is-opened .screen.is-active .anim-stagger {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   DECORATIVE FRAMES & TEXTURE LAYERS
   ========================================================================== */

.ivory-ambient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 253, 248, 0.95) 0%, rgba(244, 234, 216, 0.92) 60%, rgba(234, 219, 194, 0.98) 100%);
  pointer-events: none;
}

.ivory-ambient::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(182, 142, 40, 0.28);
  pointer-events: none;
}

.frame-ornaments {
  position: absolute;
  inset: 18px;
  pointer-events: none;
  z-index: 2;
}

.corner-filigree {
  position: absolute;
  width: clamp(54px, 10vw, 108px);
  height: clamp(54px, 10vw, 108px);
  opacity: 0.78;
}

.corner-tl { top: 0; left: 0; }
.corner-tr { top: 0; right: 0; transform: scaleX(-1); }
.corner-bl { bottom: 0; left: 0; transform: scaleY(-1); }
.corner-br { bottom: 0; right: 0; transform: scale(-1, -1); }

.sacred-crest {
  margin-bottom: clamp(6px, 1.2vh, 14px);
}

.lotus-motif {
  width: clamp(135px, 22vw, 180px);
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ==========================================================================
   TYPOGRAPHY & DIVIDERS
   ========================================================================== */

.eyebrow {
  margin: 0 0 clamp(6px, 1vh, 10px);
  font-family: var(--font-display);
  font-size: clamp(0.68rem, 1.4vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.eyebrow-gold {
  color: var(--gold-light);
}

.screen-heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.04em;
  font-size: clamp(1.55rem, 4.1vw, 2.85rem);
}

.heading-maroon {
  color: var(--maroon-deep);
}

.heading-gold {
  background: linear-gradient(180deg, var(--gold-pale) 0%, var(--gold) 65%, #b68a22 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}

.gold-hairline {
  position: relative;
  width: min(240px, 56%);
  height: 1px;
  margin: clamp(14px, 2.2vh, 22px) auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.gold-hairline .diamond {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.55);
}

.hairline-subtle {
  opacity: 0.72;
}

/* ==========================================================================
   SCREEN 1: GRAND OPENING VELVET CURTAINS
   ========================================================================== */

.curtain-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
}

.curtain-overlay.is-gone {
  pointer-events: none;
  visibility: hidden;
  display: none;
}

/* Top Royal Velvet Pelmet / Valance */
.curtain-pelmet {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(22px, 3.6vh, 36px);
  z-index: 4;
  background:
    linear-gradient(180deg, #2a0409 0%, #58101c 65%, #3a0810 100%);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  transition: transform 1.2s var(--ease-curtain), opacity 1.1s ease;
}

.curtain-overlay.is-opening .curtain-pelmet {
  transform: translateY(-110%);
  opacity: 0;
}

.curtain-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  z-index: 2;
  background-color: #460b14;
  /* Rich velvet folds */
  background-image:
    radial-gradient(circle at 50% 45%, rgba(135, 25, 45, 0.42), transparent 65%),
    repeating-linear-gradient(
      90deg,
      rgba(20, 2, 5, 0.75) 0px,
      rgba(104, 18, 34, 0.45) 26px,
      rgba(136, 28, 48, 0.25) 48px,
      rgba(45, 6, 13, 0.8) 76px,
      rgba(95, 16, 30, 0.4) 106px
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 18%, transparent 80%, rgba(0, 0, 0, 0.55) 100%);
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.55);
  will-change: transform;
  transition: transform 1.75s var(--ease-curtain), filter 1.6s ease;
}

.curtain-left {
  left: 0;
  transform-origin: left center;
}

.curtain-right {
  right: 0;
  transform-origin: right center;
}

.velvet-folds {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 224, 150, 0.05) 0%,
    transparent 30%,
    rgba(0, 0, 0, 0.22) 100%
  );
  pointer-events: none;
}

/* Gold Traditional Embroidery Trim Along Curtain Seam */
.curtain-gold-border {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(14px, 2vw, 24px);
  pointer-events: none;
}

.curtain-left .curtain-gold-border {
  right: 0;
  border-right: 2px solid var(--gold);
  background:
    repeating-linear-gradient(
      180deg,
      rgba(212, 175, 55, 0.34) 0px,
      rgba(212, 175, 55, 0.08) 12px,
      rgba(245, 225, 164, 0.42) 18px,
      rgba(212, 175, 55, 0.08) 24px
    );
  box-shadow: -3px 0 14px rgba(0, 0, 0, 0.45);
}

.curtain-right .curtain-gold-border {
  left: 0;
  border-left: 2px solid var(--gold);
  background:
    repeating-linear-gradient(
      180deg,
      rgba(212, 175, 55, 0.34) 0px,
      rgba(212, 175, 55, 0.08) 12px,
      rgba(245, 225, 164, 0.42) 18px,
      rgba(212, 175, 55, 0.08) 24px
    );
  box-shadow: 3px 0 14px rgba(0, 0, 0, 0.45);
}

/* Curtain Open State */
.curtain-overlay.is-opening .curtain-left {
  transform: translateX(-103%) skewY(-1.2deg);
}

.curtain-overlay.is-opening .curtain-right {
  transform: translateX(103%) skewY(1.2deg);
}

/* Exact Centre White HV Logo Button */
.curtain-logo-trigger {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  outline: none;
  transition: opacity 0.65s ease, transform 0.65s var(--ease-royal);
}

.curtain-logo-trigger:focus-visible .curtain-hv-img {
  outline: 2px solid var(--gold-light);
  outline-offset: 8px;
  border-radius: 50%;
}

.curtain-aura {
  position: absolute;
  top: 44%;
  left: 50%;
  width: clamp(210px, 34vw, 320px);
  height: clamp(210px, 34vw, 320px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(66, 11, 20, 0.94) 0%,
    rgba(74, 14, 23, 0.85) 36%,
    rgba(240, 215, 136, 0.24) 56%,
    rgba(212, 175, 55, 0.08) 68%,
    transparent 80%
  );
  animation: auraPulse 3.4s ease-in-out infinite;
  pointer-events: none;
}

.hv-logo-img {
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.curtain-hv-img {
  position: relative;
  width: clamp(148px, 26vw, 224px);
  height: auto;
  filter:
    drop-shadow(0 0 14px rgba(240, 215, 136, 0.55))
    drop-shadow(0 0 34px rgba(212, 175, 55, 0.35));
  transition: transform 0.45s var(--ease-royal), filter 0.45s ease;
}

.curtain-logo-trigger:hover .curtain-hv-img {
  transform: scale(1.05);
  filter:
    drop-shadow(0 0 20px rgba(248, 236, 196, 0.78))
    drop-shadow(0 0 46px rgba(212, 175, 55, 0.52));
}

.curtain-hint {
  font-family: var(--font-display);
  font-size: clamp(0.68rem, 1.5vw, 0.84rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-pale);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  opacity: 0.88;
  animation: hintFloat 2.8s ease-in-out infinite;
}

.curtain-overlay.is-opening .curtain-logo-trigger {
  opacity: 0;
  transform: scale(1.12);
  pointer-events: none;
}

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

@keyframes hintFloat {
  0%, 100% { opacity: 0.68; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

/* ==========================================================================
   SCREEN 2: WELCOME MESSAGE
   ========================================================================== */

.welcome-inner {
  max-width: 720px;
}

.welcome-copy {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.08rem, 2.25vw, 1.48rem);
  font-weight: 500;
  line-height: 1.72;
  color: var(--ink-body);
  max-width: 650px;
}

.date-ribbon {
  margin-top: clamp(18px, 3vh, 30px);
  display: inline-flex;
  align-items: center;
  padding: 8px 24px;
  border-top: 1px solid rgba(182, 142, 40, 0.55);
  border-bottom: 1px solid rgba(182, 142, 40, 0.55);
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 1.5vw, 0.92rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--maroon-royal);
}

/* ==========================================================================
   SCREEN 3: SANGEET NIGHT
   ========================================================================== */

.screen-sangeet {
  background:
    radial-gradient(ellipse at 50% 18%, #7a182b 0%, #4b0d18 52%, #29050b 100%);
  color: var(--ink-ivory);
}

.sangeet-lighting {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.chandelier-glow {
  position: absolute;
  top: -18%;
  left: 50%;
  width: min(820px, 120vw);
  height: 62%;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(240, 215, 136, 0.22) 0%,
    rgba(212, 175, 55, 0.08) 45%,
    transparent 74%
  );
  animation: glowBreathe 6s ease-in-out infinite;
}

.bokeh-layer {
  position: absolute;
  inset: 0;
}

.bokeh {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 236, 196, 0.72), rgba(212, 175, 55, 0.12) 60%, transparent 75%);
  animation: twinkle 5s ease-in-out infinite;
}

.b1 { width: 12px; height: 12px; top: 18%; left: 16%; animation-delay: 0s; }
.b2 { width: 18px; height: 18px; top: 24%; right: 18%; animation-delay: 1.1s; }
.b3 { width: 9px;  height: 9px;  top: 42%; left: 10%; animation-delay: 2.2s; }
.b4 { width: 14px; height: 14px; top: 68%; right: 12%; animation-delay: 0.7s; }
.b5 { width: 10px; height: 10px; top: 74%; left: 22%; animation-delay: 1.8s; }
.b6 { width: 16px; height: 16px; top: 14%; left: 48%; animation-delay: 2.6s; }
.b7 { width: 8px;  height: 8px;  top: 52%; right: 20%; animation-delay: 3.1s; }
.b8 { width: 11px; height: 11px; top: 34%; left: 82%; animation-delay: 1.5s; }

@keyframes glowBreathe {
  0%, 100% { opacity: 0.75; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.06); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: translateY(0) scale(0.9); }
  50% { opacity: 0.82; transform: translateY(-8px) scale(1.18); }
}

.music-crest {
  color: var(--gold-light);
  margin-bottom: clamp(4px, 1vh, 10px);
}

.sangeet-motif {
  width: clamp(170px, 28vw, 224px);
  height: auto;
  display: block;
}

.sangeet-card {
  margin-top: clamp(16px, 2.8vh, 28px);
  width: min(600px, 100%);
  padding: clamp(20px, 3.4vh, 34px) clamp(18px, 3.6vw, 38px);
  border: 1px solid rgba(240, 215, 136, 0.38);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(96, 18, 33, 0.76), rgba(45, 6, 12, 0.82));
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.42),
    inset 0 0 28px rgba(212, 175, 55, 0.08);
  backdrop-filter: blur(6px);
}

.detail-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 28px);
  flex-wrap: wrap;
}

.detail-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.detail-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.85;
}

.detail-value {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.3vw, 1.5rem);
  font-weight: 600;
  color: var(--ivory);
}

.detail-sep {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
}

.sangeet-desc {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.12rem, 2.25vw, 1.46rem);
  line-height: 1.55;
  color: var(--gold-pale);
}

/* ==========================================================================
   SCREEN 4: WEDDING CEREMONIES
   ========================================================================== */

.jharokha-arch {
  position: absolute;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  pointer-events: none;
  z-index: 1;
}

.ceremony-date-badge {
  margin-top: clamp(10px, 1.6vh, 16px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 20px;
  border-radius: 999px;
  border: 1px solid rgba(182, 142, 40, 0.55);
  background: rgba(255, 252, 245, 0.75);
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 1.6vw, 0.96rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--maroon-deep);
}

.badge-flourish {
  color: var(--gold-dark);
  font-size: 0.85em;
}

.ceremony-grid {
  margin-top: clamp(16px, 3vh, 30px);
  width: min(740px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.5vw, 26px);
}

.ceremony-card {
  position: relative;
  padding: clamp(18px, 3vh, 30px) clamp(16px, 2.5vw, 26px);
  border-radius: 14px;
  border: 1px solid rgba(182, 142, 40, 0.45);
  background: var(--ivory-card);
  box-shadow:
    0 14px 34px rgba(74, 14, 23, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ceremony-card-featured {
  border-color: rgba(156, 118, 28, 0.72);
  background: linear-gradient(180deg, rgba(255, 252, 244, 0.96), rgba(244, 231, 204, 0.86));
}

.ceremony-icon {
  width: clamp(36px, 5vw, 44px);
  height: clamp(36px, 5vw, 44px);
  color: var(--gold-dark);
  margin-bottom: 10px;
}

.ceremony-icon svg {
  width: 100%;
  height: 100%;
}

.ceremony-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.1vw, 1.32rem);
  font-weight: 600;
  color: var(--maroon-deep);
  line-height: 1.3;
}

.ceremony-divider {
  width: 56px;
  height: 1px;
  margin: 12px 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.ceremony-time {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-serif);
  color: var(--ink-body);
}

.time-tag {
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.ceremony-time strong {
  font-size: clamp(1.12rem, 2.1vw, 1.36rem);
  font-weight: 700;
  color: var(--maroon-royal);
}

/* ==========================================================================
   SCREEN 5: WEDDING VENUE
   ========================================================================== */

.venue-card {
  margin-top: clamp(16px, 2.6vh, 26px);
  width: min(520px, 100%);
  padding: clamp(22px, 3.4vh, 36px) clamp(20px, 4vw, 38px);
  border-radius: 16px;
  border: 1.5px solid rgba(182, 142, 40, 0.56);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(244, 232, 208, 0.88));
  box-shadow:
    0 20px 42px rgba(74, 14, 23, 0.1),
    inset 0 0 24px rgba(212, 175, 55, 0.09);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.venue-pin {
  width: 44px;
  height: 44px;
  color: var(--gold-dark);
  margin-bottom: 8px;
}

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

.venue-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
  font-weight: 600;
  color: var(--maroon-deep);
  letter-spacing: 0.05em;
}

.venue-address {
  margin: 10px 0 clamp(18px, 2.6vh, 24px);
  font-style: normal;
  font-family: var(--font-serif);
  font-size: clamp(1.08rem, 2.1vw, 1.34rem);
  line-height: 1.55;
  color: var(--ink-body);
}

.directions-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, var(--maroon-royal), var(--maroon-deep));
  color: var(--gold-pale);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(74, 14, 23, 0.25);
  transition: transform 0.25s var(--ease-royal), box-shadow 0.25s ease, background 0.25s ease;
}

.directions-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(74, 14, 23, 0.34);
  background: linear-gradient(135deg, var(--burgundy), var(--maroon-royal));
}

.directions-btn:active {
  transform: translateY(0);
}

.btn-icon {
  width: 17px;
  height: 17px;
  color: var(--gold-light);
}

.venue-signoff {
  margin-top: clamp(16px, 2.8vh, 26px);
}

.signoff-prefix {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.02rem, 1.9vw, 1.24rem);
  color: var(--gold-dark);
}

.signoff-names {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--maroon-deep);
}

/* ==========================================================================
   SCREEN 6: THANK YOU
   ========================================================================== */

.screen-thankyou {
  background: radial-gradient(circle at 50% 42%, #6d1525 0%, #440b15 62%, #29050b 100%);
}

.petals-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.petal {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 60% 40% 60% 40%;
  background: rgba(240, 215, 136, 0.45);
  animation: petalDrift 8s ease-in-out infinite;
}

.p1 { left: 12%; top: 20%; animation-delay: 0s; }
.p2 { left: 26%; top: 75%; animation-delay: 1.4s; width: 8px; height: 8px; }
.p3 { right: 16%; top: 22%; animation-delay: 2.3s; }
.p4 { right: 24%; top: 70%; animation-delay: 0.8s; width: 12px; height: 12px; }
.p5 { left: 52%; top: 14%; animation-delay: 3.1s; width: 7px; height: 7px; }
.p6 { right: 44%; top: 82%; animation-delay: 1.9s; }

@keyframes petalDrift {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.32; }
  50% { transform: translateY(-14px) rotate(45deg); opacity: 0.78; }
}

.thankyou-sanctuary {
  width: min(640px, 100%);
  padding: clamp(24px, 4vh, 42px) clamp(20px, 4.2vw, 44px);
  border-radius: 18px;
  border: 1.5px solid var(--gold);
  background: linear-gradient(180deg, rgba(250, 245, 236, 0.97), rgba(242, 229, 206, 0.95));
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.48),
    0 0 0 6px rgba(212, 175, 55, 0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.thankyou-message {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.06rem, 2.2vw, 1.42rem);
  font-weight: 500;
  line-height: 1.7;
  color: var(--ink-body);
}

.thankyou-couple {
  margin-top: clamp(18px, 3vh, 28px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.couple-flourish {
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}

.couple-names {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 2.5vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--maroon-deep);
}

/* ==========================================================================
   PERSISTENT TOP CHROME (PROGRESS DOTS + MUSIC TOGGLE)
   ========================================================================== */

.top-chrome {
  position: fixed;
  top: clamp(14px, 2.2vh, 24px);
  left: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.6s ease 0.4s, transform 0.6s var(--ease-royal) 0.4s;
}

.invitation-stage.is-opened .top-chrome {
  opacity: 1;
  transform: translateY(0);
}

.progress-indicator {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(59, 13, 21, 0.56);
  border: 1px solid rgba(212, 175, 55, 0.35);
  backdrop-filter: blur(8px);
}

.progress-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(248, 236, 196, 0.38);
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.progress-dot.is-active {
  background: var(--gold-light);
  transform: scale(1.32);
  box-shadow: 0 0 8px rgba(240, 215, 136, 0.65);
}

/* Music ON/OFF Button */
.music-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: rgba(59, 13, 21, 0.78);
  color: var(--gold-pale);
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.music-btn:hover {
  background: rgba(74, 14, 23, 0.92);
  border-color: var(--gold-light);
  transform: translateY(-1px);
}

.music-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 13px;
}

.music-bars span {
  width: 2.5px;
  height: 4px;
  border-radius: 2px;
  background: var(--gold-light);
  animation: eqBar 1s ease-in-out infinite;
}

.music-bars span:nth-child(1) { animation-delay: 0s; }
.music-bars span:nth-child(2) { animation-delay: 0.2s; }
.music-bars span:nth-child(3) { animation-delay: 0.4s; }
.music-bars span:nth-child(4) { animation-delay: 0.15s; }

.music-btn.is-muted .music-bars span {
  animation: none;
  height: 3px;
  opacity: 0.45;
}

@keyframes eqBar {
  0%, 100% { height: 4px; }
  50% { height: 13px; }
}

/* ==========================================================================
   PERSISTENT BOTTOM NAVIGATION (BACK & HV LOGO NEXT)
   ========================================================================== */

.bottom-nav {
  position: fixed;
  bottom: clamp(14px, 2.4vh, 26px);
  left: clamp(16px, 3vw, 34px);
  right: clamp(16px, 3vw, 34px);
  z-index: 20;
  height: 76px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease 0.45s, transform 0.6s var(--ease-royal) 0.45s;
}

.invitation-stage.is-opened .bottom-nav {
  opacity: 1;
  transform: translateY(0);
}

/* Bottom-left Back Button */
.nav-back-btn {
  pointer-events: auto;
  position: absolute;
  left: 0;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: rgba(59, 13, 21, 0.82);
  color: var(--gold-pale);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
  transition: opacity 0.3s ease, transform 0.25s var(--ease-royal), background 0.25s ease;
}

.nav-back-btn svg {
  width: 16px;
  height: 16px;
}

.nav-back-btn:hover {
  background: var(--maroon-royal);
  transform: translateX(-2px);
}

.nav-back-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
}

/* Bottom-centre HV Logo Next Button */
.nav-next-logo-btn {
  pointer-events: auto;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: opacity 0.35s ease, transform 0.3s var(--ease-royal);
}

.next-ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--maroon-royal) 0%, var(--maroon-deep) 100%);
  border: 1.5px solid var(--gold);
  box-shadow:
    0 8px 22px rgba(45, 6, 12, 0.38),
    0 0 16px rgba(212, 175, 55, 0.35);
  transition: transform 0.3s var(--ease-royal), box-shadow 0.3s ease;
}

.nav-hv-img {
  position: relative;
  z-index: 1;
  width: 34px;
  height: auto;
  filter: drop-shadow(0 0 6px rgba(248, 236, 196, 0.35));
  transition: transform 0.3s var(--ease-royal);
}

.next-caption {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  transition: color 0.3s ease;
}

/* Light caption on dark screens */
.invitation-stage[data-active-theme="dark"] .next-caption {
  color: var(--gold-pale);
}

.nav-next-logo-btn:hover .next-ring {
  transform: scale(1.07);
  box-shadow:
    0 12px 26px rgba(45, 6, 12, 0.45),
    0 0 22px rgba(240, 215, 136, 0.55);
}

.nav-next-logo-btn:hover .nav-hv-img {
  transform: scale(1.05);
}

.nav-next-logo-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS (TABLET & MOBILE)
   ========================================================================== */

@media (max-width: 720px) {
  .frame-ornaments {
    inset: 10px;
  }

  .ivory-ambient::after {
    inset: 8px;
  }

  .jharokha-arch {
    inset: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
  }

  .ceremony-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ceremony-card {
    padding: 14px 16px;
  }

  .ceremony-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 6px;
  }

  .ceremony-divider {
    margin: 8px 0;
  }

  .detail-sep {
    display: none;
  }

  .detail-row {
    gap: 16px;
  }

  .nav-back-btn {
    padding: 8px 13px 8px 10px;
    font-size: 0.68rem;
  }

  .next-ring {
    width: 52px;
    height: 52px;
  }

  .nav-hv-img {
    width: 30px;
    height: auto;
  }
}

@media (max-height: 640px) {
  .screen {
    padding: 58px 16px 88px;
  }

  .screen-heading {
    font-size: clamp(1.32rem, 3.6vw, 2rem);
  }

  .welcome-copy,
  .thankyou-message {
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
    line-height: 1.5;
  }

  .gold-hairline {
    margin: 10px auto;
  }

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

  .venue-address {
    margin: 6px 0 12px;
  }

  .bottom-nav {
    bottom: 10px;
    height: 66px;
  }
}

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