:root {
  color-scheme: dark;
  --ink: #15070b;
  --ink-soft: #241017;
  --wine: #64172b;
  --wine-bright: #8a2942;
  --wine-deep: #310c17;
  --ivory: #f7efe5;
  --ivory-soft: #dfd1c1;
  --gold: #c9a363;
  --gold-light: #f1d9aa;
  --line: rgba(241, 217, 170, .28);
  --serif: Georgia, "Times New Roman", serif;
  --script: "Snell Roundhand", "Apple Chancery", "Segoe Script", cursive;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ivory);
  background:
    radial-gradient(circle at 12% 18%, rgba(100, 23, 43, .28), transparent 28rem),
    var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.6;
}
body.invitation-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

.section-pad { padding: clamp(5.5rem, 10vw, 10rem) clamp(1.35rem, 7vw, 7rem); }
.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold-light);
  font: 700 .73rem/1.5 var(--sans);
  letter-spacing: .29em;
  text-transform: uppercase;
}
.display-title {
  margin: 0;
  color: var(--ivory);
  font-size: clamp(3.4rem, 7vw, 7.2rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .9;
}
.display-title em {
  color: var(--gold-light);
  font-family: var(--script);
  font-size: .84em;
  font-weight: 400;
}
.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .88rem 1.35rem;
  border: 0;
  border-radius: 99px;
  cursor: pointer;
  font: 750 .78rem/1 var(--sans);
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .25s ease, color .25s ease, background .25s ease, border-color .25s ease;
}
.button:hover { transform: translateY(-2px); }
.button-gold { color: #240c13; background: linear-gradient(135deg, var(--gold-light), var(--gold)); box-shadow: 0 .9rem 2.4rem rgba(201, 163, 99, .16); }
.button-outline { border: 1px solid var(--line); color: var(--ivory); background: transparent; }
.button-outline:hover { border-color: var(--gold); color: var(--gold-light); }

/* Loading monogram */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  gap: 1rem;
  text-align: center;
  background: radial-gradient(circle at 50% 35%, #66182c 0, #250b14 40%, #0f0609 100%);
  transition: opacity .8s ease, visibility .8s ease;
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  color: var(--gold-light);
  font-size: 3rem;
}
.loader-mark i { width: 1px; height: 3.5rem; background: var(--gold); transform: rotate(24deg); }
.loader p { margin: 0; color: #d8c6b0; font: 600 .7rem/1 var(--sans); letter-spacing: .25em; text-transform: uppercase; }
.loader-line { width: 8rem; height: 1px; margin: .5rem auto 0; overflow: hidden; background: rgba(255,255,255,.15); }
.loader-line span { display: block; width: 45%; height: 100%; background: var(--gold-light); animation: load 1.25s ease-in-out infinite; }

/* Cover */
.cover {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  transition: opacity .9s ease, visibility .9s ease;
}
.cover.is-open { opacity: 0; visibility: hidden; pointer-events: none; }
.cover-photo, .cover-shade, .cover-grain { position: absolute; inset: 0; }
.cover-photo {
  background: url("assets/prewedding-garden.jpg") center 44%/cover no-repeat;
  transform: scale(1.04);
  animation: coverDrift 12s ease-in-out infinite alternate;
}
.cover-shade { background: linear-gradient(180deg, rgba(13,5,8,.34), rgba(18,5,9,.82)); }
.cover-grain {
  opacity: .09;
  background-image: repeating-radial-gradient(circle at 20% 20%, transparent 0, #fff 1px, transparent 2px, transparent 7px);
  background-size: 19px 21px;
  mix-blend-mode: soft-light;
}
.cover-card {
  position: relative;
  width: min(88vw, 34rem);
  padding: 2.6rem 2rem 2.2rem;
  border: 1px solid rgba(242,220,174,.56);
  background: rgba(26,8,14,.52);
  box-shadow: 0 2rem 6rem rgba(0,0,0,.42);
  backdrop-filter: blur(7px);
}
.cover-card::before, .cover-card::after {
  content: "";
  position: absolute;
  width: 2.2rem;
  height: 2.2rem;
  border-color: var(--gold);
}
.cover-card::before { top: .65rem; left: .65rem; border-top: 1px solid; border-left: 1px solid; }
.cover-card::after { right: .65rem; bottom: .65rem; border-right: 1px solid; border-bottom: 1px solid; }
.guest-name { margin: -.35rem 0 1.4rem; font-size: 1.15rem; font-style: italic; }
.mini-monogram {
  width: 5.6rem;
  height: 5.6rem;
  margin: 0 auto 1.25rem;
  display: grid;
  place-content: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-light);
  font-size: 1.18rem;
  letter-spacing: .08em;
}
.mini-monogram span { margin: 0 .15rem; color: #fff; font-family: var(--script); }
.cover h1 { margin: 0; font-size: clamp(2.45rem, 8vw, 4.6rem); font-weight: 400; line-height: .95; }
.cover h1 em { color: var(--gold-light); font-family: var(--script); font-weight: 400; }
.cover-date { margin: 1.2rem 0 1.6rem; font: 700 .78rem var(--sans); letter-spacing: .24em; }
.sound-note { margin: 1rem 0 0; color: #d5c5b5; font: .72rem var(--sans); letter-spacing: .05em; }

/* Floating controls */
.music-toggle {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .9rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--ivory);
  background: rgba(24,8,13,.7);
  backdrop-filter: blur(12px);
  cursor: pointer;
  opacity: 1;
  transition: opacity .3s ease, transform .25s ease;
}
.invitation-locked .music-toggle { opacity: 0; pointer-events: none; }
.music-toggle:hover { transform: translateY(-2px); }
.music-label { font: 700 .68rem var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.equalizer { height: .9rem; display: flex; align-items: end; gap: 2px; }
.equalizer i { display: block; width: 2px; height: 40%; background: var(--gold-light); animation: equalize .8s ease-in-out infinite alternate; }
.equalizer i:nth-child(2) { height: 90%; animation-delay: -.25s; }
.equalizer i:nth-child(3) { height: 65%; animation-delay: -.5s; }
.music-toggle[aria-pressed="false"] .equalizer i { animation-play-state: paused; height: 2px; }

.floating-nav {
  position: fixed;
  left: 50%;
  bottom: 1.35rem;
  z-index: 30;
  display: flex;
  gap: .3rem;
  padding: .35rem;
  border: 1px solid rgba(241,217,170,.2);
  border-radius: 99px;
  background: rgba(24,8,13,.78);
  box-shadow: 0 1rem 3rem rgba(0,0,0,.34);
  backdrop-filter: blur(15px);
  transform: translateX(-50%);
  transition: opacity .3s ease, transform .3s ease;
}
.invitation-locked .floating-nav { opacity: 0; pointer-events: none; transform: translate(-50%, 1rem); }
.floating-nav a {
  display: flex;
  min-width: 4.5rem;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .55rem .8rem;
  border-radius: 99px;
  color: #eadbcb;
  text-decoration: none;
}
.floating-nav a:hover, .floating-nav a.is-active { color: #2a0b14; background: var(--gold-light); }
.floating-nav span { font-style: normal; }
.floating-nav em { font: 700 .66rem var(--sans); letter-spacing: .06em; text-transform: uppercase; }

.heart-layer { position: fixed; inset: 0; z-index: 90; overflow: hidden; pointer-events: none; }
.heart-particle {
  position: absolute;
  color: var(--gold-light);
  font-size: var(--heart-size, 1rem);
  animation: floatHeart 1.5s cubic-bezier(.18,.69,.34,1) forwards;
  filter: drop-shadow(0 .3rem .6rem rgba(0,0,0,.35));
}

/* Hero */
main { min-height: 100vh; }
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; }
.hero > img, .hero-overlay { position: absolute; inset: -2%; width: 104%; height: 104%; }
.hero > img { object-fit: cover; object-position: 57% center; will-change: transform; }
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(15,5,8,.93) 0%, rgba(15,5,8,.42) 50%, rgba(15,5,8,.14) 100%),
    linear-gradient(0deg, rgba(15,5,8,.78), transparent 58%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(44rem, 88vw);
  padding: clamp(7rem, 14vw, 11rem) 0 clamp(7rem, 12vh, 9rem) clamp(1.4rem, 7vw, 7rem);
}
.hero h2 { margin: 0; display: flex; flex-direction: column; font-size: clamp(4rem, 10vw, 8.7rem); font-weight: 400; letter-spacing: -.05em; line-height: .7; }
.hero h2 span:last-child { margin-left: .8em; }
.hero h2 i { margin: -.1em 0 -.05em 1.65em; color: var(--gold-light); font-family: var(--script); font-size: .62em; font-weight: 400; }
.hero-line { max-width: 35rem; margin: 2.5rem 0 1.5rem; color: #eee2d5; font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.7; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .8rem; color: var(--gold-light); font: 700 .72rem/1.5 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.scroll-cue {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .7rem;
  font: .65rem var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.scroll-cue span { width: 2.8rem; height: 1px; background: var(--gold); }

/* Invitation note */
.invitation-note {
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, rgba(100,23,43,.42), transparent 35rem),
    linear-gradient(180deg, #16080c, #200b12);
}
.invitation-note::before {
  content: "T  &  C";
  position: absolute;
  inset: 50% auto auto 50%;
  color: rgba(241,217,170,.035);
  font-size: clamp(10rem, 28vw, 28rem);
  white-space: nowrap;
  transform: translate(-50%, -50%);
}
.ornament { position: relative; display: flex; width: min(34rem, 90%); align-items: center; gap: 1rem; margin: 0 auto 3.5rem; color: var(--gold); }
.ornament span { flex: 1; height: 1px; background: var(--line); }
.ornament i { width: 3.4rem; height: 3.4rem; display: grid; place-content: center; border: 1px solid var(--gold); border-radius: 50%; font-style: normal; font-size: .82rem; letter-spacing: .08em; }
.invitation-note .display-title, .invitation-note .lede, .invitation-note blockquote, .invitation-note .eyebrow { position: relative; }
.invitation-note .lede { width: min(43rem, 94%); margin: 2.2rem auto 0; color: var(--ivory-soft); font-size: 1.16rem; line-height: 1.9; }
.invitation-note blockquote { width: min(49rem, 95%); margin: 4rem auto 0; padding-top: 2.2rem; border-top: 1px solid var(--line); color: var(--gold-light); font-size: clamp(1.45rem, 3vw, 2.4rem); font-style: italic; line-height: 1.5; }

/* Couple portrait */
.portrait-section { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); min-height: 62rem; background: #0f0609; }
.portrait-image { position: relative; min-height: 46rem; overflow: hidden; }
.portrait-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 24%; }
.portrait-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,6,9,.48), transparent 45%); }
.image-number { position: absolute; right: 1.5rem; bottom: .5rem; z-index: 1; color: rgba(255,255,255,.6); font-size: 6rem; line-height: 1; }
.portrait-copy { align-self: center; background: linear-gradient(135deg, #2b0c16, #17080d 68%); }
.portrait-copy > p:not(.eyebrow) { max-width: 35rem; margin: 2.3rem 0 3.5rem; color: var(--ivory-soft); font-size: 1.08rem; line-height: 1.9; }
.couple-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.couple-grid article { padding: 1.5rem; background: #1b0910; }
.couple-grid span { color: var(--gold); font: 700 .68rem var(--sans); letter-spacing: .17em; text-transform: uppercase; }
.couple-grid h3 { margin: .55rem 0 .7rem; font-size: 1.22rem; font-weight: 400; line-height: 1.35; }
.couple-grid p { margin: 0; color: #cdbdad; font-size: .9rem; line-height: 1.6; }

/* Story */
.story-section {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: center;
  background: #f2e7d8;
  color: #35131d;
}
.story-section .display-title { color: #35131d; }
.story-section .display-title em { color: var(--wine-bright); }
.story-section .eyebrow { color: var(--wine); }
.story-copy > p:not(.eyebrow) { margin: 2rem 0 2.8rem; font-size: 1.05rem; line-height: 1.85; }
.story-beats { border-top: 1px solid rgba(53,19,29,.2); }
.story-beat { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid rgba(53,19,29,.2); }
.story-beat b { color: var(--wine-bright); font: 700 .78rem var(--sans); letter-spacing: .12em; }
.story-beat span { color: #63434b; font-size: .95rem; }
.story-beat strong { display: block; margin-bottom: .22rem; color: #35131d; font-size: 1rem; font-weight: 400; }
.story-photo { margin: 0; transform: rotate(1.4deg); }
.story-photo img { width: 100%; aspect-ratio: 4 / 3; border: .75rem solid #fffaf3; object-fit: cover; box-shadow: 0 2rem 5rem rgba(53,19,29,.18); }
.story-photo figcaption { padding-top: .9rem; color: #76575f; font-size: .85rem; font-style: italic; text-align: center; }

/* Details */
.details-section { position: relative; overflow: hidden; background: #13070b; }
.details-backdrop {
  position: absolute;
  inset: -3rem;
  opacity: .23;
  background: url("assets/hero-cathedral.jpg") center/cover no-repeat;
  filter: blur(9px) saturate(.65);
}
.details-section::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(84,18,38,.2), rgba(10,3,6,.9) 74%); }
.details-inner { position: relative; z-index: 1; text-align: center; }
.date-lockup { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 4vw, 3.6rem); margin: 3rem auto 2.2rem; }
.date-lockup span { width: 9rem; color: var(--gold-light); font: 700 .75rem/1.55 var(--sans); letter-spacing: .17em; text-transform: uppercase; }
.date-lockup strong { padding: .15em .35em; border-right: 1px solid var(--line); border-left: 1px solid var(--line); font-size: clamp(6rem, 13vw, 11rem); font-weight: 400; line-height: .8; }
.countdown { width: min(48rem, 100%); margin: 0 auto 3rem; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.countdown div { padding: 1.2rem .6rem; border-right: 1px solid var(--line); }
.countdown div:last-child { border: 0; }
.countdown strong { display: block; color: var(--gold-light); font-size: clamp(1.6rem, 4vw, 2.8rem); font-weight: 400; line-height: 1.2; }
.countdown span { font: 700 .62rem var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.event-card {
  width: min(63rem, 100%);
  margin: 0 auto;
  padding: 2.2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  border: 1px solid var(--line);
  background: rgba(37,10,20,.76);
  text-align: left;
  backdrop-filter: blur(12px);
}
.event-icon { width: 4.6rem; height: 4.6rem; display: grid; place-content: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-light); font-size: 1.4rem; }
.event-card .eyebrow { margin-bottom: .4rem; }
.event-card h3 { margin: 0 0 .5rem; font-size: clamp(1.55rem, 3vw, 2.35rem); font-weight: 400; line-height: 1.2; }
.event-card p:last-child { margin: 0; color: var(--ivory-soft); }
.event-actions { display: flex; flex-direction: column; gap: .7rem; }
.dress-note { width: min(43rem, 100%); margin: 2.2rem auto 0; color: #c9b7a7; font-size: .92rem; }
.dress-note span { display: block; margin-bottom: .25rem; color: var(--gold-light); font-style: italic; }

/* Love notes */
.promises-section { text-align: center; background: linear-gradient(180deg, #f4e9db, #e8d6c3); color: #35131d; }
.promises-section .eyebrow { color: var(--wine); }
.promises-section .display-title { color: #35131d; }
.promises-section .display-title em { color: var(--wine-bright); }
.section-intro { margin: 1.8rem auto 3.3rem; color: #75535b; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; max-width: 72rem; margin: 0 auto; }
.promise-card {
  position: relative;
  min-height: 19rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(72,22,35,.26);
  color: var(--ivory);
  background: linear-gradient(145deg, #6b1830, #2f0c18);
  cursor: pointer;
  box-shadow: 0 1.2rem 2.7rem rgba(72,22,35,.14);
  perspective: 900px;
}
.promise-card::before { content: ""; position: absolute; inset: .65rem; border: 1px solid rgba(241,217,170,.26); pointer-events: none; }
.promise-front, .promise-back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  transition: opacity .55s ease, transform .55s ease;
  backface-visibility: hidden;
}
.promise-front i { width: 3.3rem; height: 3.3rem; display: grid; place-content: center; margin-bottom: 1.6rem; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-light); font: normal .72rem var(--sans); }
.promise-front b { font-size: 1.35rem; font-weight: 400; }
.promise-front small { margin-top: .7rem; color: #dfc7bf; font: .64rem var(--sans); letter-spacing: .17em; text-transform: uppercase; }
.promise-back { opacity: 0; color: var(--gold-light); font-size: 1.35rem; font-style: italic; line-height: 1.55; transform: rotateY(180deg); }
.promise-card.is-open .promise-front { opacity: 0; transform: rotateY(-180deg); }
.promise-card.is-open .promise-back { opacity: 1; transform: rotateY(0); }

/* Gallery */
.gallery-section { background: #13070b; }
.gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 3rem; margin-bottom: 3.5rem; }
.gallery-heading > p { max-width: 24rem; margin: 0; color: var(--ivory-soft); }
.gallery-grid { display: grid; grid-template-columns: 1.3fr .72fr; grid-template-rows: 23rem 23rem; gap: 1rem; }
.gallery-item { position: relative; padding: 0; overflow: hidden; border: 0; color: var(--ivory); background: #1d0b11; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .75s cubic-bezier(.18,.8,.24,1), filter .5s ease; }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16,5,9,.76), transparent 50%); }
.gallery-item span { position: absolute; left: 1.35rem; bottom: 1.1rem; z-index: 1; font: 700 .66rem var(--sans); letter-spacing: .17em; text-transform: uppercase; }
.gallery-item:hover img { filter: saturate(1.06); transform: scale(1.04); }
.gallery-wide { grid-row: 1 / 3; }
.gallery-tall img { object-position: center 27%; }
.gallery-square img { object-position: center 35%; }

/* RSVP & wishes */
.wishes-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
  background:
    radial-gradient(circle at 100% 0, rgba(126,35,61,.28), transparent 30rem),
    linear-gradient(135deg, #2a0b15, #13070b 62%);
}
.wishes-copy { position: sticky; top: 6rem; }
.wishes-copy > p:not(.eyebrow) { max-width: 33rem; margin: 2rem 0; color: var(--ivory-soft); line-height: 1.85; }
.wish-quote { margin-top: 2.5rem; padding: 1.4rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--gold-light); font-size: 1.3rem; font-style: italic; }
.wish-panel { padding: clamp(1.4rem, 4vw, 2.5rem); border: 1px solid var(--line); background: rgba(11,3,6,.34); }
.wish-panel form { display: grid; gap: 1.15rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.wish-panel label { display: grid; gap: .45rem; color: var(--gold-light); font: 700 .68rem var(--sans); letter-spacing: .13em; text-transform: uppercase; }
.wish-panel input, .wish-panel select, .wish-panel textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ivory);
  background: rgba(255,255,255,.035);
  padding: .85rem .8rem;
  font: 400 1rem/1.45 var(--serif);
  letter-spacing: 0;
  text-transform: none;
}
.wish-panel textarea { min-height: 8rem; resize: vertical; }
.wish-panel input::placeholder, .wish-panel textarea::placeholder { color: #997e83; }
.wish-panel select option { color: #201015; background: #f7efe5; }
.submit-love { width: 100%; margin-top: .35rem; }
.honeypot { position: absolute !important; left: -9999px !important; }
.form-status { min-height: 1.5rem; margin: 0; color: #d9c5b3; font-size: .85rem; text-align: center; }
.wish-wall { grid-column: 1 / -1; padding-top: 1rem; }
.wish-wall-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.wish-wall-heading .eyebrow { margin: 0; }
.wish-wall-heading > span { color: #a88e85; font: .72rem var(--sans); letter-spacing: .08em; }
.wish-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.wish-card { min-height: 12rem; padding: 1.4rem; display: flex; flex-direction: column; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.wish-card > span { color: var(--gold); font: 700 .62rem var(--sans); letter-spacing: .13em; text-transform: uppercase; }
.wish-card blockquote { flex: 1; margin: 1rem 0; color: var(--ivory-soft); font-size: 1rem; font-style: italic; line-height: 1.65; }
.wish-card footer { padding: 0; display: flex; justify-content: space-between; gap: .7rem; color: #a98f88; background: none; font: .67rem var(--sans); }
.empty-wishes { grid-column: 1 / -1; margin: 1rem 0 0; color: #ac9289; font-style: italic; text-align: center; }

/* Closing */
.closing-section { position: relative; min-height: 95svh; display: grid; place-items: center; overflow: hidden; text-align: center; }
.closing-section > img, .closing-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.closing-section > img { object-fit: cover; object-position: center 28%; }
.closing-shade { background: linear-gradient(180deg, rgba(12,4,7,.26), rgba(15,5,8,.8)), radial-gradient(circle at center, transparent, rgba(9,2,5,.45)); }
.closing-copy { position: relative; z-index: 1; width: min(60rem, 90%); }
.closing-monogram { width: 6.5rem; height: 6.5rem; display: grid; place-content: center; margin: 0 auto 2.2rem; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-light); font-size: 1.5rem; letter-spacing: .08em; }
.closing-monogram i { font-family: var(--script); font-weight: 400; }
.closing-copy p { margin: 0 0 1rem; color: var(--gold-light); font: 700 .72rem var(--sans); letter-spacing: .19em; text-transform: uppercase; }
.closing-copy h2 { margin: 0; font-size: clamp(3rem, 7vw, 7rem); font-weight: 400; line-height: .95; text-shadow: 0 .5rem 2rem rgba(0,0,0,.4); }
.closing-copy h2 em { color: var(--gold-light); font-family: var(--script); font-weight: 400; }
.closing-copy > span { display: block; margin-top: 2.1rem; font: 700 .75rem var(--sans); letter-spacing: .26em; }

footer {
  padding: 3rem clamp(1.3rem, 6vw, 6rem) 7rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  color: #af9790;
  background: #0c0306;
  font: .78rem var(--sans);
}
.footer-monogram { color: var(--gold-light); font-family: var(--serif); font-size: 1.3rem; }
footer p { margin: 0; }
footer button { border: 0; color: var(--gold-light); background: none; cursor: pointer; font: inherit; }

/* Lightbox and feedback */
.lightbox {
  width: min(70rem, 92vw);
  max-height: 92vh;
  padding: 0;
  overflow: visible;
  border: 1px solid var(--line);
  color: var(--ivory);
  background: #0d0407;
  box-shadow: 0 2rem 7rem rgba(0,0,0,.7);
}
.lightbox::backdrop { background: rgba(7,1,3,.9); backdrop-filter: blur(10px); }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; }
.lightbox p { margin: 0; padding: 1rem 4rem 1.1rem 1.2rem; color: var(--gold-light); font-style: italic; }
.lightbox-close { position: absolute; top: .7rem; right: .7rem; z-index: 1; width: 2.5rem; height: 2.5rem; border: 1px solid var(--line); border-radius: 50%; color: #fff; background: rgba(15,5,8,.7); cursor: pointer; font-size: 1.5rem; line-height: 1; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 6.2rem;
  z-index: 80;
  max-width: min(28rem, 88vw);
  padding: .85rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--ivory);
  background: rgba(31,8,15,.92);
  box-shadow: 0 1rem 2.5rem rgba(0,0,0,.35);
  font: .82rem var(--sans);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 1rem);
  transition: opacity .3s ease, transform .3s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Reveal motion */
.reveal { opacity: 0; transform: translateY(2rem); transition: opacity .85s ease, transform .85s cubic-bezier(.2,.72,.25,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes load { from { transform: translateX(-120%); } to { transform: translateX(225%); } }
@keyframes coverDrift { from { transform: scale(1.04); } to { transform: scale(1.09) translateY(-1%); } }
@keyframes equalize { to { height: 100%; } }
@keyframes floatHeart {
  0% { opacity: 0; transform: translate(-50%, 0) scale(.5) rotate(0); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--drift)), -9rem) scale(1.3) rotate(var(--spin)); }
}

@media (max-width: 960px) {
  .portrait-section { grid-template-columns: 1fr; min-height: auto; }
  .portrait-image { min-height: 78svh; }
  .portrait-copy { padding-top: 5.5rem; padding-bottom: 5.5rem; }
  .story-section { grid-template-columns: 1fr; }
  .story-photo { grid-row: 1; }
  .event-card { grid-template-columns: auto 1fr; }
  .event-actions { grid-column: 1 / -1; flex-direction: row; }
  .wishes-section { grid-template-columns: 1fr; }
  .wishes-copy { position: static; }
  .wish-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .section-pad { padding: 5.5rem 1.25rem; }
  .display-title { font-size: clamp(3.2rem, 15vw, 5.3rem); }
  .cover-card { padding: 2.15rem 1.2rem 1.8rem; }
  .cover-photo { background-position: 58% center; }
  .music-toggle { top: .8rem; right: .8rem; }
  .music-label { display: none; }
  .floating-nav { bottom: .75rem; width: calc(100% - 1.25rem); justify-content: space-between; }
  .floating-nav a { min-width: 0; flex: 1; flex-direction: column; gap: .05rem; padding: .35rem .4rem; }
  .floating-nav em { font-size: .56rem; }
  .hero > img { object-position: 66% center; }
  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(15,5,8,.94) 0, rgba(15,5,8,.15) 72%),
      linear-gradient(90deg, rgba(15,5,8,.38), transparent);
  }
  .hero-copy { width: 100%; padding: 8rem 1.25rem 7rem; }
  .hero h2 { font-size: clamp(3.7rem, 20vw, 6rem); }
  .hero h2 span:last-child { margin-left: .3em; }
  .hero h2 i { margin-left: 1em; }
  .hero-meta { gap: .45rem; }
  .scroll-cue { display: none; }
  .invitation-note blockquote { font-size: 1.35rem; }
  .portrait-image { min-height: 66svh; }
  .couple-grid { grid-template-columns: 1fr; }
  .story-photo { transform: none; }
  .date-lockup { gap: .7rem; }
  .date-lockup strong { font-size: 5.7rem; }
  .date-lockup span { width: 6.6rem; font-size: .62rem; }
  .countdown { grid-template-columns: repeat(2, 1fr); }
  .countdown div:nth-child(2) { border-right: 0; }
  .countdown div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .event-card { grid-template-columns: 1fr; padding: 1.5rem; text-align: center; }
  .event-icon { margin: 0 auto; }
  .event-actions { grid-column: auto; flex-direction: column; }
  .promise-grid { grid-template-columns: 1fr; }
  .promise-card { min-height: 15rem; }
  .gallery-heading { display: block; }
  .gallery-heading > p { margin-top: 1.6rem; }
  .gallery-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: none; }
  .gallery-item { min-height: 20rem; }
  .gallery-wide { grid-row: auto; }
  .gallery-tall { min-height: 30rem; }
  .field-row { grid-template-columns: 1fr; }
  .wish-list { grid-template-columns: 1fr; }
  .closing-section { min-height: 82svh; }
  .closing-section > img { object-position: 53% 25%; }
  footer { grid-template-columns: 1fr; gap: .8rem; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
