/* ═══════════════════════════════════════════════════════════════
   TARA & MATTHEW — WEDDING RSVP
   Aesthetic: Luxury Minimal · Organic Warmth · Cinematic Motion
   Skills: gpt-taste, design-spells, frontend-design, animejs, iconsax
   ═══════════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --ivory:       #FAF8F5;
  --cream:       #F3EDE4;
  --champagne:   #E8DFD0;
  --gold:        #B8956A;
  --gold-light:  #D4B896;
  --gold-dark:   #8C6D48;
  --charcoal:    #2C2824;
  --warm-gray:   #6B635A;
  --sage:        #8B9D83;
  --blush:       #E8D5CE;

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-script:  'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'Outfit', 'Helvetica Neue', sans-serif;

  --section-pad:     clamp(100px, 14vw, 200px);
  --container:       min(88%, 1100px);
  --container-wide:  min(92%, 1320px);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration:      0.9s;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--charcoal);
  line-height: 1.7;
  font-weight: 300;
  overflow-x: hidden;
}

/* Film grain (design-spells: texture) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover { color: var(--gold-dark); }

/* ── REVEAL SYSTEM ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(60px) scale(0.97);
  will-change: transform, opacity;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity var(--duration) var(--ease-out-expo),
              transform var(--duration) var(--ease-out-expo);
}

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
.heading-display {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.heading-section {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: 0.03em;
}

.subheading {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.7rem, 1vw, 0.82rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.body-text {
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  color: var(--warm-gray);
  max-width: 540px;
  line-height: 1.85;
}

/* ── ORNAMENT ───────────────────────────────────────────────── */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}
.ornament::before, .ornament::after {
  content: '';
  width: 48px;
  height: 1px;
  background: var(--gold-light);
}
.ornament-icon {
  color: var(--gold);
  font-size: 0.6rem;
}

/* ── NAVIGATION (gpt-taste: floating glass pill) ───────────── */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: auto;
  padding: 14px 40px;
  border-radius: 60px;
  background: rgba(250, 248, 245, 0.12);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(212, 184, 150, 0.12);
  transition: all 0.5s var(--ease-out-expo);
}
.nav.scrolled {
  background: rgba(250, 248, 245, 0.92);
  border-color: rgba(212, 184, 150, 0.2);
  box-shadow: 0 8px 40px rgba(44, 40, 36, 0.06);
  top: 12px;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
}
.nav-monogram {
  display: flex;
  align-items: center;
}
.nav-logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.4s ease;
}
.nav.scrolled .nav-logo {
  filter: brightness(0);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.7);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s ease;
}
.nav.scrolled .nav-links a { color: var(--warm-gray); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.5s var(--ease-out-expo);
}
.nav-links a:hover { color: var(--ivory); }
.nav.scrolled .nav-links a:hover { color: var(--charcoal); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--ivory);
  transition: all 0.3s ease;
}
.nav.scrolled .nav-toggle span { background: var(--charcoal); }

/* ── HERO (gpt-taste: cinematic center, 2-line iron rule) ─── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.32) saturate(0.65) contrast(1.12);
  transform: scale(1.08);
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(44, 40, 36, 0) 0%, rgba(44, 40, 36, 0.5) 100%),
    linear-gradient(180deg, rgba(44, 40, 36, 0.15) 0%, rgba(44, 40, 36, 0.5) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  width: var(--container-wide);
  will-change: transform, opacity;
}
.hero-date {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 44px;
  padding-top: 100px;
  position: relative;
  padding-bottom: 24px;
}
.hero-date::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.hero-names {
  font-family: 'Bodoni Moda', 'Didot', 'Georgia', serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(3.2rem, 9vw, 7rem);
  line-height: 1.1;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ivory);
  max-width: 100%;
}
.hero-ampersand {
  display: block;
  font-family: 'Alex Brush', cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 0.7em;
  letter-spacing: 0;
  text-transform: lowercase;
  color: var(--gold-light);
  margin: 50px 0;
}
.hero-tagline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  color: rgba(250, 248, 245, 0.55);
  margin-top: 40px;
  letter-spacing: 0.12em;
}
.hero-countdown {
  margin-top: 52px;
  display: flex;
  justify-content: center;
  gap: 48px;
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.countdown-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--ivory);
  line-height: 1;
}
.countdown-label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: float 3s ease-in-out infinite;
}
.hero-scroll-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-light);
  animation: pulse-ring 2.5s ease-out infinite;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold-light), transparent);
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(212, 184, 150, 0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(212, 184, 150, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 184, 150, 0); }
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ── STORY (frontend-design: asymmetric overlap) ──────────── */
.story {
  padding: var(--section-pad) 0;
  text-align: center;
}
.story-inner {
  width: var(--container);
  margin: 0 auto;
}
.story-intro {
  margin: 0 auto 80px;
  max-width: 600px;
}
.story-intro .body-text { margin: 20px auto 0; }

.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  align-items: center;
}
.story-image {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  z-index: 2;
}
.story-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  filter: saturate(0.85);
  transition: transform 1.6s var(--ease-out-expo), filter 1.6s var(--ease-out-expo);
  will-change: transform;
}
.story-image:hover img {
  transform: scale(1.04);
  filter: saturate(1);
}

.story-text {
  text-align: left;
  padding: 64px 56px 64px 72px;
  margin-left: -48px;
  background: var(--ivory);
  position: relative;
  z-index: 3;
  border-radius: 4px;
  box-shadow: -16px 24px 64px rgba(44, 40, 36, 0.06);
  border-top: 2px solid var(--gold-light);
}
.story-text .subheading { margin-bottom: 4px; }
.story-text .heading-section { margin-bottom: 0; }
.story-text .body-text { margin-bottom: 16px; }

.story-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0 32px;
}
.story-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-light), transparent);
}
.story-divider-line:last-of-type {
  background: linear-gradient(270deg, var(--gold-light), transparent);
}
.story-divider .ornament-icon {
  font-size: 0.55rem;
  color: var(--gold);
  flex-shrink: 0;
}

.story-signature {
  font-family: var(--font-script);
  font-style: italic;
  font-size: 2rem;
  color: var(--gold);
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--champagne);
}

/* ── GALLERY (gpt-taste: AIDA Interest — dense masonry grid) ─ */
.gallery {
  padding: var(--section-pad) 0;
  background: var(--cream);
  position: relative;
}
.gallery::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}
.gallery-inner {
  width: var(--container-wide);
  margin: 0 auto;
}
.gallery-header {
  text-align: center;
  margin-bottom: 64px;
}

/* CSS Grid masonry — no empty cells (gpt-taste: gapless bento) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 320px;
  grid-auto-flow: dense;
  gap: 20px;
  perspective: 1200px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out-expo),
              box-shadow 0.6s var(--ease-out-expo);
}
.gallery-item.gallery-tall {
  grid-row: span 2;
}
.gallery-item.gallery-wide {
  grid-column: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.05);
  transition: transform 1.6s var(--ease-out-expo),
              filter 1.2s var(--ease-out-expo);
  will-change: transform;
}
.gallery-item:hover {
  transform: rotateX(2deg) rotateY(-3deg) translateZ(8px);
  box-shadow: 12px 16px 40px rgba(44, 40, 36, 0.12);
}
.gallery-item:hover img {
  transform: scale(1.04);
  filter: saturate(1) contrast(1);
}
/* Ambient hover overlay */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(44, 40, 36, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  border-radius: inherit;
}
.gallery-item:hover::after { opacity: 1; }

/* ── DETAILS ───────────────────────────────────────────────── */
.details {
  padding: var(--section-pad) 0;
  position: relative;
}
.details::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}
.details-inner {
  width: var(--container);
  margin: 0 auto;
  text-align: center;
}
.details-date-banner {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 28px auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.details-date-banner::before,
.details-date-banner::after {
  content: '';
  width: 48px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
  flex-shrink: 0;
}
.details-header { margin-bottom: 72px; }
.details-header .body-text { margin: 16px auto 0; }

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.timeline-item {
  text-align: center;
  padding: 52px 32px 48px;
  background: var(--cream);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo);
}
.timeline-item::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: width 0.6s var(--ease-out-expo);
}
.timeline-item:hover::before { width: 100%; }
.timeline-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 64px rgba(44, 40, 36, 0.08);
}
.timeline-icon {
  width: auto; height: auto;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: transform 0.5s var(--ease-spring);
}
.timeline-icon svg {
  width: 40px; height: 40px;
  stroke: var(--gold);
  stroke-width: 0.8;
  fill: none;
}
.timeline-time {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 6px;
}
.timeline-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 12px;
}
.timeline-desc {
  font-size: 0.88rem;
  color: var(--warm-gray);
  line-height: 1.85;
}
.timeline-sketch {
  margin: 20px 0 8px;
  text-align: center;
}
.timeline-sketch img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 4px;
  opacity: 0.85;
}
.timeline-map-link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color 0.3s ease;
}
.timeline-map-link:hover {
  color: var(--charcoal);
}

/* ── VENUES (split ceremony / reception) ──────────────────── */
.venues {
  position: relative;
  background: var(--cream);
  padding: 0 24px 100px;
}
.venues-header {
  text-align: center;
  padding: 100px 24px 60px;
  background: var(--cream);
}
.venues-header .body-text {
  max-width: 520px;
  margin: 16px auto 0;
}
.venues-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}
.venue-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(212, 184, 150, 0.12);
  box-shadow: 0 24px 80px rgba(44, 40, 36, 0.15);
  background: var(--charcoal);
}
/* Image hero — full width, unobscured */
.venue-panel-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.venue-panel-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s var(--ease-out-expo);
  will-change: transform;
}
.venue-panel:hover .venue-panel-hero img {
  transform: scale(1.04);
}
/* Soft fade from image into charcoal content area */
.venue-panel-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--charcoal), transparent);
  pointer-events: none;
}
/* Text content — solid charcoal background */
.venue-panel-content {
  position: relative;
  z-index: 2;
  padding: 40px 48px 60px;
  color: var(--ivory);
  text-align: center;
  text-shadow: none;
}
.venue-panel-content .heading-section {
  color: var(--ivory);
  margin-bottom: 16px;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.3;
}
.venue-panel-content .subheading { color: var(--gold-light); }
.venue-panel-content .ornament::before,
.venue-panel-content .ornament::after { background: rgba(212, 184, 150, 0.3); }

.venue-address {
  font-size: 1.1rem;
  line-height: 2;
  color: rgba(250, 248, 245, 0.75);
  margin-bottom: 20px;
}
.venue-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 2;
  color: rgba(250, 248, 245, 0.75);
  margin-bottom: 32px;
}
.venue-desc em {
  font-style: italic;
  color: rgba(250, 248, 245, 0.7);
}

/* Schedule cards inside venue panels */
.venue-schedule {
  border: 1px solid rgba(212, 184, 150, 0.15);
  border-radius: 12px;
  padding: 32px 28px;
  margin-bottom: 36px;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.03);
}
.venue-schedule .timeline-icon {
  margin: 0 auto 16px;
}
.venue-schedule .timeline-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--gold-light);
  fill: none;
}
.venue-schedule .timeline-time {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 4px;
}
.venue-schedule .timeline-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ivory);
  margin-bottom: 8px;
}
.venue-schedule .timeline-desc {
  font-size: 0.82rem;
  color: rgba(250, 248, 245, 0.5);
  line-height: 1.7;
}
.venue-schedule-item {
  text-align: center;
}
.venue-schedule-divider {
  width: 40px;
  height: 1px;
  background: rgba(212, 184, 150, 0.2);
  margin: 24px auto;
}
.venue-schedule-note {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 2;
  color: rgba(250, 248, 245, 0.65);
  text-align: center;
}

.venue-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  border: 1px solid rgba(212, 184, 150, 0.35);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-family: var(--font-body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 60px;
  transition: all 0.4s var(--ease-out-expo);
  backdrop-filter: blur(8px);
}
.venue-btn:hover {
  background: var(--gold-light);
  color: var(--charcoal);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}
/* Logo ornament floating between panels */
.venues-divider-ornament {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border: 1.5px solid rgba(212, 184, 150, 0.35);
  border-radius: 50%;
  box-shadow:
    0 0 0 8px var(--cream),
    0 0 24px 4px rgba(44, 40, 36, 0.08);
  z-index: 4;
  pointer-events: none;
}
.venues-divider-ornament img {
  width: 24px;
  height: 24px;
  filter: sepia(1) saturate(0.6) brightness(0.5) hue-rotate(350deg);
  opacity: 0.7;
}

/* ── RSVP (design-spells: magnetic glow) ──────────────────── */
.rsvp {
  padding: var(--section-pad) 0;
  text-align: center;
}
.rsvp-inner {
  width: var(--container);
  margin: 0 auto;
  max-width: 660px;
}
.rsvp-header { margin-bottom: 52px; will-change: transform; }
.rsvp-header .body-text { margin: 16px auto 0; }
.rsvp-date {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  letter-spacing: 0.12em;
  color: var(--gold);
  margin: 20px auto 0;
  padding: 10px 28px;
  border: 1px solid var(--gold-light);
  border-radius: 100px;
  display: inline-block;
  white-space: nowrap;
  background: rgba(191, 166, 127, 0.04);
}

.rsvp-form {
  background: var(--cream);
  padding: clamp(36px, 5vw, 60px);
  border-radius: 8px;
  position: relative;
  border: 1px solid rgba(184, 149, 106, 0.1);
  overflow: hidden;
}
.rsvp-form .glow {
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 149, 106, 0.1) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 0;
  transition: opacity 0.5s ease;
}
.rsvp-form:hover .glow { opacity: 1; }
.rsvp-form > form { position: relative; z-index: 1; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-group { text-align: left; }
.form-group.full { grid-column: 1 / -1; }
.form-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--champagne);
  border-radius: 4px;
  background: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--charcoal);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--champagne); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(184, 149, 106, 0.08);
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23B8956A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-textarea { resize: vertical; min-height: 110px; }

.radio-group { display: flex; gap: 16px; margin-top: 4px; }
.radio-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 1;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--warm-gray);
  padding: 20px 24px;
  border: 1.5px solid var(--champagne);
  border-radius: 12px;
  background: var(--ivory);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  text-align: center;
  white-space: nowrap;
}
.radio-label:hover {
  color: var(--charcoal);
  border-color: var(--gold);
  background: rgba(191, 166, 121, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(191, 166, 121, 0.12);
}
.radio-label:has(.radio-input:checked) {
  color: var(--charcoal);
  border-color: var(--gold);
  background: rgba(191, 166, 121, 0.08);
  box-shadow: 0 2px 12px rgba(191, 166, 121, 0.15);
}
.radio-input {
  appearance: none;
  width: 22px; height: 22px;
  border: 1.5px solid var(--champagne);
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.radio-input:checked { border-color: var(--gold); background: var(--gold); }
.radio-input:checked::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 8px; height: 8px;
  background: white;
  border-radius: 50%;
  animation: radio-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes radio-pop {
  0% { transform: translate(-50%, -50%) scale(0); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 20px 40px;
  margin-top: 16px;
  border: none;
  background: var(--charcoal);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease;
}
.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-out-expo);
}
.btn-submit span { position: relative; z-index: 1; transition: letter-spacing 0.5s var(--ease-out-expo); }
.btn-submit:hover { color: var(--ivory); }
.btn-submit:hover::before { transform: scaleX(1); }
.btn-submit:hover span { letter-spacing: 0.4em; }

/* Success */
.rsvp-success {
  display: none;
  text-align: center;
  padding: 56px 32px;
}
.rsvp-success.active {
  display: block;
  animation: fadeUp 0.7s var(--ease-out-expo);
}
.rsvp-success-icon { margin-bottom: 20px; }
.rsvp-success h3 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-style: italic;
  margin-bottom: 12px;
}
.rsvp-success p { color: var(--warm-gray); font-size: 0.95rem; }

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

/* ── LIGHTBOX ────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44, 40, 36, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  cursor: pointer;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 4px;
  object-fit: contain;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4);
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s ease;
  cursor: default;
}
.lightbox.active .lightbox-img {
  transform: scale(1);
  opacity: 1;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 248, 245, 0.08);
  border: 1px solid rgba(250, 248, 245, 0.15);
  border-radius: 50%;
  color: var(--ivory);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}
.lightbox-close:hover {
  background: rgba(250, 248, 245, 0.18);
  border-color: rgba(250, 248, 245, 0.3);
  transform: rotate(90deg);
}
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 248, 245, 0.06);
  border: 1px solid rgba(250, 248, 245, 0.12);
  border-radius: 50%;
  color: var(--ivory);
  cursor: pointer;
  z-index: 2;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox-arrow:hover {
  background: rgba(250, 248, 245, 0.18);
  border-color: rgba(250, 248, 245, 0.3);
  transform: translateY(-50%) scale(1.12);
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-counter {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.45);
  z-index: 2;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  padding: 72px 0 44px;
  background: var(--charcoal);
  color: rgba(250, 248, 245, 0.5);
  text-align: center;
}
.footer-monogram {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}
.footer-logo {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1) sepia(1) saturate(0.4) hue-rotate(350deg) brightness(0.85);
  opacity: 0.7;
}
.footer-text {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  line-height: 2;
}
.footer-hearts {
  margin: 28px 0;
  display: flex;
  justify-content: center;
}
.footer-copy {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 20px;
  opacity: 0.35;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav { width: calc(100% - 32px); padding: 12px 24px; }
  .story-grid { grid-template-columns: 1fr; }
  .story-image {
    border-radius: 12px 12px 0 0;
    margin: 0 auto;
    max-width: 100%;
  }
  .story-image img { height: 420px; border-radius: 12px 12px 0 0; }
  .story-text {
    padding: 36px 24px 32px;
    margin-left: 0;
    margin-top: -24px;
    text-align: center;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 12px 40px rgba(44, 40, 36, 0.06);
    border-top: none;
  }
  .story-text .body-text { margin: 0 auto 16px; }
  .timeline { grid-template-columns: 1fr; gap: 20px; }
  .hero-countdown { gap: 24px; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 260px;
    gap: 16px;
  }
  .gallery-item.gallery-wide { grid-column: span 2; }
  .gallery-item:hover {
    transform: none;
    box-shadow: 0 8px 24px rgba(44, 40, 36, 0.08);
  }
}

@media (max-width: 768px) {
  .venues-grid {
    grid-template-columns: 1fr;
  }
  .venues-divider-ornament {
    display: none;
  }
  .venues-header {
    padding: 72px 24px 48px;
  }
  .venue-panel {
    min-height: 70vh;
  }
  .venue-panel-content {
    padding: 60px 32px;
  }
  .venue-schedule {
    padding: 24px 20px;
  }
  .nav-links {
    display: none !important;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(250, 248, 245, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    z-index: 99;
    margin: 0;
    padding: 0;
    list-style: none;
    border-radius: 24px 24px 0 0;
  }
  .nav-links.open {
    display: flex !important;
    animation: menuFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav-links a {
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    color: var(--charcoal) !important;
  }
  .nav-links li {
    opacity: 0;
  }
  .nav-links.open li {
    animation: menuItemSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .nav-links.open li:nth-child(1) { animation-delay: 0.05s; }
  .nav-links.open li:nth-child(2) { animation-delay: 0.1s; }
  .nav-links.open li:nth-child(3) { animation-delay: 0.15s; }
  .nav-links.open li:nth-child(4) { animation-delay: 0.2s; }
  .nav-links.open li:nth-child(5) { animation-delay: 0.25s; }

  .nav-toggle { display: flex; z-index: 101; }
  /* Force dark spans when menu is open (white backdrop behind) */
  .nav-toggle.active span { background: var(--charcoal) !important; }
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

  /* Logo turns black when menu overlay is open */
  .nav-monogram { position: relative; z-index: 101; }
  .nav:has(.nav-toggle.active) .nav-logo {
    filter: brightness(0) !important;
  }

  .form-row { grid-template-columns: 1fr; }
  .hero-names { font-size: clamp(2rem, 10vw, 3.5rem); letter-spacing: 0.25em; }
  .hero-countdown { flex-wrap: wrap; gap: 20px; }
}

@keyframes menuFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes menuItemSlide {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .radio-group { flex-direction: column; gap: 12px; }
  .radio-label { justify-content: flex-start; }
  .rsvp-form { padding: 24px 20px; }
  .timeline-item { padding: 36px 24px 32px; }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 280px;
    gap: 14px;
  }
  .gallery-item.gallery-tall,
  .gallery-item.gallery-wide {
    grid-column: span 1;
    grid-row: span 1;
  }
}
