/* ═══════════════════════════════════════════════════════
   WEDDING INVITATION — STYLES
   Niladri & Chayanika · Assamese-Bengali Wedding
   Edit config.js to personalise names, dates, and venue.
   ═══════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════════
   WEDDING INVITATION — STYLES
   Niladri & Chayanika · Assamese-Bengali Wedding
   ════════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─── */
:root {
  --turmeric: #d4870a;
  --marigold: #f0b429;
  --gold-light: #f5d47a;
  --sindoor: #b83020;
  --deep-red: #7a1510;
  --sandalwood: #c8845a;
  --cream: #fdf6e3;
  --parchment: #f7ead0;
  --warm-white: #fffbf0;
  --dark: #180a00;
  --dark-brown: #2e1200;
  --text: #2e1200;
  --leaf: #4a6b38;
  --leaf-light: #6a8f52;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--text);
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--turmeric);
  border-radius: 3px;
}

/* ─── LOADER ─── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  transition: opacity 1s ease, visibility 1s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-ganesha {
  width: clamp(130px, 22vw, 200px);
  filter:
    drop-shadow(0 0 8px rgba(240, 160, 20, 0.95)) drop-shadow(0 0 22px rgba(212, 135, 10, 0.7)) drop-shadow(0 0 40px rgba(212, 135, 10, 0.35));
  animation: ganeshaFloat 3s ease-in-out infinite alternate;
}

@keyframes ganeshaFloat {
  from {
    transform: translateY(0px) scale(0.97);
    filter:
      drop-shadow(0 0 6px rgba(240, 160, 20, 0.85)) drop-shadow(0 0 16px rgba(212, 135, 10, 0.55));
  }

  to {
    transform: translateY(-10px) scale(1.03);
    filter:
      drop-shadow(0 0 14px rgba(255, 190, 40, 1)) drop-shadow(0 0 35px rgba(240, 155, 15, 0.85)) drop-shadow(0 0 55px rgba(212, 135, 10, 0.5));
  }
}

.loader-shubho {
  font-family: 'Tiro Bangla', serif;
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  color: var(--marigold);
  letter-spacing: 0.06em;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.7s;
}

.loader-eng {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.55rem, 1.5vw, 0.75rem);
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1.3s;
}

.loader-bar {
  width: 0;
  height: 1px;
  background: var(--marigold);
  animation: growBar 1s ease forwards 1.9s;
}

.loader-tap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  margin-top: .6rem;
  opacity: 0;
  animation: fadeUp .8s ease forwards 2.4s;
}

/* ripple container */

.tap-ripple {
  position: relative;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ripple circles */

.tap-ripple::before,
.tap-ripple::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(255, 185, 50, .5);
  animation: ripple 2.2s infinite;
}

.tap-ripple::after {
  animation-delay: 1.1s;
}

.tap-icon {
  font-size: 1.6rem;
  z-index: 2;
  animation: tapBounce 1.6s ease-in-out infinite;
}

.tap-text {
  font-family: 'Cinzel', serif;
  font-size: clamp(.55rem, 1.5vw, .75rem);
  letter-spacing: .35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  animation: tapPulse 2s ease-in-out infinite;
}

@keyframes ripple {
  0% {
    transform: scale(.5);
    opacity: .8;
  }

  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

@keyframes tapBounce {
  0%, 100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(6px)
  }
}

@keyframes tapPulse {
  0%, 100% {
    opacity: .35
  }

  50% {
    opacity: 1
  }
}

/* ─── MUSIC BUTTON ─── */
#music-btn {
  position: fixed;
  top: 1.4rem;
  right: 1.4rem;
  z-index: 998;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(253, 246, 227, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 135, 10, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.13);
  transition: transform 0.2s;
}

#music-btn:hover {
  transform: scale(1.1);
}

.music-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.music-bars span {
  width: 3px;
  background: var(--sindoor);
  border-radius: 2px;
  animation: barDance 0.7s ease infinite alternate;
}

.music-bars span:nth-child(1) {
  height: 7px;
  animation-delay: 0s;
}

.music-bars span:nth-child(2) {
  height: 15px;
  animation-delay: 0.12s;
}

.music-bars span:nth-child(3) {
  height: 10px;
  animation-delay: 0.25s;
}

.music-bars span:nth-child(4) {
  height: 17px;
  animation-delay: 0.08s;
}

.music-bars.paused span {
  animation-play-state: paused;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.1rem clamp(0.75rem, 3vw, 2rem);
  display: flex;
  justify-content: center;
  gap: clamp(0.9rem, 4vw, 3rem);
  flex-wrap: wrap;
  background: linear-gradient(to bottom, rgba(253, 246, 227, 0.97) 55%, transparent);
  opacity: 0;
  transform: translateY(-18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

nav.visible {
  opacity: 1;
  transform: translateY(0);
}

nav a {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.5rem, 1.8vw, 0.58rem);
  letter-spacing: clamp(0.1em, 1vw, 0.3em);
  text-transform: uppercase;
  color: var(--dark-brown);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

nav a:hover {
  color: var(--sindoor);
}

/* ─── BORDER STRIP ─── */
.border-strip {
  height: 8px;
  background: repeating-linear-gradient(90deg,
      var(--turmeric) 0px, var(--turmeric) 7px,
      var(--sindoor) 7px, var(--sindoor) 9px,
      var(--marigold) 9px, var(--marigold) 16px,
      var(--sindoor) 16px, var(--sindoor) 18px);
}

/* ─── HERO ─── */
#hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 2rem;
  background:
    radial-gradient(ellipse 80% 65% at 50% 35%, rgba(240, 180, 41, 0.10) 0%, transparent 65%),
    radial-gradient(ellipse 55% 55% at 8% 90%, rgba(184, 48, 32, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 45% 50% at 93% 85%, rgba(74, 107, 56, 0.06) 0%, transparent 55%),
    var(--cream);
}

/* silk weave texture */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg,
      rgba(212, 135, 10, 0.022) 0px, rgba(212, 135, 10, 0.022) 1px,
      transparent 1px, transparent 5px);
}

.corner-svg {
  position: absolute;
  pointer-events: none;
  width: clamp(150px, 22vw, 300px);
}

.corner-svg.tl {
  top: 0;
  left: 0;
}

.corner-svg.tr {
  top: 0;
  right: 0;
  transform: scaleX(-1);
}

.corner-svg.bl {
  bottom: 0;
  left: 0;
  transform: scaleY(-1);
}

.corner-svg.br {
  bottom: 0;
  right: 0;
  transform: scale(-1);
}

.float-icon {
  position: absolute;
  pointer-events: none;
  font-size: 1.4rem;
  opacity: 0.13;
  animation: iconFloat ease-in-out infinite alternate;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-top-icon {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 0.3rem;
  opacity: 0;
  transition: opacity 0.8s ease 0.5s;
  animation: lotusFloat 5s ease-in-out infinite alternate;
}

.hero-blessing {
  font-family: 'Tiro Bangla', serif;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  color: var(--sindoor);
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease 0.4s, transform 0.7s ease 0.4s;
}

.hero-sub-eng {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.5rem, 1.2vw, 0.65rem);
  letter-spacing: clamp(0.1em, 2vw, 0.5em);
  text-transform: uppercase;
  color: var(--sandalwood);
  margin-top: -0.6rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease 0.6s, transform 0.7s ease 0.6s;
  max-width: 90vw;
  text-align: center;
}

.hero-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 300;
  line-height: 1;
  color: var(--deep-red);
  text-shadow: 0 3px 30px rgba(122, 21, 16, 0.18);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.1s ease 0.7s, transform 1.1s ease 0.7s;
}

.hero-amp {
  color: var(--turmeric);
  font-style: italic;
}

.oro {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: min(380px, 82vw);
  opacity: 0;
  transition: opacity 0.9s ease 1.2s;
}

.oro .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--marigold));
}

.oro .line.r {
  background: linear-gradient(to left, transparent, var(--marigold));
}

.oro .gem {
  width: 9px;
  height: 9px;
  background: var(--sindoor);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.oro .dot {
  width: 5px;
  height: 5px;
  background: var(--marigold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.hero-date {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(0.9rem, 2.5vw, 1.5rem);
  color: var(--dark-brown);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s ease 1.4s, transform 0.8s ease 1.4s;
  text-align: center;
  max-width: 90vw;
  line-height: 1.5;
}

.hero-date-day,
.hero-date-year {
  display: inline;
}

.hero-date-sep {
  display: inline;
}

/* ── SCROLL SIDE CUES — prominent, professional ── */
.scroll-side {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity 1s ease 2.3s;
  z-index: 5;
  pointer-events: none;
}

body.revealed .scroll-side {
  opacity: 1;
}

.scroll-side--left  { left: 1.2rem; }
.scroll-side--right { right: 1.2rem; }

/* Rotated label */
.scroll-side span {
  font-family: 'Cinzel', serif;
  font-size: 0.52rem;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--sandalwood);
  writing-mode: vertical-rl;
  opacity: 0.75;
  transition: opacity 1s ease;
}

/* The track — tall line */
.ssl-track {
  position: relative;
  width: 1px;
  height: 100px;
  background: rgba(212, 135, 10, 0.12);
  border-radius: 2px;
  overflow: visible;
}

/* Travelling beam of light */
.ssl-track::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 36px;
  border-radius: 2px;
  background: linear-gradient(to bottom, transparent, var(--turmeric), var(--marigold));
  animation: travelDown 2.4s cubic-bezier(0.25, 0, 0.75, 1) infinite;
}

/* Glowing dot at the bottom of the beam */
.ssl-track::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--marigold);
  box-shadow: 0 0 6px 2px rgba(240, 180, 41, 0.5), 0 0 14px 4px rgba(212, 135, 10, 0.2);
  animation: travelDot 2.4s cubic-bezier(0.25, 0, 0.75, 1) infinite;
}

@keyframes travelDown {
  0%   { top: -36px; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { top: 100px; opacity: 0; }
}

@keyframes travelDot {
  0%   { top: -3px; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { top: 100px; opacity: 0; }
}

/* Small diamond ornament at the top */
.ssl-gem {
  width: 7px;
  height: 7px;
  background: var(--sindoor);
  transform: rotate(45deg);
  opacity: 0.7;
  flex-shrink: 0;
}

/* Nudge state — soft luxury pulse before auto-scroll */
.scroll-side.nudge {
  animation: nudgeGlow 1.5s ease-in-out infinite;
}

.scroll-side.nudge .ssl-track::before,
.scroll-side.nudge .ssl-track::after {
  animation-duration: 1s;
}

@keyframes nudgeGlow {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1;   }
}
.hero-venue-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.55rem 1.4rem;
  border: 2px solid rgba(212, 135, 10, 0.45);
  border-radius: 999px;
  background: rgba(212, 135, 10, 0.09);
  opacity: 0;
  transform: translateY(8px) scale(0.92);
  transition: opacity 0.8s ease 1.9s, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.9s;
}

/* The # symbol */
.venue-pill-hash {
  font-family: 'Cinzel', serif;
  font-size: clamp(1rem, 3.5vw, 1.4rem);
  color: var(--turmeric);
  line-height: 1;
  font-weight: 600;
}

/* Main hashtag text */
.venue-pill-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.1rem, 3.8vw, 1.6rem);
  color: var(--deep-red);
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1;
}

/* The 'd — sits inline, animated separately */
.fall-d {
  display: inline-block;
  transform-origin: top left;
  will-change: transform;
  cursor: default;
}

/* Dramatic tilt — wobble then crash */
@keyframes dDrama {
  0%   { transform: rotate(0deg)   translate(0px,  0px); }
  10%  { transform: rotate(-12deg) translate(-2px, -3px); }
  22%  { transform: rotate(16deg)  translate(2px,  -1px); }
  34%  { transform: rotate(-10deg) translate(-2px,  1px); }
  46%  { transform: rotate(14deg)  translate(2px,   2px); }
  58%  { transform: rotate(-6deg)  translate(-1px,  3px); }
  70%  { transform: rotate(42deg)  translate(5px,   8px); }
  82%  { transform: rotate(38deg)  translate(4px,   7px); }
  100% { transform: rotate(44deg)  translate(5px,  10px); }
}

/* Attention-grabber bounce before the drama */
@keyframes dWigglePre {
  0%,100% { transform: rotate(0deg) scale(1); }
  25%      { transform: rotate(-5deg) scale(1.15); }
  75%      { transform: rotate(5deg) scale(1.15); }
}

.fall-d.pre-wiggle {
  animation: dWigglePre 0.35s ease-in-out 2;
}

.fall-d.animate {
  animation: dDrama 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-shankha-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
  transition: opacity 0.8s ease 1.8s;
}

.hero-shankha-row span {
  font-size: 1.1rem;
}

.hero-shankha-row .divline {
  width: 35px;
  height: 1px;
  background: rgba(212, 135, 10, 0.4);
}

.scroll-cue {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s forwards 3.4s;
}

.scroll-cue .sc-line {
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, var(--turmeric), transparent);
  animation: scrollPulse 2s ease infinite;
}

.scroll-cue span {
  font-size: 0.5rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--sandalwood);
}

/* ─── REVEAL STATES ─── */
body.revealed .hero-top-icon,
body.revealed .hero-blessing,
body.revealed .hero-sub-eng,
body.revealed .hero-names,
body.revealed .oro,
body.revealed .hero-date,
body.revealed .hero-shankha-row,
body.revealed .hero-venue-pill {
  opacity: 1;
  transform: translateY(0) !important;
}

body.revealed nav {
  opacity: 1;
  transform: translateY(0);
}

/* ─── SECTION BASE ─── */
.sec {
  padding: clamp(4.5rem, 9vw, 7rem) clamp(1.5rem, 5vw, 3rem);
}

.sec-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--sandalwood);
  margin-bottom: 0.6rem;
}

.sec-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  color: var(--deep-red);
  line-height: 1.1;
}

.sec-orn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.3rem 0;
}

.sec-orn .l {
  width: 28px;
  height: 1px;
  background: var(--turmeric);
}

.sec-orn .d {
  width: 7px;
  height: 7px;
  background: var(--sindoor);
  transform: rotate(45deg);
}

.sec-orn .d2 {
  width: 4px;
  height: 4px;
  background: var(--marigold);
  transform: rotate(45deg);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ─── COUNTDOWN ─── */
#countdown {
  background: var(--dark);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background 1.2s ease;
}

#countdown.married {
  background: #0a0018;
}

#countdown::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(212, 135, 10, 0.13) 0%, transparent 70%),
    repeating-linear-gradient(90deg, rgba(212, 135, 10, 0.025) 0px, rgba(212, 135, 10, 0.025) 1px, transparent 1px, transparent 28px),
    repeating-linear-gradient(0deg, rgba(212, 135, 10, 0.025) 0px, rgba(212, 135, 10, 0.025) 1px, transparent 1px, transparent 28px);
  transition: opacity 1s ease;
}

#countdown.married::before {
  opacity: 0;
}

.cd-top-strip {
  height: 5px;
  width: 100%;
  background: repeating-linear-gradient(90deg,
      var(--turmeric) 0, var(--turmeric) 6px,
      var(--sindoor) 6px, var(--sindoor) 8px,
      var(--marigold) 8px, var(--marigold) 14px,
      var(--sindoor) 14px, var(--sindoor) 16px);
}

#countdown .sec-eyebrow {
  color: rgba(255, 255, 255, 0.35);
}

#countdown .sec-title {
  color: var(--marigold);
}

#countdown .sec-orn .l {
  background: var(--marigold);
}

.cd-grid {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4.5vw, 4rem);
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.cd-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.cd-box {
  position: relative;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(212, 135, 10, 0.22);
  min-width: clamp(72px, 14vw, 115px);
}

.cd-box::before, .cd-box::after {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  border-color: var(--marigold);
  border-style: solid;
}

.cd-box::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.cd-box::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

.cd-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 7.5vw, 5rem);
  font-weight: 300;
  color: white;
  line-height: 1;
  transition: transform 0.15s ease;
}

.cd-num.flip {
  transform: scaleY(0.7);
}

.cd-label {
  font-family: 'Cinzel', serif;
  font-size: 0.5rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}

.cd-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--turmeric);
  align-self: center;
  margin-top: -0.6rem;
  animation: sepPulse 1s ease infinite alternate;
}

/* ─── MARRIED CELEBRATION STATE ─── */
.married-display {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 1.5rem 2rem;
  position: relative;
  z-index: 2;
  animation: marriedReveal 1.2s ease forwards;
}

.married-icon {
  font-size: clamp(3rem, 8vw, 5rem);
  animation: iconBounce 1.5s ease infinite alternate;
}

.married-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 300;
  background: linear-gradient(135deg, #f0b429, #fff5c0, #f0b429, #e8842a);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 2.5s linear infinite;
  line-height: 1.1;
}

.married-sub {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.55rem, 1.5vw, 0.72rem);
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.married-bangla {
  font-family: 'Tiro Bangla', serif;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: rgba(255, 200, 80, 0.7);
}

.married-hearts {
  display: flex;
  gap: 0.8rem;
  font-size: 1.8rem;
  animation: heartsFloat 2s ease infinite alternate;
}

#fireworks-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

/* ─── STORY ─── */
#story {
  background: var(--parchment);
  position: relative;
  overflow: hidden;
}

#story::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 0% 50%, rgba(212, 135, 10, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 100% 50%, rgba(184, 48, 32, 0.05) 0%, transparent 45%);
}

.story-alpona-bg {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: min(380px, 55vw);
  opacity: 0.05;
  pointer-events: none;
}

/* ─── Story layout ─── */
.story-inner {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ─── Story text ─── */
.story-text p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.95;
  color: var(--dark-brown);
  margin-bottom: 1rem;
}

.story-sig {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(0.85rem, 2vw, 0.9rem);
  color: var(--sindoor);
  margin-top: 0.5rem;
}

/* ─── Story elephant image ─── */
.story-elephant {
  display: flex;
  justify-content: center;
  align-items: center;
}

.story-elephant img {
  width: min(380px, 90vw);
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.4));
}

.shankha-deco {
  position: absolute;
  font-size: 2rem;
  opacity: 0.18;
}

.shankha-deco.left {
  left: -2.5rem;
  top: 50%;
  transform: translateY(-50%) rotate(-20deg);
}

.shankha-deco.right {
  right: -2.5rem;
  top: 50%;
  transform: translateY(-50%) rotate(20deg) scaleX(-1);
}

/* ─── Story — mobile responsive ─── */
@media (max-width: 650px) {
  .story-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Text column: centre-align on mobile */
  .story-inner>div:first-child {
    text-align: center;
  }

  .story-inner>div:first-child .sec-orn {
    justify-content: center;
  }

  .story-text p {
    font-size: 1rem;
    line-height: 1.85;
  }

  /* Put elephant image ABOVE the text on mobile */
  .story-elephant {
    order: -1;
  }

  .story-elephant img {
    width: min(300px, 88vw);
  }

  /* Shrink watermark so it doesn't overflow */
  .story-alpona-bg {
    width: 70vw;
    right: -20px;
    opacity: 0.04;
  }
}


/* ─── SCHEDULE ─── */
#schedule {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.jaapi-watermark {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  width: min(320px, 40vw);
  opacity: 0.04;
  pointer-events: none;
}

#schedule::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 50% 50%, rgba(212, 135, 10, 0.08) 0%, transparent 70%),
    repeating-linear-gradient(90deg, rgba(212, 135, 10, 0.018) 0px, rgba(212, 135, 10, 0.018) 1px, transparent 1px, transparent 25px);
}

#schedule .sec-eyebrow {
  color: rgba(255, 255, 255, 0.32);
}

#schedule .sec-title {
  color: var(--marigold);
}

#schedule .sec-orn .l {
  background: var(--marigold);
}

#schedule .sec-orn .d {
  background: var(--sindoor);
}

#schedule .sec-orn .d2 {
  background: var(--marigold);
}

.sched-wrap {
  max-width: 700px;
  margin: 0 auto;
}

.sched-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
}

.sched-item {
  display: grid;
  grid-template-columns: minmax(70px, 100px) 26px 1fr;
  gap: 0 clamp(0.6rem, 2.5vw, 1.6rem);
  align-items: start;
  padding: 1.5rem 0;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.sched-item.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* When column — stacked date above time */
.sched-when {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  padding-top: 0.1rem;
}

/* Date — e.g. "Sat, 18 April" */
.sched-date {
  font-family: 'Cinzel', serif;
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 160, 130, 0.9);
  line-height: 1.2;
  text-align: right;
}

/* Time — e.g. "6:00 pm" */
.sched-time {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--turmeric);
  text-align: right;
  line-height: 1.2;
}

.sched-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sched-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--sindoor);
  border: 2px solid var(--marigold);
  flex-shrink: 0;
  margin-top: 0.18rem;
}

.sched-conn {
  width: 1px;
  flex: 1;
  min-height: 30px;
  background: rgba(212, 135, 10, 0.18);
  margin-top: 3px;
}

.sched-item:last-child .sched-conn {
  display: none;
}

.sched-info strong {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: white;
  display: flex;
  align-items: center;
  margin-bottom: 0.18rem;
}

.sched-icon {
  font-size: 0.9rem;
  margin-right: 0.3rem;
}

.sched-info span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.6;
  display: block;
}

/* Dress code — fun, colourful, own line */
.sched-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
  width: fit-content;
  padding: 0.28rem 0.75rem 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1.5px solid rgba(184, 48, 32, 0.3);
  background: rgba(184, 48, 32, 0.08);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.82rem;
  color: rgba(255, 200, 180, 0.92);
  line-height: 1;
}

.sched-meta::before {
  content: '✨';
  font-style: normal;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.sched-meta-icon {
  font-style: normal;
  font-size: 0.88rem;
  flex-shrink: 0;
}

/* Themed links — own line, clearly tappable */
.sched-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.45rem;
  width: fit-content;
  font-family: 'Cinzel', serif;
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--marigold);
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 180, 41, 0.3);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.sched-link:hover,
.sched-link:active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

/* ─── GALLERY ─── */
#gallery {
  background: var(--parchment);
  text-align: center;
}

.gallery-wrap {
  max-width: 1020px;
  margin: 0 auto;
}

.gallery-overflow {
  overflow: hidden;
  margin-top: 2.5rem;
}

.gallery-overflow {
  /* Full bleed on mobile so peeking slides show */
  overflow: hidden;
  margin-top: 2.5rem;
}

.gallery-track {
  display: flex;
  gap: 1.4rem;
  transition: transform 0.72s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* ── Desktop: 3 cards, staggered heights ── */
.g-slide {
  flex: 0 0 calc(33.333% - 0.95rem);
  aspect-ratio: 3/4;
  border: 1px solid rgba(212, 135, 10, 0.25);
  background: linear-gradient(140deg, rgba(212,135,10,0.07), rgba(200,132,90,0.09));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.55s ease,
    opacity 0.55s ease;
  opacity: 0.72;
}

.g-slide.active {
  opacity: 1;
  box-shadow: 0 20px 60px rgba(0,0,0,0.22), 0 0 0 1px rgba(212,135,10,0.35);
  transform: translateY(-6px) scale(1.015);
}

.g-slide:nth-child(even) {
  margin-top: 1.8rem;
}

.g-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

.g-slide-inner {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--turmeric);
  text-align: center;
  padding: 1rem;
  opacity: 0.65;
  line-height: 1.8;
}

.g-slide::before, .g-slide::after {
  content: none;
}

/* ── Mobile: native scroll-snap, single card peeks ── */
@media (max-width: 640px) {
  .gallery-overflow {
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* fade edges to hint at more cards */
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 8%,
      black 92%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 8%,
      black 92%,
      transparent 100%
    );
  }
  .gallery-overflow::-webkit-scrollbar { display: none; }

  .gallery-track {
    gap: 1rem;
    padding: 0.5rem 10vw;
    transition: none;
  }

  .g-slide {
    flex: 0 0 78vw;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    opacity: 0.55;
    transition:
      opacity 0.4s ease,
      transform 0.4s ease,
      box-shadow 0.4s ease;
  }

  /* Active (centered) card pops */
  .g-slide.active {
    opacity: 1;
    transform: scale(1.03);
    box-shadow: 0 16px 48px rgba(0,0,0,0.28), 0 0 0 1px rgba(212,135,10,0.4);
  }
}

.gallery-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2.4rem;
}

@media (max-width: 640px) {
  .gallery-nav { display: none; }
}

.g-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(212, 135, 10, 0.45);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.g-btn:hover {
  background: var(--sindoor);
  border-color: var(--sindoor);
}

.g-btn:hover svg {
  stroke: white;
}

.g-btn svg {
  width: 15px;
  height: 15px;
  stroke: var(--turmeric);
  fill: none;
  stroke-width: 2;
}

.g-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.g-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(212, 135, 10, 0.28);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.g-dot.active {
  background: var(--sindoor);
  transform: scale(1.45);
}

/* ─── FOOTER ─── */
footer {
  background: var(--dark);
  text-align: center;
  padding: clamp(4rem, 8vw, 6rem) 2rem clamp(3rem, 5vw, 4.5rem);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: repeating-linear-gradient(90deg,
      var(--turmeric) 0, var(--turmeric) 6px,
      var(--sindoor) 6px, var(--sindoor) 8px,
      var(--marigold) 8px, var(--marigold) 14px,
      var(--sindoor) 14px, var(--sindoor) 16px);
}

footer::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 70% at 50% 110%, rgba(212, 135, 10, 0.1) 0%, transparent 65%);
}

.footer-inner {
  position: relative;
  z-index: 1;
}

.footer-diya {
  font-size: 2.8rem;
  display: block;
  margin-bottom: 1.2rem;
  animation: diyaGlow 2s ease-in-out infinite alternate;
}

.footer-names {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--marigold);
  margin-bottom: 0.4rem;
}

.footer-tagline {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.52rem, 1.3vw, 0.65rem);
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1.8rem;
}

.footer-orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 1.6rem 0;
}

.footer-orn .fl {
  width: 55px;
  height: 1px;
  background: rgba(212, 135, 10, 0.22);
}

.footer-orn span {
  font-size: 1rem;
  color: var(--turmeric);
  opacity: 0.55;
}

.footer-details {
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.28);
  text-transform: uppercase;
}

.footer-love {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.16);
  margin-top: 2rem;
}

/* ─── PARTICLES ─── */
.particle {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  animation: pFall linear forwards;
  opacity: 0;
}

/* ─── KEYFRAMES ─── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

@keyframes growBar {
  to {
    width: 100px;
  }
}

@keyframes barDance {
  from {
    transform: scaleY(0.3);
  }

  to {
    transform: scaleY(1);
  }
}

@keyframes iconFloat {
  from {
    transform: translateY(0) rotate(-4deg);
  }

  to {
    transform: translateY(-12px) rotate(4deg);
  }
}

@keyframes lotusFloat {
  from {
    transform: translateY(0) rotate(-4deg);
  }

  to {
    transform: translateY(-12px) rotate(4deg);
  }
}

@keyframes scrollPulse {
  0%, 100% {
    opacity: 1;
    transform: scaleY(1);
  }

  50% {
    opacity: 0.3;
    transform: scaleY(0.5);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes sepPulse {
  from {
    opacity: 1;
  }

  to {
    opacity: 0.3;
  }
}

@keyframes marriedReveal {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes iconBounce {
  from {
    transform: translateY(0) rotate(-5deg) scale(1);
  }

  to {
    transform: translateY(-14px) rotate(5deg) scale(1.08);
  }
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

@keyframes heartsFloat {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-8px);
  }
}

@keyframes diyaGlow {
  from {
    filter: drop-shadow(0 0 8px #f4a827) drop-shadow(0 0 20px #d4870a);
  }

  to {
    filter: drop-shadow(0 0 22px #f4a827) drop-shadow(0 0 50px #d4870a) brightness(1.15);
  }
}

@keyframes pFall {
  0% {
    opacity: 0.85;
    transform: translateY(0) rotate(0deg);
  }

  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(560deg);
  }
}


/* ── Havan kund ── */
.havan-wrap {
  position: relative;
  width: min(520px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Blessing figures left & right */
.bless-side {
  position: absolute;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.bless-side.left {
  left: -10px;
}

.bless-side.right {
  right: -10px;
  transform: scaleX(-1);
}

/* flower raining */
.flower-rain {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.petal {
  position: absolute;
  font-size: clamp(0.7rem, 1.8vw, 1.1rem);
  animation: petalFall linear infinite;
  opacity: 0;
}

@keyframes petalFall {
  0% {
    opacity: 0;
    transform: translateY(-20px) rotate(0deg) scale(0.8);
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 0.7;
  }

  100% {
    opacity: 0;
    transform: translateY(420px) rotate(360deg) scale(1.1);
  }
}

/* couple caricature in hero */
.hero-couple-caricature {
  position: relative;
  z-index: 4;
  margin: 0.5rem auto -0.5rem;
  width: min(300px, 68vw);
  display: flex;
  justify-content: center;
}

.hero-couple-caricature .couple-img {
  width: 100%;
  animation: coupleFloat 5s ease-in-out infinite alternate;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.5));
}

@keyframes coupleFloat {
  from {
    transform: translateY(0px);
  }

  to {
    transform: translateY(-12px);
  }
}

/* havan SVG */
.havan-svg {
  width: min(340px, 80vw);
  position: relative;
  z-index: 2;
}

/* flame glow pulse */
.flame-core {
  animation: flameDance 0.4s ease-in-out infinite alternate;
  transform-origin: 50% 100%;
}

.flame-mid {
  animation: flameDance 0.55s ease-in-out infinite alternate 0.1s;
  transform-origin: 50% 100%;
}

.flame-outer {
  animation: flameDance 0.7s ease-in-out infinite alternate 0.2s;
  transform-origin: 50% 100%;
}

.flame-spark {
  animation: sparkFloat 1.2s ease-out infinite;
}

.flame-spark:nth-child(2) {
  animation-delay: 0.3s;
}

.flame-spark:nth-child(3) {
  animation-delay: 0.6s;
}

.flame-spark:nth-child(4) {
  animation-delay: 0.9s;
}

.smoke-wisp {
  animation: smokeRise 2.5s ease-out infinite;
  transform-origin: 50% 100%;
}

.smoke-wisp:nth-child(2) {
  animation-delay: 0.8s;
}

.smoke-wisp:nth-child(3) {
  animation-delay: 1.6s;
}

@keyframes flameDance {
  from {
    transform: scaleX(1) scaleY(1) skewX(0deg);
  }

  to {
    transform: scaleX(0.88) scaleY(1.08) skewX(3deg);
    filter: brightness(1.2);
  }
}

@keyframes sparkFloat {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(var(--sx, 8px), -55px) scale(0.3);
  }
}

@keyframes smokeRise {
  0% {
    opacity: 0.35;
    transform: translateY(0) scaleX(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-60px) scaleX(2.5);
  }
}

/* blessing figure animations */
.bless-arm {
  animation: blessArm 2.5s ease-in-out infinite alternate;
  transform-origin: 80% 100%;
}

.bless-arm.r {
  animation-delay: 0.4s;
}

@keyframes blessArm {
  from {
    transform: rotate(-6deg);
  }

  to {
    transform: rotate(6deg);
  }
}

.bless-flowers {
  animation: blessFlower 2s ease-in-out infinite alternate;
}

@keyframes blessFlower {
  from {
    transform: translateY(0) rotate(-5deg);
  }

  to {
    transform: translateY(-8px) rotate(5deg);
  }
}

/* scene label */
.scene-label {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.5rem, 1.2vw, 0.62rem);
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 1.8rem;
  position: relative;
  z-index: 5;
}


/* ═══════════════════════════════════════════
   CARICATURE SCENE
   ═══════════════════════════════════════════ */
#caricature-scene {
  background: var(--dark);
  position: relative;
  overflow: hidden;
  padding: 0 0 clamp(3rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ambient radial glows */
#caricature-scene::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 50% at 50% 100%, rgba(212, 135, 10, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 45% 55% at 15% 60%, rgba(184, 48, 32, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 45% 55% at 85% 60%, rgba(184, 48, 32, 0.09) 0%, transparent 55%);
}

/* ── Couple image ── */
.couple-img-wrap {
  position: relative;
  z-index: 4;
  width: min(310px, 75vw);
  margin: 0 auto;
  margin-bottom: -30px;
}

.couple-img {
  width: 100%;
  animation: coupleFloat 5s ease-in-out infinite alternate;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.6));
}

@keyframes coupleFloat {
  from {
    transform: translateY(0px) scale(1);
  }

  to {
    transform: translateY(-14px) scale(1.015);
  }
}

/* ── Scene stage (havan + figures) ── */
.scene-stage {
  position: relative;
  width: min(560px, 96vw);
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

/* ── Blessing figures ── */
.bless-figure {
  position: absolute;
  bottom: 18px;
  z-index: 3;
}

.bless-figure.left {
  left: 0;
}

.bless-figure.right {
  right: 0;
  transform: scaleX(-1);
}

/* arm raise animation */
.arm-raise {
  transform-origin: 85% 85%;
  animation: armRaise 3s ease-in-out infinite alternate;
}

.arm-raise.delayed {
  animation-delay: 0.6s;
}

@keyframes armRaise {
  0% {
    transform: rotate(-10deg);
  }

  50% {
    transform: rotate(8deg);
  }

  100% {
    transform: rotate(-4deg);
  }
}

/* flowers bob */
.flower-bunch {
  animation: flowerBob 2.5s ease-in-out infinite alternate;
}

@keyframes flowerBob {
  from {
    transform: translateY(0) rotate(-8deg);
  }

  to {
    transform: translateY(-10px) rotate(6deg);
  }
}

/* ── Havan kund ── */
.havan-kund-svg {
  position: relative;
  z-index: 2;
  width: min(380px, 88vw);
}

/* Flames */
.f-outer {
  animation: fDance 0.65s ease-in-out infinite alternate;
  transform-origin: 50% 100%;
}

.f-mid {
  animation: fDance 0.45s ease-in-out infinite alternate 0.1s;
  transform-origin: 50% 100%;
}

.f-inner {
  animation: fDance 0.3s ease-in-out infinite alternate 0.05s;
  transform-origin: 50% 100%;
}

@keyframes fDance {
  from {
    transform: scaleX(1) scaleY(1) skewX(0deg);
  }

  to {
    transform: scaleX(0.87) scaleY(1.11) skewX(4deg);
    filter: brightness(1.25);
  }
}

/* Sparks */
.spark {
  animation: sparkUp var(--dur, 1.2s) ease-out infinite var(--del, 0s);
}

@keyframes sparkUp {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(var(--sx, 5px), -70px) scale(0.2);
  }
}

/* Smoke */
.smoke {
  animation: smokeUp var(--sdur, 2.8s) ease-out infinite var(--sdel, 0s);
  transform-origin: 50% 100%;
}

@keyframes smokeUp {
  0% {
    opacity: 0.3;
    transform: translateY(0) scaleX(1) rotate(0deg);
  }

  100% {
    opacity: 0;
    transform: translateY(-80px) scaleX(3.5) rotate(8deg);
  }
}

/* ── Falling petals ── */
.petal-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}

.fp {
  position: absolute;
  top: -40px;
  animation: fpFall linear infinite;
  will-change: transform, opacity;
}

@keyframes fpFall {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0deg) scale(0.7);
  }

  8% {
    opacity: 1;
  }

  90% {
    opacity: 0.8;
  }

  100% {
    opacity: 0;
    transform: translateY(520px) rotate(400deg) scale(1.1);
  }
}

/* ── Scene caption ── */
.scene-caption {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.48rem, 1.1vw, 0.6rem);
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  margin-top: 2rem;
  position: relative;
  z-index: 6;
}


/* ════════════════════════════════════════════════════════
   WEDDING CEREMONY SCENE
   ════════════════════════════════════════════════════════ */
#ceremony-scene {
  background: var(--dark);
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4rem) 1rem clamp(3rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

#ceremony-scene::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 45% at 50% 100%, rgba(212, 135, 10, 0.2) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 12% 55%, rgba(184, 48, 32, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 88% 55%, rgba(184, 48, 32, 0.08) 0%, transparent 55%);
}

/* ── Couple caricature ── */
.ceremony-couple {
  position: relative;
  z-index: 6;
  width: min(280px, 68vw);
  margin-bottom: -24px;
  animation: coupleHover 5s ease-in-out infinite alternate;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.65));
}

@keyframes coupleHover {
  from {
    transform: translateY(0) scale(1);
  }

  to {
    transform: translateY(-12px) scale(1.02);
  }
}

/* ── Scene SVG wrapper ── */
.ceremony-svg-wrap {
  position: relative;
  width: min(680px, 98vw);
  z-index: 5;
}

.ceremony-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* ── Mandap pillars glow ── */
.mandap-glow {
  animation: mandapPulse 3s ease-in-out infinite alternate;
}

@keyframes mandapPulse {
  from {
    opacity: 0.55;
  }

  to {
    opacity: 0.85;
  }
}

/* ── Flames ── */
.fl-a {
  animation: flA 0.5s ease-in-out infinite alternate;
  transform-origin: 50% 100%;
}

.fl-b {
  animation: flA 0.38s ease-in-out infinite alternate 0.08s;
  transform-origin: 50% 100%;
}

.fl-c {
  animation: flA 0.28s ease-in-out infinite alternate 0.04s;
  transform-origin: 50% 100%;
}

@keyframes flA {
  from {
    transform: scaleX(1) scaleY(1) skewX(0deg);
  }

  to {
    transform: scaleX(0.84) scaleY(1.14) skewX(5deg);
    filter: brightness(1.3);
  }
}

/* ── Sparks ── */
.sp {
  animation: spUp var(--d, 1.1s) ease-out infinite var(--dl, 0s);
}

@keyframes spUp {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(var(--tx, 6px), var(--ty, -65px)) scale(0.15);
  }
}

/* ── Smoke ── */
.sm {
  animation: smUp var(--sd, 3s) ease-out infinite var(--sdl, 0s);
  transform-origin: 50% 100%;
}

@keyframes smUp {
  0% {
    opacity: 0.28;
    transform: translateY(0) scaleX(1) rotate(0deg);
  }

  100% {
    opacity: 0;
    transform: translateY(-75px) scaleX(3.2) rotate(10deg);
  }
}

/* ── Priest & family sway ── */
.sway-l {
  animation: swL 4s ease-in-out infinite alternate;
  transform-origin: 50% 100%;
}

.sway-r {
  animation: swL 4s ease-in-out infinite alternate 0.7s;
  transform-origin: 50% 100%;
}

.sway-m {
  animation: swL 3.5s ease-in-out infinite alternate 0.3s;
  transform-origin: 50% 100%;
}

@keyframes swL {
  from {
    transform: rotate(-2.5deg);
  }

  to {
    transform: rotate(2.5deg);
  }
}

/* ── Petal shower ── */
.petals-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 7;
}

.wp {
  position: absolute;
  top: -40px;
  animation: wpFall linear infinite;
  will-change: transform, opacity;
}

@keyframes wpFall {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0deg) scale(0.6);
  }

  6% {
    opacity: 1;
  }

  90% {
    opacity: 0.85;
  }

  100% {
    opacity: 0;
    transform: translateY(580px) rotate(420deg) scale(1.05);
  }
}

/* ── Blessing hands sway ── */
.bless-hand {
  animation: bhSway 2.8s ease-in-out infinite alternate;
  transform-origin: 50% 95%;
}

.bless-hand.r {
  animation-delay: 0.5s;
}

@keyframes bhSway {
  from {
    transform: rotate(-8deg) translateY(0);
  }

  to {
    transform: rotate(6deg) translateY(-6px);
  }
}

/* scene label */
.ceremony-caption {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.48rem, 1.1vw, 0.6rem);
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  margin-top: 1.5rem;
  position: relative;
  z-index: 8;
}


/* ════════════════════════════════════════════════════════
   HAVAN SCENE
   ════════════════════════════════════════════════════════ */
#havan-scene {
  background: var(--dark);
  position: relative;
  overflow: hidden;
  padding: 0 0 clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

#havan-scene::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 40% at 50% 90%, rgba(212, 135, 10, 0.22) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 10% 60%, rgba(184, 48, 32, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 90% 60%, rgba(184, 48, 32, 0.08) 0%, transparent 55%);
}

/* Couple image */
.havan-couple {
  position: relative;
  z-index: 6;
  width: min(260px, 62vw);
  margin-bottom: -28px;
  filter: drop-shadow(0 18px 35px rgba(0, 0, 0, 0.7));
  animation: coupleRise 5s ease-in-out infinite alternate;
}

@keyframes coupleRise {
  from {
    transform: translateY(0) scale(1);
  }

  to {
    transform: translateY(-13px) scale(1.02);
  }
}

/* Scene SVG */
.havan-scene-svg {
  width: min(700px, 100vw);
  height: auto;
  overflow: visible;
  position: relative;
  z-index: 5;
}

/* ── Flames ── */
.hf-outer {
  animation: hfDance 0.6s ease-in-out infinite alternate;
  transform-origin: 50% 100%;
}

.hf-mid {
  animation: hfDance 0.42s ease-in-out infinite alternate 0.07s;
  transform-origin: 50% 100%;
}

.hf-core {
  animation: hfDance 0.28s ease-in-out infinite alternate 0.03s;
  transform-origin: 50% 100%;
}

@keyframes hfDance {
  from {
    transform: scaleX(1) scaleY(1) skewX(0deg);
  }

  to {
    transform: scaleX(0.83) scaleY(1.15) skewX(5deg);
    filter: brightness(1.3);
  }
}

/* ── Sparks ── */
.hsp {
  animation: hspUp var(--d, 1.1s) ease-out infinite var(--dl, 0s);
}

@keyframes hspUp {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(var(--tx, 5px), var(--ty, -70px)) scale(0.1);
  }
}

/* ── Smoke ── */
.hsm {
  animation: hsmUp var(--sd, 3s) ease-out infinite var(--sdl, 0s);
  transform-origin: 50% 100%;
}

@keyframes hsmUp {
  0% {
    opacity: 0.3;
    transform: translateY(0) scaleX(1) rotate(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-85px) scaleX(3.8) rotate(12deg);
  }
}

/* ── Figure gentle sway ── */
.fig-sway {
  animation: figSway var(--sw, 4s) ease-in-out infinite alternate var(--swdl, 0s);
  transform-origin: 50% 100%;
}

@keyframes figSway {
  from {
    transform: rotate(-2deg);
  }

  to {
    transform: rotate(2deg);
  }
}

/* ── Blessing arm float ── */
.arm-float {
  animation: armFloat var(--af, 3s) ease-in-out infinite alternate var(--afdl, 0s);
  transform-origin: 85% 90%;
}

@keyframes armFloat {
  from {
    transform: rotate(-10deg) translateY(0);
  }

  to {
    transform: rotate(8deg) translateY(-7px);
  }
}

/* ── Petal rain ── */
.hpetal-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 7;
}

.hpetal {
  position: absolute;
  top: -30px;
  animation: hpetalFall linear infinite;
  will-change: transform, opacity;
}

@keyframes hpetalFall {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0deg) scale(0.65);
  }

  7% {
    opacity: 1;
  }

  92% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: translateY(600px) rotate(440deg) scale(1.08);
  }
}

/* Caption */
.havan-caption {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.47rem, 1.05vw, 0.58rem);
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.27);
  margin-top: 1.6rem;
  position: relative;
  z-index: 8;
  text-align: center;
  padding: 0 1rem;
}


/* ════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — comprehensive fixes
   ════════════════════════════════════════════════════════ */

/* ── Small phones: 480px and below ── */
@media (max-width: 480px) {

  /* Hero padding */
  #hero {
    padding: 1rem 0.75rem;
  }

  .hero-inner {
    gap: 0.55rem;
    padding: 0 0.5rem;
    width: 100%;
  }

  /* Names: bump up minimum so they don't look tiny */
  .hero-names {
    font-size: clamp(2.8rem, 13vw, 5rem);
    line-height: 1.0;
    word-break: break-word;
  }

  /* Date: smaller, let it wrap across two lines naturally */
  .hero-date {
    font-size: clamp(0.8rem, 3vw, 1rem);
    line-height: 1.6;
    max-width: 88vw;
  }

  /* On mobile: hide the separator · and put day/year on separate lines */
  .hero-date-sep { display: none; }
  .hero-date-day,
  .hero-date-year { display: block; text-align: center; }

  /* Sub heading: kill the huge letter-spacing */
  .hero-sub-eng {
    font-size: 0.52rem;
    letter-spacing: 0.15em;
  }

  /* Blessing text */
  .hero-blessing {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
  }

  /* Shrink corner SVGs so they don't eat into content */
  .corner-svg {
    width: clamp(80px, 22vw, 120px);
  }

  /* Nav: tighter spacing */
  nav {
    gap: 0.5rem 1rem;
    padding: 0.7rem 0.5rem;
  }

  nav a {
    font-size: 0.5rem;
    letter-spacing: 0.1em;
  }

  /* Countdown boxes */
  .cd-grid {
    gap: 0.5rem;
    margin-top: 1.5rem;
  }

  .cd-box {
    padding: 0.65rem 0.6rem;
    min-width: 60px;
  }

  /* Schedule timeline */
  .sched-item {
    grid-template-columns: 72px 20px 1fr;
    gap: 0 0.6rem;
    padding: 1rem 0;
  }

  .sched-date {
    font-size: 0.44rem;
  }

  .sched-time {
    font-size: 0.82rem;
  }

  .sched-info strong {
    font-size: 0.92rem;
  }

  .sched-info span {
    font-size: 0.7rem;
  }

  /* Sections */
  .sec {
    padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 1.5rem);
  }

  .sec-title {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }

  /* Footer */
  .footer-tagline {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    padding: 0 0.5rem;
    text-align: center;
  }

  /* Fixed scroll cue overlaps on small screens — side cues replace it */
  .scroll-cue {
    display: none;
  }

  /* Side cues: pull them closer to the edge on narrow screens */
  .scroll-side--left  { left: 0.4rem; }
  .scroll-side--right { right: 0.4rem; }

  .ssl-track { height: 70px; }

  /* Venue pill: use clamp so it stays readable on mobile */
  .venue-pill-text {
    font-size: clamp(0.9rem, 3.2vw, 1.1rem);
  }

  .venue-pill-hash {
    font-size: clamp(0.85rem, 3vw, 1rem);
  }

  .hero-venue-pill {
    padding: 0.45rem 1.1rem;
  }
}

/* ── Very small phones: 360px and below ── */
@media (max-width: 360px) {

  .hero-names {
    font-size: clamp(2.4rem, 12vw, 3.2rem);
  }

  .hero-date {
    font-size: 0.78rem;
  }

  .hero-sub-eng {
    letter-spacing: 0.08em;
    font-size: 0.48rem;
  }

  nav {
    gap: 0.35rem 0.6rem;
    padding: 0.55rem 0.4rem;
  }

  nav a {
    font-size: 0.44rem;
    letter-spacing: 0.05em;
  }

  .sched-item {
    grid-template-columns: 60px 16px 1fr;
    gap: 0 0.4rem;
  }

  .sched-date {
    font-size: 0.4rem;
  }

  .sched-time {
    font-size: 0.72rem;
  }

  .cd-box {
    min-width: 52px;
    padding: 0.5rem 0.45rem;
  }

  /* Hide bottom corner SVGs on tiny screens */
  .corner-svg.bl,
  .corner-svg.br {
    display: none;
  }

  .venue-pill-text {
    font-size: 0.46rem;
    letter-spacing: 0.08em;
  }
}

/* ════════════════════════════════════════════════════════
   STORY PARAGRAPHS — staggered fade-up on scroll
   ════════════════════════════════════════════════════════ */
.story-p {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.story-p.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════════════════════
   RSVP BUTTON — sticky, bottom-left
   ════════════════════════════════════════════════════════ */
#rsvp-btn {
  position: fixed;
  bottom: 1.6rem;
  left: 1.4rem;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem 0.6rem 0.85rem;
  border-radius: 999px;
  background: var(--sindoor);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(184, 48, 32, 0.35), 0 1px 4px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s ease;
}

#rsvp-btn.rsvp-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

#rsvp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(184, 48, 32, 0.45), 0 2px 6px rgba(0,0,0,0.15);
}

.rsvp-icon { font-size: 1rem; }

.rsvp-label {
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #fff;
}

/* ════════════════════════════════════════════════════════
   RSVP MODAL OVERLAY
   ════════════════════════════════════════════════════════ */
#rsvp-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(24, 10, 0, 0);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  transition: background 0.4s ease;
}

#rsvp-overlay.open {
  background: rgba(24, 10, 0, 0.55);
  pointer-events: all;
  backdrop-filter: blur(3px);
}

/* Bottom sheet */
#rsvp-sheet {
  width: min(480px, 100%);
  background: var(--warm-white);
  border-radius: 1.5rem 1.5rem 0 0;
  padding: 2.2rem 2rem 2.8rem;
  text-align: center;
  position: relative;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
}

#rsvp-overlay.open #rsvp-sheet {
  transform: translateY(0);
}

/* Drag handle */
#rsvp-sheet::before {
  content: '';
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: rgba(212, 135, 10, 0.25);
}

#rsvp-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 0.85rem;
  color: var(--sandalwood);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

#rsvp-close:hover { opacity: 1; }

.rsvp-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.52rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sandalwood);
  margin-bottom: 0.6rem;
}

.rsvp-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-style: italic;
  color: var(--deep-red);
  line-height: 1.1;
  margin-bottom: 0.8rem;
}

.rsvp-orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.rsvp-line {
  width: 40px;
  height: 1px;
  background: var(--turmeric);
  opacity: 0.4;
}

.rsvp-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--sandalwood);
  margin-bottom: 1.8rem;
  line-height: 1.6;
}

.rsvp-btns {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.rsvp-yes, .rsvp-no {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 0.6rem;
  border: none;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.rsvp-yes {
  background: var(--sindoor);
  color: #fff;
  box-shadow: 0 3px 14px rgba(184, 48, 32, 0.3);
}

.rsvp-yes:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 48, 32, 0.4);
}

.rsvp-no {
  background: transparent;
  color: var(--sandalwood);
  border: 1px solid rgba(200, 132, 90, 0.35);
}

.rsvp-no:hover {
  background: rgba(200, 132, 90, 0.07);
  transform: translateY(-1px);
}
