@font-face{font-family:'Digits TNR';font-style:normal;font-weight:100 599;src:local('Times New Roman'), local('TimesNewRomanPSMT'), url(shima-nikhil-wedding/assets/fonts/tinos-latin-400-normal.woff2) format('woff2');unicode-range:U+0030-0039}
@font-face{font-family:'Digits TNR';font-style:normal;font-weight:600 900;src:local('Times New Roman Bold'), local('TimesNewRomanPS-BoldMT'), url(shima-nikhil-wedding/assets/fonts/tinos-latin-700-normal.woff2) format('woff2');unicode-range:U+0030-0039}
@font-face{font-family:'Digits TNR';font-style:italic;font-weight:100 599;src:local('Times New Roman Italic'), local('TimesNewRomanPS-ItalicMT'), url(shima-nikhil-wedding/assets/fonts/tinos-latin-400-italic.woff2) format('woff2');unicode-range:U+0030-0039}
@font-face{font-family:'Pinyon Script';font-style:normal;font-weight:400;font-display:swap;src:url(shima-nikhil-wedding/assets/fonts/pinyon-script-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:400;font-display:swap;src:url(shima-nikhil-wedding/assets/fonts/cormorant-garamond-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:500;font-display:swap;src:url(shima-nikhil-wedding/assets/fonts/cormorant-garamond-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:600;font-display:swap;src:url(shima-nikhil-wedding/assets/fonts/cormorant-garamond-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:700;font-display:swap;src:url(shima-nikhil-wedding/assets/fonts/cormorant-garamond-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:400;font-display:swap;src:url(shima-nikhil-wedding/assets/fonts/cormorant-garamond-latin-400-italic.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:600;font-display:swap;src:url(shima-nikhil-wedding/assets/fonts/cormorant-garamond-latin-600-italic.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Jost';font-style:normal;font-weight:300;font-display:swap;src:url(shima-nikhil-wedding/assets/fonts/jost-latin-300-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Jost';font-style:normal;font-weight:400;font-display:swap;src:url(shima-nikhil-wedding/assets/fonts/jost-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Jost';font-style:normal;font-weight:500;font-display:swap;src:url(shima-nikhil-wedding/assets/fonts/jost-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Jost';font-style:normal;font-weight:600;font-display:swap;src:url(shima-nikhil-wedding/assets/fonts/jost-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Anek Malayalam';font-style:normal;font-weight:400;font-display:swap;src:url(shima-nikhil-wedding/assets/fonts/anek-malayalam-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Anek Malayalam';font-style:normal;font-weight:400;font-display:swap;src:url(shima-nikhil-wedding/assets/fonts/anek-malayalam-malayalam-400-normal.woff2) format('woff2');unicode-range:U+0307,U+0323,U+0964-0965,U+0D00-0D7F,U+200C-200D,U+20B9,U+25CC}
@font-face{font-family:'Anek Malayalam';font-style:normal;font-weight:600;font-display:swap;src:url(shima-nikhil-wedding/assets/fonts/anek-malayalam-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Anek Malayalam';font-style:normal;font-weight:600;font-display:swap;src:url(shima-nikhil-wedding/assets/fonts/anek-malayalam-malayalam-600-normal.woff2) format('woff2');unicode-range:U+0307,U+0323,U+0964-0965,U+0D00-0D7F,U+200C-200D,U+20B9,U+25CC}
@font-face{font-family:'Anek Malayalam';font-style:normal;font-weight:700;font-display:swap;src:url(shima-nikhil-wedding/assets/fonts/anek-malayalam-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Anek Malayalam';font-style:normal;font-weight:700;font-display:swap;src:url(shima-nikhil-wedding/assets/fonts/anek-malayalam-malayalam-700-normal.woff2) format('woff2');unicode-range:U+0307,U+0323,U+0964-0965,U+0D00-0D7F,U+200C-200D,U+20B9,U+25CC}
/* ==========================================================================
   SHIMA & NIKHIL WEDDING INVITATION - STYLESHEET
   Kerala Hindu Wedding Storytelling & Invitation Experience
   ========================================================================== */

/* --- CSS Variables & Color Palette --- */
:root {
  --cream: #F7F1E6;
  --cream-light: #FAF6EF;
  --cream-warm: #EFE6D5;
  --blush: #F4B8BE;
  --blush-soft: #F9D5D3;
  --blush-deep: #EE9EAA;
  --lotus-pink: #E86A92;
  --lotus-deep: #C74571;
  --gold: #B8893A;
  --gold-light: #DFB86C;
  --gold-dark: #8C6524;
  --brass: #C99A3C;
  --leaf-green: #6E8B4E;
  --leaf-green-dark: #4A6332;
  --saree-green: #1F5B3F;
  --maroon: #6B2A2E;
  --maroon-dark: #471B1E;
  --ink: #4A3B32;
  --ink-light: #6A584E;
  --white: #FFFFFF;
  --card-bg: rgba(255, 255, 255, 0.94);
  --shadow-warm: 0 16px 40px -10px rgba(107, 42, 46, 0.12), 0 6px 16px -4px rgba(184, 137, 58, 0.15);
  --shadow-card: 0 20px 50px -12px rgba(74, 59, 50, 0.14), 0 4px 12px rgba(0, 0, 0, 0.04);
  
  --font-script: 'Digits TNR', 'Pinyon Script', cursive;
  --font-serif: 'Digits TNR', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Digits TNR', 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-malayalam: 'Digits TNR', 'Anek Malayalam', 'Noto Serif Malayalam', serif;
  
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: auto; /* Handled smoothly by Lenis */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(244, 184, 190, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(249, 213, 211, 0.18) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
}

body.is-loading {
  overflow: hidden;
}

/* Lenis Recommended CSS */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* Typography Utility Classes */
.script-font {
  font-family: var(--font-script);
  letter-spacing: 0.02em;
}

.serif-font {
  font-family: var(--font-serif);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* Paper Texture Panel Utility */
.paper-texture {
  background: var(--card-bg);
  border: 1px solid rgba(184, 137, 58, 0.35);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
}

/* Section Kicker & Title */
.scene-kicker {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-weight: 500;
  text-align: center;
}

.scene-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  color: var(--maroon);
  line-height: 1.15;
  text-align: center;
}

/* Ornate Lotus Divider */
.ornate-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.25rem auto;
  max-width: 320px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider-lotus-icon {
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(184, 137, 58, 0.3));
}

/* ==========================================================================
   CANVAS PARTICLES & AMBIENT AUDIO WIDGET
   ========================================================================== */
.particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99;
}

/* Floating Audio Toggle */
.audio-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
}

.audio-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.1rem;
  background: rgba(247, 241, 230, 0.88);
  border: 1.5px solid var(--gold);
  border-radius: 40px;
  color: var(--maroon);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(107, 42, 46, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s var(--ease-out);
}

.audio-btn:hover {
  transform: translateY(-2px);
  background: var(--cream);
  box-shadow: 0 12px 28px rgba(107, 42, 46, 0.25);
  border-color: var(--brass);
}

.audio-btn:focus-visible {
  outline: 2px solid var(--maroon);
  outline-offset: 3px;
}

.sound-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 16px;
  width: 16px;
}

.sound-bars .bar {
  width: 2.5px;
  background-color: var(--gold);
  border-radius: 2px;
  height: 4px;
  transition: height 0.2s ease;
}

.audio-btn.is-playing .sound-bars .bar-1 {
  animation: soundBarPulse 0.9s infinite ease-in-out alternate;
}
.audio-btn.is-playing .sound-bars .bar-2 {
  animation: soundBarPulse 1.1s infinite 0.2s ease-in-out alternate;
}
.audio-btn.is-playing .sound-bars .bar-3 {
  animation: soundBarPulse 0.8s infinite 0.4s ease-in-out alternate;
}
.audio-btn.is-playing .sound-bars .bar-4 {
  animation: soundBarPulse 1s infinite 0.1s ease-in-out alternate;
}

@keyframes soundBarPulse {
  0% { height: 3px; }
  100% { height: 16px; }
}

.audio-lamp-icon {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

/* ==========================================================================
   SCENE 1: PRELOADER (GOLD LOTUS STROKE DRAWING)
   ========================================================================== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #F8F3EA;
}

.preloader-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
  max-width: 420px;
}

.preloader-symbol-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
}

.preloader-lotus {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 4px 12px rgba(184, 137, 58, 0.25));
}

.lotus-draw-path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawLotusStroke 2.2s var(--ease-smooth) forwards;
}

.path-stem { animation-delay: 0.1s; }
.path-leaf-l { animation-delay: 0.3s; }
.path-leaf-r { animation-delay: 0.4s; }
.path-petal-c { animation-delay: 0.6s; }
.path-petal-l1 { animation-delay: 0.8s; }
.path-petal-r1 { animation-delay: 0.9s; }

@keyframes drawLotusStroke {
  to {
    stroke-dashoffset: 0;
  }
}

.preloader-title {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 7vw, 3.8rem);
  color: var(--maroon);
  font-weight: 400;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(15px);
  animation: preloaderFadeUp 1.2s 1s var(--ease-out) forwards;
}

.preloader-subtitle {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  animation: preloaderFadeUp 1.2s 1.2s var(--ease-out) forwards;
}

.preloader-progress-bar {
  width: 180px;
  height: 2.5px;
  background: rgba(184, 137, 58, 0.2);
  margin: 1.5rem auto 0;
  border-radius: 3px;
  overflow: hidden;
}

.preloader-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--lotus-pink));
  transition: width 0.3s ease;
}

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

/* Split Curtains */
.curtain {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: var(--cream);
  z-index: 5;
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.curtain-left {
  left: 0;
  transform-origin: left center;
  border-right: 1px solid rgba(184, 137, 58, 0.2);
}

.curtain-right {
  right: 0;
  transform-origin: right center;
  border-left: 1px solid rgba(184, 137, 58, 0.2);
}

.preloader.is-done .curtain-left {
  transform: translateX(-100%);
}

.preloader.is-done .curtain-right {
  transform: translateX(100%);
}

.preloader.is-done .preloader-content {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.6s ease;
}

/* ==========================================================================
   SCENE 2: ENTRY SCENE (PINNED CURTAIN & SWAYING GARLANDS)
   ========================================================================== */
.scene-entry {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #F9D5D3 0%, #FDF3F3 40%, var(--cream) 100%);
  overflow: hidden;
  z-index: 10;
}

.watercolor-wash-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: radial-gradient(ellipse at 50% 0%, rgba(244, 184, 190, 0.65) 0%, rgba(249, 213, 211, 0.35) 50%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

.curtain-panel {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(180deg, rgba(249, 213, 211, 0.8) 0%, rgba(247, 241, 230, 0.95) 100%);
  z-index: 3;
  pointer-events: none;
}

.curtain-panel-left {
  left: 0;
  border-right: 1px solid rgba(184, 137, 58, 0.25);
}

.curtain-panel-right {
  right: 0;
  border-left: 1px solid rgba(184, 137, 58, 0.25);
}

.garland-container {
  position: absolute;
  top: -20px;
  z-index: 8;
  display: flex;
  gap: 1.5rem;
  pointer-events: none;
  will-change: transform;
}

.garland-left {
  left: clamp(1rem, 5vw, 4rem);
}

.garland-right {
  right: clamp(1rem, 5vw, 4rem);
  flex-direction: row-reverse;
}

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

.garland-flower {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFF9E6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  border: 1px solid #EADBBA;
}

.garland-flower.flower-pink {
  background: #F4B8BE;
  border-color: #E86A92;
}

.garland-bud {
  width: 18px;
  height: 28px;
  background: radial-gradient(ellipse at 50% 30%, #FFF0F2 0%, #E86A92 70%, #B83A64 100%);
  border-radius: 50% 50% 60% 60% / 70% 70% 40% 40%;
  box-shadow: 0 4px 8px rgba(184, 137, 58, 0.25);
  margin-top: 4px;
}

.hanging-lamp {
  transform-origin: 20px 0;
  filter: drop-shadow(0 8px 16px rgba(107, 42, 46, 0.15));
}

.lamp-sway-1 {
  animation: gentleLampSway 4.5s ease-in-out infinite alternate;
}

.lamp-sway-2 {
  animation: gentleLampSway 4.8s ease-in-out 0.8s infinite alternate-reverse;
}

@keyframes gentleLampSway {
  0% { transform: rotate(-3.5deg); }
  100% { transform: rotate(3.5deg); }
}

.lamp-flame {
  animation: flameFlicker 0.25s ease-in-out infinite alternate;
  transform-origin: 20px 180px;
}
.flame-side-1 {
  animation: flameFlicker 0.3s ease-in-out 0.1s infinite alternate;
  transform-origin: 4px 184px;
}
.flame-side-2 {
  animation: flameFlicker 0.28s ease-in-out 0.15s infinite alternate;
  transform-origin: 36px 184px;
}

@keyframes flameFlicker {
  0% { transform: scale(0.96) skewX(-1deg); opacity: 0.9; }
  100% { transform: scale(1.06) skewX(1.5deg); opacity: 1; }
}

.entry-center-content {
  position: relative;
  z-index: 6;
  text-align: center;
  padding: 2rem;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}

.entry-open-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 9;
  appearance: none;
  border: 0;
  padding: 0.5rem;
  background: transparent;
  color: var(--maroon);
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: color 180ms ease, transform 180ms ease;
}

.entry-open-button:hover,
.entry-open-button:focus-visible {
  color: var(--gold-dark);
  transform: translate(-50%, calc(-50% - 2px));
}

.entry-open-button:focus-visible {
  outline: 3px solid rgba(184, 137, 58, 0.45);
  outline-offset: 4px;
}

body.is-gated {
  height: 100dvh;
  overflow: hidden;
}

body.is-gated .audio-widget {
  opacity: 0;
  pointer-events: none;
}

.tagline-invited {
  font-size: clamp(3.5rem, 10vw, 6.5rem);
  color: var(--maroon);
  line-height: 1;
  text-shadow: 0 4px 20px rgba(107, 42, 46, 0.12);
}

.scroll-indicator {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-dark);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mouse-icon {
  width: 22px;
  height: 36px;
  border: 2px solid var(--gold);
  border-radius: 12px;
  position: relative;
}

.mouse-icon .wheel {
  width: 3px;
  height: 6px;
  background-color: var(--maroon);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: wheelScroll 1.6s infinite ease-in-out;
}

@keyframes wheelScroll {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

.scroll-arrow {
  width: 18px;
  height: 18px;
  animation: arrowBounce 1.6s infinite ease-in-out;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ==========================================================================
   SCENE 3: HERO SECTION (NAMES & AUSPICIOUS DATE)
   ========================================================================== */
.scene-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.hero-scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: clamp(3rem, 7vh, 4.5rem);
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--gold-dark);
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.hero-scroll-cue svg {
  width: 1.55rem;
  height: 1.55rem;
  animation: heroScrollCueBounce 1.8s ease-in-out infinite;
}

.hero-scroll-cue.is-hidden {
  opacity: 0;
  transform: translate(-50%, 0.5rem);
}

@keyframes heroScrollCueBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(0.28rem); }
}

.hero-container {
  text-align: center;
}

.hero-mandala {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 680px);
  height: min(90vw, 680px);
  opacity: 0.14;
  pointer-events: none;
  animation: slowMandalaRotate 90s linear infinite;
}

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

.hero-malayalam {
  font-family: var(--font-malayalam);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 600;
  color: var(--leaf-green-dark);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.hero-couple-names {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  font-size: clamp(3.8rem, 11vw, 7.5rem);
  color: var(--maroon);
  font-weight: 400;
  line-height: 1.05;
  text-shadow: 0 4px 24px rgba(107, 42, 46, 0.15);
}

.hero-couple-names .name-ampersand {
  font-family: Arial, sans-serif;
  font-size: 0.6em;
  color: var(--gold);
  font-style: normal;
  font-weight: 400;
}

.hero-tagline {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-style: italic;
  color: var(--ink-light);
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
}

.hero-date-badge {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.6rem, 2vw, 1.5rem);
  padding: 0.75rem clamp(1.2rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, 0.85);
  border-top: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  box-shadow: 0 8px 24px rgba(184, 137, 58, 0.12);
  margin-bottom: 1.5rem;
}

.hero-date-badge span {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  letter-spacing: 0.25em;
  color: var(--maroon);
  font-weight: 600;
}

.hero-date-badge .date-day-num {
  font-size: clamp(1.8rem, 3.8vw, 2.4rem);
  color: var(--gold-dark);
  font-weight: 700;
  padding: 0 0.5rem;
}

.hero-venue-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.25rem;
  background: rgba(110, 139, 78, 0.12);
  border: 1px solid rgba(110, 139, 78, 0.35);
  border-radius: 30px;
  color: var(--leaf-green-dark);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* Corner Lotuses */
.corner-lotus-cluster {
  position: absolute;
  bottom: -15px;
  width: clamp(140px, 20vw, 240px);
  height: auto;
  pointer-events: none;
  z-index: 5;
  transition: transform 0.6s var(--ease-out);
}

.cluster-bottom-left {
  left: 0;
}

.cluster-bottom-right {
  right: 0;
}

.svg-corner-lotus {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 6px 14px rgba(107, 42, 46, 0.12));
}

/* ==========================================================================
   SCENE 4: COUPLE REVEAL (PINNED ARCHED TEMPLE-WINDOW FRAME)
   ========================================================================== */
.scene-couple {
  min-height: 100vh;
  padding: 6rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--cream) 0%, #FAF0EE 50%, var(--cream) 100%);
  position: relative;
  overflow: hidden;
}

.couple-scene-container {
  text-align: center;
}

.couple-heading-wrap {
  margin-bottom: 2.5rem;
}

.temple-arch-outer {
  position: relative;
  max-width: 440px;
  margin: 0 auto 2.5rem;
  filter: drop-shadow(0 20px 40px rgba(107, 42, 46, 0.22));
}

.arch-crown-ornament {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.temple-arch-border {
  padding: 10px;
  background: linear-gradient(135deg, #FDF0CD 0%, var(--brass) 50%, var(--gold-dark) 100%);
  border-radius: 220px 220px 24px 24px;
  box-shadow: inset 0 0 12px rgba(107, 42, 46, 0.2);
}

.temple-arch-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5.2;
  border-radius: 210px 210px 18px 18px;
  overflow: hidden;
  background-color: #2B181A;
}

.couple-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.04);
  transition: transform 1.2s var(--ease-out);
}

.temple-arch-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(244, 184, 190, 0.1) 0%, transparent 60%, rgba(71, 27, 30, 0.65) 100%);
  pointer-events: none;
}

.couple-caption-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--gold);
  border-radius: 40px;
  padding: 0.5rem 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.couple-names-tag {
  font-size: 1.4rem;
  color: var(--maroon);
}

.couple-location-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.1em;
}

.couple-quote-text {
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-style: italic;
  color: var(--ink);
  line-height: 1.7;
}

/* ==========================================================================
   SCENE 5: FAMILY INVITATION (ROYAL CARD PANEL WITH CUSTOM GANESHA)
   ========================================================================== */
.scene-invitation {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.invitation-container {
  max-width: 780px;
}

.royal-card-panel {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3.5rem);
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.card-mandala-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: slowMandalaRotate 120s linear infinite;
  opacity: 0.4;
}

/* Card Decorative Corners */
.card-corner {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 2px solid var(--gold);
  pointer-events: none;
}
.corner-tl { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.corner-tr { top: 12px; right: 12px; border-left: none; border-bottom: none; }
.corner-bl { bottom: 12px; left: 12px; border-right: none; border-top: none; }
.corner-br { bottom: 12px; right: 12px; border-left: none; border-top: none; }

/* Custom Ganesha Emblem */
.ganesha-emblem-wrap {
  margin-bottom: 1.75rem;
  display: flex;
  justify-content: center;
}

.ganesha-img {
  width: 82px;
  height: auto;
  max-height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(184, 137, 58, 0.35));
  transition: transform 0.4s var(--ease-out);
}

.ganesha-img:hover {
  transform: scale(1.06);
}

.parents-block {
  margin: 1.5rem 0;
}

.parents-names {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  color: var(--maroon);
  font-weight: 600;
  line-height: 1.3;
}

.parents-address {
  font-size: 0.95rem;
  color: var(--ink-light);
  margin-top: 0.25rem;
}

.parents-contact {
  font-size: 0.9rem;
  color: var(--gold-dark);
  font-weight: 500;
  margin-top: 0.3rem;
}

.parents-contact a {
  color: var(--maroon);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.invitation-lead-block {
  margin: 2rem auto;
  max-width: 580px;
}

.invitation-text {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  color: var(--ink);
  line-height: 1.7;
  font-style: italic;
}

.invitation-couple-centerpiece {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.invitee-bride, .invitee-groom {
  font-size: clamp(3rem, 7vw, 4.5rem);
  color: var(--maroon);
  font-weight: 400;
  line-height: 1;
}

.invite-ampersand {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--gold);
}

.relation-lead {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.invitation-actions {
  margin-top: 2.5rem;
}

/* ==========================================================================
   BUTTONS STYLES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  border: none;
  line-height: 1;
}

.btn:focus-visible {
  outline: 2px solid var(--maroon);
  outline-offset: 3px;
}

.btn-gold {
  background: linear-gradient(135deg, #FDF0CD 0%, var(--gold) 60%, var(--gold-dark) 100%);
  color: var(--maroon-dark);
  box-shadow: 0 8px 24px rgba(184, 137, 58, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(184, 137, 58, 0.45);
}

.btn-gold-outline {
  background: transparent;
  color: var(--maroon);
  border: 1.5px solid var(--gold);
  box-shadow: 0 4px 14px rgba(184, 137, 58, 0.15);
}

.btn-gold-outline:hover {
  background: rgba(184, 137, 58, 0.1);
  border-color: var(--brass);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--white);
  color: var(--maroon);
  border: 1.5px solid rgba(107, 42, 46, 0.25);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.btn-secondary:hover {
  background: #FFF9FA;
  border-color: var(--maroon);
  transform: translateY(-2px);
}

.btn-blush {
  background: linear-gradient(135deg, #FFF0F2 0%, var(--blush) 70%, var(--lotus-pink) 100%);
  color: var(--maroon);
  border: 1.5px solid var(--lotus-pink);
  box-shadow: 0 6px 20px rgba(232, 106, 146, 0.25);
}

.btn-blush:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(232, 106, 146, 0.35);
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   SCENE 6: DATE BADGE & MUHURTHAM
   ========================================================================== */
.scene-datetime {
  padding: 6rem 0;
  text-align: center;
  background: linear-gradient(180deg, var(--cream) 0%, #FAF3ED 50%, var(--cream) 100%);
  position: relative;
}

.ornate-date-badge {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  margin: 3rem auto 2rem;
  padding: 1.5rem 2.5rem;
  max-width: 440px;
  width: 100%;
  box-sizing: border-box;
}

.badge-flourish-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: drop-shadow(0 6px 16px rgba(184, 137, 58, 0.2));
}

.badge-ribbon-left, .badge-ribbon-right {
  min-width: 0;
  text-align: center;
  z-index: 2;
}

.badge-ribbon-text {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--maroon);
}

.badge-center-roundel {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFFBF2 0%, #F5E8CB 70%, #E6D0A1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(184, 137, 58, 0.3);
  z-index: 3;
  margin: 0 0.75rem;
}

.badge-day-number {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1;
  display: block;
  text-align: center;
}

.muhurtham-pill-wrap {
  margin: 1.5rem auto 1.5rem;
}

.muhurtham-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 2rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1.8px solid var(--gold);
  border-radius: 40px;
  box-shadow: 0 8px 24px rgba(184, 137, 58, 0.15);
}

.muhurtham-tag {
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--maroon);
  background: rgba(107, 42, 46, 0.08);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
}

.muhurtham-time {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.04em;
}

.datetime-venue-line {
  font-size: 1.25rem;
  color: var(--ink);
  margin-top: 1rem;
}

/* ==========================================================================
   SCENE 7: COUNTDOWN TIMER
   ========================================================================== */
.scene-countdown {
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.countdown-heading-wrap {
  margin-bottom: 3rem;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  flex-wrap: wrap;
}

.countdown-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(70px, 18vw, 110px);
}

.countdown-num-box {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(145deg, #FFFFFF 0%, #FBF6EE 100%);
  border: 1.5px solid var(--gold);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(184, 137, 58, 0.18), inset 0 2px 4px rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.countdown-num-box::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(184, 137, 58, 0.2);
}

.countdown-digit {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 700;
  color: var(--maroon);
  line-height: 1;
  z-index: 2;
  transition: transform 0.3s ease;
}

.countdown-label {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-top: 0.75rem;
}

.countdown-colon {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.countdown-subtext {
  font-size: 1.15rem;
  color: var(--ink-light);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   SCENE 8: VENUE & MAP SECTION (ELEMENTOR STYLE GOOGLE MAP BLOCK)
   ========================================================================== */
.scene-venue {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--cream) 0%, #F8EFEA 50%, var(--cream) 100%);
  position: relative;
  overflow: hidden;
}

.venue-header-wrap {
  text-align: center;
  margin-bottom: 2.5rem;
}

.venue-name {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 600;
  color: var(--maroon);
  margin-top: 0.5rem;
}

.venue-address {
  font-size: 1.1rem;
  color: var(--ink-light);
  margin-top: 0.25rem;
}

.map-card-wrapper {
  position: relative;
  max-width: 960px;
  margin: 0 auto 2.5rem;
  border-radius: 20px;
  background: #FFF;
  border: 2px solid var(--gold);
  box-shadow: 0 20px 50px -10px rgba(107, 42, 46, 0.18), 0 8px 20px rgba(184, 137, 58, 0.15);
  overflow: hidden;
}

.map-pin-indicator {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -100%);
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
}

.animated-pin-svg {
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

.pin-pulse {
  width: 24px;
  height: 8px;
  background: rgba(107, 42, 46, 0.4);
  border-radius: 50%;
  margin-top: 4px;
  animation: pinShadowPulse 2s infinite ease-in-out;
}

@keyframes pinShadowPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.5); opacity: 0.2; }
}

.map-iframe-container {
  position: relative;
  width: 100%;
  height: 420px;
  background: #E8ECE9;
}

@media (max-width: 768px) {
  .map-iframe-container {
    height: 320px;
  }
}

.map-iframe-container iframe {
  width: 100%;
  height: 100%;
  filter: saturate(0.9) contrast(1.05);
}

.map-touch-overlay {
  position: absolute;
  inset: 0;
  background: rgba(247, 241, 230, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.map-touch-prompt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1.5px solid var(--gold);
  border-radius: 30px;
  padding: 0.6rem 1.2rem;
  color: var(--maroon);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.map-touch-overlay.is-active {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.venue-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 820px;
  margin: 0 auto;
}

.btn-venue-action {
  flex: 1 1 220px;
  max-width: 280px;
}

/* ==========================================================================
   SCENE 9: GALLERY (TIGHTENED SPACING & 6 PHOTOS GRID)
   ========================================================================== */
.scene-gallery {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--cream) 0%, #FAF0EE 50%, var(--cream) 100%);
  position: relative;
  overflow: hidden;
}

.gallery-header-wrap {
  text-align: center;
  margin-bottom: 2.25rem; /* Gap fixed per instruction */
}

.gallery-subtitle {
  font-size: 1.15rem;
  color: var(--ink-light);
  margin-top: 0.35rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  max-width: 1040px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 540px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  border: 1.5px solid rgba(184, 137, 58, 0.35);
  background: #FFF;
  transform-style: preserve-3d;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  border-color: var(--gold);
  box-shadow: 0 20px 45px rgba(107, 42, 46, 0.22);
}

.gallery-card-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: #201314;
}

.gallery-card-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.gallery-item:hover .gallery-card-inner img {
  transform: scale(1.05);
}

.gallery-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.25rem 1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(71, 27, 30, 0.88) 100%);
  color: var(--white);
  transform: translateY(10px);
  opacity: 0.9;
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-card-info {
  transform: translateY(0);
  opacity: 1;
}

.card-info-title {
  display: block;
  font-size: 1.35rem;
  font-weight: 600;
  color: #FDF0CD;
}

.card-info-subtitle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   SCENE 10: WEDDING DETAILS & CONTACT INFORMATION (2 CARDS BALANCED)
   ========================================================================== */
.scene-details {
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
}

.details-header-wrap {
  text-align: center;
  margin-bottom: 3rem;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.detail-card {
  padding: 2.75rem 2rem;
  border-radius: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.4s var(--ease-out), border-color 0.3s;
}

.detail-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
}

.detail-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFFBF2 0%, #F5E8CB 80%, #E6D0A1 100%);
  border: 1.5px solid var(--gold);
  color: var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 6px 16px rgba(184, 137, 58, 0.2);
}

.detail-title {
  font-size: 1.5rem;
  color: var(--maroon);
  margin-bottom: 0.5rem;
}

.detail-script {
  font-size: 1.8rem;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}

.detail-subdesc {
  font-size: 0.98rem;
  color: var(--ink-light);
  line-height: 1.65;
}

.contact-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  margin-top: 1.25rem;
}

.contact-phone-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.35rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--gold);
  border-radius: 30px;
  color: var(--maroon);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-phone-btn:hover {
  background: var(--maroon);
  color: #FFF;
  border-color: var(--maroon);
  transform: translateX(4px);
}

.phone-call-badge {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(184, 137, 58, 0.15);
  color: var(--gold-dark);
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.contact-phone-btn:hover .phone-call-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #FFF;
}

/* ==========================================================================
   SCENE 11: CLOSING BLESSINGS & FOOTER
   ========================================================================== */
.scene-closing {
  padding: 6.5rem 0 3rem;
  text-align: center;
  background: linear-gradient(180deg, var(--cream) 0%, #F9E7E7 60%, #F4D3D7 100%);
  position: relative;
  overflow: hidden;
}

.closing-container {
  max-width: 720px;
}

.closing-ganesha-mini {
  width: 58px;
  height: auto;
  object-fit: contain;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 3px 6px rgba(184, 137, 58, 0.3));
}

.closing-benediction {
  font-size: clamp(1.4rem, 3.5vw, 2.1rem);
  font-weight: 500;
  color: var(--maroon);
  line-height: 1.45;
  font-style: italic;
  margin-bottom: 2rem;
}

.closing-signatures {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  font-size: clamp(3.2rem, 8vw, 5.5rem);
  color: var(--maroon);
  line-height: 1;
  margin-bottom: 1rem;
}

.closing-signatures .sig-name {
  font-family: 'Qalisten', 'Cormorant Garamond', Georgia, serif;
}

.closing-signatures .sig-and {
  font-family: Arial, sans-serif;
  font-style: normal;
}

.normal-ampersand {
  font-family: Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
}

.sig-and {
  font-family: var(--font-serif);
  font-size: 0.6em;
  color: var(--gold);
  font-style: italic;
}

.closing-hashtag {
  font-size: 1rem;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 2.5rem;
}

/* Hashtag color story: SHI / NIK dark green, GOT softer green, HER pink. */
.hashtag-shi,
.hashtag-nik {
  color: var(--leaf-green-dark);
}

.hashtag-got {
  color: var(--leaf-green);
  opacity: 0.72;
}

.hashtag-her {
  color: var(--lotus-pink);
}

.compliments-footer-note {
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed var(--gold);
  border-radius: 12px;
  padding: 1.25rem;
  max-width: 500px;
  margin: 0 auto 3rem;
}

.compliments-label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--ink-light);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.compliments-names {
  font-size: 1.2rem;
  color: var(--maroon);
  font-weight: 600;
}

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid var(--gold);
  border-radius: 30px;
  color: var(--maroon);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 3.5rem;
}

.back-to-top-btn:hover {
  background: var(--maroon);
  color: #FFF;
  border-color: var(--maroon);
  transform: translateY(-2px);
}

.site-footer {
  border-top: 1px solid rgba(184, 137, 58, 0.25);
  padding-top: 1.75rem;
}

.footer-credit {
  font-size: 0.9rem;
  color: var(--ink-light);
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s;
}

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

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 12, 14, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-dialog {
  position: relative;
  z-index: 2;
  width: min(92vw, 840px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 2px solid var(--gold);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 15px;
  z-index: 10;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--maroon);
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s;
}

.lightbox-close:hover {
  transform: scale(1.15);
}

.lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(184, 137, 58, 0.25);
  background: rgba(255, 255, 255, 0.8);
}

.lightbox-btn {
  background: rgba(184, 137, 58, 0.15);
  border: 1px solid var(--gold);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--maroon);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-btn:hover {
  background: var(--maroon);
  color: #FFF;
  border-color: var(--maroon);
}

.lightbox-btn.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

.lightbox-caption {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--maroon);
  text-align: center;
}

.lightbox-body {
  flex: 1;
  padding: 1rem;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #201314;
}

.lightbox-img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.lightbox-footer {
  padding: 0.85rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(184, 137, 58, 0.25);
  background: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   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;
  }
  
  .hanging-lamp,
  .hero-mandala,
  .card-mandala-bg,
  .lamp-flame,
  .scroll-arrow,
  .mouse-icon .wheel {
    animation: none !important;
  }

  .particles-canvas {
    display: none !important;
  }
}

@media (max-width:540px){
  .tagline-invited{font-size:clamp(2.6rem,13vw,3.6rem);white-space:nowrap}
  .hero-date-badge{flex-wrap:wrap;justify-content:center;gap:.25rem .8rem;padding:.7rem 1rem;max-width:calc(100% - 2rem)}
  .hero-date-badge span{letter-spacing:.14em;font-size:.95rem}
  .hero-date-badge .date-day-num{font-size:1.7rem}
  .countdown-grid{flex-wrap:nowrap;gap:.3rem;padding:0 .5rem}
  .countdown-card{min-width:0;flex:1 1 0}
  .countdown-num-box{border-radius:12px}
  .countdown-digit{font-size:clamp(1.4rem,7vw,1.9rem)}
  .countdown-label{font-size:.62rem;letter-spacing:.08em}
  .countdown-colon{font-size:1.4rem;margin-bottom:1.2rem}
}

.lightbox-caption:empty{display:none}
.gallery-grid{grid-template-columns:repeat(2,1fr);max-width:760px}
@media (max-width:540px){.gallery-grid{gap:0.9rem}}

.hero-date-badge{display:flex;width:fit-content;max-width:100%;margin-left:auto;margin-right:auto}
.hero-date-badge span:last-child{margin-right:0}
.hero-venue-pill{display:flex;width:fit-content;margin-left:auto;margin-right:auto}
.ganesha-img{width:50px;max-height:64px}
.ganesha-emblem-wrap{margin-bottom:1.25rem}

.map-fallback{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.45rem;text-align:center;text-decoration:none;color:#6B2A2E;padding:1.5rem;
background:linear-gradient(rgba(184,137,58,.10) 1px,transparent 1px) 0 0/48px 48px,linear-gradient(90deg,rgba(184,137,58,.10) 1px,transparent 1px) 0 0/48px 48px,linear-gradient(160deg,#EEF1EA,#F7EFE3)}
.map-fallback strong{font-size:clamp(1.3rem,3vw,1.9rem);margin-top:.6rem}
.map-fallback span{font-size:.95rem;color:#5b4a4a}
.map-fallback em{margin-top:.9rem;font-style:normal;font-size:.85rem;letter-spacing:.06em;font-weight:600;color:#6B2A2E;background:#fff;border:1px solid #B8893A;border-radius:30px;padding:.55rem 1.3rem;box-shadow:0 6px 16px rgba(184,137,58,.2)}

@font-face {
  font-family: 'Qalisten';
  src: url('shima-nikhil-wedding/assets/fonts/Qalisten.otf') format('opentype');
  font-display: swap;
}

.preloader-title,
.hero-couple-names .name-part,
.couple-names-tag,
.invitation-couple-centerpiece h2,
.closing-signatures {
  font-family: 'Qalisten', 'Cormorant Garamond', Georgia, serif;
}

.royal-card-panel {
  background: linear-gradient(145deg, rgba(255, 252, 246, 0.98) 0%, rgba(250, 232, 224, 0.96) 48%, rgba(247, 241, 230, 0.98) 100%);
  box-shadow: 0 20px 50px -12px rgba(74, 59, 50, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* The welcome is its own page; the invitation begins after a tap. */
body.landing-page #smooth-content > .scene:not(#scene-entry),
body.landing-page .lightbox-modal {
  display: none;
}

body.invitation-page #scene-entry {
  display: none;
}

/* Never flash a loading screen after the welcome-page tap. */
body.invitation-page.is-loading {
  overflow: visible;
}

body.invitation-page .preloader {
  display: none !important;
}

.invitation-frame {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 10000;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.invitation-frame.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* The invitation loads behind these panels before they are shown, so the
   centre-opening reveal never exposes a blank page. */
.opening-curtain {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
}

.opening-curtain.is-active {
  visibility: visible;
}

.opening-curtain-panel {
  width: 50.1%;
  height: 100%;
  flex: 0 0 50.1%;
  will-change: transform;
  background:
    linear-gradient(90deg, rgba(232, 106, 146, 0.12), transparent 14%, transparent 86%, rgba(232, 106, 146, 0.12)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 3px, transparent 3px 17px),
    linear-gradient(180deg, #FFF6F7 0%, #F9D5D3 48%, #F4B8BE 100%);
  box-shadow: inset 0 0 40px rgba(232, 106, 146, 0.13);
  transition: transform 1050ms cubic-bezier(0.76, 0, 0.24, 1);
}

.opening-curtain-panel-left {
  border-right: 1px solid rgba(223, 184, 108, 0.62);
  transform-origin: left center;
}

.opening-curtain-panel-right {
  border-left: 1px solid rgba(223, 184, 108, 0.62);
  transform-origin: right center;
}

.opening-curtain.is-revealing .opening-curtain-panel-left {
  transform: translate3d(-100%, 0, 0);
}

.opening-curtain.is-revealing .opening-curtain-panel-right {
  transform: translate3d(100%, 0, 0);
}

/* A clean, readable connector used consistently across the invitation. */
.script-ampersand,
.name-ampersand {
  display: inline-block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: normal;
  line-height: 1;
  color: var(--maroon);
  transform: none;
}

.script-ampersand {
  margin: 0 0.08em;
  font-size: 1.05em;
}

@media (prefers-reduced-motion: reduce) {
  .opening-curtain-panel { transition-duration: 1ms; }
}

/* Keep the couple's names in the intended typeface and on one line on phones. */
@media (max-width: 540px) {
  .hero-couple-names {
    flex-wrap: nowrap;
    gap: 0.3rem;
    white-space: nowrap;
    font-size: clamp(2.55rem, 11vw, 3.7rem);
  }
}


/* Mobile layout refinements: legible names without wrapping. */
@media (max-width: 540px) {
  /* Welcome names: larger while preserving one elegant line. */
  .hero-couple-names {
    font-size: clamp(2.8rem, 12.5vw, 3.35rem);
    gap: 0.25rem;
  }

  /* Compact the white date panel so every detail is aligned on one row. */
  .hero-date-badge {
    width: fit-content;
    max-width: calc(100% - 3rem);
    flex-wrap: nowrap;
    gap: 0.3rem;
    padding: 0.55rem 0.7rem;
  }
  .hero-date-badge span {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }
  .hero-date-badge .date-day-num {
    font-size: 1.35rem;
    padding: 0 0.15rem;
  }

  /* Portrait caption: keep Shima & Nikhil on a single line. */
  .couple-caption-badge {
    width: 82%;
    gap: 0.35rem;
    padding: 0.45rem 0.7rem;
  }
  .couple-names-tag {
    font-size: 1.08rem;
    white-space: nowrap;
  }
  .couple-location-tag {
    font-size: 0.72rem;
    white-space: nowrap;
  }

  /* Preserve every initial in the parents' names on the first line. */
  .parents-names {
    font-size: clamp(1.02rem, 4.3vw, 1.2rem);
    line-height: 1.2;
    white-space: nowrap;
    letter-spacing: -0.01em;
  }
}


/* Wedding invitation card action */
.invitation-card-button {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-color: var(--gold);
  color: var(--maroon);
  background: rgba(255, 255, 255, 0.6);
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 16px rgba(184, 137, 58, 0.16);
  padding: 1rem 2.15rem;
  font-size: 1.05rem;
}

.invitation-card-button:hover,
.invitation-card-button:focus-visible {
  background: var(--maroon);
  border-color: var(--maroon);
  color: var(--white);
  transform: translateY(-2px);
}

@media (max-width: 540px) {
  .invitation-card-button {
    width: min(100%, 22rem);
    font-size: 1rem;
    padding: 1rem 1.5rem;
  }
}


/* Ensure stale cached invitation button icons never display. */
#btn-view-card svg {
  display: none !important;
}
