/* ===== Wedding Invitation: Bogdan & Zhanna ===== */
/* MORNING GARDEN — airy, warm, forest-lit */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Cormorant+Unicase:wght@400;500&family=Tangerine:wght@400;700&family=Cinzel:wght@400;500;600&display=swap');

:root {
  /* Morning garden */
  --twilight-1: #f7efe0;
  --twilight-2: #ecdfc8;
  --twilight-3: #cfd9bd;
  --moss: #6f835b;
  --sage: #97aa7a;
  --mint: #dfe8d0;

  /* Warm accents */
  --gold: #a97938;
  --gold-bright: #bf8c48;
  --gold-soft: #c9a56a;
  --rose: #c98f83;
  --rose-soft: #9f655f;
  --peach: #ead3ad;
  --lilac: #c8b8d4;

  /* Cream paper */
  --milk: #fffaf0;
  --milk-soft: #f5ead7;
  --paper: #fbf4e8;

  /* Ink */
  --ink: #354333;
  --ink-soft: rgba(53, 67, 51, 0.78);
  --ink-dim: rgba(53, 67, 51, 0.52);
  --ink-on-light: #354333;

  --display: 'Cormorant Unicase', Georgia, serif;
  --display-2: 'Cinzel', Georgia, serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --script: 'Tangerine', cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Soft paper and garden base for all content below the hero */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.94) 0%, rgba(248, 240, 222, 0.88) 42%, rgba(244, 232, 207, 0.94) 100%),
    linear-gradient(90deg, rgba(224, 234, 208, 0.55), rgba(255, 250, 240, 0.68) 36%, rgba(239, 220, 196, 0.48) 100%),
    url("https://images.unsplash.com/photo-1511497584788-876760111969?w=1920&q=85&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  pointer-events: none;
  z-index: 0;
}

/* Warm daylight veil, kept seamless to avoid visible texture tiles */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 48% 70% at 50% 5%, rgba(255, 255, 255, 0.72), transparent 70%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.38) 0%, transparent 28%, rgba(194, 164, 113, 0.12) 100%),
    linear-gradient(90deg, rgba(111, 131, 91, 0.10), transparent 28%, transparent 72%, rgba(190, 140, 91, 0.10));
  opacity: 1;
  mix-blend-mode: normal;
  pointer-events: none;
  z-index: 1;
}

#leaves-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.32;
}

#fireflies-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.22;
}

main { position: relative; z-index: 5; }

/* ========== Sound toggle ========== */
.sound-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.74);
  border: 1px solid rgba(169, 121, 56, 0.28);
  cursor: pointer;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(91, 74, 43, 0.10);
}
.sound-toggle:hover { transform: scale(1.05); border-color: var(--gold); color: var(--gold); }
.sound-toggle svg { width: 18px; height: 18px; }

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("https://images.unsplash.com/photo-1519741497674-611481863552?w=1920&q=85&auto=format&fit=crop");
  background-size: cover;
  background-position: center 42%;
  filter: brightness(1.05) saturate(0.86) contrast(0.92);
  animation: heroZoom 30s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.88) 0%, rgba(255, 250, 240, 0.64) 40%, rgba(74, 91, 67, 0.24) 100%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.50) 0%, rgba(244, 228, 202, 0.08) 42%, rgba(74, 91, 67, 0.38) 100%),
    radial-gradient(ellipse at 22% 42%, rgba(255, 250, 240, 0.76) 0%, rgba(255, 250, 240, 0.28) 36%, transparent 58%);
}

/* Magical sunbeam glow behind names */
.hero-glow {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 1000px;
  height: 1000px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(255, 250, 240, 0.62) 0%, rgba(234, 211, 173, 0.28) 28%, rgba(151, 170, 122, 0.12) 52%, transparent 75%);
  pointer-events: none;
  z-index: 1;
  animation: glowPulse 6s ease-in-out infinite;
  filter: blur(20px);
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 1100px;
  color: var(--ink);
}

.hero-eyebrow {
  font-family: var(--script);
  font-weight: 400;
  letter-spacing: 0.04em;
  font-size: clamp(28px, 3vw, 38px);
  color: var(--gold);
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeUp 1.6s 0.3s forwards;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  text-shadow: 0 1px 18px rgba(255, 250, 240, 0.72);
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: "";
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(169, 121, 56, 0.8), transparent);
  opacity: 0.7;
}

.hero-names {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 118px);
  line-height: 1.0;
  color: var(--ink);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 1.8s 0.6s forwards;
  text-shadow:
    0 1px 0 rgba(255, 250, 240, 0.82),
    0 18px 44px rgba(70, 80, 53, 0.18);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.18em;
  flex-wrap: nowrap;
}

.hero-amp {
  display: inline-block;
  font-family: var(--script);
  font-style: normal;
  font-weight: 700;
  color: var(--gold);
  font-size: 1.4em;
  line-height: 1;
  margin: 0 0.05em;
  transform: translateY(-0.05em);
}

@media (max-width: 720px) {
  .hero-names {
    flex-direction: column;
    gap: 0.05em;
    font-size: clamp(56px, 14vw, 90px);
  }
  .hero-amp { font-size: 0.6em; }
}

.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--ink-soft);
  margin: 16px auto 48px;
  opacity: 0;
  animation: fadeUp 1.6s 1s forwards;
  letter-spacing: 0.04em;
  max-width: 680px;
}

.hero-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 60px);
  margin-bottom: 56px;
  opacity: 0;
  animation: fadeUp 1.6s 1.3s forwards;
}

.hero-date-num {
  font-family: var(--display);
  font-size: clamp(34px, 4.5vw, 52px);
  color: var(--gold);
  letter-spacing: 0.05em;
  line-height: 1;
  text-shadow: 0 1px 14px rgba(255, 250, 240, 0.64);
}

.hero-date-label {
  font-family: var(--script);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--rose-soft);
  margin-top: 4px;
}

.hero-date-cell { text-align: center; }

.hero-date-sep {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
  box-shadow: 0 0 8px rgba(169, 121, 56, 0.28);
}

.countdown {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  justify-content: center;
  opacity: 0;
  animation: fadeUp 1.6s 1.6s forwards;
  padding-top: 28px;
  margin-bottom: 24px;
  border-top: 1px solid rgba(169, 121, 56, 0.24);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.countdown-cell { text-align: center; min-width: 60px; }

.countdown-num {
  font-family: var(--display);
  font-size: clamp(26px, 3.6vw, 40px);
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-family: var(--script);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--rose-soft);
  margin-top: 4px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-cue {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--script);
  font-weight: 400;
  font-size: 22px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fadeUp 1.4s 2s forwards;
  z-index: 4;
}
.scroll-cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 30px;
  background: linear-gradient(180deg, var(--gold), transparent);
  margin: 8px auto 0;
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.5); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ========== Section base ========== */
section {
  position: relative;
  padding: clamp(100px, 14vw, 180px) clamp(20px, 5vw, 80px);
  z-index: 5;
}

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

/* Section ornament header */
.section-eyebrow {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(26px, 2.8vw, 34px);
  letter-spacing: 0.02em;
  color: var(--gold);
  text-align: center;
  margin-bottom: 4px;
}

.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 6.5vw, 80px);
  text-align: center;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 18px;
  text-shadow: 0 1px 0 rgba(255, 250, 240, 0.72);
}

.section-rule {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 0 auto 64px;
  max-width: 360px;
  color: var(--gold);
}
.section-rule::before, .section-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(169, 121, 56, 0.58) 50%, transparent);
  opacity: 0.55;
}
.section-rule .ornament {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  position: relative;
  background: transparent;
  border: 1px solid rgba(169, 121, 56, 0.54);
  transform: rotate(45deg);
  border-radius: 2px;
}
.section-rule .ornament::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--gold);
  border-radius: 50%;
}

/* ========== Reveal ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.15s; }
.reveal-d2 { transition-delay: 0.3s; }
.reveal-d3 { transition-delay: 0.45s; }

/* ========== INVITE ========== */
.invite {
  text-align: center;
}
.invite-text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.75;
  color: var(--ink);
  max-width: 720px;
  margin: 0 auto;
  font-style: italic;
}
.invite-text strong {
  font-style: normal;
  font-weight: 500;
  color: var(--gold);
}

.invite-monogram {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(96px, 12vw, 144px);
  color: var(--gold);
  margin: 56px 0 32px;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 12px 30px rgba(169, 121, 56, 0.14);
}

/* ========== SCHEDULE ========== */
.schedule-track {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 0;
}
.schedule-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(169, 121, 56, 0.22);
  transform: translateX(-50%);
}
.schedule-line-fill {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 0;
  background: linear-gradient(180deg, var(--sage) 0%, var(--gold) 54%, var(--peach) 100%);
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 14px rgba(169, 121, 56, 0.26);
}
.schedule-line-fill::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow:
    0 0 0 5px rgba(169, 121, 56, 0.14),
    0 0 28px rgba(169, 121, 56, 0.22);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(169, 121, 56, 0.14), 0 0 28px rgba(169, 121, 56, 0.22); }
  50% { box-shadow: 0 0 0 10px rgba(169, 121, 56, 0.08), 0 0 40px rgba(169, 121, 56, 0.32); }
}

.schedule-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
  margin-bottom: 64px;
  min-height: 80px;
}
.schedule-item:last-child { margin-bottom: 0; }
.schedule-time, .schedule-event {
  grid-row: 1;
  padding: 0 22px;
}
.schedule-marker { grid-row: 1; }

.schedule-item:nth-child(odd) .schedule-time { text-align: right; grid-column: 1; }
.schedule-item:nth-child(odd) .schedule-event { text-align: left; grid-column: 3; }
.schedule-item:nth-child(even) .schedule-event { text-align: right; grid-column: 1; }
.schedule-item:nth-child(even) .schedule-time { text-align: left; grid-column: 3; }

.schedule-time {
  font-family: var(--display);
  font-size: clamp(36px, 4.5vw, 54px);
  color: rgba(53, 67, 51, 0.42);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  transition: color 0.6s ease, text-shadow 0.6s ease;
}

.schedule-event-name {
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 8px;
  transition: color 0.6s ease;
}

.schedule-event-desc {
  font-family: var(--script);
  font-style: normal;
  font-size: clamp(20px, 2vw, 24px);
  color: var(--rose-soft);
  font-weight: 400;
}

.schedule-marker {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
}

.schedule-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid rgba(169, 121, 56, 0.42);
  transition: all 0.6s ease;
}

.schedule-item-end {
  min-height: 56px;
  margin-top: -18px;
}
.schedule-item-end .schedule-time {
  font-size: clamp(30px, 3.8vw, 44px);
}
.schedule-item-end .schedule-event-name {
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--ink-dim);
}

.schedule-item.active .schedule-dot {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.4);
  box-shadow: 0 0 0 6px rgba(169, 121, 56, 0.12), 0 12px 24px rgba(169, 121, 56, 0.18);
}
.schedule-item.active .schedule-time {
  color: var(--gold);
  text-shadow: 0 1px 0 rgba(255, 250, 240, 0.75);
}
.schedule-item.active .schedule-event-name { color: #5d6f4d; }
.schedule-item-end.active .schedule-event-name { color: var(--rose-soft); }

@media (max-width: 640px) {
  .schedule-line, .schedule-line-fill { left: 24px; }
  .schedule-item { grid-template-columns: 48px 1fr; text-align: left !important; }
  .schedule-item:nth-child(odd) .schedule-time,
  .schedule-item:nth-child(even) .schedule-time,
  .schedule-item:nth-child(odd) .schedule-event,
  .schedule-item:nth-child(even) .schedule-event {
    grid-column: 2 !important;
    grid-row: 2 !important;
    text-align: left !important;
    padding: 4px 0 4px 18px;
  }
  .schedule-item:nth-child(odd) .schedule-time,
  .schedule-item:nth-child(even) .schedule-time {
    grid-row: 1 !important;
  }
  .schedule-item .schedule-marker { grid-column: 1 !important; grid-row: 1 / span 2; }
}

/* ========== LOCATION ========== */
.location { text-align: center; }

.location-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(360px, 1fr);
  align-items: stretch;
  gap: clamp(24px, 4vw, 48px);
  text-align: left;
}

.location-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 440px;
  padding: clamp(28px, 4vw, 48px) 0;
}

.location-kicker {
  font-family: var(--display-2);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.location-name {
  font-family: var(--display);
  font-size: clamp(38px, 5.2vw, 68px);
  color: var(--ink);
  line-height: 1.05;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 0 rgba(255, 250, 240, 0.72);
}

.location-sub {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.5;
  color: var(--rose-soft);
  margin-bottom: 34px;
  font-style: italic;
}

.location-details {
  display: grid;
  gap: 18px;
  margin-bottom: 38px;
  padding-left: 20px;
  border-left: 1px solid rgba(169, 121, 56, 0.32);
}

.location-details span {
  display: block;
  font-family: var(--display-2);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.location-details strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(17px, 1.7vw, 20px);
  font-weight: 300;
  color: var(--ink-soft);
}

.location-map-shell {
  min-height: 430px;
  aspect-ratio: 1.14 / 1;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(169, 121, 56, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.92), rgba(239, 229, 207, 0.92)),
    radial-gradient(ellipse at 40% 20%, rgba(169, 121, 56, 0.12), transparent 60%);
  box-shadow:
    0 24px 70px rgba(91, 74, 43, 0.16),
    0 0 0 12px rgba(255, 250, 240, 0.45),
    inset 0 0 0 1px rgba(255, 250, 240, 0.86);
  isolation: isolate;
}

.location-map-shell::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 6px;
  border: 1px solid rgba(169, 121, 56, 0.18);
  pointer-events: none;
  z-index: 4;
}

.location-map-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(255, 250, 240, 0.12) 78%, rgba(169, 121, 56, 0.12) 100%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.08), transparent 24%, transparent 76%, rgba(169, 121, 56, 0.10));
  mix-blend-mode: normal;
}

.location-map {
  width: 100%;
  height: 100%;
  min-height: 430px;
  filter: saturate(0.76) sepia(0.08) hue-rotate(8deg) contrast(0.98) brightness(1.03);
}

.location-map-shell.is-loaded .location-map {
  filter: saturate(0.78) sepia(0.08) hue-rotate(8deg) contrast(0.98) brightness(1.04);
}

.map-touch-guard {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255, 250, 240, 0.44), transparent 58%),
    rgba(53, 67, 51, 0.32);
  border: none;
  color: var(--milk);
  text-align: center;
  cursor: pointer;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.map-touch-guard span {
  font-family: var(--display-2);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--milk);
}

.map-touch-guard strong {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 300;
  color: var(--ink);
}

.map-fallback {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: rgba(255, 250, 240, 0.94);
  text-align: center;
}

.map-fallback span {
  font-family: var(--display);
  font-size: 28px;
  color: var(--ink);
}

.map-fallback a {
  color: var(--gold);
  font-family: var(--display-2);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(169, 121, 56, 0.34);
}

.location-map-shell.is-fallback .map-fallback { display: flex; }

@media (hover: none), (pointer: coarse) {
  .location-map-shell:not(.is-unlocked) .map-touch-guard { display: flex; }
}

@media (max-width: 820px) {
  .location-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .location-copy {
    min-height: auto;
    align-items: center;
    padding: 0;
  }
  .location-details {
    width: 100%;
    max-width: 420px;
    text-align: left;
  }
  .location-map-shell,
  .location-map {
    min-height: 360px;
    aspect-ratio: 1 / 1.05;
  }
  .location-map-shell {
    width: min(100%, 520px);
    margin: 0 auto;
  }
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 40px;
  font-family: var(--display-2);
  font-weight: 500;
  font-size: clamp(13px, 1.2vw, 15px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: transparent;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid rgba(169, 121, 56, 0.54);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}
.location-copy .btn {
  min-width: min(100%, 486px);
  padding-left: 64px;
  padding-right: 64px;
}
.location-copy .btn svg {
  position: absolute;
  left: 48px;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--sage) 0%, var(--gold-soft) 52%, var(--peach) 100%);
  transform: translateY(101%);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 0;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: #fffaf0; border-color: var(--gold-soft); box-shadow: 0 14px 34px rgba(169, 121, 56, 0.20); }
.btn span, .btn svg { position: relative; z-index: 1; }

/* ========== DRESS CODE ========== */
.dresscode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
@media (max-width: 720px) {
  .dresscode-grid { grid-template-columns: 1fr; gap: 56px; }
}

.dresscode-card {
  text-align: center;
  position: relative;
  display: grid;
  grid-template-rows: auto 98px auto;
  align-content: start;
}

.dresscode-card h3 {
  font-family: var(--display);
  font-size: clamp(34px, 3.8vw, 48px);
  color: var(--ink);
  margin-bottom: 8px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.dresscode-card .sub {
  font-family: var(--script);
  font-style: normal;
  color: var(--rose-soft);
  margin-bottom: 32px;
  font-size: clamp(22px, 2.35vw, 28px);
  font-weight: 400;
  height: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.swatches {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  align-items: flex-start;
}
.swatch { text-align: center; }
.swatch-chip {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(169, 121, 56, 0.18);
  box-shadow: inset 0 -8px 18px rgba(0,0,0,0.14), 0 10px 22px rgba(91, 74, 43, 0.12);
  margin: 0 auto 10px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.swatch:hover .swatch-chip {
  transform: scale(1.1) rotate(-4deg);
  box-shadow: inset 0 -8px 18px rgba(0,0,0,0.14), 0 12px 28px rgba(169, 121, 56, 0.16);
}
.swatch-label {
  font-family: var(--display-2);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

@media (max-width: 720px) {
  .dresscode-card { grid-template-rows: auto; }
  .dresscode-card .sub { height: auto; }
  .dresscode-card h3 { font-size: clamp(34px, 9vw, 42px); }
  .dresscode-card .sub { font-size: clamp(22px, 6.5vw, 28px); }
}

.dresscode-divider {
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-soft), transparent);
  display: none;
}

/* ========== FAQ ========== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-top: 1px solid rgba(169, 121, 56, 0.18);
  position: relative;
}
.faq-item:last-child { border-bottom: 1px solid rgba(169, 121, 56, 0.18); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 30px 58px 30px 8px;
  text-align: left;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2.1vw, 25px);
  color: var(--ink);
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}
.faq-q:hover { color: var(--gold); }
.faq-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-toggle::before, .faq-toggle::after {
  content: "";
  position: absolute;
  background: var(--gold);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.faq-toggle::before { width: 16px; height: 1px; }
.faq-toggle::after { width: 1px; height: 16px; }
.faq-item.open .faq-toggle::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.faq-a-inner {
  padding: 0 8px 32px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(19px, 1.85vw, 22px);
  line-height: 1.75;
  color: var(--ink-soft);
  font-style: italic;
  max-width: 680px;
}
.faq-a-inner strong {
  font-style: normal;
  font-weight: 500;
  color: var(--gold);
}
.faq-a-inner a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-soft);
  transition: color 0.3s ease;
}
.faq-a-inner a:hover { color: var(--ink); }

/* ========== RSVP ========== */
.rsvp-form { max-width: 760px; margin: 0 auto; }

.guest-card {
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.86), rgba(246, 235, 215, 0.82));
  padding: clamp(32px, 4vw, 52px);
  position: relative;
  margin-bottom: 24px;
  border: 1px solid rgba(169, 121, 56, 0.20);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 24px 70px rgba(91, 74, 43, 0.12);
}

.guest-card::before, .guest-card::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(169, 121, 56, 0.38);
  opacity: 0.6;
}
.guest-card::before {
  top: 8px; left: 8px;
  border-right: none; border-bottom: none;
}
.guest-card::after {
  bottom: 8px; right: 8px;
  border-left: none; border-top: none;
}

.guest-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px dashed rgba(169, 121, 56, 0.24);
}

.guest-card-title {
  font-family: var(--display);
  font-size: clamp(32px, 3.4vw, 44px);
  color: var(--gold);
  font-weight: 400;
  letter-spacing: 0.05em;
}

.guest-card-remove {
  background: none;
  border: 1px solid rgba(169, 121, 56, 0.28);
  color: var(--ink-soft);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guest-card-remove:hover { background: var(--gold); color: var(--milk); border-color: var(--gold); }

.field { margin-bottom: 24px; }

.field-label {
  display: block;
  font-family: var(--display-2);
  font-size: clamp(14px, 1.25vw, 16px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.field-input {
  width: 100%;
  padding: 14px 4px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(169, 121, 56, 0.28);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2.1vw, 25px);
  color: var(--ink);
  transition: border-color 0.3s ease;
  outline: none;
  border-radius: 0;
}
.field-input::placeholder { color: var(--ink-dim); font-style: italic; }
.field-input:focus { border-bottom-color: var(--gold); }

.field-hint {
  margin: -4px 0 16px;
  max-width: 620px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(18px, 1.75vw, 21px);
  font-style: italic;
  line-height: 1.45;
}

.field-select {
  width: 100%;
  appearance: none;
  padding: 17px 50px 17px 20px;
  background-color: rgba(255, 250, 240, 0.84);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'><path d='M2 2.5l5 5 5-5' fill='none' stroke='%23f0d68a' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  border: 1px solid rgba(169, 121, 56, 0.28);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.8), 0 12px 28px rgba(91, 74, 43, 0.10);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.25;
  outline: none;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.field-select:hover {
  border-color: rgba(169, 121, 56, 0.50);
  background-color: rgba(255, 250, 240, 0.96);
}
.field-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(169, 121, 56, 0.12), 0 14px 34px rgba(91, 74, 43, 0.14);
}
.field-select option {
  background: var(--milk);
  color: var(--ink);
}
.field-select option[value=""] { color: var(--ink-dim); }

.dish-segmented {
  --dish-count: 3;
  --dish-index: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--dish-count), minmax(0, 1fr));
  gap: 0;
  min-height: 62px;
  padding: 5px;
  border: 1px solid rgba(169, 121, 56, 0.28);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.8), 0 12px 28px rgba(91, 74, 43, 0.10);
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}

.dish-segmented.is-dragging { cursor: grabbing; }

.dish-indicator {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc((100% - 10px) / var(--dish-count));
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mint), var(--sage));
  box-shadow: 0 8px 24px rgba(111, 131, 91, 0.16);
  transform: translateX(calc(var(--dish-index) * 100%));
  transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 0;
}

.dish-segmented.is-dragging .dish-indicator { transition: none; }

.dish-option {
  position: relative;
  z-index: 1;
  min-width: 0;
  cursor: pointer;
}

.dish-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dish-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 10px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1;
  white-space: nowrap;
  transition: color 0.25s ease, font-weight 0.25s ease;
}

.dish-option:hover span { color: var(--gold); }
.dish-option input:checked + span {
  color: var(--ink);
  font-weight: 600;
  text-shadow: none;
}
.dish-option input:focus-visible + span {
  outline: 2px solid rgba(169, 121, 56, 0.55);
  outline-offset: -4px;
  border-radius: 999px;
}

.radio-row,
.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.checkbox-grid { align-items: stretch; }
.radio-pill,
.checkbox-pill {
  position: relative;
  cursor: pointer;
}
.radio-pill input,
.checkbox-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.radio-pill span,
.checkbox-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 22px;
  border: 1px solid rgba(169, 121, 56, 0.24);
  font-family: var(--serif);
  font-size: clamp(19px, 1.85vw, 22px);
  line-height: 1.15;
  color: var(--ink-soft);
  transition: all 0.3s ease;
  background: rgba(255, 250, 240, 0.62);
  white-space: nowrap;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.7);
}
.radio-pill:hover span,
.checkbox-pill:hover span {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(255, 250, 240, 0.92);
}
.radio-pill input:checked + span,
.checkbox-pill input:checked + span {
  background: linear-gradient(135deg, var(--mint), var(--sage));
  color: var(--ink);
  border-color: rgba(111, 131, 91, 0.44);
  font-weight: 600;
  text-shadow: none;
  box-shadow: 0 10px 24px rgba(111, 131, 91, 0.16);
}
.radio-pill input:focus-visible + span,
.checkbox-pill input:focus-visible + span {
  outline: 2px solid rgba(169, 121, 56, 0.55);
  outline-offset: 3px;
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field-full { grid-column: 1 / -1; }
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .field-label { font-size: 14px; }
  .field-input { font-size: 21px; }
  .dish-option span { font-size: 19px; }
  .radio-pill span,
  .checkbox-pill span {
    width: 100%;
    white-space: normal;
  }
  .checkbox-pill { flex: 1 1 100%; }
}

.add-guest-btn {
  display: block;
  width: 100%;
  padding: 18px;
  background: transparent;
  border: 1.5px dashed rgba(169, 121, 56, 0.34);
  font-family: var(--display-2);
  font-size: clamp(13px, 1.25vw, 15px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 36px;
}
.add-guest-btn:hover {
  background: rgba(255, 250, 240, 0.56);
  border-color: var(--gold);
  border-style: solid;
  color: var(--gold);
}
.add-guest-btn::before { content: "+ "; }

.rsvp-error {
  display: none;
  margin: 0 auto 28px;
  max-width: 620px;
  padding: 16px 20px;
  border: 1px solid rgba(201, 143, 131, 0.36);
  border-radius: 8px;
  background: rgba(255, 238, 232, 0.68);
  color: #8f4035;
  font-family: var(--serif);
  font-size: clamp(18px, 1.8vw, 21px);
  text-align: center;
}
.rsvp-error.show { display: block; }
.rsvp-submit .btn:disabled {
  opacity: 0.62;
  cursor: wait;
  transform: none;
}

.rsvp-submit { display: flex; justify-content: center; }
.rsvp-success { text-align: center; padding: 60px 20px; display: none; }
.rsvp-success.show { display: block; animation: fadeUp 0.8s ease forwards; }
.rsvp-success h3 {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 60px);
  color: var(--gold);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.rsvp-success p {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.7vw, 20px);
}
.is-hidden { display: none !important; }

/* ========== FOOTER ========== */
.footer {
  text-align: center;
  padding: 80px 20px 60px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-dim);
  position: relative;
  z-index: 5;
}
.footer-monogram {
  font-family: var(--display);
  font-size: 56px;
  color: var(--gold);
  margin-bottom: 14px;
  line-height: 1;
  letter-spacing: 0.08em;
}
.footer-line {
  font-family: var(--display-2);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
