/* =========================================================
   SHAHI PATRA — ROYAL INDIAN WEDDING INVITATION
   100% Reference-Aligned Layout, Painted Pichwai Artwork & Motion
========================================================= */
:root {
  --burgundy: #4A041E;
  --burgundy-mid: #5A0B26;
  --burgundy-light: #721335;
  --gold: #D4AF37;
  --gold-bright: #F4D88B;
  --peach-gold: #F6CF92;
  --gold-deep: #A67C1E;
  --bronze: #6B421B;
  --cream: #F7E4CE;
  --cream-light: #FDF8F0;
  --parchment: #F4E6CE;
  --crimson: #B81D3A;
  --ink: #3B081B;

  --font-display: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-dev: "Noto Serif Devanagari", serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-serif);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.hidden {
  display: none !important;
}

/* =========================================================
   PERSISTENT LANGUAGE TRANSLATOR (TOP RIGHT)
========================================================= */
.lang-switcher {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1200;
  font-family: var(--font-sans);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 251, 244, 0.96);
  border: 1.5px solid var(--gold);
  color: var(--burgundy);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(59, 8, 27, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lang-toggle:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(59, 8, 27, 0.32);
}

.lang-toggle svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.lang-badge {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lang-menu {
  position: absolute;
  top: 52px;
  right: 0;
  min-width: 152px;
  background: var(--cream-light);
  border: 1.5px solid var(--gold);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 12px 28px rgba(59, 8, 27, 0.28);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--burgundy);
  font-family: var(--font-dev), var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.lang-option:hover {
  background: rgba(74, 4, 30, 0.08);
}

.lang-option.active {
  background: var(--burgundy);
  color: var(--gold-bright);
}

.lang-code {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.75;
}

body.lang-devanagari {
  font-family: var(--font-dev), var(--font-serif);
}

body.lang-devanagari .hero-couple-names,
body.lang-devanagari .scroll-name,
body.lang-devanagari .scroll-parents,
body.lang-devanagari .ceremonies-heading,
body.lang-devanagari .ceremony-title,
body.lang-devanagari .easel-message,
body.lang-devanagari .save-date-text-btn,
body.lang-devanagari .ogee-btn-label {
  font-family: var(--font-dev), serif;
  font-style: normal;
}

body.lang-devanagari .plaque-drum span {
  font-family: var(--font-dev), serif;
  font-size: 2.45rem;
}

/* =========================================================
   TOAST NOTIFICATION
========================================================= */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(24px);
  background: var(--burgundy);
  color: var(--gold-bright);
  border: 1px solid var(--gold);
  padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  z-index: 1300;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================================================
   SECTION 1A: ROYAL TRIPTYCH GATE COVER
========================================================= */
.royal-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: transparent;
  transition: opacity 0.7s ease 1.35s, visibility 0.7s ease 1.35s;
}

.royal-gate.opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-panel {
  flex: 1;
  position: relative;
  z-index: 3;
  background-color: var(--burgundy);
  overflow: hidden;
  transition: transform 0.65s cubic-bezier(0.65, 0, 0.35, 1);
}

/* 2-Stage Door Reveal: slide inward, then swing outward */
.royal-gate.closing-in .gate-left { transform: translateX(66%); }
.royal-gate.closing-in .gate-right { transform: translateX(-66%); }
.royal-gate.opened .gate-left { transform: translateX(-105%); }
.royal-gate.opened .gate-right { transform: translateX(105%); }

.gate-damask {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 10 C48 22, 56 30, 40 44 C24 30, 32 22, 40 10 Z M40 44 C54 52, 58 64, 40 72 C22 64, 26 52, 40 44 Z M10 40 C22 32, 30 24, 40 40 C30 56, 22 48, 10 40 Z M70 40 C58 32, 50 24, 40 40 C50 56, 58 48, 70 40 Z' fill='%23F1D37A'/%3E%3C/svg%3E");
  background-size: 76px 76px;
}

/* Vertical repeating 4-pointed gold star outer trim on cover doors */
.door-outer-trim {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18px;
  z-index: 2;
  background-color: #3A0216;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='22' viewBox='0 0 18 22'%3E%3Cline x1='2' y1='0' x2='2' y2='22' stroke='%23D4AF37' stroke-width='1'/%3E%3Cline x1='16' y1='0' x2='16' y2='22' stroke='%23D4AF37' stroke-width='1'/%3E%3Cpath d='M9,5 L10.6,9.4 L15,11 L10.6,12.6 L9,17 L7.4,12.6 L3,11 L7.4,9.4 Z' fill='%23F4D88B'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
}

.trim-outer-left { left: 0; }
.trim-outer-right { right: 0; }

/* Horizontal magenta/crimson divider line across middle of cover doors */
.door-mid-rule {
  position: absolute;
  top: 50%;
  left: 18px;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, rgba(216, 48, 102, 0.75), rgba(212, 175, 55, 0.45));
  z-index: 1;
}

.gate-right .door-mid-rule {
  left: 0;
  right: 18px;
}

/* Painted Pichwai Pink Lotus Corner Vines */
.gate-lotus-img {
  position: absolute;
  top: 4px;
  width: min(240px, 24vw);
  height: auto;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.gate-lotus-left {
  left: 16px;
}

.gate-lotus-right {
  right: 16px;
  transform: scaleX(-1);
}

/* Painted Ceremonial White Elephants */
.gate-elephant-img {
  position: absolute;
  bottom: 14px;
  width: min(230px, 23vw);
  height: auto;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.42));
}

.gate-elephant-left {
  left: 24px;
}

.gate-elephant-right {
  right: 24px;
  transform: scaleX(-1);
}

/* Center Cream Damask Panel (~40vw desktop) with soft vertical edge vignette */
.gate-center {
  width: 40vw;
  min-width: 340px;
  max-width: 560px;
  position: relative;
  z-index: 2;
  background-color: var(--cream);
  background-image:
    linear-gradient(to right, rgba(168, 134, 88, 0.28) 0%, transparent 12%, transparent 88%, rgba(168, 134, 88, 0.28) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cpath d='M45 14 C52 24, 58 32, 45 45 C32 32, 38 24, 45 14 Z M45 45 C58 58, 52 66, 45 76 C38 66, 32 58, 45 45 Z' fill='%23DFC9A6' opacity='0.34'/%3E%3C/svg%3E");
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 34px;
  box-shadow: 0 0 42px rgba(0, 0, 0, 0.35);
  transition: opacity 0.45s ease;
}

.royal-gate.opened .gate-center {
  opacity: 0;
}

/* Twin vertical maroon-and-gold 4-pointed star trims flanking center panel */
.gate-border-left,
.gate-border-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18px;
  background-color: var(--burgundy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='22' viewBox='0 0 18 22'%3E%3Cline x1='2' y1='0' x2='2' y2='22' stroke='%23D4AF37' stroke-width='1.1'/%3E%3Cline x1='16' y1='0' x2='16' y2='22' stroke='%23D4AF37' stroke-width='1.1'/%3E%3Cpath d='M9,5 L10.6,9.4 L15,11 L10.6,12.6 L9,17 L7.4,12.6 L3,11 L7.4,9.4 Z' fill='%23F4D88B'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
}

.gate-border-left { left: 0; }
.gate-border-right { right: 0; }

.gate-center-inner {
  text-align: center;
  max-width: 340px;
}

.ganesha-img {
  width: 132px;
  height: auto;
  display: block;
  margin: 0 auto 10px;
}

.devanagari-invocation {
  font-family: var(--font-dev);
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--bronze);
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}

.gate-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.24rem;
  line-height: 1.55;
  color: var(--bronze);
  margin-bottom: 30px;
}

/* Mughal-Bracketed Ogee-Ended Pill Cartouche Button */
.ogee-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  height: 54px;
  padding: 0 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  filter: drop-shadow(0 6px 16px rgba(74, 4, 30, 0.34));
  transition: transform 0.22s ease, filter 0.22s ease;
}

.ogee-btn:hover {
  transform: translateY(-2px) scale(1.02);
  filter: drop-shadow(0 10px 22px rgba(74, 4, 30, 0.44));
}

.ogee-btn-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.ogee-btn-label {
  position: relative;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
}

/* =========================================================
   SECTION 1B: REVEALED PALACE COURTYARD HERO (VIDEO BANNER)
========================================================= */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  max-height: 940px;
  overflow: hidden;
  background: #F6DFD2;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 3.2vh 20px 32px;
}

.hero-couple-names {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.6rem, 5.6vw, 4.8rem);
  color: var(--burgundy);
  text-align: center;
  letter-spacing: 0.015em;
  text-shadow: 0 2px 20px rgba(255, 245, 238, 0.9), 0 1px 4px rgba(255, 255, 255, 0.8);
}

.hero-amp {
  font-size: 0.78em;
  font-weight: 400;
  margin: 0 0.08em;
}

.hero-scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--cream-light);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  animation: floatCue 2.2s ease-in-out infinite;
  position: relative;
  z-index: 3;
}

.hero-scroll-cue svg {
  width: 20px;
  height: 20px;
}

.hero-bottom-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  background: linear-gradient(to bottom, transparent, var(--cream));
  z-index: 2;
  pointer-events: none;
}

@keyframes floatCue {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* =========================================================
   CREAM MUGHAL DAMASK BACKGROUND SECTIONS
========================================================= */
.cream-damask-section {
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='%23D6BE99' opacity='0.28'%3E%3Cpath d='M48 16 C56 28, 62 36, 48 48 C34 36, 40 28, 48 16 Z'/%3E%3Cpath d='M48 48 C62 60, 56 68, 48 80 C40 68, 34 60, 48 48 Z'/%3E%3Ccircle cx='16' cy='16' r='2.2'/%3E%3Ccircle cx='80' cy='80' r='2.2'/%3E%3C/g%3E%3C/svg%3E");
  padding: 56px 16px;
  position: relative;
}

/* =========================================================
   SECTIONS 2, 3, 8, 9: UNROLLING VELVET-MAROON ROYAL SCROLLS
   Body ~50vw, Wider 3D Glossy Magenta-Maroon Cylinders ~58vw
========================================================= */
.scroll-section {
  width: min(58vw, 820px);
  min-width: min(94vw, 340px);
  margin: 0 auto 58px;
}

.scroll-section:last-child {
  margin-bottom: 12px;
}

.royal-scroll {
  position: relative;
  width: 100%;
  filter: drop-shadow(0 18px 30px rgba(59, 8, 27, 0.28));
}

.scroll-rod {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  position: relative;
  z-index: 3;
}

.rod-bar {
  flex: 1;
  height: 76px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 80' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='cyl' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23A21552'/%3E%3Cstop offset='18%25' stop-color='%23911148'/%3E%3Cstop offset='52%25' stop-color='%236B0832'/%3E%3Cstop offset='82%25' stop-color='%23390218'/%3E%3Cstop offset='93%25' stop-color='%236E0A33'/%3E%3Cstop offset='100%25' stop-color='%23A81554'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0,2 Q400,10 800,2 L800,78 Q400,70 0,78 Z' fill='url(%23cyl)'/%3E%3C/svg%3E");
  filter: drop-shadow(0 10px 18px rgba(32, 2, 14, 0.45));
}

/* Exact-size 88px sculpted 3D burnished bronze-gold finials matching reference */
.finial {
  width: 96px;
  height: 88px;
  position: relative;
  flex-shrink: 0;
  margin-right: -4px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 88'%3E%3Cdefs%3E%3ClinearGradient id='g1' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%237D4210'/%3E%3Cstop offset='14%25' stop-color='%23C9842E'/%3E%3Cstop offset='30%25' stop-color='%23FFD173'/%3E%3Cstop offset='46%25' stop-color='%23D89132'/%3E%3Cstop offset='72%25' stop-color='%237F410A'/%3E%3Cstop offset='88%25' stop-color='%23B87320'/%3E%3Cstop offset='100%25' stop-color='%23F4B856'/%3E%3C/linearGradient%3E%3ClinearGradient id='sh' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0%25' stop-color='rgba(255,230,170,0.28)'/%3E%3Cstop offset='70%25' stop-color='rgba(0,0,0,0)'/%3E%3Cstop offset='100%25' stop-color='rgba(58,22,4,0.45)'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M48,24 C32,24 16,32 7,41 C4,43 4,45 7,47 C16,56 32,64 48,64 Z' fill='url(%23g1)'/%3E%3Cpath d='M48,24 C32,24 16,32 7,41 C4,43 4,45 7,47 C16,56 32,64 48,64 Z' fill='url(%23sh)'/%3E%3Crect x='43' y='13' width='22' height='62' rx='11' fill='url(%23g1)'/%3E%3Crect x='43' y='13' width='22' height='62' rx='11' fill='url(%23sh)'/%3E%3Crect x='61' y='2' width='33' height='84' rx='14' fill='url(%23g1)'/%3E%3Crect x='61' y='2' width='33' height='84' rx='14' fill='url(%23sh)'/%3E%3C/svg%3E");
  filter: drop-shadow(0 8px 14px rgba(40, 12, 8, 0.36));
}

.finial-right {
  transform: scaleX(-1);
  margin-right: 0;
  margin-left: -4px;
}

.scroll-body {
  position: relative;
  margin: -16px 8.5%;
  background: linear-gradient(180deg, #4B0620 0%, #5D0C2A 30%, #48051D 85%, #3B0317 100%);
  border-left: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  overflow: hidden;
  height: 0px;
  opacity: 0.4;
  will-change: height, opacity;
  transition: height 2.6s cubic-bezier(0.19, 1, 0.22, 1), opacity 1.4s ease;
}

.royal-scroll.unrolled .scroll-body {
  opacity: 1;
}

.scroll-rod-bottom {
  transition: transform 2.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.royal-scroll:not(.unrolled) .scroll-rod-bottom {
  transform: translateY(-2px);
}

.royal-scroll.unrolled .scroll-rod-bottom {
  transform: translateY(0);
}

/* Darker velvet cast shadow directly beneath top cylinder */
.scroll-top-shadow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: linear-gradient(to bottom, rgba(20, 0, 8, 0.55), transparent);
  pointer-events: none;
  z-index: 2;
}

/* Vertical double-line gold trim with repeating tiny 4-pointed gold stars */
.scroll-border-trim {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='22' viewBox='0 0 18 22'%3E%3Cline x1='2' y1='0' x2='2' y2='22' stroke='%23D4AF37' stroke-width='1'/%3E%3Cline x1='16' y1='0' x2='16' y2='22' stroke='%23D4AF37' stroke-width='1'/%3E%3Cpath d='M9,5 L10.6,9.4 L15,11 L10.6,12.6 L9,17 L7.4,12.6 L3,11 L7.4,9.4 Z' fill='%23F4D88B'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
  opacity: 0.88;
}

.trim-left { left: 6px; }
.trim-right { right: 6px; }

.scroll-content {
  padding: 40px 48px 34px;
  text-align: center;
  color: var(--peach-gold);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 1.6s ease 0.35s, transform 2.2s cubic-bezier(0.19, 1, 0.22, 1) 0.2s;
}

.royal-scroll.unrolled .scroll-content {
  opacity: 1;
  transform: translateY(0);
}

.scroll-name {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.2rem);
  font-weight: 600;
  color: var(--peach-gold);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.scroll-relation {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: #EBC886;
  margin-top: 8px;
  margin-bottom: 4px;
  opacity: 0.92;
}

.scroll-parents {
  font-family: var(--font-serif);
  font-size: clamp(1.18rem, 2.2vw, 1.38rem);
  font-weight: 600;
  color: #FCE2AC;
  line-height: 1.38;
}

.scroll-amp {
  font-style: italic;
  font-size: 0.92em;
  color: var(--gold);
}

.scroll-mini-divider {
  width: 96px;
  height: auto;
  display: block;
  margin: 14px auto 10px;
  opacity: 0.92;
}

.scroll-lotus-img {
  width: min(300px, 72%);
  height: auto;
  display: block;
  margin: 28px auto 0;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.38)) brightness(1.1);
}

.compliments-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: clamp(1.08rem, 2.1vw, 1.28rem);
  color: #FCE2AC;
  line-height: 1.45;
  margin-top: 8px;
}

.scroll-note {
  font-size: clamp(1.08rem, 2vw, 1.22rem);
  color: #FCE2AC;
  line-height: 1.55;
  margin-top: 10px;
}

.between-crest-wrap {
  text-align: center;
  margin-top: 30px;
}

.between-crest-img {
  width: 150px;
  height: auto;
}

/* Horizontal 4-Point Gold Star Divider Band */
.diamond-trim-band {
  height: 24px;
  width: 100vw;
  max-width: none;
  margin: 28px 0 28px calc(50% - 50vw);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  background-color: var(--burgundy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='18' viewBox='0 0 24 18'%3E%3Cpath d='M12,2 L13.8,7.2 L19,9 L13.8,10.8 L12,16 L10.2,10.8 L5,9 L10.2,7.2 Z' fill='%23F4D88B'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
}

/* =========================================================
   SECTION 4: INTERACTIVE "REVEAL THE DATE"
========================================================= */
.reveal-date-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 0 46px;
  text-align: center;
  position: relative;
}

.mughal-crest-wrap {
  margin: 0 auto 32px;
}

.mughal-crest-img {
  width: min(320px, 72vw);
  height: auto;
  display: inline-block;
}

.date-stage {
  display: flex;
  justify-content: center;
  margin-bottom: 42px;
}

.date-plaques-cluster {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 120px;
}

.stage-elephant-img {
  position: absolute;
  bottom: -24px;
  width: 215px;
  height: auto;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(59, 8, 27, 0.3));
}

.stage-elephant-left {
  left: -18px;
}

.stage-elephant-right {
  right: -18px;
  transform: scaleX(-1);
}

.date-plaques-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  position: relative;
  z-index: 2;
}

.date-plaque {
  width: 232px;
  height: 168px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 14px 26px rgba(74, 4, 30, 0.28));
}

.plaque-svg-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.plaque-svg-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.plaque-tab {
  position: relative;
  z-index: 3;
  background: var(--cream-light);
  color: var(--burgundy);
  border: 2px solid var(--gold);
  border-radius: 999px;
  padding: 4px 22px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-top: -26px;
  margin-bottom: 10px;
}

.plaque-window {
  position: relative;
  z-index: 2;
  height: 78px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.plaque-drum {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 1.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.plaque-drum span {
  height: 78px;
  line-height: 78px;
  font-family: var(--font-serif);
  font-size: 3.35rem;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
}

.plaque-drum.revealed {
  transform: translateY(-546px);
}

.reveal-btn-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.reveal-btn {
  min-width: 260px;
  height: 64px;
}

.reveal-btn .ogee-btn-label {
  font-size: 1.42rem;
}

.confetti-canvas {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  height: 280px;
  pointer-events: none;
  z-index: 10;
}

.save-date-text-btn {
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.55rem;
  font-weight: 600;
  color: var(--burgundy);
  cursor: pointer;
  padding: 8px 20px;
}

/* =========================================================
   SECTION 5: MARBLE CHHATRI & FOUNTAIN VIGNETTE
========================================================= */
.chhatri-section {
  max-width: 680px;
  margin: 24px auto 8px;
  text-align: center;
}

.chhatri-frame {
  border-radius: 24px 24px 160px 160px;
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: 0 14px 32px rgba(74, 4, 30, 0.16);
  background: var(--cream-light);
}

.chhatri-img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   FLORAL VINE TRANSITION DIVIDER
========================================================= */
.floral-vine-divider {
  height: 58px;
  background-color: var(--parchment);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vine-center-crest {
  height: 52px;
  width: auto;
}

/* =========================================================
   SECTION 6: HANGING PHOTO GALLERY (AGED BOTANICAL PARCHMENT)
========================================================= */
.gallery-section {
  background-color: var(--parchment);
  background-image: url("../assets/parchment-bg.jpg");
  background-size: 680px auto;
  background-repeat: repeat;
  padding: 44px 0 48px;
  overflow: hidden;
}

.gallery-rod-wrap {
  position: relative;
  width: 100%;
}

.gallery-rod {
  width: 100%;
  height: 12px;
  background: linear-gradient(to bottom, #A81C38, #5A0B26 55%, #370315 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
}

.gallery-track {
  display: flex;
  gap: 36px;
  padding: 0 6vw 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  align-items: flex-start;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.hanging-frame {
  flex: 0 0 360px;
  scroll-snap-align: center;
  position: relative;
  padding-top: 38px;
  transition: transform 0.35s ease;
}

.stagger-low { margin-top: 12px; }
.stagger-high { margin-top: 0; }
.tilt-left { transform: rotate(-2deg); }
.tilt-right { transform: rotate(2deg); }
.tilt-left-sm { transform: rotate(-1.5deg); }
.tilt-right-sm { transform: rotate(1.8deg); }

.hanging-frame:hover {
  transform: rotate(0deg) translateY(-4px);
}

.frame-triangle-cords {
  position: absolute;
  top: -6px;
  left: 24px;
  right: 24px;
  height: 44px;
  pointer-events: none;
}

.frame-triangle-cords svg {
  width: 100%;
  height: 100%;
  display: block;
}

.frame-bevel {
  background: linear-gradient(145deg, #6D1032, #3E0318);
  padding: 14px;
  border-radius: 6px;
  border: 2px solid var(--gold);
  box-shadow: 0 14px 28px rgba(59, 8, 27, 0.28);
}

.frame-mat {
  background: var(--cream-light);
  padding: 14px 14px 18px;
  text-align: center;
}

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

.frame-caption {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--burgundy);
}

.quote-mat {
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.frame-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.55rem;
  line-height: 1.55;
  color: var(--burgundy);
}

.swipe-hint-wrap {
  text-align: center;
  margin-top: 10px;
}

.swipe-pill {
  background: var(--cream-light);
  color: var(--burgundy);
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  padding: 7px 22px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(74, 4, 30, 0.14);
}

/* =========================================================
   SECTION 7: CEREMONIES (PAINTED SPANDRELS + JHAROKHA CARDS)
========================================================= */
.ceremonies-section {
  position: relative;
  background-color: var(--burgundy);
  padding: 72px 20px 92px;
  overflow: hidden;
}

.spandrel-img {
  position: absolute;
  top: 0;
  width: min(290px, 28vw);
  height: auto;
  z-index: 1;
  pointer-events: none;
}

.spandrel-left { left: 0; }
.spandrel-right { right: 0; transform: scaleX(-1); }

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

.ceremonies-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.1rem);
  font-weight: 700;
  color: var(--gold-bright);
  text-align: center;
  margin-bottom: 42px;
  letter-spacing: 0.03em;
}

.ceremonies-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.ceremonies-grid-bottom {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}

.ceremonies-grid-bottom .jharokha-card {
  width: calc((100% - 56px) / 3);
  min-width: 280px;
}

.jharokha-card {
  position: relative;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 60px 34px 30px;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.34));
  transition: transform 0.25s ease;
}

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

.jharokha-frame-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.jharokha-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.jharokha-art {
  width: 184px;
  height: 184px;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 92px 92px 12px 12px;
}

.jharokha-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ceremony-title {
  font-family: var(--font-display);
  font-size: 1.68rem;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 6px;
}

.ceremony-venue {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #6B233C;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.ceremony-venue:hover {
  text-decoration: underline;
}

.map-pin-ico {
  width: 15px;
  height: 15px;
  color: var(--crimson);
  flex-shrink: 0;
}

.card-rule {
  width: 65%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-deep), transparent);
  margin-bottom: 10px;
}

.ceremony-time {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--burgundy);
}

.ceremonies-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 36px auto;
  max-width: 720px;
}

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

.ceremonies-divider-crest {
  width: 118px;
  height: auto;
}

/* Torn Paper Edge Masks */
.torn-edge {
  position: absolute;
  left: 0;
  right: 0;
  height: 22px;
  background-repeat: repeat-x;
  background-size: 120px 22px;
  z-index: 4;
  pointer-events: none;
}

.torn-bottom {
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='22' viewBox='0 0 120 22'%3E%3Cpath d='M0 22 L0 10 L15 15 L32 6 L48 16 L66 8 L85 15 L103 7 L120 12 L120 22 Z' fill='%23FAF0E1'/%3E%3C/svg%3E");
}

.torn-top {
  top: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='22' viewBox='0 0 120 22'%3E%3Cpath d='M0 0 L120 0 L120 12 L102 6 L84 15 L65 7 L47 16 L30 6 L14 14 L0 9 Z' fill='%23FAF0E1'/%3E%3C/svg%3E");
}

/* =========================================================
   SECTION 9: QUICK-ACTION ICON BUTTONS
========================================================= */
.quick-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 34px;
}

.ornate-action-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--burgundy-light), var(--burgundy));
  border: 2.5px solid var(--gold);
  color: var(--gold-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(74, 4, 30, 0.25), 0 0 0 4px rgba(212, 175, 55, 0.22);
  transition: transform 0.2s ease;
}

.ornate-action-btn:hover {
  transform: translateY(-3px) scale(1.06);
}

.ornate-action-btn svg {
  width: 24px;
  height: 24px;
}

/* =========================================================
   SECTION 10: CLOSING PALACE COURTYARD EASEL VIGNETTE
========================================================= */
.closing-section {
  position: relative;
  background: var(--burgundy);
}

.closing-vignette {
  position: relative;
  width: 100%;
  min-height: 540px;
  padding: 76px 20px 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.closing-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

.closing-easel-stage {
  position: relative;
  z-index: 2;
  width: min(680px, 90vw);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.easel-finial {
  width: 56px;
  height: 44px;
  margin-bottom: -4px;
  background: radial-gradient(circle at 40% 30%, #FFF2BC 0%, #D4AF37 55%, #7D550C 100%);
  border-radius: 50% 50% 12px 12px;
  border: 2px solid #6B4608;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.32);
}

.easel-wide-board {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.2;
  background: radial-gradient(circle at 50% 50%, #FDF8EE 45%, #EFE1C8 100%);
  border: 6px solid #C69633;
  outline: 2px solid #7D550C;
  box-shadow: inset 0 0 0 8px rgba(184, 29, 58, 0.14), 0 18px 40px rgba(32, 4, 14, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 48px;
  overflow: hidden;
}

.board-corner {
  position: absolute;
  width: 72px;
  height: auto;
  opacity: 0.88;
  pointer-events: none;
}

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

.easel-message {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 2.6vw, 2.05rem);
  line-height: 1.35;
  text-align: center;
  color: #5C1A31;
}

.easel-legs {
  position: relative;
  width: 76%;
  height: 110px;
}

.easel-leg {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18px;
  background: linear-gradient(to right, #A67C1E, #F1D37A 50%, #8C6214);
  border: 1.5px solid #6B4608;
}

.leg-left {
  left: 14%;
  transform: skewX(-12deg);
}

.leg-center {
  left: 50%;
  transform: translateX(-50%);
}

.leg-right {
  right: 14%;
  transform: skewX(12deg);
}

.easel-crossbar {
  position: absolute;
  top: 44px;
  left: 8%;
  right: 8%;
  height: 16px;
  background: linear-gradient(to bottom, #F1D37A, #C69633 65%, #7D550C);
  border: 1.5px solid #6B4608;
  border-radius: 3px;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
========================================================= */
@media (max-width: 900px) {
  .ceremonies-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ceremonies-grid-bottom .jharokha-card {
    width: calc((100% - 28px) / 2);
  }
  .hanging-frame {
    flex: 0 0 300px;
  }
  .quote-mat {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .gate-panel {
    display: none;
  }
  .gate-center {
    width: 100vw;
    max-width: none;
  }
  .scroll-section {
    width: 94vw;
  }
  .scroll-rod {
    height: 56px;
  }
  .rod-bar {
    height: 48px;
  }
  .finial {
    width: 62px;
    height: 56px;
  }
  .scroll-body {
    margin: -10px 7%;
  }
  .scroll-content {
    padding: 28px 26px 24px;
  }
  .stage-elephant-img {
    display: none;
  }
  .date-plaques-cluster {
    padding: 0;
  }
  .date-plaques-grid {
    gap: 12px;
  }
  .date-plaque {
    width: 106px;
    height: 92px;
  }
  .plaque-tab {
    padding: 2px 12px;
    font-size: 0.66rem;
    margin-top: -16px;
    margin-bottom: 4px;
  }
  .plaque-window {
    height: 54px;
  }
  .plaque-drum span {
    height: 54px;
    line-height: 54px;
    font-size: 1.85rem;
  }
  .plaque-drum.revealed {
    transform: translateY(-378px);
  }
  .save-date-text-btn {
    font-size: 1.9rem;
  }
  .ceremonies-grid,
  .ceremonies-grid-bottom {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
  .ceremonies-grid-bottom .jharokha-card {
    width: 100%;
  }
  .spandrel-img {
    width: 150px;
  }
  .easel-board-overlay {
    width: 32vw;
  }
}

/* =========================================================
   SECTION 11: BOTTOM SHARE & COPY LINK BAR
========================================================= */
.share-footer {
  position: relative;
  background: linear-gradient(180deg, #3A0216 0%, #2C0110 100%);
  padding: 46px 20px 52px;
  overflow: hidden;
  border-top: 2px solid rgba(212, 175, 55, 0.45);
}

.share-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 216, 139, 0.85) 0%, rgba(212, 175, 55, 0) 70%);
}

.s1 { width: 12px; height: 12px; left: 8%; bottom: 18%; }
.s2 { width: 10px; height: 10px; left: 26%; top: 22%; }
.s3 { width: 14px; height: 14px; left: 68%; top: 18%; }
.s4 { width: 11px; height: 11px; right: 24%; bottom: 26%; }
.s5 { width: 9px; height: 9px; right: 11%; top: 38%; }

.share-actions-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.share-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.share-pill svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.share-pill:hover {
  transform: translateY(-2px);
}

.share-pill-wa {
  background: #0BA34A;
  color: #FFFFFF;
  border: none;
  box-shadow: 0 6px 24px rgba(11, 163, 74, 0.45);
}

.share-pill-wa:hover {
  box-shadow: 0 10px 28px rgba(11, 163, 74, 0.58);
}

.share-pill-cream {
  background: #D6C0AE;
  color: #4A041E;
  border: 1.5px solid #D4AF37;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.share-pill-cream:hover {
  background: #E2CEBE;
}

body.lang-devanagari .share-pill {
  font-family: var(--font-dev), var(--font-sans);
  font-size: 0.98rem;
}

#drum-month span {
  font-size: 2.05rem;
  letter-spacing: 0.03em;
}

body.lang-devanagari #drum-month span {
  font-size: 2.15rem;
}

@media (max-width: 640px) {
  #drum-month span,
  body.lang-devanagari #drum-month span {
    font-size: 1.05rem;
  }
}

/* =========================================================
   CINEMATIC ROYAL ENTRANCE ANIMATION — HERO COUPLE NAMES
========================================================= */
.hero-names-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.hero-couple-names {
  opacity: 0;
  transform: translateY(30px) scale(0.92);
  filter: blur(8px);
  letter-spacing: 0.14em;
  will-change: transform, opacity, filter, letter-spacing;
}

.hero-names-wrap.entered .hero-couple-names {
  animation: royalNameReveal 1.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-names-wrap::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  margin-top: 8px;
  background: linear-gradient(90deg, transparent, #C69633 25%, #F6CF92 50%, #C69633 75%, transparent);
  opacity: 0;
  border-radius: 999px;
}

.hero-names-wrap.entered::after {
  animation: royalRuleExpand 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}

.hero-scroll-cue {
  opacity: 0;
}

.hero-section.hero-entered .hero-scroll-cue {
  animation: fadeInCue 1s ease 1.3s forwards, floatCue 2.2s ease-in-out 2.3s infinite;
}

@keyframes royalNameReveal {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.92);
    filter: blur(8px);
    letter-spacing: 0.14em;
  }
  55% {
    opacity: 1;
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
    letter-spacing: 0.015em;
  }
}

@keyframes royalRuleExpand {
  0% {
    width: 0;
    opacity: 0;
  }
  100% {
    width: 68%;
    opacity: 0.92;
  }
}

@keyframes fadeInCue {
  from { opacity: 0; }
  to { opacity: 0.9; }
}

.gallery-track.is-dragging {
  scroll-snap-type: none !important;
  scroll-behavior: auto !important;
  cursor: grabbing;
}
