:root {
  --emerald-950: #021512;
  --emerald-900: #042821;
  --emerald-800: #074437;
  --peacock-teal: #14b8a6;
  --gold-light: #fff0bc;
  --gold: #dfc070;
  --gold-deep: #a67827;
  --ivory: #faf4e6;
  --ivory-soft: rgba(250, 244, 230, 0.84);
  --font-display: 'Cinzel', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Great Vibes', cursive;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--emerald-950);
}

body {
  margin: 0;
  color: var(--ivory);
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 50% 18%, rgba(16, 78, 63, 0.45), transparent 58%),
    radial-gradient(circle at 20% 75%, rgba(20, 120, 108, 0.2), transparent 52%),
    radial-gradient(circle at 80% 80%, rgba(180, 120, 32, 0.14), transparent 55%),
    var(--emerald-950);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* Scroll Progress Thread */
.scroll-thread {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.06);
}

.scroll-thread-fill {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--peacock-teal), var(--gold), var(--gold-light));
}

/* Fullscreen 3D Canvas */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Foreground Crisp Petal Fountain Canvas (renders sharp above glass panels) */
#petal-fx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

/* Shaded Reflective Smoked Glass Surface */
.glass-shaded {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(7, 42, 34, 0.48) 0%, rgba(2, 20, 16, 0.72) 100%);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  border: 1px solid rgba(223, 192, 112, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 24px 68px rgba(0, 0, 0, 0.52);
}

/* Diagonal Glass Reflection Highlight */
.glass-shaded::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.13) 0%,
    rgba(255, 255, 255, 0.03) 34%,
    transparent 56%
  );
  pointer-events: none;
  z-index: 0;
}

.glass-shaded > * {
  position: relative;
  z-index: 1;
}

.glass-inner-frame {
  position: absolute !important;
  inset: 12px;
  border: 1px solid rgba(223, 192, 112, 0.18);
  border-radius: inherit;
  pointer-events: none;
  z-index: 0 !important;
}

/* Metallic Gold Gradient Text */
.gold-gradient-text {
  background: linear-gradient(135deg, #c9993a 0%, #fff1be 35%, #d6a944 62%, #fff3c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Floating Top-Right Controls */
.floating-controls {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  z-index: 45;
  display: flex;
  gap: 8px;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(223, 192, 112, 0.42);
  background: rgba(4, 34, 28, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--gold-light);
  padding: 8px 14px;
  border-radius: 999px;
  font: 500 12.5px/1 var(--font-sans);
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.pill-btn:hover {
  transform: translateY(-1px);
  border-color: var(--gold-light);
  background: rgba(7, 54, 44, 0.88);
}

.pill-btn[aria-pressed='true'] {
  border-color: var(--peacock-teal);
  color: #ffffff;
  background: linear-gradient(135deg, rgba(13, 110, 96, 0.85), rgba(4, 40, 33, 0.94));
}

/* ======================================================
   CARVED TEMPLE DOORS & JAALI WAX-SEAL GATE
   ====================================================== */
.gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  perspective: 1800px;
}

.gate.is-hidden {
  display: none;
}

.door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50vw;
  overflow: hidden;
  backface-visibility: hidden;
  background: linear-gradient(180deg, #0b2c25 0%, #061c17 26%, #24140c 26%, #160b06 100%);
  box-shadow: inset 0 0 85px rgba(0, 0, 0, 0.72);
}

.door-left {
  left: 0;
  transform-origin: left center;
  border-right: 1.5px solid rgba(223, 192, 112, 0.48);
}

.door-right {
  right: 0;
  transform-origin: right center;
  border-left: 1.5px solid rgba(223, 192, 112, 0.48);
}

.door-jaali {
  position: absolute;
  inset: 0 0 74% 0;
  opacity: 0.32;
  background-color: #0e382e;
  background-image:
    radial-gradient(circle at 0 50%, transparent 18px, rgba(223, 192, 112, 0.48) 18.5px, rgba(223, 192, 112, 0.48) 19.5px, transparent 20px),
    radial-gradient(circle at 100% 50%, transparent 18px, rgba(223, 192, 112, 0.48) 18.5px, rgba(223, 192, 112, 0.48) 19.5px, transparent 20px);
  background-size: 36px 36px;
}

.door-wood {
  position: absolute;
  top: 13vh;
  bottom: 0;
  width: 92%;
  background:
    repeating-linear-gradient(90deg, rgba(255, 224, 175, 0.025) 0 2px, transparent 2px 18px),
    linear-gradient(165deg, #3b2216 0%, #27150d 55%, #180b06 100%);
  border: 1.5px solid rgba(223, 192, 112, 0.38);
  box-shadow: inset 0 0 46px rgba(0, 0, 0, 0.7);
}

.door-left .door-wood {
  right: 0;
  border-radius: 150px 0 0 0;
  border-right: none;
}

.door-right .door-wood {
  left: 0;
  border-radius: 0 150px 0 0;
  border-left: none;
}

.door-panel-trim {
  position: absolute;
  inset: 28px 24px 36px;
  border: 1px dashed rgba(223, 192, 112, 0.3);
  border-radius: inherit;
}

.door-knocker {
  position: absolute;
  top: 63%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}

.door-left .door-knocker {
  right: clamp(96px, 16vw, 170px);
}

.door-right .door-knocker {
  left: clamp(96px, 16vw, 170px);
}

.knocker-plate {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold-light), var(--gold-deep));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
}

.knocker-ring {
  position: absolute;
  top: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3.5px solid var(--gold);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
}

.door-flora {
  position: absolute;
  bottom: 0;
  width: min(200px, 36vw);
  height: auto;
  pointer-events: none;
  z-index: 1;
}

.flora-left {
  left: 0;
}

.flora-right {
  right: 0;
}

.gate-center {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 28px 24px;
  max-width: 430px;
}

.gate-ganesha {
  color: var(--gold-light);
  margin-bottom: 6px;
  filter: drop-shadow(0 0 12px rgba(255, 240, 188, 0.38));
}

.gate-blessing {
  margin: 0 0 10px;
  font: 600 0.72rem/1.4 var(--font-sans);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.gate-kicker {
  margin: 0 0 6px;
  font: 500 0.84rem/1.4 var(--font-sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-soft);
}

.gate-names {
  margin: 0;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.55rem, 7.6vw, 4.1rem);
  line-height: 1.08;
  word-spacing: 0.12em;
  color: #fffdf7;
  text-shadow: 0 6px 26px rgba(0, 0, 0, 0.78);
}

.gate-date {
  margin: 10px 0 28px;
  font: 500 0.9rem/1 var(--font-sans);
  letter-spacing: 0.3em;
  color: var(--gold-light);
}

.wax-seal-btn {
  position: relative;
  width: 122px;
  height: 122px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: inline-grid;
  place-items: center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.wax-seal-btn:hover {
  transform: scale(1.06) translateY(-2px);
}

.seal-halo {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.34), rgba(223, 192, 112, 0.25) 45%, transparent 72%);
  animation: pulseHalo 2.6s ease-in-out infinite;
}

.seal-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 240, 188, 0.65);
  animation: spinSlow 24s linear infinite;
}

.seal-core {
  position: relative;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 32% 28%, #0f685a 0%, #063d34 60%, #03211c 100%);
  box-shadow:
    inset 0 3px 10px rgba(255, 255, 255, 0.22),
    inset 0 -8px 16px rgba(0, 0, 0, 0.68),
    0 14px 36px rgba(0, 0, 0, 0.78),
    0 0 0 2px rgba(223, 192, 112, 0.78);
}

.seal-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 240, 200, 0.28) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: sealSheen 3.6s ease-in-out infinite;
}

.seal-monogram {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.46rem;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.55);
}

.seal-sub {
  margin-top: 4px;
  font: 600 0.64rem/1 var(--font-sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 244, 218, 0.92);
}

.gate-hint {
  margin: 18px 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 244, 224, 0.76);
}

/* ======================================================
   MAIN INVITATION SHELL
   ====================================================== */
.app-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow-x: hidden;
}

.section-block {
  max-width: 1060px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 36px);
}

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding-top: clamp(24px, 4vh, 46px);
  padding-bottom: 16px;
}

/* Open Transparent Hero Stage + Center Circle 3D Radha-Krishna Arch */
.hero-stage {
  width: min(720px, 100%);
  text-align: center;
  padding: 4px 12px;
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
}

.ganesha-crest {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  color: var(--gold-light);
}

.blessing-text {
  font: 600 0.68rem/1.2 var(--font-display);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.couple-arch-frame {
  position: relative;
  width: min(226px, 26vh, 66vw);
  aspect-ratio: 3 / 4;
  margin: 2px auto 12px;
  transform: translateZ(30px);
}

.arch-aura {
  position: absolute;
  inset: -72px;
  border-radius: 50%;
  background: radial-gradient(
    closest-side circle at 50% 46%,
    rgba(20, 184, 166, 0.26) 0%,
    rgba(237, 209, 136, 0.2) 48%,
    rgba(20, 184, 166, 0.05) 76%,
    transparent 100%
  );
  animation: auraBreathe 5.2s ease-in-out infinite;
  z-index: -2;
  pointer-events: none;
}

.arch-center-circle {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(237, 209, 136, 0.28) 0%, rgba(16, 138, 118, 0.42) 48%, rgba(4, 34, 28, 0.64) 72%, transparent 100%);
  border: 1.5px solid rgba(237, 209, 136, 0.46);
  box-shadow:
    inset 0 0 24px rgba(255, 240, 188, 0.22),
    0 0 38px rgba(20, 184, 166, 0.28);
  z-index: 1;
  pointer-events: none;
  animation: circleSpinSlow 40s linear infinite;
}

.arch-center-circle::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 240, 188, 0.55);
}

.arch-center-circle::after {
  content: '';
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 1px solid rgba(153, 246, 228, 0.35);
}

.jharokha-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.couple-portrait {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  clip-path: url(#hero-arch-clip);
  filter: contrast(1.03) saturate(1.05) drop-shadow(0 16px 30px rgba(0, 0, 0, 0.58));
  -webkit-mask-image: radial-gradient(ellipse 92% 94% at 50% 49%, #000 80%, rgba(0, 0, 0, 0.72) 94%, transparent 100%);
  mask-image: radial-gradient(ellipse 92% 94% at 50% 49%, #000 80%, rgba(0, 0, 0, 0.72) 94%, transparent 100%);
}

.eyebrow {
  margin: 0 0 6px;
  font: 500 0.74rem/1.4 var(--font-sans);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.couple-title {
  margin: 2px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  transform: translateZ(24px);
}

.script-name {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.55rem, 6.4vw, 4.1rem);
  line-height: 1.02;
  padding: 0 12px;
  color: #fff8eb;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}

.amp {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 2.8vw, 1.7rem);
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.hero-date {
  margin: 0 0 8px;
  font: 500 0.84rem/1.4 var(--font-sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ivory-soft);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero-invite-line {
  margin: 0 auto 16px;
  max-width: 44ch;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.02rem, 2vw, 1.16rem);
  line-height: 1.48;
  color: rgba(252, 247, 235, 0.9);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
}

/* Translucent Hairline Editorial Countdown */
.countdown-strip {
  display: grid;
  width: fit-content;
  grid-template-columns: repeat(4, minmax(66px, 98px));
  align-items: center;
  margin: 0 auto 16px;
  padding: 10px 10px;
  border-top: 1px solid rgba(223, 192, 112, 0.36);
  border-bottom: 1px solid rgba(223, 192, 112, 0.36);
  background: rgba(4, 34, 28, 0.34);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cd-tile {
  position: relative;
  padding: 4px 10px;
}

.cd-tile:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: rgba(223, 192, 112, 0.28);
}

.cd-value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 3.6vw, 2.15rem);
  font-weight: 500;
  line-height: 1.08;
  color: #fff2d4;
}

.cd-label {
  display: block;
  margin-top: 4px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.cd-complete {
  grid-column: 1 / -1;
  padding: 8px 18px;
  color: #fff2d4;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
}

.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 240, 188, 0.88);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.scroll-arrow {
  width: 12px;
  height: 12px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg);
  animation: bobDown 1.8s ease-in-out infinite;
}

/* ======================================================
   SMOKED GLASS SECTION CARDS
   ====================================================== */
.glass-card {
  border-radius: 18px;
  padding: clamp(36px, 5vw, 56px) clamp(22px, 5vw, 52px);
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
}

.ornament {
  display: block;
  text-align: center;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 4px;
}

.section-kicker {
  margin: 0 0 6px;
  text-align: center;
  font: 600 0.72rem/1.4 var(--font-display);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-heading {
  margin: 0 0 22px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  line-height: 1.2;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.header-glass {
  display: inline-block;
  padding: 22px 34px;
  border-radius: 16px;
}

.section-sub {
  margin: 0 auto;
  max-width: 520px;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--ivory-soft);
}

.family-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 24px;
  margin-top: 8px;
}

.family-pillar {
  text-align: center;
  padding: 10px 8px;
}

.family-parents {
  margin: 0 0 6px;
  min-height: 2.8em;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: clamp(1.14rem, 2.3vw, 1.34rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--gold-light);
}

.family-house {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: rgba(250, 244, 230, 0.74);
}

.family-rel {
  margin: 0 0 4px;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.04rem;
  color: rgba(153, 246, 228, 0.88);
}

.family-person {
  margin: 0;
  font-family: var(--font-script);
  font-size: clamp(2.25rem, 4.6vw, 3rem);
  font-weight: 400;
  color: #ffffff;
}

.family-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.divider-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, transparent, rgba(223, 192, 112, 0.55), transparent);
}

.divider-knot {
  color: var(--gold);
  font-size: 0.95rem;
}

/* ======================================================
   VENUES (#venues)
   ====================================================== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.event-card {
  border-radius: 16px;
  padding: 34px 28px 28px;
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
}

.event-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(20, 184, 166, 0.16);
  border: 1px solid rgba(223, 192, 112, 0.35);
  color: var(--gold-light);
  margin-bottom: 14px;
}

.event-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(223, 192, 112, 0.14);
  border: 1px solid rgba(223, 192, 112, 0.3);
  margin-bottom: 10px;
}

.event-title {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: #ffffff;
}

.event-subtitle {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: rgba(250, 244, 230, 0.76);
}

.event-meta {
  padding: 12px 14px;
  border-left: 2.5px solid var(--gold);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 14px;
  color: var(--ivory);
}

.event-desc {
  margin: 0 0 18px;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--ivory-soft);
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-embed-wrap {
  margin-top: 0;
  max-height: 0;
  overflow: hidden;
  border-radius: 10px;
  transition: max-height 0.45s ease, margin-top 0.35s ease;
}

.map-embed-wrap.open {
  margin-top: 16px;
  max-height: 240px;
  border: 1px solid rgba(223, 192, 112, 0.35);
}

.map-embed-wrap iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font: 500 0.84rem/1 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold-solid {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  color: var(--emerald-950);
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(223, 192, 112, 0.32);
  color: var(--ivory);
}

.btn-glass:hover {
  background: rgba(223, 192, 112, 0.16);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  color: var(--emerald-950);
  font-weight: 600;
  padding: 12px 22px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}

.btn-outline-gold {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(223, 192, 112, 0.52);
  color: var(--gold-light);
  padding: 12px 20px;
}

.btn-outline-gold:hover {
  background: rgba(223, 192, 112, 0.14);
  border-color: var(--gold-light);
}

.calendar-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

/* ======================================================
   TIMELINE GRID (#schedule)
   ====================================================== */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.glass-shaded-inner {
  padding: 20px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(223, 192, 112, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  text-align: center;
}

.timeline-step {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(223, 192, 112, 0.16);
  border: 1px solid rgba(223, 192, 112, 0.38);
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.timeline-time {
  font: 600 0.74rem/1 var(--font-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(153, 246, 228, 0.92);
  margin-bottom: 6px;
}

.timeline-title {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--gold-light);
}

.timeline-detail {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ivory-soft);
}

/* ======================================================
   CLOSING & TRANSPARENT PIXORA FOOTER
   ====================================================== */
.closing-stage {
  text-align: center;
  padding: clamp(36px, 5vw, 56px) clamp(20px, 4vw, 44px);
  border-radius: 18px;
}

.closing-note {
  margin: 0 auto 24px;
  max-width: 540px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.24rem;
  line-height: 1.55;
  color: var(--ivory-soft);
}

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

.blessings-feedback {
  min-height: 22px;
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--gold-light);
}

.compliments-box {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(223, 192, 112, 0.24);
}

.compliments-label {
  margin: 0 0 6px;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 240, 188, 0.78);
}

.compliments-names {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: #ffffff;
}

.contacts-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(223, 192, 112, 0.36);
  color: var(--gold-light);
  text-decoration: none;
  font-size: 0.88rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-chip:hover {
  background: rgba(223, 192, 112, 0.16);
  transform: translateY(-1px);
}

.back-top-wrap {
  margin-top: 26px;
}

.back-top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 240, 188, 0.8);
  text-decoration: none;
}

.back-top-link:hover {
  color: var(--gold-light);
}

.pixora-footer {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pixora-prefix {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 240, 188, 0.78);
}

.pixora-logo {
  height: 44px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  background: transparent;
  border: 0;
  padding: 0;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.5));
}

/* Toast Notification */
.toast {
  position: fixed;
  top: max(62px, calc(env(safe-area-inset-top) + 56px));
  right: max(16px, env(safe-area-inset-right));
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  z-index: 60;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(4, 34, 28, 0.94);
  border: 1px solid rgba(223, 192, 112, 0.72);
  color: var(--gold-light);
  font-size: 0.8rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframes */
@keyframes auraBreathe {
  0%, 100% { transform: scale(0.96); opacity: 0.72; }
  50% { transform: scale(1.06); opacity: 1; }
}

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

@keyframes pulseHalo {
  0%, 100% { transform: scale(0.95); opacity: 0.55; }
  50% { transform: scale(1.12); opacity: 0.95; }
}

@keyframes sealSheen {
  0%, 60% { transform: translateX(-125%); }
  85%, 100% { transform: translateX(125%); }
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

@keyframes bobDown {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50% { transform: rotate(45deg) translate(4px, 4px); }
}

/* Responsive: Laptop & Tablet (<= 920px) & Mobile (<= 600px) */
@media (max-width: 920px) {
  .timeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .family-split {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .family-parents {
    min-height: 0;
  }

  .family-divider {
    flex-direction: row;
    justify-content: center;
  }

  .divider-line {
    width: 48px;
    height: 1px;
  }
}

@media (max-width: 600px) {
  .floating-controls {
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
  }

  .pill-btn {
    padding: 9px 13px;
    font-size: 12px;
  }

  .couple-arch-frame {
    width: min(230px, 64vw);
    margin: 2px auto 14px;
  }

  .script-name {
    font-size: clamp(2.55rem, 11vw, 3.25rem);
  }

  .hero-date {
    font-size: 0.76rem;
    letter-spacing: 0.18em;
  }

  .hero-invite-line {
    font-size: 1rem;
    margin-bottom: 18px;
  }

  .timeline-grid {
    grid-template-columns: 1fr;
  }

  .countdown-strip {
    grid-template-columns: repeat(4, minmax(56px, 78px));
    padding: 10px 4px;
    margin-bottom: 18px;
  }

  .cd-tile {
    padding: 2px 6px;
  }

  .event-card {
    padding: 26px 20px 22px;
  }

  .event-actions {
    flex-direction: column;
  }

  .event-actions .btn,
  .blessings-actions .btn,
  .calendar-actions .btn {
    width: 100%;
    min-height: 44px;
  }

  .door-knocker {
    top: 52%;
  }

  .door-left .door-knocker {
    right: auto;
    left: 18px;
  }

  .door-right .door-knocker {
    left: auto;
    right: 18px;
  }

  .wax-seal-btn {
    width: 110px;
    height: 110px;
  }

  .seal-core {
    width: 96px;
    height: 96px;
  }

  .pixora-logo {
    height: 36px;
  }
}

/* Compact fit for 1280x720 / 1366x768 laptop viewports */
@media (max-height: 760px) and (min-width: 601px) {
  .hero {
    padding-top: 18px;
    padding-bottom: 10px;
  }

  .hero-stage {
    padding: 0 12px;
  }

  .ganesha-crest {
    flex-direction: row;
    margin-bottom: 4px;
    gap: 8px;
  }

  .ganesha-crest svg {
    width: 30px;
    height: 30px;
  }

  .couple-arch-frame {
    width: clamp(148px, 23vh, 182px);
    margin: 2px auto 8px;
  }

  .eyebrow {
    margin-bottom: 2px;
    font-size: 0.68rem;
  }

  .script-name {
    font-size: clamp(2.1rem, 4.4vw, 2.75rem);
  }

  .amp {
    font-size: 1.15rem;
  }

  .couple-title {
    margin: 0 0 4px;
    gap: 0;
  }

  .hero-date {
    margin-bottom: 4px;
    font-size: 0.78rem;
  }

  .hero-invite-line {
    margin-bottom: 10px;
    font-size: 0.96rem;
    line-height: 1.36;
  }

  .countdown-strip {
    margin-bottom: 10px;
    padding: 6px 8px;
  }

  .cd-value {
    font-size: 1.45rem;
  }
}

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