:root {
  --bg: #fff8f6;
  --bg-soft: #fdeeee;
  --surface: rgba(255, 252, 251, 0.78);
  --surface-strong: rgba(255, 252, 251, 0.92);
  --text: #432a2d;
  --text-muted: #b07c7f;
  --border: rgba(223, 190, 183, 0.8);
  --accent: #c56b6d;
  --accent-soft: #a44144;
  --accent-contrast: #fff8f6;
  --shadow: 0 22px 70px rgba(185, 130, 123, 0.12);
  --pattern: url("data:image/svg+xml,%3Csvg width='160' height='160' viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ddb4b0' stroke-opacity='0.26' stroke-width='0.8'%3E%3Ccircle cx='80' cy='80' r='62'/%3E%3Ccircle cx='80' cy='80' r='44'/%3E%3Ccircle cx='80' cy='80' r='22'/%3E%3Cpath d='M18 80h124M80 18v124M35 35l90 90M125 35L35 125'/%3E%3C/g%3E%3C/svg%3E");
}

body.dark {
  --bg: #24181b;
  --bg-soft: #342428;
  --surface: rgba(55, 39, 43, 0.74);
  --surface-strong: rgba(61, 43, 48, 0.9);
  --text: #f8e8e7;
  --text-muted: #ddb8b9;
  --border: rgba(217, 169, 171, 0.25);
  --accent: #de8c8c;
  --accent-soft: #b35b5c;
  --accent-contrast: #24181b;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
  --pattern: url("data:image/svg+xml,%3Csvg width='160' height='160' viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23c88b8d' stroke-opacity='0.16' stroke-width='0.8'%3E%3Ccircle cx='80' cy='80' r='62'/%3E%3Ccircle cx='80' cy='80' r='44'/%3E%3Ccircle cx='80' cy='80' r='22'/%3E%3Cpath d='M18 80h124M80 18v124M35 35l90 90M125 35L35 125'/%3E%3C/g%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top center, rgba(253, 220, 223, 0.6), transparent 26%),
    radial-gradient(circle at left 20%, rgba(248, 212, 219, 0.4), transparent 24%),
    radial-gradient(circle at right 75%, rgba(245, 232, 215, 0.35), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: "Jost", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.shell-narrow {
  width: min(960px, calc(100% - 2rem));
}

.section {
  position: relative;
  padding: 5.5rem 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-kicker,
.eyebrow,
.footer-kicker,
.sanskrit {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.sanskrit {
  margin-bottom: 0.75rem;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  line-height: 0.98;
  margin: 0;
}

h2 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
}

.section-copy,
.hero-description,
.footer-quote {
  width: min(680px, 100%);
  margin: 0.9rem auto 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.divider {
  width: 120px;
  height: 1px;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.divider-wide {
  width: 260px;
}

.section-separator {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.topbar {
  position: fixed;
  inset: 1rem 1rem auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 250, 249, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

body.dark .topbar {
  background: rgba(38, 24, 28, 0.78);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #d78588, var(--accent-soft));
  color: var(--accent-contrast);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.brand-text {
  font-size: 0.95rem;
  white-space: nowrap;
}

.topnav {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
}

.topnav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.22s ease;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--text);
}

.topbar-actions {
  display: inline-flex;
  gap: 0.65rem;
}

.toggle-btn,
.btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.toggle-btn {
  background: transparent;
  color: var(--text);
  padding: 0.7rem 0.95rem;
  cursor: pointer;
}

.toggle-btn:hover,
.toggle-btn:focus-visible,
.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(197, 107, 109, 0.72);
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: clip;
  padding-top: 7.5rem;
}

.hero-backdrop,
.hero-pattern {
  position: absolute;
  inset: 0;
}

.hero-backdrop {
  overflow: hidden;
}

.hero-pattern {
  background-image: var(--pattern);
  background-size: 140px 140px;
  opacity: 0.52;
}

.hero-glow {
  position: absolute;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.45;
}

.hero-glow-left {
  top: -8rem;
  left: -6rem;
  background: rgba(248, 214, 220, 0.6);
}

.hero-glow-right {
  right: -8rem;
  bottom: -12rem;
  background: rgba(243, 230, 214, 0.5);
}

.hero-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  width: min(820px, 100%);
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(4.2rem, 11vw, 8rem);
  font-style: italic;
  margin-top: 1.1rem;
}

.hero-subtitle {
  margin: 1.15rem 0 0;
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.2vw, 1.45rem);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.4rem;
}

.couple-grid-hero {
  margin-top: 1.4rem;
}

.countdown-card,
.couple-card,
.family-card,
.timeline-card,
.venue-card,
.gallery-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.countdown-card {
  border-radius: 1.3rem;
  padding: 1.35rem 1rem;
}

.countdown-value {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 0.9;
}

.countdown-label {
  margin-top: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.hero-actions,
.venue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.35rem;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(145deg, var(--accent), var(--accent-soft));
  color: var(--accent-contrast);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  z-index: 1;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  animation: floaty 3.6s ease-in-out infinite;
}

.scroll-cue-icon {
  width: 1rem;
  height: 1rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

.hero-ornament {
  position: absolute;
  top: 8rem;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  opacity: 0.72;
}

.hero-ornament::before,
.hero-ornament::after {
  content: "";
  position: absolute;
  inset: 0.9rem;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.hero-ornament::after {
  inset: 1.8rem;
}

.hero-ornament-left {
  left: 2.2rem;
}

.hero-ornament-right {
  right: 2.2rem;
}

.couple-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.couple-grid-hero .couple-card {
  background: var(--surface-strong);
}

.couple-card {
  border-radius: 1.75rem;
  overflow: hidden;
}

.couple-image {
  aspect-ratio: 3 / 4;
  background: var(--bg-soft);
}

.couple-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.couple-body {
  padding: 1.5rem;
  text-align: center;
}

.couple-role {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
}

.family-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.family-card {
  border-radius: 1.6rem;
  padding: 1.7rem;
}

.family-card-label {
  margin: 0 0 0.45rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.74rem;
}

.family-card h3 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.family-card p {
  margin: 0.8rem 0 0;
  color: var(--text-muted);
}

.family-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.family-block:first-of-type {
  margin-top: 1.2rem;
}

.family-block-title {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.family-line {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
}

.family-city {
  margin: 1rem 0 0;
  color: var(--text);
  font-weight: 500;
}

.timeline {
  position: relative;
  display: grid;
  gap: 2.1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, var(--border), transparent);
}

.timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.timeline-row.reverse .timeline-card {
  grid-column: 2;
}

.timeline-card {
  border-radius: 1.55rem;
  overflow: hidden;
}

.timeline-media {
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
}

.timeline-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline-body {
  padding: 1.5rem;
}

.timeline-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  background: rgba(197, 107, 109, 0.12);
  color: var(--text);
  font-size: 0.82rem;
}

.timeline-date,
.timeline-time,
.timeline-description,
#venueLocation,
#venueAddress,
#galleryCardCopy {
  color: var(--text-muted);
}

.timeline-description {
  margin-top: 0.8rem;
}

.timeline-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0.45rem rgba(197, 107, 109, 0.18);
}

.venue-card {
  border-radius: 1.8rem;
  overflow: hidden;
}

.venue-banner {
  position: relative;
  min-height: 240px;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.35)),
    center / cover no-repeat;
}

.venue-banner::after {
  content: attr(data-label);
  position: absolute;
  inset: auto 1.5rem 1.4rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-style: italic;
  color: #fff8f1;
}

.venue-map-wrap {
  min-height: 340px;
}

.venue-map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  filter: sepia(0.15) saturate(0.85) hue-rotate(-10deg);
}

.venue-body {
  padding: 1.7rem;
}

.venue-label {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin: 0 0 0.45rem;
}

.gallery-card {
  border-radius: 1.8rem;
  padding: 3rem 1.5rem;
  text-align: center;
}

.gallery-icon {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.65), transparent 35%),
    linear-gradient(145deg, var(--accent), var(--accent-soft));
  box-shadow: 0 14px 36px rgba(197, 107, 109, 0.22);
}

.gallery-card .btn {
  margin-top: 1.4rem;
}

.footer {
  padding-top: 4.5rem;
}

.footer .shell {
  text-align: center;
}

.footer-names {
  font-size: clamp(3rem, 7vw, 5.2rem);
  font-style: italic;
  margin-top: 0.5rem;
}

.footer-date,
.footer-venue {
  color: var(--text-muted);
}

.footer-date {
  font-family: "Cormorant Garamond", serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 1.2rem;
  margin: 1rem 0 0;
}

.footer-quote {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
}

.footer-rsvp {
  width: min(520px, 100%);
  margin: 1.6rem auto 0;
  padding: 1.25rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 1.35rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.footer-rsvp-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.footer-rsvp-copy {
  margin: 0.55rem 0 0;
  color: var(--text);
}

.rsvp-card {
  border-radius: 1.85rem;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 250, 249, 0.92));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

body.dark .rsvp-card {
  background: linear-gradient(180deg, rgba(61, 43, 48, 0.9), rgba(52, 36, 40, 0.92));
}

.rsvp-form {
  display: grid;
  gap: 1.2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field span {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: rgba(255, 249, 248, 0.85);
  color: var(--text);
  padding: 1rem 1.05rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.dark .field input,
body.dark .field select,
body.dark .field textarea {
  background: rgba(45, 32, 36, 0.9);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(197, 107, 109, 0.9);
  box-shadow: 0 0 0 3px rgba(197, 107, 109, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 132px;
}

.rsvp-submit {
  width: 100%;
  min-height: 3.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.rsvp-status {
  min-height: 1.5rem;
  margin: 0;
  text-align: center;
  color: var(--text-muted);
}

/* ── MUSIC FAB ── */
.music-fab {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.1rem 0.65rem 0.7rem;
  border: 1px solid rgba(223, 190, 183, 0.45);
  border-radius: 999px;
  background: rgba(255, 250, 249, 0.42);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text);
  cursor: pointer;
  font-family: "Jost", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 8px 32px rgba(185, 130, 123, 0.12);
  transition: transform 0.25s ease, background 0.3s ease, box-shadow 0.3s ease;
  animation: musicFabEntry 0.6s 0.8s ease both;
}

body.dark .music-fab {
  background: rgba(38, 24, 28, 0.45);
  border-color: rgba(217, 169, 171, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.music-fab:hover,
.music-fab:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 250, 249, 0.62);
  box-shadow: 0 12px 40px rgba(185, 130, 123, 0.18);
}

body.dark .music-fab:hover,
body.dark .music-fab:focus-visible {
  background: rgba(38, 24, 28, 0.65);
}

/* Compact state after first interaction — label hidden */
.music-fab.compact {
  padding: 0.65rem;
  gap: 0;
}

.music-fab-icon {
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  flex-shrink: 0;
}

.music-fab-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  transition: transform 0.2s ease;
}

.music-fab:hover .music-fab-icon svg {
  transform: scale(1.12);
}

.music-fab-label {
  white-space: nowrap;
  transition: opacity 0.35s ease, max-width 0.4s ease, margin 0.4s ease;
  max-width: 120px;
  overflow: hidden;
}

.music-fab.compact .music-fab-label {
  opacity: 0;
  max-width: 0;
  margin: 0;
  pointer-events: none;
}

/* Pulsing ring to draw attention */
.music-fab-ring {
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  opacity: 0;
  animation: musicPulse 2.4s ease-in-out infinite;
}

.music-fab.compact .music-fab-ring,
.music-fab.playing .music-fab-ring {
  animation: none;
  opacity: 0;
}

/* Playing state — subtle glow */
.music-fab.playing {
  border-color: rgba(197, 107, 109, 0.5);
  box-shadow: 0 0 18px rgba(197, 107, 109, 0.18), 0 8px 32px rgba(185, 130, 123, 0.12);
}

/* Equalizer bars shown when playing (replaces SVG icon) */
.music-fab-icon .eq-bars {
  display: none;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.music-fab.playing .music-fab-icon svg { display: none; }
.music-fab.playing .music-fab-icon .eq-bars { display: flex; }

.eq-bar {
  width: 3px;
  border-radius: 1.5px;
  background: var(--accent);
  animation: eqBounce 0.8s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) { height: 6px; animation-delay: 0s; }
.eq-bar:nth-child(2) { height: 10px; animation-delay: 0.15s; }
.eq-bar:nth-child(3) { height: 7px; animation-delay: 0.3s; }
.eq-bar:nth-child(4) { height: 12px; animation-delay: 0.1s; }

/* Paused state — freeze bars */
.music-fab.paused .eq-bar {
  animation-play-state: paused;
}

@keyframes musicFabEntry {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes eqBounce {
  0% { height: 4px; }
  100% { height: 14px; }
}

@media (max-width: 560px) {
  .music-fab {
    bottom: 1.25rem;
    right: 1.25rem;
    padding: 0.55rem 0.9rem 0.55rem 0.6rem;
    font-size: 0.7rem;
  }
  .music-fab.compact {
    padding: 0.55rem;
  }
}

.petal-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.petal {
  position: absolute;
  top: -3rem;
  width: 0.9rem;
  height: 1.25rem;
  opacity: 0.38;
  border-radius: 70% 0 70% 0;
  background: linear-gradient(180deg, rgba(234, 184, 189, 0.7), rgba(197, 107, 109, 0.18));
  animation-name: drift;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}


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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  0% {
    transform: translate3d(0, -8vh, 0) rotate(0deg);
  }

  100% {
    transform: translate3d(6vw, 110vh, 0) rotate(340deg);
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, -10px);
  }
}

/* ── HAMBURGER BUTTON (mobile only) ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 4.5rem;
  left: 0.75rem;
  right: 0.75rem;
  z-index: 19;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 1rem 1.4rem;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  flex-direction: column;
  gap: 0;
  animation: slideDown 0.22s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-nav-drawer.open { display: flex; }
.mobile-nav-drawer a {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.mobile-nav-drawer a:last-child { border-bottom: none; }
.mobile-nav-drawer a:hover { color: var(--text); }

body.dark .mobile-nav-drawer {
  background: rgba(38, 24, 28, 0.95);
}

@media (max-width: 980px) {
  /* Topbar stays slim — single row, never wraps */
  .topbar {
    border-radius: 999px;
    inset: 0.75rem 0.75rem auto;
    align-items: center;
    flex-wrap: nowrap;
    padding: 0.65rem 0.85rem;
  }

  /* Desktop nav hidden — replaced by hamburger drawer */
  .topnav {
    display: none;
  }

  /* Show hamburger */
  .hamburger {
    display: flex;
  }

  /* Keep toggle buttons visible but compact */
  .topbar-actions {
    gap: 0.4rem;
  }
  .toggle-btn {
    padding: 0.5rem 0.7rem;
    font-size: 0.78rem;
  }

  /* hide brand text on small bars to save space */
  .brand-text {
    display: none;
  }

  .timeline::before {
    left: 1.1rem;
    transform: none;
  }

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

  .timeline-row.reverse .timeline-card {
    grid-column: auto;
  }

  .timeline-card {
    margin-left: 2.4rem;
  }

  .timeline-dot {
    top: 1.6rem;
    left: 1.1rem;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 4.25rem 0;
  }

  .hero {
    padding-top: 9rem;
  }

  .countdown-grid,
  .couple-grid,
  .family-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-ornament {
    display: none;
  }
}

@media (max-width: 560px) {
  .topnav {
    font-size: 0.9rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .countdown-grid,
  .couple-grid,
  .family-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .venue-actions {
    flex-direction: column;
  }

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

  .btn {
    width: 100%;
  }

  .timeline-card {
    margin-left: 1.8rem;
  }

  .gallery-card,
  .venue-body {
    padding: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
