/* ============================================================
   Olivia & Michael — Wedding site
   Section 1: Hero / "Save the Date" pinned kiss scene
   ============================================================ */

:root {
  --c-red: #9a1b2e;
  --c-red-deep: #871526;
  --c-gold: #d4af6a;
  --c-gold-soft: #e3c98f;
  --c-white: #fdf8f3;

  --font-serif: "Playfair Display", "Times New Roman", serif;
  --font-accent: "Cormorant Garamond", Georgia, serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* NOTE: no `scroll-behavior: smooth` here — it breaks ScrollTrigger
   measurements during refresh. Anchor links scroll natively. */

body {
  background: var(--c-red);
  color: var(--c-white);
  font-family: var(--font-serif);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  user-select: none;
  -webkit-user-drag: none;
}

/* ---------------- Hero shell ---------------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
}

.hero__inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 10%, rgba(255, 220, 200, 0.10), transparent 60%),
    radial-gradient(140% 110% at 50% 110%, rgba(40, 0, 8, 0.35), transparent 65%),
    var(--c-red);
}

/* ---------------- Navigation ---------------- */

.nav {
  position: absolute;
  top: clamp(18px, 4vh, 42px);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 38px);
  padding: 0 clamp(16px, 5vw, 64px);
  z-index: 30;
}

.nav__line {
  flex: 0 1 220px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--c-gold) 35%, var(--c-gold) 65%, transparent);
  opacity: 0.75;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3.4vw, 46px);
  list-style: none;
  white-space: nowrap;
}

.nav__list a {
  font-family: var(--font-accent);
  font-size: clamp(0.66rem, 0.55rem + 0.5vw, 0.85rem);
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--c-gold);
  transition: color 0.3s ease;
}

.nav__list a:hover {
  color: var(--c-gold-soft);
}

.nav__heart {
  color: var(--c-gold);
  font-size: 0.8rem;
  line-height: 1;
  transform: translateY(-1px);
}

/* ---------------- Centered content ---------------- */

.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: clamp(20px, 6vh, 60px);
  z-index: 10;
  will-change: transform, opacity;
}

.hero__title {
  font-weight: 500;
  font-size: clamp(2.6rem, 1.2rem + 10vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
  color: var(--c-white);
  text-shadow: 0 4px 30px rgba(60, 0, 10, 0.25);
  will-change: transform, opacity;
}

.hero__title-the {
  font-size: 0.52em;
  font-style: italic;
  font-weight: 400;
  position: relative;
  top: -0.12em;
  margin: 0 0.06em;
}

.hero__meta {
  margin-top: clamp(10px, 2.6vh, 26px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.8vh, 18px);
  will-change: transform, opacity;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--c-gold);
}

.divider__line {
  width: clamp(28px, 5vw, 60px);
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.divider__heart {
  font-size: 0.7rem;
  line-height: 1;
}

.hero__names {
  font-family: var(--font-accent);
  font-size: clamp(0.95rem, 0.7rem + 1.3vw, 1.7rem);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--c-gold);
  padding-left: 0.42em;
  /* optically recenter letter-spaced text */
}

.hero__names .amp {
  font-style: italic;
  letter-spacing: 0;
  margin: 0 0.3em;
}

.hero__date {
  font-family: var(--font-accent);
  font-size: clamp(1.1rem, 0.9rem + 1.2vw, 1.9rem);
  font-weight: 500;
  letter-spacing: 0.32em;
  padding-left: 0.32em;
  color: var(--c-white);
}

.hero__heart-small {
  color: var(--c-gold);
  font-size: 0.65rem;
  line-height: 1;
}

/* ---------------- Scroll indicator ---------------- */

.hero__scroll {
  position: absolute;
  bottom: clamp(18px, 5vh, 52px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--c-gold);
  will-change: transform, opacity;
}

.hero__scroll-circle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  opacity: 0.9;
  animation: scroll-bob 2.4s ease-in-out infinite;
}

@keyframes scroll-bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(7px);
  }
}

.hero__scroll-label {
  font-family: var(--font-accent);
  font-size: clamp(0.6rem, 0.55rem + 0.3vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.4em;
  padding-left: 0.4em;
  text-transform: uppercase;
}

.hero__scroll-heart {
  font-size: 0.6rem;
  line-height: 1;
}

/* ---------------- Finale phrase ---------------- */

.hero__finale {
  position: absolute;
  left: 50%;
  bottom: clamp(40px, 11vh, 110px);
  transform: translateX(-50%);
  text-align: center;
  z-index: 25;
  opacity: 0;
  will-change: transform, opacity;
  pointer-events: none;
}

.hero__finale-kicker {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(0.9rem, 0.8rem + 0.8vw, 1.4rem);
  color: var(--c-gold-soft);
  letter-spacing: 0.18em;
  margin-bottom: 0.35em;
}

.hero__finale-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 1rem + 4vw, 4rem);
  font-weight: 500;
  color: var(--c-white);
  letter-spacing: 0.04em;
}

/* ---------------- Kiss heart ---------------- */

.kiss-heart {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 26;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
  will-change: transform, opacity;
  pointer-events: none;
  display: grid;
  place-items: center;
}

.kiss-heart__glow {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 170, 0.5), rgba(255, 215, 170, 0) 70%);
}

.kiss-heart__icon {
  position: relative;
  color: var(--c-gold-soft);
  font-size: 2rem;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 200, 150, 0.8);
}

.kiss-heart.is-kissing .kiss-heart__icon {
  animation: heart-pulse 1.1s ease-in-out infinite;
}

@keyframes heart-pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.22);
  }
}

/* ---------------- Characters ---------------- */

.char {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 20;
  will-change: transform;
  transform: translateX(-120%);
  /* offscreen until JS lays out */
  filter: drop-shadow(0 22px 30px rgba(40, 0, 8, 0.45));
}

/* ============================================================
   SHARED ELEMENTS (sections below the hero)
   ============================================================ */

:root {
  --c-ivory: #f6efe4;
  --c-ivory-deep: #efe5d3;
  --c-ink: #3d2228;
}

.kicker {
  font-family: var(--font-accent);
  font-size: clamp(0.7rem, 0.62rem + 0.4vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: var(--c-red);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.kicker::before,
.kicker::after {
  content: "";
  width: clamp(26px, 4vw, 54px);
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.kicker--gold {
  color: var(--c-gold);
}

.divider--red {
  color: var(--c-red);
  justify-content: center;
}

.mask {
  overflow: hidden;
  margin: 0;
}

.mask img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

/* ============================================================
   OUR STORY — editorial intro on ivory
   ============================================================ */

.story {
  background: var(--c-ivory);
  color: var(--c-ink);
  padding: clamp(80px, 14vh, 150px) clamp(20px, 6vw, 90px) clamp(90px, 14vh, 160px);
  overflow: hidden;
}

.story__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.story__statement {
  margin-top: clamp(28px, 5vh, 56px);
  text-align: center;
  font-weight: 500;
  font-size: clamp(1.5rem, 0.9rem + 3.2vw, 3.4rem);
  line-height: 1.32;
  color: var(--c-red);
  max-width: 21em;
}

.story__statement em {
  font-style: italic;
  color: var(--c-ink);
}

.story__statement .line {
  display: block;
  overflow: hidden;
  padding-block: 0.04em;
}

.story__statement .line>span {
  display: inline-block;
  will-change: transform;
}

/* Collage: wide photo left, tall right, small overlapping */
.story__collage {
  position: relative;
  margin-top: clamp(60px, 10vh, 120px);
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
}

.story__ph {
  border-radius: 4px;
  box-shadow: 0 30px 60px rgba(61, 34, 40, 0.18);
}

.story__ph--wide {
  aspect-ratio: 3 / 2;
  margin-top: clamp(30px, 6vh, 70px);
}

.story__ph--tall {
  aspect-ratio: 2 / 3;
}

.story__ph--small {
  position: absolute;
  left: clamp(38%, 44%, 48%);
  bottom: -9%;
  width: clamp(150px, 22vw, 260px);
  aspect-ratio: 3 / 4;
  border: 6px solid var(--c-ivory);
  box-shadow: 0 24px 50px rgba(61, 34, 40, 0.28);
  z-index: 2;
}

.story__caption {
  position: absolute;
  right: 2%;
  bottom: -14%;
  font-family: var(--font-accent);
  font-size: clamp(0.85rem, 0.75rem + 0.5vw, 1.1rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-ink);
  opacity: 0.75;
}

.story__caption-no {
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.05em;
  margin-right: 0.4em;
  color: var(--c-red);
}

/* ============================================================
   MARQUEE STRIP
   ============================================================ */

.marquee {
  background: var(--c-red-deep);
  border-block: 1px solid rgba(212, 175, 106, 0.35);
  overflow: hidden;
  padding: clamp(14px, 2.2vh, 24px) 0;
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  width: max-content;
  animation: marquee-roll 26s linear infinite;
  will-change: transform;
}

.marquee__track span {
  font-family: var(--font-accent);
  font-size: clamp(0.85rem, 0.7rem + 0.8vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--c-gold);
  white-space: nowrap;
}

.marquee__track i {
  font-style: normal;
  font-size: 0.7em;
  color: var(--c-gold-soft);
  opacity: 0.8;
}

@keyframes marquee-roll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ============================================================
   MOMENTS — alternating photo + caption rows on deep red
   ============================================================ */

.moments {
  background: var(--c-red);
  padding: clamp(90px, 14vh, 170px) clamp(20px, 6vw, 90px);
  overflow: hidden;
}

.moments__head {
  text-align: center;
  margin-bottom: clamp(70px, 11vh, 130px);
}

.moments__title {
  margin-top: clamp(18px, 3vh, 32px);
  font-size: clamp(2rem, 1.2rem + 4.4vw, 4.6rem);
  font-weight: 500;
  line-height: 1.14;
  color: var(--c-white);
}

.moments__title em {
  font-style: italic;
  color: var(--c-gold-soft);
}

.moment {
  max-width: 1180px;
  margin: 0 auto clamp(80px, 13vh, 150px);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

.moment:last-child {
  margin-bottom: 0;
}

.moment__media {
  aspect-ratio: 4 / 5;
  max-height: 76vh;
  border-radius: 4px;
  box-shadow: 0 36px 80px rgba(40, 0, 8, 0.5);
}

.moment__media img {
  transform-origin: center;
}

/* photo-01 is landscape */
.moment:first-of-type .moment__media {
  aspect-ratio: 3 / 2;
}

.moment--flip .moment__body {
  order: -1;
  text-align: right;
}

.moment__body {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.8vh, 20px);
}

.moment--flip .moment__body {
  align-items: flex-end;
}

.moment__no {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.6rem, 2rem + 3vw, 5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--c-gold);
}

.moment__heading {
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.6rem);
  font-weight: 500;
  color: var(--c-white);
}

.moment__text {
  font-family: var(--font-accent);
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  line-height: 1.65;
  color: var(--c-gold-soft);
  max-width: 34ch;
}

/* duo layout for the shelf pair */
.moment--flip:nth-of-type(2) {
  grid-template-columns: minmax(0, 5fr) minmax(0, 3.5fr) minmax(0, 3.5fr);
}

.moment__media--duo {
  aspect-ratio: 2 / 3;
}

.moment__media--offset {
  margin-top: clamp(40px, 8vh, 90px);
}

/* ============================================================
   FULL-BLEED KISS BREAK
   ============================================================ */

.bleed {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.bleed__media {
  position: absolute;
  inset: -12% 0;
  margin: 0;
}

.bleed__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  will-change: transform;
}

.bleed__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: clamp(50px, 10vh, 110px);
  text-align: center;
  background: linear-gradient(to top, rgba(40, 0, 8, 0.55), rgba(40, 0, 8, 0) 55%);
}

.bleed__line {
  font-family: var(--font-serif);
  color: var(--c-white);
  font-size: clamp(1.2rem, 0.9rem + 1.6vw, 2.2rem);
  text-shadow: 0 2px 24px rgba(40, 0, 8, 0.6);
}

.bleed__line em {
  color: var(--c-gold-soft);
}

.bleed__line--big {
  font-size: clamp(1.9rem, 1.2rem + 3.6vw, 4.4rem);
  font-weight: 500;
  line-height: 1.15;
}

/* ============================================================
   THE INVITATION — cream card on deep red
   ============================================================ */

.invite {
  background:
    radial-gradient(110% 80% at 50% 0%, rgba(255, 220, 200, 0.07), transparent 60%),
    var(--c-red);
  padding: clamp(90px, 14vh, 170px) clamp(20px, 6vw, 90px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.invite__card {
  position: relative;
  margin-top: clamp(40px, 7vh, 70px);
  width: min(680px, 100%);
  background: linear-gradient(160deg, #faf4e8, var(--c-ivory) 55%, var(--c-ivory-deep));
  border-radius: 6px;
  padding: clamp(14px, 2.4vw, 26px);
  box-shadow: 0 50px 110px rgba(30, 0, 6, 0.55);
  overflow: hidden;
  will-change: transform;
}

.invite__shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 38%, rgba(255, 246, 220, 0.85) 50%, transparent 62%);
  transform: translateX(-130%);
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: soft-light;
}

.invite__border {
  border: 1px solid rgba(154, 27, 46, 0.35);
  outline: 1px solid rgba(212, 175, 106, 0.8);
  outline-offset: 4px;
  border-radius: 3px;
  padding: clamp(34px, 6vw, 64px) clamp(20px, 5vw, 56px);
  text-align: center;
  color: var(--c-ink);
}

.invite__monogram {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem);
  letter-spacing: 0.3em;
  color: var(--c-red);
  border: 1px solid rgba(212, 175, 106, 0.9);
  border-radius: 999px;
  padding: 0.55em 1em 0.5em 1.3em;
  margin-bottom: clamp(20px, 3.4vh, 34px);
}

.invite__monogram i {
  font-style: italic;
  color: var(--c-gold);
}

.invite__intro,
.invite__request {
  font-family: var(--font-accent);
  font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.2rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.8;
  color: rgba(61, 34, 40, 0.85);
}

.invite__names {
  margin: clamp(14px, 2.4vh, 24px) 0;
  font-size: clamp(1.9rem, 1.2rem + 3.4vw, 3.6rem);
  font-weight: 500;
  line-height: 1.18;
  color: var(--c-red);
}

.invite__and {
  font-style: italic;
  font-weight: 400;
  font-size: 0.45em;
  letter-spacing: 0.25em;
  color: var(--c-gold);
  text-transform: uppercase;
}

.invite .divider--red {
  margin: clamp(18px, 3vh, 30px) auto;
}

.invite__date {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1rem + 0.9vw, 1.6rem);
  color: var(--c-ink);
}

.invite__year {
  font-family: var(--font-accent);
  font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.15rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 6px;
  color: rgba(61, 34, 40, 0.8);
}

.invite__venue {
  margin-top: clamp(16px, 2.6vh, 26px);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.35rem);
  color: var(--c-red);
  line-height: 1.5;
}

.invite__venue span {
  font-family: var(--font-accent);
  font-style: normal;
  font-size: 0.78em;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(61, 34, 40, 0.7);
}

/* Countdown */
.countdown {
  margin-top: clamp(50px, 8vh, 90px);
  display: flex;
  align-items: baseline;
  gap: clamp(10px, 2.4vw, 28px);
}

.countdown__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.countdown__num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 1.2rem + 4vw, 4.4rem);
  font-weight: 500;
  color: var(--c-white);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.countdown__label {
  font-family: var(--font-accent);
  font-size: clamp(0.62rem, 0.56rem + 0.3vw, 0.8rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.countdown__sep {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 1rem + 2vw, 2.6rem);
  color: rgba(212, 175, 106, 0.6);
  transform: translateY(-0.4em);
}

.countdown__until {
  margin-top: clamp(14px, 2.4vh, 24px);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 0.9rem + 0.6vw, 1.35rem);
  color: var(--c-gold-soft);
}

/* ============================================================
   DETAILS — ivory section with three cards + side photo
   ============================================================ */

.details {
  background: var(--c-ivory);
  color: var(--c-ink);
  padding: clamp(90px, 14vh, 170px) clamp(20px, 6vw, 90px);
}

.details__head {
  text-align: center;
  margin-bottom: clamp(50px, 8vh, 90px);
}

.details__title {
  margin-top: clamp(16px, 2.6vh, 28px);
  font-size: clamp(2rem, 1.3rem + 3.8vw, 4.2rem);
  font-weight: 500;
  color: var(--c-red);
}

.details__title em {
  font-style: italic;
  color: var(--c-gold);
}

.details__grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 36px);
}

.detail-card {
  background: rgba(255, 252, 245, 0.75);
  border: 1px solid rgba(212, 175, 106, 0.45);
  border-radius: 4px;
  padding: clamp(28px, 4.4vw, 48px) clamp(20px, 3vw, 36px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 18px 40px rgba(61, 34, 40, 0.08);
}

.detail-card__icon {
  width: 56px;
  height: 56px;
  color: var(--c-gold);
  border: 1px solid rgba(212, 175, 106, 0.6);
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 10px;
}

.detail-card__icon svg {
  width: 100%;
  height: 100%;
}

.detail-card__title {
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem);
  font-weight: 500;
  color: var(--c-red);
}

.detail-card__time {
  font-family: var(--font-accent);
  font-size: clamp(0.8rem, 0.74rem + 0.3vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.detail-card__text {
  font-family: var(--font-accent);
  font-size: clamp(1rem, 0.92rem + 0.4vw, 1.18rem);
  line-height: 1.6;
  color: rgba(61, 34, 40, 0.85);
}

.detail-card__palette {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.detail-card__palette i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(61, 34, 40, 0.2);
}

.details__photo {
  position: relative;
  max-width: 760px;
  margin: clamp(60px, 10vh, 110px) auto 0;
  aspect-ratio: 7 / 5;
  border-radius: 4px;
  box-shadow: 0 30px 70px rgba(61, 34, 40, 0.22);
}

.details__photo img {
  object-position: center 38%;
}

.details__photo figcaption {
  position: absolute;
  right: 18px;
  bottom: 14px;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(0.9rem, 0.85rem + 0.3vw, 1.1rem);
  letter-spacing: 0.12em;
  color: var(--c-ivory);
  text-shadow: 0 1px 12px rgba(40, 0, 8, 0.7);
}

/* ============================================================
   RSVP — form + photo on deep red
   ============================================================ */

.rsvp {
  background: linear-gradient(var(--c-red), var(--c-red-deep));
  padding: clamp(90px, 14vh, 170px) clamp(20px, 6vw, 90px);
}

.rsvp__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}

.rsvp__formwrap .kicker {
  justify-content: flex-start;
}

.rsvp__title {
  margin-top: clamp(14px, 2.4vh, 26px);
  font-size: clamp(2rem, 1.3rem + 3.6vw, 4rem);
  font-weight: 500;
  color: var(--c-white);
}

.rsvp__sub {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 0.9rem + 0.6vw, 1.3rem);
  color: var(--c-gold-soft);
}

.rsvp__form {
  margin-top: clamp(28px, 4.6vh, 48px);
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vh, 28px);
}

.rsvp__form[hidden],
.rsvp__success[hidden] {
  display: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 0;
  padding: 0;
  margin: 0;
}

.field__label {
  font-family: var(--font-accent);
  font-size: clamp(0.7rem, 0.64rem + 0.3vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.field__input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(212, 175, 106, 0.5);
  padding: 10px 2px;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  color: var(--c-white);
  border-radius: 0;
  transition: border-color 0.3s ease;
}

.field__input::placeholder {
  color: rgba(253, 248, 243, 0.35);
  font-style: italic;
}

.field__input:focus {
  outline: none;
  border-bottom-color: var(--c-gold-soft);
}

select.field__input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23d4af6a' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  cursor: pointer;
}

select.field__input option {
  color: var(--c-ink);
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.radio-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-pill span {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: clamp(0.85rem, 0.8rem + 0.3vw, 1rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold-soft);
  border: 1px solid rgba(212, 175, 106, 0.55);
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.radio-pill input:checked+span {
  background: var(--c-gold);
  color: var(--c-red-deep);
  border-color: var(--c-gold);
}

.radio-pill input:focus-visible+span {
  outline: 2px solid var(--c-gold-soft);
  outline-offset: 2px;
}

.rsvp__submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--c-gold);
  color: var(--c-red-deep);
  border: 0;
  border-radius: 999px;
  padding: 16px 34px;
  font-family: var(--font-accent);
  font-size: clamp(0.85rem, 0.8rem + 0.3vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rsvp__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(40, 0, 8, 0.4);
}

.rsvp__submit i {
  font-style: normal;
}

.rsvp__success {
  margin-top: clamp(28px, 4.6vh, 48px);
  text-align: center;
  padding: clamp(30px, 5vh, 50px) 20px;
  border: 1px solid rgba(212, 175, 106, 0.5);
  border-radius: 4px;
}

.rsvp__success-heart {
  display: inline-block;
  font-size: 2rem;
  color: var(--c-gold);
  animation: heart-pulse 1.2s ease-in-out infinite;
}

.rsvp__success h3 {
  margin-top: 12px;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem);
  font-weight: 500;
  color: var(--c-white);
}

.rsvp__success p {
  margin-top: 10px;
  font-family: var(--font-accent);
  font-size: clamp(1rem, 0.92rem + 0.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--c-gold-soft);
}

.burst-heart {
  position: fixed;
  z-index: 200;
  font-size: 18px;
  color: var(--c-gold-soft);
  pointer-events: none;
  will-change: transform, opacity;
}

.rsvp__photo {
  aspect-ratio: 2 / 3;
  max-height: 80vh;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 106, 0.4);
  outline: 1px solid rgba(212, 175, 106, 0.25);
  outline-offset: 10px;
  box-shadow: 0 36px 80px rgba(30, 0, 6, 0.5);
}

/* ============================================================
   FOOTER — moody B&W full-bleed
   ============================================================ */

.footer {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  display: flex;
}

.footer__media {
  position: absolute;
  inset: 0;
  margin: 0;
}

.footer__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 68%;
  filter: grayscale(1) contrast(1.02);
}

.footer__overlay {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 1.8vh, 18px);
  padding: clamp(40px, 8vh, 80px) 24px;
  text-align: center;
  background: linear-gradient(to top, rgba(20, 4, 8, 0.82) 12%, rgba(20, 4, 8, 0.25) 55%, rgba(20, 4, 8, 0.1));
}

.footer__monogram {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 1.4rem + 4vw, 4.6rem);
  letter-spacing: 0.2em;
  color: var(--c-white);
}

.footer__monogram span {
  font-size: 0.5em;
  color: var(--c-gold);
  vertical-align: middle;
}

.footer__date {
  font-family: var(--font-accent);
  font-size: clamp(0.9rem, 0.8rem + 0.5vw, 1.2rem);
  letter-spacing: 0.42em;
  color: var(--c-gold);
}

.footer__note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 0.9rem + 0.7vw, 1.5rem);
  color: rgba(253, 248, 243, 0.9);
}

.footer__top {
  margin-top: clamp(14px, 2.6vh, 26px);
  font-family: var(--font-accent);
  font-size: clamp(0.65rem, 0.6rem + 0.3vw, 0.8rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--c-gold-soft);
  border-bottom: 1px solid rgba(212, 175, 106, 0.5);
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.footer__top:hover {
  color: var(--c-white);
}

/* ============================================================
   RESPONSIVE — sections below the hero
   ============================================================ */

@media (max-width: 900px) {

  .moment,
  .moment--flip:nth-of-type(2) {
    grid-template-columns: 1fr;
    gap: clamp(20px, 4vh, 36px);
  }

  .moment--flip .moment__body {
    order: 0;
    text-align: left;
    align-items: flex-start;
  }

  .moment__media,
  .moment__media--duo {
    max-height: none;
  }

  .moment__media--offset {
    margin-top: 0;
  }

  /* duo photos side by side on mobile */
  .moment--flip:nth-of-type(2) {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "a a" "b c";
  }

  .moment--flip:nth-of-type(2) .moment__body {
    grid-area: a;
  }

  .moment--flip:nth-of-type(2) .moment__media--duo {
    grid-area: b;
  }

  .moment--flip:nth-of-type(2) .moment__media--offset {
    grid-area: c;
  }

  .details__grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

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

  .rsvp__photo {
    order: -1;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .story__collage {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .story__ph--wide {
    margin-top: 0;
  }

  .story__ph--small {
    position: static;
    width: 60%;
    margin: -18% 0 0 auto;
    z-index: 2;
  }

  .story__caption {
    position: static;
    margin-top: 26px;
    text-align: center;
  }

  .countdown {
    gap: 8px;
  }

  .countdown__sep {
    display: none;
  }

  .rsvp__submit {
    align-self: stretch;
    justify-content: center;
  }
}

/* ---------------- Small screens ---------------- */

@media (max-width: 640px) {
  .nav__line {
    flex-basis: 40px;
  }

  .nav__list {
    gap: 18px;
  }

  .hero__title {
    font-size: clamp(1rem, 0.9rem + 9vw, 1.3rem);
  }
}

@media (max-width: 420px) {
  .nav__line {
    display: none;
  }
}

/* ---------------- Reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {

  .hero__scroll-circle,
  .kiss-heart.is-kissing .kiss-heart__icon,
  .marquee__track,
  .rsvp__success-heart {
    animation: none;
  }
}