/* ============================================================
   Atharva weds Gautami — stylesheet
   Extracted from the original single-file invitation.
   ============================================================ */

/* ============================================================
   RESET + TOKENS
   ============================================================ */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}

:root {
  --maroon: #5C1818;
  --maroon-deep: #3A0E0E;
  --maroon-soft: #7A2222;
  --maroon-light: #8C2A2A;
  --gold: #B89347;
  --gold-bright: #D4AF6A;
  --gold-deep: #8C6E2A;
  --ivory: #F5EFE3;
  --ivory-soft: #EDE5D4;
  --ivory-deep: #E8DFC9;
  --charcoal: #2A2420;

  --f-hero: 'Crimson Text', Georgia, serif;
  --f-body: 'Mulish', system-ui, sans-serif;
  --f-deva: 'Noto Serif Devanagari', serif;
  --f-cursive: 'Parisienne', cursive;

  --royal-bg:
    radial-gradient(ellipse 90% 60% at 50% 0%, #8C2A2A 0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 20% 100%, #7A2222 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, #6B1D1D 0%, transparent 65%),
    linear-gradient(180deg, #5C1818 0%, #4A1414 40%, #3A0E0E 100%);

  --swap-duration: 0.55s;
  --swap-ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

html, body {
  margin: 0;
  background: var(--maroon-deep);
  scroll-behavior: smooth;
}

body {
  font-family: var(--f-body);
  color: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  cursor: none;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
a { color: inherit; text-decoration: none; }

body.envelope-closed { overflow: hidden; height: 100vh; }

/* ============================================================
   UNIVERSAL: Frames, corners, stage labels, ornaments
   ============================================================ */
.viewport-frame {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(184,147,71,0.42);
  pointer-events: none;
  z-index: 4;
}
@media (min-width: 768px) {
  .viewport-frame { inset: 22px; }
}

.corner {
  position: absolute;
  color: var(--gold-bright);
  font-size: 11px;
  width: 12px; height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--maroon-deep);
  z-index: 5;
}
.corner.tl { top: 14px; left: 14px; transform: translate(-50%,-50%); }
.corner.tr { top: 14px; right: 14px; transform: translate(50%,-50%); }
.corner.bl { bottom: 14px; left: 14px; transform: translate(-50%,50%); }
.corner.br { bottom: 14px; right: 14px; transform: translate(50%,50%); }
@media (min-width: 768px) {
  .corner.tl { top: 22px; left: 22px; }
  .corner.tr { top: 22px; right: 22px; }
  .corner.bl { bottom: 22px; left: 22px; }
  .corner.br { bottom: 22px; right: 22px; }
}

.stage-label {
  position: absolute;
  bottom: 1.5rem; right: 1.5rem;
  font-family: var(--f-body);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.55;
  z-index: 20;
  pointer-events: none;
}
.stage-label.dark { color: var(--gold-deep); }

.ornament-line {
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.ornament-mark {
  color: var(--gold-deep);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
}

/* Section headers (ivory) */
.section-label {
  font-family: var(--f-hero);
  font-size: 0.75rem;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--f-hero);
  font-weight: 400;
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}
.title-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: min(220px, 55%);
  margin: 0 auto 2.5rem;
}
.bottom-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: min(220px, 55%);
  margin: 3.5rem auto 0;
}

/* ============================================================
   CURSOR
   ============================================================ */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid rgba(184,147,71,0.6);
  border-radius: 50%;
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.cursor-dot {
  width: 4px; height: 4px;
  background: var(--gold-bright);
  border-radius: 50%;
}
body.cursor-dark .cursor-ring { border-color: rgba(140,110,51,0.55); }
body.cursor-dark .cursor-dot { background: var(--maroon); }
body.cursor-hover .cursor-ring {
  width: 48px; height: 48px;
  border-color: var(--gold-bright);
  background: rgba(212,175,106,0.10);
}
body.cursor-dark.cursor-hover .cursor-ring {
  border-color: var(--maroon);
  background: rgba(92,24,24,0.08);
}
body.cursor-hover .cursor-dot { transform: translate(-50%, -50%) scale(0.6); }

.trail-spark {
  position: fixed;
  width: 4px; height: 4px;
  background: var(--gold-bright);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  opacity: 0.85;
  transform: translate(-50%, -50%);
  animation: trailFade 800ms ease-out forwards;
}
.trail-spark.marigold { background: #E5A93C; }
.trail-spark.crimson  { background: #8C2A2A; }
@keyframes trailFade {
  0%   { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0;    transform: translate(-50%, -50%) scale(0.2) translateY(-14px); }
}

@media (hover: none) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring, .trail-spark { display: none; }
}

/* ============================================================
   ENVELOPE OVERLAY
   ============================================================ */
.envelope-overlay {
  position: fixed;
  inset: 0;
  background: var(--royal-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  overflow: hidden;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.envelope-overlay.hidden { opacity: 0; visibility: hidden; }

.envelope-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(184,147,71,0.03) 0px, rgba(184,147,71,0.03) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.06) 0px, rgba(0,0,0,0.06) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
}
.envelope-overlay::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90%; height: 70%;
  background: radial-gradient(ellipse at center, rgba(212,175,106,0.12) 0%, rgba(212,175,106,0.05) 40%, transparent 70%);
  pointer-events: none;
}

.envelope-wrap {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  cursor: pointer;
  animation: envelopeFloat 4s ease-in-out infinite;
}
@keyframes envelopeFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.envelope {
  position: relative;
  width: min(360px, 82vw);
  aspect-ratio: 1.55 / 1;
  perspective: 1200px;
}
.envelope-body {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #FBF6EA 0%, #EDE5D4 100%);
  border: 1.5px solid var(--gold);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(184,147,71,0.35) inset;
}
.envelope-body::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(92,24,24,0.28);
}
.envelope-body::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(59,34,25,0.025) 0px, rgba(59,34,25,0.025) 1px, transparent 1px, transparent 3px);
}
.envelope-flap {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 62%;
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, #7A2222 0%, transparent 70%),
    linear-gradient(180deg, #5C1818 0%, #3A0E0E 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transform-origin: top center;
  transition: transform 0.9s cubic-bezier(0.6, 0, 0.4, 1);
  z-index: 3;
  border-top: 1px solid rgba(184,147,71,0.4);
}
.envelope-flap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(184,147,71,0.05) 0px, rgba(184,147,71,0.05) 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.08) 0px, rgba(0,0,0,0.08) 1px, transparent 1px, transparent 4px);
}
.wax-seal {
  position: absolute;
  top: 58%; left: 50%;
  transform: translate(-50%, -50%);
  width: 104px; height: 104px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-bright) 0%, var(--gold) 45%, #8C6E2A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 20px rgba(0,0,0,0.4),
    inset 0 -4px 8px rgba(0,0,0,0.25),
    inset 0 2px 4px rgba(255,255,255,0.2);
  z-index: 5;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.wax-seal::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(74,20,20,0.28);
}
.seal-inner {
  position: relative;
  z-index: 2;
  width: 72%; height: 72%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding-bottom: 0.15rem;
}
.seal-letter {
  font-family: var(--f-cursive);
  font-size: 1.55rem;
  color: #4A1414;
  text-shadow: 0 1px 0 rgba(255,255,255,0.15);
  line-height: 1;
}
.seal-star {
  font-family: var(--f-hero);
  font-size: 0.65rem;
  color: #4A1414;
  transform: translateY(-1px);
  opacity: 0.85;
}

.envelope-prompt {
  font-family: var(--f-hero);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--gold-bright);
  animation: promptPulse 2.4s ease-in-out infinite;
}
@keyframes promptPulse {
  0%, 100% { opacity: 0.65; }
  50%      { opacity: 1; }
}
.envelope.open .envelope-flap { transform: rotateX(-180deg); }
.envelope.open .wax-seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5) rotate(35deg);
}
.envelope.open ~ .envelope-prompt,
.envelope.open .envelope-prompt { opacity: 0; transition: opacity 0.3s ease; }
.envelope-glow {
  position: absolute;
  top: 55%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,106,0.55) 0%, rgba(212,175,106,0.15) 40%, transparent 70%);
  opacity: 0;
  transition: opacity 0.8s ease, transform 1.2s ease;
}
.envelope.open ~ .envelope-glow,
.envelope.open .envelope-glow {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.envelope-invocation {
  position: absolute;
  bottom: 2.5rem;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--f-deva);
  color: var(--gold-bright);
  font-size: 0.98rem;
  letter-spacing: 0.1em;
  z-index: 5;
  opacity: 0.9;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 0.9rem 1rem;
  background: transparent;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(250,247,242,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(201,162,39,0.35);
  padding: 0.6rem 1rem;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  font-family: var(--f-hero);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ivory);
  letter-spacing: 0.06em;
  transition: color 0.3s ease;
}
.site-header.scrolled .header-logo { color: var(--maroon); }
.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.lang-pill {
  min-width: 44px;
  height: 36px;
  padding: 0 0.9rem;
  border-radius: 30px;
  border: 1px solid rgba(250,247,242,0.5);
  background: rgba(255,255,255,0.1);
  color: var(--ivory);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.25s ease;
}
.site-header.scrolled .lang-pill {
  border-color: var(--gold);
  color: var(--maroon);
  background: rgba(201,162,39,0.08);
}
.menu-btn {
  width: 44px; height: 36px;
  border: none; background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
}
.menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ivory);
  border-radius: 2px;
  transition: background 0.3s ease;
}
.site-header.scrolled .menu-btn span { background: var(--maroon); }

/* ============================================================
   BOTTOM SHEETS
   ============================================================ */
.bottom-sheet {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
/* display:flex above would otherwise override the UA [hidden] rule, leaving the
   closed sheets' full-viewport backdrop invisibly swallowing every click. */
.bottom-sheet[hidden] { display: none; }
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45,36,36,0.55);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.bottom-sheet.open .sheet-backdrop { opacity: 1; }
.sheet-panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--ivory);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 1rem 1.25rem 2rem;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.25,1,0.4,1);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.25);
  border-top: 2px solid var(--gold);
}
.bottom-sheet.open .sheet-panel { transform: translateY(0); }
.sheet-handle {
  width: 48px; height: 4px;
  margin: 0 auto 1rem;
  background: rgba(107,29,29,0.25);
  border-radius: 4px;
}
.sheet-title {
  font-family: var(--f-hero);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--maroon);
  text-align: center;
  margin-bottom: 0.2rem;
}
.sheet-sub {
  font-size: 0.85rem;
  color: var(--charcoal);
  opacity: 0.7;
  text-align: center;
  margin-bottom: 1.2rem;
  font-style: italic;
}
.sheet-option {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  min-height: 56px;
  padding: 0 1rem;
  border: none;
  border-bottom: 1px solid rgba(201,162,39,0.2);
  background: transparent;
  font-size: 1.02rem;
  color: var(--charcoal);
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease;
}
.sheet-option:hover,
.sheet-option:active { background: rgba(201,162,39,0.1); }
.sheet-option:last-of-type { border-bottom: none; }
.sheet-check {
  margin-left: auto;
  color: var(--gold);
  font-weight: 700;
  opacity: 0;
}
.sheet-check.active { opacity: 1; }
.sheet-cancel {
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.9rem;
  border: none;
  background: transparent;
  color: var(--maroon);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border-top: 1px solid rgba(201,162,39,0.25);
}

/* ============================================================
   MENU DRAWER
   ============================================================ */
.menu-drawer { position: fixed; inset: 0; z-index: 800; }
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45,36,36,0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.menu-drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 85%;
  max-width: 360px;
  background: var(--ivory);
  box-shadow: -10px 0 40px rgba(0,0,0,0.3);
  padding: 1.25rem 1.5rem 2rem;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.25,1,0.4,1);
  overflow-y: auto;
}
.menu-drawer.open .drawer-panel { transform: translateX(0); }
.drawer-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 44px; height: 44px;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  color: var(--maroon);
  cursor: pointer;
}
.drawer-invocation {
  font-family: var(--f-deva);
  color: var(--gold);
  text-align: center;
  margin: 0.5rem 0 0.5rem;
  letter-spacing: 0.08em;
}
.drawer-divider {
  text-align: center;
  color: var(--gold);
  margin: 1rem 0;
  font-size: 0.9rem;
}
.drawer-nav { display: flex; flex-direction: column; }
.drawer-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 56px;
  padding: 0 0.75rem;
  border-left: 3px solid transparent;
  color: var(--charcoal);
  font-size: 1rem;
  transition: all 0.2s ease;
}
.drawer-link:hover,
.drawer-link.active {
  border-left-color: var(--gold);
  background: rgba(201,162,39,0.08);
  color: var(--maroon);
}
.drawer-link span:first-child { font-size: 1.15rem; }
.drawer-hashtag {
  display: block;
  width: 100%;
  padding: 0.8rem;
  margin-top: 1rem;
  border: 1px solid var(--gold);
  border-radius: 30px;
  background: transparent;
  color: var(--maroon);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  letter-spacing: 0.03em;
}

/* ============================================================
   BUTTONS (shared)
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0 1.5rem;
  font-family: var(--f-hero);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  border: 1px solid var(--gold-deep);
  background: transparent;
  color: var(--gold-deep);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
}
.btn-sweep::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--maroon);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.6, 0, 0.4, 1);
  z-index: -1;
}
.btn-sweep:hover { color: var(--ivory); border-color: var(--maroon); }
.btn-sweep:hover::before { transform: scaleX(1); }

.btn-underline::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--maroon);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.6, 0, 0.4, 1);
}
.btn-underline:hover { color: var(--maroon); border-color: var(--maroon); }
.btn-underline:hover::after { transform: scaleX(1); }

.btn-outline {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0 1.5rem;
  font-family: var(--f-hero);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  border: 1px solid var(--gold-deep);
  background: transparent;
  color: var(--gold-deep);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
}
.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--maroon);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.6, 0, 0.4, 1);
  z-index: -1;
}
.btn-outline:hover { color: var(--ivory); border-color: var(--maroon); }
.btn-outline:hover::before { transform: scaleX(1); }

/* ============================================================
   SECTION 2 — HERO (maroon)
   ============================================================ */
.section-hero {
  position: relative;
  min-height: 100dvh;
  background: var(--royal-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 5rem;
  overflow: hidden;
}
.section-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(184,147,71,0.03) 0px, rgba(184,147,71,0.03) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.06) 0px, rgba(0,0,0,0.06) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
  z-index: 1;
}
.section-hero::after {
  content: '';
  position: absolute;
  top: 45%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; height: 80%;
  background: radial-gradient(ellipse at center, rgba(212,175,106,0.14) 0%, rgba(212,175,106,0.05) 40%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.mandala {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 170vmax; height: 170vmax;
  background:
    radial-gradient(circle, transparent 28%, rgba(184,147,71,0.06) 28.3%, transparent 28.6%),
    radial-gradient(circle, transparent 38%, rgba(184,147,71,0.05) 38.3%, transparent 38.6%),
    radial-gradient(circle, transparent 48%, rgba(184,147,71,0.045) 48.3%, transparent 48.6%),
    radial-gradient(circle, transparent 58%, rgba(184,147,71,0.04) 58.3%, transparent 58.6%),
    radial-gradient(circle, transparent 68%, rgba(184,147,71,0.035) 68.3%, transparent 68.6%);
  animation: rotateSlow 180s linear infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes rotateSlow { to { transform: translate(-50%, -50%) rotate(360deg); } }

.petals {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}
.petal {
  position: absolute;
  top: -20px;
  width: 10px; height: 12px;
  border-radius: 50% 0 50% 50%;
  background: radial-gradient(circle at 30% 30%, #E5A93C 0%, #C97A2B 60%, #8C4A1A 100%);
  opacity: 0.55;
  animation: petalFall linear infinite;
}
@keyframes petalFall {
  0%   { transform: translateY(-10vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

.hero-inner {
  position: relative;
  z-index: 6;
  width: 100%;
  max-width: 640px;
  text-align: center;
}
.invocation {
  font-family: var(--f-deva);
  font-size: clamp(0.95rem, 3.6vw, 1.05rem);
  color: var(--gold-bright);
  letter-spacing: 0.14em;
  opacity: 0.95;
  margin-bottom: 2rem;
}
.shubh {
  font-family: var(--f-hero);
  font-style: italic;
  font-size: 0.88rem;
  letter-spacing: 0.44em;
  text-indent: 0.44em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.5rem;
}
.names-block { position: relative; padding: 2rem 1rem; }
.name {
  font-family: var(--f-hero);
  font-weight: 400;
  font-size: clamp(2.6rem, 11vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  text-transform: uppercase;
  color: var(--ivory);
  margin: 0;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.weds-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: min(300px, 75%);
  margin: 1.4rem auto;
}
.weds-line { flex: 1; height: 1px; background: var(--gold); opacity: 0.5; }
.weds {
  font-family: var(--f-hero);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.meta { margin-top: 2.5rem; }
.date {
  font-family: var(--f-hero);
  font-size: clamp(0.95rem, 3.8vw, 1.1rem);
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-transform: uppercase;
  color: var(--ivory);
}
.location {
  font-family: var(--f-hero);
  font-style: italic;
  font-size: clamp(0.85rem, 3.4vw, 1rem);
  letter-spacing: 0.06em;
  color: var(--gold-bright);
  opacity: 0.85;
  margin-top: 0.4rem;
}
.hero-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: min(240px, 60%);
  margin: 2rem auto 0;
}
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  z-index: 8;
  opacity: 0.75;
}
.scroll-text {
  font-family: var(--f-hero);
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.scroll-line {
  width: 1px; height: 32px;
  background: linear-gradient(to bottom, var(--gold-bright) 0%, var(--gold-bright) 30%, transparent 100%);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, transparent 0%, var(--gold-bright) 50%, transparent 100%);
  animation: scrollDot 2.4s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* ============================================================
   IVORY SECTIONS (shared)
   ============================================================ */
.section-countdown,
.section-invitation,
.section-couple,
.section-events,
.section-venue,
.section-wishes,
.section-gallery,
.section-nogifts {
  position: relative;
  background: var(--ivory);
  padding: 5rem 1.5rem 4rem;
  overflow: hidden;
}
@media (min-width: 768px) {
  .section-countdown,
  .section-invitation,
  .section-couple,
  .section-events,
  .section-venue,
  .section-wishes,
  .section-gallery,
  .section-nogifts { padding: 5.5rem 2rem 4.5rem; }
}

.section-countdown::before,
.section-invitation::before,
.section-couple::before,
.section-events::before,
.section-venue::before,
.section-wishes::before,
.section-gallery::before,
.section-nogifts::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(92,24,24,0.02) 0px, rgba(92,24,24,0.02) 1px, transparent 1px, transparent 5px),
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(184,147,71,0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}
.section-countdown::after,
.section-couple::after,
.section-events::after,
.section-venue::after,
.section-wishes::after,
.section-gallery::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; top: 14px; bottom: 14px;
  border-top: 1px solid rgba(184,147,71,0.42);
  border-bottom: 1px solid rgba(184,147,71,0.42);
  pointer-events: none;
  z-index: 2;
}
.section-invitation::after,
.section-nogifts::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; top: 14px;
  border-top: 1px solid rgba(184,147,71,0.42);
  pointer-events: none;
  z-index: 2;
}
@media (min-width: 768px) {
  .section-countdown::after,
  .section-invitation::after,
  .section-couple::after,
  .section-events::after,
  .section-venue::after,
  .section-wishes::after,
  .section-gallery::after,
  .section-nogifts::after {
    left: 22px; right: 22px; top: 22px;
    bottom: 22px;
  }
  .section-invitation::after,
  .section-nogifts::after { bottom: auto; }
}

/* Countdown */
.countdown-inner,
.couple-inner,
.events-inner,
.venue-inner,
.wishes-inner,
.gallery-inner {
  position: relative;
  z-index: 6;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.countdown-inner .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) {
  .countdown-inner .grid { gap: 1rem; max-width: 620px; margin-left: auto; margin-right: auto; }
}
.countdown-inner .box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.3rem;
  border: 1px solid rgba(184,147,71,0.4);
  background: rgba(255,255,255,0.4);
  position: relative;
  min-height: 100px;
}
@media (min-width: 640px) { .countdown-inner .box { padding: 1.4rem 0.6rem; min-height: 120px; } }
.countdown-inner .box::before {
  content: '';
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 1px;
  background: var(--gold);
  opacity: 0.6;
}
.num {
  font-family: var(--f-hero);
  font-weight: 400;
  font-size: clamp(1.7rem, 7.5vw, 2.4rem);
  line-height: 1;
  color: var(--maroon);
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}
.num.seconds-tick { animation: breathe 1s ease-in-out; }
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.03); }
}
.cd-label {
  margin-top: 0.5rem;
  font-family: var(--f-body);
  font-size: clamp(0.55rem, 2.4vw, 0.65rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}
.tagline {
  font-family: var(--f-hero);
  font-style: italic;
  font-size: clamp(0.95rem, 4vw, 1.15rem);
  color: var(--maroon);
  opacity: 0.85;
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto;
}

/* Invitation */
.invitation-inner {
  position: relative;
  z-index: 6;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.inv-card {
  position: relative;
  background: linear-gradient(180deg, #FBF6EA 0%, #EFE7D4 100%);
  padding: 3.5rem 1.75rem 3rem;
  box-shadow: 0 20px 50px rgba(58,14,14,0.12), 0 4px 12px rgba(58,14,14,0.06);
}
@media (min-width: 640px) { .inv-card { padding: 4.5rem 3rem 4rem; } }
.inv-card::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(184,147,71,0.55);
}
.inv-card::after {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(184,147,71,0.25);
}
.inv-card-corner {
  position: absolute;
  color: var(--gold-deep);
  font-size: 10px;
  width: 14px; height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #FBF6EA 0%, #EFE7D4 100%);
  z-index: 3;
}
.inv-card-corner.tl { top: 14px; left: 14px; transform: translate(-50%,-50%); }
.inv-card-corner.tr { top: 14px; right: 14px; transform: translate(50%,-50%); }
.inv-card-corner.bl { bottom: 14px; left: 14px; transform: translate(-50%,50%); }
.inv-card-corner.br { bottom: 14px; right: 14px; transform: translate(50%,50%); }
.inv-invocation {
  font-family: var(--f-deva);
  font-size: clamp(0.9rem, 3.5vw, 1rem);
  color: var(--gold-deep);
  letter-spacing: 0.14em;
  margin-bottom: 2.5rem;
}
.inv-label {
  font-family: var(--f-hero);
  font-size: 0.7rem;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.75rem;
}
.inv-line {
  font-family: var(--f-hero);
  font-weight: 400;
  font-size: clamp(1.1rem, 4.4vw, 1.4rem);
  line-height: 1.75;
  color: var(--maroon);
  margin: 0.15rem 0;
}
.amp {
  font-family: var(--f-hero);
  font-style: italic;
  font-size: clamp(2.2rem, 9vw, 3rem);
  line-height: 1;
  color: var(--gold-deep);
  margin: 1.5rem 0;
}
.inv-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: min(220px, 60%);
  margin: 2.5rem auto 0;
}

/* Couple */
.couple-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) {
  .couple-grid { grid-template-columns: 1fr auto 1fr; gap: 3.5rem; }
}
.person { display: flex; flex-direction: column; align-items: center; text-align: center; }
.portrait {
  position: relative;
  width: clamp(180px, 45vw, 260px);
  aspect-ratio: 1;
  background: radial-gradient(circle at 40% 35%, #FBF6EA 0%, #EFE7D4 60%, #E5DBC0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}
.portrait::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(184,147,71,0.55);
}
.portrait::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(184,147,71,0.22);
}
.portrait-corner {
  position: absolute;
  color: var(--gold-deep);
  font-size: 10px;
  width: 12px; height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #FBF6EA 0%, #EFE7D4 100%);
  z-index: 3;
}
.portrait-corner.tl { top: 8px; left: 8px; transform: translate(-50%,-50%); }
.portrait-corner.tr { top: 8px; right: 8px; transform: translate(50%,-50%); }
.portrait-corner.bl { bottom: 8px; left: 8px; transform: translate(-50%,50%); }
.portrait-corner.br { bottom: 8px; right: 8px; transform: translate(50%,50%); }
.portrait-initial {
  font-family: var(--f-hero);
  font-size: clamp(3rem, 14vw, 5rem);
  color: rgba(92,24,24,0.22);
  line-height: 1;
}
.person-name {
  font-family: var(--f-hero);
  font-weight: 400;
  font-size: clamp(1.5rem, 6vw, 2rem);
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 1.25rem;
}
.person-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: min(140px, 40%);
  margin: 0 auto 1.25rem;
}
.person-ornament-line { flex: 1; height: 1px; background: var(--gold); opacity: 0.45; }
.person-ornament-mark { color: var(--gold-deep); font-size: 0.6rem; }
.person-label {
  font-family: var(--f-body);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.person-parents {
  font-family: var(--f-hero);
  font-size: clamp(0.92rem, 3.6vw, 1.05rem);
  color: var(--maroon);
  opacity: 0.9;
  line-height: 1.5;
  max-width: 260px;
}
.couple-divider {
  display: none;
}
@media (min-width: 768px) {
  .couple-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--gold-deep);
  }
  .couple-divider-line { width: 1px; height: 40px; background: linear-gradient(to bottom, transparent 0%, var(--gold) 50%, transparent 100%); }
  .couple-divider-mark { font-family: var(--f-hero); font-style: italic; font-size: 1.3rem; color: var(--gold-deep); line-height: 1; }
}
@media (max-width: 767px) {
  .couple-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: min(220px, 60%);
    margin: 0 auto;
  }
  .couple-divider-line { flex: 1; height: 1px; background: var(--gold); opacity: 0.4; }
  .couple-divider-mark { font-family: var(--f-hero); font-style: italic; font-size: 1.3rem; color: var(--gold-deep); }
}

/* Events */
.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch;
}
@media (min-width: 768px) {
  .events-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
.event-card {
  position: relative;
  background: linear-gradient(180deg, #FBF6EA 0%, #EFE7D4 100%);
  padding: 3rem 1.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 16px 40px rgba(58,14,14,0.10), 0 3px 8px rgba(58,14,14,0.05);
}
.event-card::before { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(184,147,71,0.55); }
.event-card::after { content: ''; position: absolute; inset: 16px; border: 1px solid rgba(184,147,71,0.22); }
.event-corner {
  position: absolute;
  color: var(--gold-deep);
  font-size: 10px;
  width: 14px; height: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #FBF6EA 0%, #EFE7D4 100%);
  z-index: 3;
}
.event-corner.tl { top: 12px; left: 12px; transform: translate(-50%,-50%); }
.event-corner.tr { top: 12px; right: 12px; transform: translate(50%,-50%); }
.event-corner.bl { bottom: 12px; left: 12px; transform: translate(-50%,50%); }
.event-corner.br { bottom: 12px; right: 12px; transform: translate(50%,50%); }
.event-icon {
  width: 48px; height: 48px;
  margin-bottom: 1.5rem;
  color: var(--gold-deep);
}
@media (min-width: 768px) { .event-icon { width: 56px; height: 56px; } }
.event-icon svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.event-name {
  font-family: var(--f-hero);
  font-weight: 400;
  font-size: clamp(1.3rem, 5.5vw, 1.7rem);
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 1rem;
}
.event-ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 0.6rem;
  width: min(180px, 60%);
  margin: 0 auto 1.5rem;
}
.event-date {
  font-family: var(--f-hero);
  font-size: clamp(1.05rem, 4.2vw, 1.2rem);
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 0.3rem;
}
.event-time {
  font-family: var(--f-hero);
  font-style: italic;
  font-size: clamp(0.95rem, 3.8vw, 1.05rem);
  color: var(--gold-deep);
  margin-bottom: 1.5rem;
}
.event-venue {
  font-family: var(--f-hero);
  font-size: clamp(0.9rem, 3.5vw, 1rem);
  color: var(--maroon);
  opacity: 0.8;
  margin-bottom: 2rem;
  line-height: 1.5;
}
.event-actions {
  display: flex; flex-direction: column; gap: 0.75rem;
  width: 100%; max-width: 280px;
  margin-top: auto;
}

/* Venue */
.venue-inner { max-width: 800px; }
.map-card {
  position: relative;
  background: linear-gradient(180deg, #FBF6EA 0%, #EFE7D4 100%);
  padding: 1rem;
  box-shadow: 0 16px 40px rgba(58,14,14,0.10), 0 3px 8px rgba(58,14,14,0.05);
  margin-bottom: 3rem;
}
.map-card::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(184,147,71,0.55); z-index: 3; }
.map-card::after { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(184,147,71,0.22); z-index: 3; }
.map-corner {
  position: absolute;
  color: var(--gold-deep);
  font-size: 10px;
  width: 14px; height: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #FBF6EA 0%, #EFE7D4 100%);
  z-index: 5;
}
.map-corner.tl { top: 10px; left: 10px; transform: translate(-50%,-50%); }
.map-corner.tr { top: 10px; right: 10px; transform: translate(50%,-50%); }
.map-corner.bl { bottom: 10px; left: 10px; transform: translate(-50%,50%); }
.map-corner.br { bottom: 10px; right: 10px; transform: translate(50%,50%); }
.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ivory-soft);
  z-index: 1;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(0.85) contrast(1.02); }
.venue-name {
  font-family: var(--f-hero);
  font-size: clamp(1.3rem, 5vw, 1.6rem);
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 0.5rem;
}
.venue-address {
  font-family: var(--f-hero);
  font-style: italic;
  font-size: clamp(0.95rem, 3.8vw, 1.05rem);
  color: var(--gold-deep);
  margin-bottom: 2.5rem;
}
.info-list {
  display: flex; flex-direction: column; gap: 1rem;
  max-width: 480px; margin: 0 auto 3rem;
  text-align: left;
}
.info-row { display: flex; align-items: flex-start; gap: 1rem; }
.info-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  color: var(--gold-deep);
  margin-top: 0.15rem;
}
.info-icon svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.info-text {
  flex: 1;
  font-size: clamp(0.92rem, 3.6vw, 1rem);
  line-height: 1.6;
  color: var(--maroon);
}
.info-text strong {
  display: block;
  font-family: var(--f-hero);
  font-weight: 400;
  font-size: 1.05em;
  letter-spacing: 0.06em;
  color: var(--maroon);
  margin-bottom: 0.1rem;
}
.info-text a { color: var(--gold-deep); border-bottom: 1px solid rgba(140,110,51,0.4); }
.btn-directions {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0 2rem;
  font-family: var(--f-hero);
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  border: 1px solid var(--gold-deep);
  background: transparent;
  color: var(--gold-deep);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
}
.btn-directions::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--maroon);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.6, 0, 0.4, 1);
  z-index: -1;
}
.btn-directions:hover { color: var(--ivory); border-color: var(--maroon); }
.btn-directions:hover::before { transform: scaleX(1); }
.btn-directions .arrow { display: inline-block; transition: transform 0.3s ease; }
.btn-directions:hover .arrow { transform: translateX(4px); }

/* ============================================================
   SECTION 8 — RSVP (maroon)
   ============================================================ */
.section-rsvp {
  position: relative;
  min-height: 100dvh;
  background: var(--royal-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 4rem;
  overflow: hidden;
}
.section-rsvp::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(184,147,71,0.03) 0px, rgba(184,147,71,0.03) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.06) 0px, rgba(0,0,0,0.06) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
  z-index: 1;
}
.section-rsvp::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90%; height: 70%;
  background: radial-gradient(ellipse at center, rgba(212,175,106,0.12) 0%, rgba(212,175,106,0.05) 40%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.section-rsvp .viewport-frame { border-color: rgba(184,147,71,0.42); }
.section-rsvp .corner { background: var(--maroon-deep); }

.rsvp-inner {
  position: relative;
  z-index: 6;
  width: 100%;
  max-width: 620px;
  text-align: center;
}
.section-rsvp .section-label { color: var(--gold-bright); }
.section-rsvp .section-title { color: var(--ivory); }
.section-rsvp .ornament-line { background: var(--gold-bright); }
.section-rsvp .ornament-mark { color: var(--gold-bright); }

.rsvp-card {
  position: relative;
  background: var(--ivory);
  padding: 3rem 1.75rem 2.5rem;
  text-align: left;
  box-shadow: 0 24px 50px rgba(0,0,0,0.4), 0 6px 14px rgba(0,0,0,0.25);
  transition: min-height var(--swap-duration) var(--swap-ease);
}
@media (min-width: 640px) { .rsvp-card { padding: 3.5rem 2.5rem 3rem; } }
.rsvp-card::before { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(184,147,71,0.6); z-index: 3; }
.rsvp-card::after { content: ''; position: absolute; inset: 16px; border: 1px solid rgba(184,147,71,0.25); z-index: 3; }
.rsvp-corner {
  position: absolute;
  color: var(--gold-deep);
  font-size: 10px;
  width: 14px; height: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ivory);
  z-index: 4;
}
.rsvp-corner.tl { top: 12px; left: 12px; transform: translate(-50%,-50%); }
.rsvp-corner.tr { top: 12px; right: 12px; transform: translate(50%,-50%); }
.rsvp-corner.bl { bottom: 12px; left: 12px; transform: translate(-50%,50%); }
.rsvp-corner.br { bottom: 12px; right: 12px; transform: translate(50%,50%); }

.rsvp-form { position: relative; z-index: 5; }

.field { display: block; margin-bottom: 1.5rem; }
.field-label {
  display: block;
  font-family: var(--f-body);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.field input[type="text"],
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0;
  border: none;
  border-bottom: 1px solid var(--gold);
  background: transparent;
  font-family: var(--f-body);
  font-size: 16px;
  color: var(--maroon);
  outline: none;
  transition: border-color 0.2s ease;
  resize: vertical;
}
.field textarea { min-height: 90px; padding-top: 0.6rem; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: var(--maroon); opacity: 0.35; font-style: italic; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--maroon);
  border-bottom-width: 2px;
  padding-bottom: calc(0.7rem - 1px);
}
.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold-deep) 50%),
    linear-gradient(135deg, var(--gold-deep) 50%, transparent 50%);
  background-position: calc(100% - 12px) 22px, calc(100% - 7px) 22px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 1.5rem;
  cursor: pointer;
}
.fieldset { border: none; padding: 0; margin-bottom: 1.5rem; }
.fieldset legend {
  display: block;
  font-family: var(--f-body);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 0.5rem;
  padding: 0;
}
.radio-row, .check-row { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 0.5rem; }
.radio, .check {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  font-family: var(--f-body);
  font-size: 0.95rem;
  color: var(--maroon);
  min-height: 32px;
}
.radio input, .check input {
  width: 18px; height: 18px;
  accent-color: var(--maroon);
  cursor: pointer;
}

/* Conditional swap */
.swap-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition:
    grid-template-rows var(--swap-duration) var(--swap-ease),
    opacity var(--swap-duration) var(--swap-ease),
    margin var(--swap-duration) var(--swap-ease);
  opacity: 0;
  margin-bottom: 0;
}
.swap-wrap.active {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-bottom: 0.5rem;
}
.swap-inner { overflow: hidden; min-height: 0; }
.swap-content {
  transform: translateY(8px);
  opacity: 0;
  transition:
    transform var(--swap-duration) var(--swap-ease),
    opacity var(--swap-duration) var(--swap-ease);
}
.swap-wrap.active .swap-content { transform: translateY(0); opacity: 1; }
.attending-no-note {
  font-family: var(--f-hero);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--gold-deep);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed rgba(140,110,51,0.35);
  text-align: left;
}

.btn-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin-top: 1rem;
  padding: 0 1.5rem;
  font-family: var(--f-hero);
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  text-transform: uppercase;
  border: 1px solid var(--maroon);
  background: var(--maroon);
  color: var(--ivory);
  cursor: pointer;
  transition: color 0.3s ease;
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
}
.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-deep);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.6, 0, 0.4, 1);
  z-index: -1;
}
.btn-submit:hover { color: var(--ivory); border-color: var(--gold-deep); }
.btn-submit:hover::before { transform: scaleX(1); }

.rsvp-success {
  position: relative;
  background: var(--ivory);
  padding: 3.5rem 2rem 3rem;
  text-align: center;
  box-shadow: 0 24px 50px rgba(0,0,0,0.4), 0 6px 14px rgba(0,0,0,0.25);
  animation: successIn 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.rsvp-success::before { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(184,147,71,0.6); }
.rsvp-success::after { content: ''; position: absolute; inset: 16px; border: 1px solid rgba(184,147,71,0.25); }
.rsvp-success .rsvp-corner { background: var(--ivory); }
@keyframes successIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.success-icon { font-size: 2rem; color: var(--gold-deep); margin-bottom: 1.5rem; letter-spacing: 0.4em; text-indent: 0.4em; }
.success-title {
  font-family: var(--f-hero);
  font-weight: 400;
  font-size: clamp(1.5rem, 6vw, 2rem);
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 1rem;
}
.success-msg {
  font-family: var(--f-hero);
  font-style: italic;
  font-size: clamp(0.95rem, 4vw, 1.1rem);
  color: var(--gold-deep);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}
.success-ornament { display: flex; align-items: center; justify-content: center; gap: 0.85rem; width: min(200px, 55%); margin: 0 auto 2.5rem; }
.success-ornament-line { flex: 1; height: 1px; background: var(--gold); opacity: 0.5; }
.success-ornament-mark { color: var(--gold-deep); font-size: 0.75rem; }
.success-actions { display: flex; flex-direction: column; gap: 0.75rem; max-width: 320px; margin: 0 auto; }

/* ============================================================
   SECTION 9 — WISHES
   ============================================================ */
.wishes-inner { max-width: 780px; }
.sub {
  font-family: var(--f-hero);
  font-style: italic;
  font-size: clamp(0.95rem, 3.8vw, 1.05rem);
  color: var(--gold-deep);
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.wish-form {
  position: relative;
  background: linear-gradient(180deg, #FBF6EA 0%, #EFE7D4 100%);
  padding: 2.5rem 1.75rem 2rem;
  text-align: left;
  margin-bottom: 4rem;
  box-shadow: 0 16px 40px rgba(58,14,14,0.10), 0 3px 8px rgba(58,14,14,0.05);
}
@media (min-width: 640px) { .wish-form { padding: 3rem 2.5rem 2.5rem; } }
.wish-form::before { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(184,147,71,0.55); }
.wish-form::after { content: ''; position: absolute; inset: 16px; border: 1px solid rgba(184,147,71,0.22); }
.form-corner {
  position: absolute;
  color: var(--gold-deep);
  font-size: 10px;
  width: 14px; height: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #FBF6EA 0%, #EFE7D4 100%);
  z-index: 3;
}
.form-corner.tl { top: 12px; left: 12px; transform: translate(-50%,-50%); }
.form-corner.tr { top: 12px; right: 12px; transform: translate(50%,-50%); }
.form-corner.bl { bottom: 12px; left: 12px; transform: translate(-50%,50%); }
.form-corner.br { bottom: 12px; right: 12px; transform: translate(50%,50%); }
.form-inner { position: relative; z-index: 4; }
.wish-form-success { padding: 2rem 1rem; text-align: center; }
.wish-form-success .icon { font-size: 1.8rem; color: var(--gold-deep); margin-bottom: 1rem; }
.wish-form-success .title {
  font-family: var(--f-hero);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 0.75rem;
}
.wish-form-success .msg { font-family: var(--f-hero); font-style: italic; color: var(--gold-deep); font-size: 1rem; }

.wall-label {
  font-family: var(--f-hero);
  font-size: 0.75rem;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.75rem;
}
.wall-title {
  font-family: var(--f-hero);
  font-weight: 400;
  font-size: clamp(1.2rem, 5vw, 1.5rem);
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 2.5rem;
}
.wishes-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}
.wish-card {
  position: relative;
  background: linear-gradient(180deg, #FBF6EA 0%, #EFE7D4 100%);
  padding: 1.75rem 1.5rem 1.5rem;
  border-left: 3px solid var(--gold);
  box-shadow: 0 8px 24px rgba(58,14,14,0.08), 0 2px 4px rgba(58,14,14,0.04);
}
.wish-msg {
  font-family: var(--f-hero);
  font-style: italic;
  font-size: clamp(1rem, 4vw, 1.1rem);
  line-height: 1.7;
  color: var(--maroon);
  margin-bottom: 1.25rem;
  padding-right: 0.5rem;
}
.wish-msg::before {
  content: '❝';
  font-family: Georgia, serif;
  font-style: normal;
  color: var(--gold);
  font-size: 1.4rem;
  margin-right: 0.25rem;
  vertical-align: top;
  line-height: 1;
  display: inline-block;
  transform: translateY(0.15em);
  opacity: 0.7;
}
.wish-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.wish-author {
  font-family: var(--f-hero);
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
  line-height: 1.3;
}
.wish-author .dash { color: var(--gold-deep); margin-right: 0.25rem; }
.wish-relation {
  font-family: var(--f-body);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--gold-deep);
  opacity: 0.9;
  margin-top: 0.15rem;
  font-style: italic;
}
.wish-love {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  min-height: 36px;
  border: 1px solid rgba(140,110,51,0.4);
  background: transparent;
  color: var(--gold-deep);
  font-family: var(--f-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  border-radius: 0;
  flex-shrink: 0;
}
.wish-love .heart { font-size: 0.95rem; transition: transform 0.25s ease; }
.wish-love:hover { border-color: var(--maroon); color: var(--maroon); }
.wish-love.loved { background: var(--maroon); color: var(--ivory); border-color: var(--maroon); }
.wish-love.loved .heart { transform: scale(1.1); }
.btn-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 2.5rem auto 0;
  padding: 0 1.75rem;
  font-family: var(--f-hero);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  border: 1px solid var(--gold-deep);
  background: transparent;
  color: var(--gold-deep);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
}
.btn-more::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--maroon);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.6, 0, 0.4, 1);
  z-index: -1;
}
.btn-more:hover { color: var(--ivory); border-color: var(--maroon); }
.btn-more:hover::before { transform: scaleX(1); }

/* ============================================================
   SECTION 10 — GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) { .gallery-grid { gap: 1rem; } }
@media (min-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.gallery-tile {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(180deg, #FBF6EA 0%, #EFE7D4 100%);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
  box-shadow: 0 8px 20px rgba(58,14,14,0.08), 0 2px 4px rgba(58,14,14,0.04);
  border: none;
  padding: 0;
  font-family: inherit;
}
.gallery-tile::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(184,147,71,0.55); z-index: 3; pointer-events: none; }
.gallery-tile::after { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(184,147,71,0.22); z-index: 3; pointer-events: none; }
.tile-corner {
  position: absolute;
  color: var(--gold-deep);
  font-size: 9px;
  width: 12px; height: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #FBF6EA 0%, #EFE7D4 100%);
  z-index: 5;
}
.tile-corner.tl { top: 8px; left: 8px; transform: translate(-50%,-50%); }
.tile-corner.tr { top: 8px; right: 8px; transform: translate(50%,-50%); }
.tile-corner.bl { bottom: 8px; left: 8px; transform: translate(-50%,50%); }
.tile-corner.br { bottom: 8px; right: 8px; transform: translate(50%,50%); }
.tile-placeholder {
  position: absolute;
  inset: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: radial-gradient(circle at 40% 40%, rgba(184,147,71,0.10) 0%, rgba(184,147,71,0.04) 60%, transparent 90%);
  z-index: 1;
}
.tile-icon { font-size: 1.5rem; color: var(--gold-deep); opacity: 0.5; }
.tile-label {
  font-family: var(--f-hero);
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
  opacity: 0.55;
  text-align: center;
  padding: 0 0.5rem;
}
.tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(58,14,14,0.75) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}
.tile-overlay-text {
  font-family: var(--f-hero);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.gallery-tile:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(58,14,14,0.14), 0 4px 8px rgba(58,14,14,0.06); }
.gallery-tile:hover .tile-overlay { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(26, 8, 8, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox.open { display: flex; animation: lightboxIn 0.35s ease both; }
@keyframes lightboxIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  width: 48px; height: 48px;
  background: transparent;
  border: 1px solid rgba(212,175,106,0.5);
  color: var(--gold-bright);
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.lightbox-close:hover { background: rgba(212,175,106,0.12); border-color: var(--gold-bright); }
.lightbox-frame {
  position: relative;
  max-width: 720px;
  max-height: 85vh;
  aspect-ratio: 1;
  width: 100%;
  background: linear-gradient(180deg, #FBF6EA 0%, #EFE7D4 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(184,147,71,0.4);
  animation: lightboxFrameIn 0.4s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
@keyframes lightboxFrameIn { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-frame::before { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(184,147,71,0.55); }
.lightbox-frame::after { content: ''; position: absolute; inset: 16px; border: 1px solid rgba(184,147,71,0.22); }
.lb-corner {
  position: absolute;
  color: var(--gold-deep);
  font-size: 10px;
  width: 14px; height: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #FBF6EA 0%, #EFE7D4 100%);
  z-index: 5;
}
.lb-corner.tl { top: 12px; left: 12px; transform: translate(-50%,-50%); }
.lb-corner.tr { top: 12px; right: 12px; transform: translate(50%,-50%); }
.lb-corner.bl { bottom: 12px; left: 12px; transform: translate(-50%,50%); }
.lb-corner.br { bottom: 12px; right: 12px; transform: translate(50%,50%); }
.lb-placeholder { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; color: var(--gold-deep); text-align: center; }
.lb-icon { font-size: 3rem; opacity: 0.5; }
.lb-caption { font-family: var(--f-hero); font-style: italic; font-size: 1.1rem; color: var(--maroon); max-width: 340px; line-height: 1.6; }
.lb-index { font-family: var(--f-body); font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep); opacity: 0.7; margin-top: 0.5rem; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  background: transparent;
  border: 1px solid rgba(212,175,106,0.5);
  color: var(--gold-bright);
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
  z-index: 10;
}
.lightbox-nav:hover { background: rgba(212,175,106,0.12); border-color: var(--gold-bright); }
.lightbox-nav.prev { left: 1.5rem; }
.lightbox-nav.next { right: 1.5rem; }
@media (max-width: 640px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.25rem; }
  .lightbox-nav.prev { left: 0.75rem; }
  .lightbox-nav.next { right: 0.75rem; }
  .lightbox-frame { padding: 1.5rem; }
}

/* ============================================================
   SECTION 11A — NO GIFTS
   ============================================================ */
.section-nogifts { padding-bottom: 4.5rem; }
.nogifts-inner {
  position: relative;
  z-index: 6;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.ng-label {
  font-family: var(--f-hero);
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.75rem;
}
.ng-main {
  font-family: var(--f-hero);
  font-weight: 400;
  font-size: clamp(1.4rem, 5.5vw, 1.9rem);
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 1.25rem;
}
.ng-ornament { display: flex; align-items: center; justify-content: center; gap: 0.85rem; width: min(200px, 50%); margin: 0 auto 1.5rem; }
.ng-sub {
  font-family: var(--f-hero);
  font-style: italic;
  font-size: clamp(1rem, 4vw, 1.15rem);
  color: var(--gold-deep);
  line-height: 1.7;
  max-width: 420px;
  margin: 0 auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  background: var(--royal-bg);
  padding: 5rem 1.5rem 2.5rem;
  overflow: hidden;
  text-align: center;
}
@media (min-width: 768px) { .site-footer { padding: 6rem 2rem 3rem; } }
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(184,147,71,0.03) 0px, rgba(184,147,71,0.03) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.06) 0px, rgba(0,0,0,0.06) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
  z-index: 1;
}
.site-footer::after {
  content: '';
  position: absolute;
  top: 45%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90%; height: 65%;
  background: radial-gradient(ellipse at center, rgba(212,175,106,0.10) 0%, rgba(212,175,106,0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.footer-frame { position: absolute; inset: 14px; border: 1px solid rgba(184,147,71,0.42); z-index: 4; }
@media (min-width: 768px) { .footer-frame { inset: 22px; } }
.footer-corner {
  position: absolute;
  color: var(--gold-bright);
  font-size: 11px;
  width: 12px; height: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--maroon-deep);
  z-index: 5;
}
.footer-corner.tl { top: 14px; left: 14px; transform: translate(-50%,-50%); }
.footer-corner.tr { top: 14px; right: 14px; transform: translate(50%,-50%); }
.footer-corner.bl { bottom: 14px; left: 14px; transform: translate(-50%,50%); }
.footer-corner.br { bottom: 14px; right: 14px; transform: translate(50%,50%); }
@media (min-width: 768px) {
  .footer-corner.tl { top: 22px; left: 22px; }
  .footer-corner.tr { top: 22px; right: 22px; }
  .footer-corner.bl { bottom: 22px; left: 22px; }
  .footer-corner.br { bottom: 22px; right: 22px; }
}
.footer-inner { position: relative; z-index: 6; max-width: 620px; margin: 0 auto; }
.footer-couple {
  font-family: var(--f-hero);
  font-weight: 400;
  font-size: clamp(1.5rem, 6vw, 2.1rem);
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 2rem;
}
.footer-couple .amp { font-style: italic; color: var(--gold-bright); font-size: 1.2em; margin: 0 0.15em; }
.footer-hashtag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--gold-bright);
  background: transparent;
  color: var(--gold-bright);
  font-family: var(--f-hero);
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  border-radius: 0;
  margin-bottom: 2rem;
}
.footer-hashtag:hover { background: var(--gold-bright); color: var(--maroon-deep); }
.footer-hashtag.copied { background: var(--gold-bright); color: var(--maroon-deep); }
.footer-phone { font-family: var(--f-body); font-size: 0.9rem; margin-bottom: 2.5rem; }
.footer-phone a { color: var(--gold-bright); border-bottom: 1px solid rgba(212,175,106,0.4); padding-bottom: 1px; }
.footer-ornament { display: flex; align-items: center; justify-content: center; gap: 0.85rem; width: min(220px, 55%); margin: 0 auto 2.5rem; }
.footer-ornament-line { flex: 1; height: 1px; background: var(--gold-bright); opacity: 0.5; }
.footer-ornament-mark { color: var(--gold-bright); font-size: 0.85rem; }
.footer-withlove { font-family: var(--f-hero); font-style: italic; font-size: clamp(0.95rem, 3.8vw, 1.05rem); color: var(--gold-bright); margin-bottom: 0.5rem; }
.footer-family { font-family: var(--f-hero); font-size: clamp(1rem, 4vw, 1.15rem); color: var(--ivory); margin-bottom: 2.5rem; }
.footer-invocation { font-family: var(--f-deva); font-size: clamp(0.9rem, 3.5vw, 1rem); color: var(--gold-bright); letter-spacing: 0.14em; margin-bottom: 2rem; }
.footer-made { font-family: var(--f-body); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--gold); opacity: 0.55; margin-bottom: 1.5rem; }
.footer-replay {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.4rem 1rem;
  background: transparent;
  border: 1px solid rgba(184,147,71,0.4);
  color: var(--gold);
  font-family: var(--f-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  margin-bottom: 2rem;
}
.footer-replay:hover { background: rgba(184,147,71,0.15); color: var(--gold-bright); }
.footer-credit {
  position: relative;
  z-index: 6;
  max-width: 720px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(184,147,71,0.18);
  text-align: center;
}
.footer-credit-line {
  font-family: var(--f-body);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  opacity: 0.55;
  line-height: 1.6;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
}
.footer-credit-line .credit-item { display: inline-flex; align-items: center; gap: 0.35rem; }
.footer-credit-line .credit-sep { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--gold); opacity: 0.5; }
.footer-credit-line a { color: var(--gold); border-bottom: 1px solid rgba(184,147,71,0.22); padding-bottom: 1px; }

/* ============================================================
   MUSIC BUTTON + TOAST
   ============================================================ */
.music-btn {
  position: fixed;
  right: 1rem;
  bottom: calc(5.5rem + env(safe-area-inset-bottom, 0));
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: rgba(74,20,20,0.9);
  color: var(--gold-bright);
  font-size: 1.15rem;
  cursor: pointer;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}
.music-btn:hover { transform: scale(1.08); }
/* display:flex above overrides the UA [hidden] rule, so the hidden attribute
   alone would not hide this button (same trap as .bottom-sheet). */
.music-btn[hidden] { display: none; }
.music-btn.playing .music-icon-on { display: inline; animation: musicPulse 1.6s ease-in-out infinite; }
.music-btn.playing .music-icon-off { display: none; }
.music-btn.paused .music-icon-on { display: none; }
.music-btn.paused .music-icon-off { display: inline; opacity: 0.6; }
@keyframes musicPulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.15); }
}
@media (min-width: 1024px) { .music-btn { bottom: 1.5rem; } }

.toast {
  position: fixed;
  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--maroon-deep);
  color: var(--ivory);
  padding: 0.75rem 1.25rem;
  border-radius: 30px;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  border: 1px solid var(--gold);
  opacity: 0;
  z-index: 1000;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
