/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --ivory: #FAF7F2;
  --butter: #FFF0A0;
  --sunflower: #F5CC55;
  --warm-gold: #C9A962;
  --petal: #FFE8EC;
  --blush: #F5C8CC;
  --coral: #E8A0A8;
  --emerald: #2D6A4F;
  --forest: #1B4332;
  --espresso: #3D2B1F;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Great Vibes', cursive;
  --font-sans: 'Montserrat', system-ui, sans-serif;

  --shadow-sm: 0 2px 8px rgba(27, 67, 50, 0.08);
  --shadow-md: 0 8px 32px rgba(27, 67, 50, 0.12);
  --shadow-lg: 0 16px 48px rgba(27, 67, 50, 0.16);
  --radius: 4px;
  --transition: 0.3s ease;
}

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

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

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--espresso);
  background: var(--petal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

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

.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(0.85rem + env(safe-area-inset-top, 0px)) 4vw 0.85rem;
  background: rgba(245, 200, 204, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45, 106, 79, 0.12);
  transition: box-shadow var(--transition);
}

.nav.scrolled { box-shadow: var(--shadow-sm); }

.nav__logo {
  font-family: var(--font-script);
  font-size: 1.75rem;
  color: var(--emerald);
}

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav__links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  transition: color var(--transition);
}

.nav__links a:hover { color: var(--coral); }

.nav__rsvp {
  padding: 0.5rem 1.25rem;
  background: var(--emerald);
  color: var(--ivory) !important;
  border-radius: var(--radius);
  transition: background var(--transition) !important;
}

.nav__rsvp:hover { background: var(--forest) !important; color: var(--ivory) !important; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--forest);
  transition: var(--transition);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ivory);
  padding: calc(5.5rem + env(safe-area-inset-top, 0px)) 1.5rem 4rem;
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 24%;
  z-index: 0;
  /* Avoid Safari treating this like a flow image */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(27, 67, 50, 0.55) 0%, rgba(45, 106, 79, 0.4) 50%, rgba(61, 43, 31, 0.5) 100%);
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(27, 67, 50, 0.3) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  animation: fadeUp 1s ease both;
}

.hero__eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.hero__date {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.hero__names {
  font-family: var(--font-script);
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero__location {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  opacity: 0.85;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
  animation: bounce 2s ease infinite;
  z-index: 2;
}

/* Hero botanical accents */
.hero__botanical {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
}

.hero__botanical--left {
  bottom: 12%;
  left: 2%;
}

.hero__botanical--right {
  top: 18%;
  right: 2%;
}

.hero__botanical .botanical--peony {
  width: clamp(60px, 12vw, 100px);
  color: var(--blush);
}

.hero__botanical .botanical--foliage {
  width: clamp(80px, 14vw, 130px);
  color: var(--emerald);
  margin-top: -1rem;
  margin-left: 1rem;
}

.hero__botanical .botanical--sweet-pea {
  width: clamp(40px, 8vw, 60px);
  color: var(--blush);
}

.hero__botanical .botanical--rose {
  width: clamp(50px, 10vw, 80px);
  color: var(--coral);
  margin-top: 1rem;
  margin-left: -0.5rem;
}

.hero__foliage-edge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80V40c80-20 160-10 240 0s160 20 240 0 160-20 240 0 160 20 240 0 160-20 240 0V80z' fill='%23F5C8CC'/%3E%3Cpath d='M0 55c60-15 120-5 180 5s120 20 180 5 120-20 180-5 120 15 180 5 120-15 180-5 120 10 180 0' fill='none' stroke='%232D6A4F' stroke-width='1' opacity='0.25'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
  z-index: 2;
  pointer-events: none;
}

/* ── Floral dividers ─────────────────────────────────────────── */
.floral-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.5rem 1rem;
  background: linear-gradient(90deg, var(--blush), var(--petal), var(--blush));
}

.floral-divider--dark {
  background: var(--forest);
}

.floral-divider--dark .floral-divider__sprig { color: rgba(250, 247, 242, 0.35); }
.floral-divider--dark .floral-divider__peony { color: var(--blush); opacity: 0.7; }
.floral-divider--dark .floral-divider__rose { color: var(--coral); opacity: 0.65; }

.floral-divider__sprig {
  width: clamp(60px, 12vw, 100px);
  color: var(--emerald);
  opacity: 0.55;
}

.floral-divider__sprig--right {
  transform: scaleX(-1);
}

.floral-divider__peony {
  width: clamp(36px, 7vw, 52px);
  color: var(--blush);
  opacity: 0.85;
}

.floral-divider__rose {
  width: clamp(32px, 6vw, 44px);
  color: var(--coral);
  opacity: 0.8;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.875rem 2.25rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn--primary {
  background: var(--coral);
  color: var(--ivory);
}

.btn--primary:hover {
  background: var(--blush);
  color: var(--forest);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--full { width: 100%; }

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ── Sections ──────────────────────────────────────────────── */
.section {
  padding: 5rem 0;
}

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

.section__eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--forest);
  line-height: 1.2;
}

.section__header--compact {
  margin-bottom: 2rem;
}

.section__ornament {
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 0.75rem;
  color: var(--coral);
  opacity: 0.75;
}

.section__ornament--small {
  width: 80px;
  height: 32px;
  color: var(--emerald);
}

.section__ornament--light {
  color: var(--blush);
  opacity: 0.6;
}

.section__eyebrow--light { color: var(--blush); }
.section__title--light { color: var(--ivory); }

/* ── Split sections (photo + text) ───────────────────────────── */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(85vh, 720px);
  align-items: stretch;
}

.split-section--reverse .split-section__content { order: 2; }
.split-section--reverse .split-section__photo { order: 1; }

.split-section__photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  min-height: 360px;
  background: var(--petal);
}

.split-section__photo--petal { background: var(--petal); }
.split-section__photo--blush { background: var(--blush); }
.split-section__photo--forest {
  background: linear-gradient(165deg, var(--forest) 0%, var(--emerald) 100%);
}

.split-section__content--ivory { background: var(--ivory); }
.split-section__content--blush { background: var(--blush); }
.split-section__content--petal { background: var(--petal); }
.split-section__content--butter {
  background: linear-gradient(165deg, var(--butter) 0%, rgba(255, 240, 160, 0.55) 100%);
}

.split-section__photo img {
  width: 100%;
  height: auto;
  flex: 1 1 auto;
  max-height: min(75vh, 620px);
  max-width: none;
  object-fit: cover;
  object-position: var(--photo-position, center center);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: block;
}

.split-section__photo img.photo--portrait {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(75vh, 620px);
  object-fit: contain;
  object-position: center center;
  background: transparent;
  flex: 0 1 auto;
}

.split-section__photo--tall img:not(.photo--portrait) {
  max-height: min(80vh, 680px);
}

.split-section__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
}

.split-section__content--forest {
  background: linear-gradient(165deg, var(--forest) 0%, #163528 100%);
  color: var(--ivory);
}

.split-section__content .section__ornament {
  margin: 0 0 0.75rem;
}

.split-section__content .section__ornament--small {
  width: 80px;
  height: 32px;
}

.split-section__content p {
  margin-bottom: 1.1rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(61, 43, 31, 0.85);
  max-width: 34rem;
}

.split-section__content--forest p {
  color: rgba(250, 247, 242, 0.85);
}

.split-section__content--forest .section__eyebrow { color: var(--blush); }
.split-section__content--forest .section__title { color: var(--ivory); }
.split-section__content--forest .section__ornament { color: var(--blush); opacity: 0.75; }

.split-section__content--forest .venue-note__travel {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--blush) !important;
  margin-bottom: 0;
  opacity: 0.95;
}

.story__signature {
  font-family: var(--font-script);
  font-size: 1.75rem;
  color: var(--emerald);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* ── Ambient art layer ───────────────────────────────────────── */
.bead-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 40;
  opacity: 0.85;
}

.film-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

@media (prefers-reduced-motion: reduce) {
  .bead-field,
  .film-grain { display: none; }

  .moments__item {
    opacity: 1;
    transform: rotate(var(--tilt, 0deg));
    transition: none;
  }

  .moments__item img {
    transform: none;
    transition: none;
  }
}

/* ── Photo collage ───────────────────────────────────────────── */
.moments {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(245, 200, 204, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 70%, rgba(245, 204, 85, 0.12), transparent 50%),
    linear-gradient(165deg, #143528 0%, var(--forest) 45%, #122a22 100%);
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem) clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}

.moments::before {
  content: '';
  position: absolute;
  inset: -20% 10% auto;
  height: 50%;
  background: radial-gradient(circle, rgba(232, 160, 168, 0.12), transparent 70%);
  pointer-events: none;
}

.moments__stage {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  margin-inline: auto;
}

.moments__whisper {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  color: var(--blush);
  text-align: center;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
  opacity: 0.9;
}

.moments__collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: clamp(0.75rem, 2vw, 1.35rem);
  min-height: clamp(520px, 70vw, 720px);
  align-items: end;
}

.moments__item {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(45, 106, 79, 0.35);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(250, 247, 242, 0.08);
  transform: translate3d(0, 28px, 0) scale(0.96);
  opacity: 0;
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.moments__item.is-in {
  opacity: 1;
  transform: translate3d(var(--drift-x, 0px), var(--drift-y, 0px), 0) rotate(var(--tilt, 0deg)) scale(1);
}

.moments__item img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--photo-position, center center);
  display: block;
  transform: scale(1.06);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.moments__item.is-in img {
  transform: scale(1);
}

.moments__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(27, 67, 50, 0.28));
  pointer-events: none;
  opacity: 0.65;
}

/* Desktop collage map */
.moments__item--a {
  grid-column: 1 / 6;
  grid-row: 1;
  aspect-ratio: 3 / 4;
  --tilt: -2.5deg;
  z-index: 2;
}

.moments__item--b {
  grid-column: 5 / 10;
  grid-row: 1;
  aspect-ratio: 4 / 5;
  margin-top: 12%;
  --tilt: 1.8deg;
  z-index: 3;
}

.moments__item--c {
  grid-column: 9 / 13;
  grid-row: 1;
  aspect-ratio: 3 / 4;
  margin-top: 4%;
  --tilt: -1.2deg;
  z-index: 2;
}

.moments__item--d {
  grid-column: 3 / 8;
  grid-row: 2;
  aspect-ratio: 16 / 10;
  margin-top: -8%;
  --tilt: 0.8deg;
  z-index: 4;
}

@media (hover: hover) and (pointer: fine) {
  .moments__item:hover {
    z-index: 6;
    transform: translate3d(var(--drift-x, 0px), calc(var(--drift-y, 0px) - 6px), 0) rotate(0deg) scale(1.02);
  }

  .moments__item:hover img {
    transform: scale(1.04);
  }
}

/* ── Details ───────────────────────────────────────────────── */
.details {
  background: linear-gradient(180deg, var(--blush) 0%, var(--petal) 100%);
  padding: 0;
}

.details__intro {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.details__intro .section__ornament {
  margin-inline: auto;
}

.details__intro .section__title {
  margin-inline: auto;
}

.details__body {
  padding: clamp(3rem, 6vw, 5rem) 0 4rem;
  position: relative;
  z-index: 2;
}

.details__body--solo {
  padding-top: clamp(4rem, 7vw, 5.5rem);
}

.details__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.details__grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
  margin-inline: auto;
}

.venue-note {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: rgba(250, 247, 242, 0.72);
  border-radius: var(--radius);
  border-top: 3px solid var(--emerald);
  box-shadow: var(--shadow-sm);
}

.venue-note .section__ornament {
  margin-inline: auto;
  color: var(--emerald);
}

.venue-note__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 1rem;
}

.venue-note p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgba(61, 43, 31, 0.85);
  margin-bottom: 1rem;
}

.venue-note__travel {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--forest) !important;
  margin-bottom: 0 !important;
}

.detail-card {
  position: relative;
  background: rgba(250, 247, 242, 0.95);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--emerald);
  overflow: hidden;
}

.detail-card--featured {
  border-top-color: var(--coral);
  background: linear-gradient(180deg, var(--blush) 0%, rgba(255, 232, 236, 0.95) 100%);
}

.detail-card__floral {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 28px;
  height: 28px;
  color: var(--blush);
  opacity: 0.35;
  pointer-events: none;
}

.detail-card--featured .detail-card__floral {
  color: var(--coral);
  opacity: 0.4;
}

.detail-card__icon {
  color: var(--emerald);
  margin-bottom: 1rem;
}

.detail-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--forest);
  margin-bottom: 0.5rem;
}

.detail-card__main {
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.detail-card__sub {
  font-size: 0.8rem;
  color: rgba(61, 43, 31, 0.6);
}

/* ── RSVP + Typeform ─────────────────────────────────────────── */
.rsvp-section {
  background: linear-gradient(165deg, var(--forest) 0%, #163528 100%);
  color: var(--ivory);
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}

.rsvp-section__intro {
  width: min(640px, 90vw);
  margin: 0 auto clamp(1.75rem, 4vw, 2.75rem);
  text-align: center;
}

.rsvp-section__intro .section__ornament {
  margin-inline: auto;
  color: var(--blush);
  opacity: 0.75;
}

.rsvp-section__title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 600;
  color: var(--ivory);
  letter-spacing: 0.04em;
  margin: 0.35rem 0 1rem;
  line-height: 1.15;
}

.rsvp__deadline,
.rsvp__note {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(250, 247, 242, 0.88);
  margin: 0 auto 0.85rem;
  max-width: 34rem;
}

.rsvp__deadline strong {
  color: var(--sunflower);
  font-weight: 600;
}

.rsvp__note {
  margin-bottom: 0;
  opacity: 0.9;
  font-size: 0.92rem;
}

.rsvp-section__mobile-cta {
  display: none;
  width: min(420px, 90vw);
  margin: 0 auto 0.5rem;
  text-align: center;
}

.btn--rsvp-launch {
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  background: var(--sunflower);
  color: var(--forest);
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
}

.btn--rsvp-launch:hover {
  background: var(--butter);
  color: var(--forest);
}

.rsvp-section__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  width: min(1100px, 94vw);
  margin-inline: auto;
  align-items: stretch;
}

.rsvp-section__photo {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--blush);
  min-height: 320px;
}

.rsvp-section__photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--photo-position, center 25%);
  display: block;
}

.rsvp-section__embed {
  display: flex;
  flex-direction: column;
  min-height: 560px;
  background: #faf7f2;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(232, 160, 168, 0.28);
}

.rsvp__typeform {
  width: 100%;
  flex: 1 1 auto;
  min-height: 520px;
}

.rsvp__typeform iframe {
  border: 0 !important;
}

.rsvp__fallback {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: rgba(61, 43, 31, 0.65);
  text-align: center;
  padding: 0.75rem 1rem 1rem;
  margin: 0;
}

.rsvp__fallback--mobile {
  color: rgba(250, 247, 242, 0.7);
  padding: 1rem 0 0;
}

.rsvp__fallback a {
  color: var(--emerald);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rsvp__fallback--mobile a {
  color: var(--blush);
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  position: relative;
  text-align: center;
  padding: 3.5rem 1.5rem 3rem;
  background: var(--espresso);
  color: rgba(250, 247, 242, 0.7);
}

.footer__wreath {
  display: block;
  width: 120px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--emerald);
  opacity: 0.45;
}

.footer__names {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--ivory);
  margin-bottom: 0.25rem;
}

.footer__date {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer__copy {
  font-size: 0.75rem;
  opacity: 0.5;
}

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

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .split-section,
  .split-section--reverse {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .split-section--reverse .split-section__content,
  .split-section--reverse .split-section__photo {
    order: unset;
  }

  .split-section__photo {
    min-height: clamp(260px, 50vw, 400px);
  }

  .details__grid,
  .details__grid--two {
    grid-template-columns: 1fr;
  }

  .rsvp-section__layout {
    display: none;
  }

  .rsvp-section__mobile-cta {
    display: block;
  }

  .rsvp-section {
    padding-bottom: clamp(3rem, 8vw, 4.5rem);
  }

  .moments {
    padding: 3rem 0 3.5rem;
    overflow: visible;
  }

  .moments__stage {
    width: 100%;
    padding-inline: 0.75rem;
  }

  .moments__whisper {
    padding-inline: 0.5rem;
    margin-bottom: 1.25rem;
  }

  /*
    Phone collage: one composed stage (absolute frames),
    not a long vertical stack.
  */
  .moments__collage {
    display: block;
    position: relative;
    width: 100%;
    height: min(118vw, 560px);
    min-height: 420px;
    padding: 0;
    margin: 0 auto;
  }

  .moments__item {
    position: absolute;
    margin: 0;
    width: auto;
    aspect-ratio: auto;
    box-shadow:
      0 18px 40px rgba(0, 0, 0, 0.42),
      0 0 0 1px rgba(250, 247, 242, 0.14);
  }

  .moments__item--a,
  .moments__item--b,
  .moments__item--c,
  .moments__item--d {
    grid-column: unset;
    grid-row: unset;
    margin-top: 0;
  }

  .moments__item--a {
    top: 2%;
    left: 2%;
    width: 58%;
    aspect-ratio: 3 / 4;
    --tilt: -4deg;
    z-index: 2;
  }

  .moments__item--b {
    top: 6%;
    right: 1%;
    width: 52%;
    aspect-ratio: 4 / 5;
    --tilt: 3.5deg;
    z-index: 3;
  }

  .moments__item--c {
    bottom: 10%;
    left: 4%;
    width: 50%;
    aspect-ratio: 3 / 4;
    --tilt: -2.5deg;
    z-index: 2;
  }

  .moments__item--d {
    bottom: 2%;
    right: 3%;
    width: 62%;
    aspect-ratio: 5 / 4;
    --tilt: 1.5deg;
    z-index: 4;
  }

  .moments__item--a::before,
  .moments__item--b::before,
  .moments__item--c::before {
    content: none;
  }

  /* Tap a frame to bring it forward */
  .moments__item.is-focus {
    z-index: 8;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1.04);
  }
}

@media (max-width: 640px) {
  .nav__toggle { display: flex; }

  .hero {
    align-items: flex-end;
    padding-bottom: 5.5rem;
  }

  .hero__image {
    object-position: center 18%;
  }

  .hero__content {
    padding-bottom: 0.5rem;
  }

  .hero__botanical { opacity: 0.2; }
  .hero__botanical--left { bottom: 8%; left: -2%; }
  .hero__botanical--right { top: 14%; right: -4%; }

  .floral-divider__sprig { display: none; }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(280px, 80vw);
    height: 100svh;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: var(--blush);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
  }

  .nav__links.open { right: 0; }
}
