:root {
  --ivory: #faf4ec;
  --ivory-2: #f3ead9;
  --cream: #fbf7f0;
  --ink: #36302a;
  --ink-soft: #6f655b;
  --gold: #bd9a5f;
  --gold-deep: #a07e44;
  --blush: #e8c9c1;
  --blush-deep: #d9a99e;
  --line: rgba(54, 48, 42, 0.14);
  --card: rgba(255, 253, 249, 0.62);
  --shadow: 0 30px 80px -30px rgba(86, 64, 33, 0.35);
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Great Vibes", cursive;
  --sans: "Jost", system-ui, sans-serif;
}

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

[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- Ambient background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  /* Flat ivory so the opaque WebGL couple-plane matches the page exactly
     (no visible video rectangle) on every breakpoint. */
  background: var(--ivory);
  overflow: hidden;
}
/* Glows disabled: any non-uniform tint would reveal the plane rectangle. */
.bg__glow { display: none; }

.petals { position: absolute; inset: 0; pointer-events: none; }
.petal {
  position: absolute;
  top: -8vh;
  color: var(--blush-deep);
  opacity: 0;
  will-change: transform, opacity;
}
.petal svg { display: block; filter: drop-shadow(0 4px 6px rgba(160,126,68,0.12)); }
.petal--blush { color: var(--blush-deep); }
.petal--gold { color: var(--gold); }
.petal--ivory { color: #efe2cf; }

/* ---------- Stage layout ---------- */
.stage {
  position: relative;
  z-index: 1;
  min-height: 100svh;
}

/* Animation stage (stacked on mobile; full-bleed behind card on desktop) */
.stage__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54svh;
}
.media__canvas {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}
#scene { display: block; width: 100%; height: 100%; }

/* soft floor shadow so figures feel grounded */
.media__ground {
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  width: min(52%, 300px);
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(86,64,33,0.2), rgba(86,64,33,0) 70%);
  filter: blur(6px);
  pointer-events: none;
}

/* Cursor-interactive falling hearts (above the couple, below the card) */
.hearts-fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Custom heart cursor + trailing hearts (added on fine pointers via JS) */
body.heart-cursor,
body.heart-cursor * { cursor: none !important; }
.cursor-heart {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  pointer-events: none;
  color: var(--blush-deep);
}
.cursor-heart__hover,
.cursor-heart__beat { display: block; transform-origin: 50% 50%; }
.cursor-heart svg { display: block; filter: drop-shadow(0 3px 6px rgba(160,126,68,0.45)); }
.cursor-trail-heart {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
}
.cursor-trail-heart svg { display: block; filter: drop-shadow(0 2px 4px rgba(160,126,68,0.3)); }

/* Invitation column */
.stage__invite {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 2.5vw, 40px);
}

.invite {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.invite::-webkit-scrollbar { width: 6px; }
.invite::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
/* Decorative inset frame lives on the in-flow inner element so it always wraps
   the full content (and scrolls with it) instead of slicing through the card. */
.invite__inner {
  margin: 9px;
  padding: clamp(18px, 2.2vh, 34px) clamp(20px, 2.8vw, 38px);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.invite__eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-size: clamp(10px, 1.1vw, 12px);
  color: var(--gold-deep);
  margin-bottom: clamp(4px, 0.8vh, 9px);
  text-align: center;
  text-indent: 0.42em; /* optical centring against trailing letter-spacing */
}
.invite__names {
  font-family: var(--script);
  font-weight: 400;
  line-height: 0.9;
  font-size: clamp(44px, 7.2vh, 80px);
  color: var(--ink);
  letter-spacing: 0.5px;
  text-align: center;
  /* Breathing room so the tall script swashes live inside the box — otherwise
     the write-in mask (which clips to the border-box) cuts off their tops.
     Negative margins keep the visual rhythm with the eyebrow / subtitle. */
  padding: 0.32em 0.18em 0.16em;
  margin: -0.28em 0 -0.12em;
}
.invite__names .amp { color: var(--gold); }
/* Handwriting "write-in": a soft-edged mask sweeps left→right, revealing the
   connected script as if it's being drawn. --w is animated by GSAP.
   The mask is oversized vertically (and no-repeat) so the tall Great Vibes
   swashes/ascenders are never clipped while the sweep is in progress. */
.invite__names.is-writing {
  /* Longhand (not the `mask` shorthand) so mask-size isn't reset to auto. The
     mask is a horizontal gradient scaled very tall, so vertical overflow from
     the script's swashes/ascenders is fully covered and never clipped. */
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 var(--w, 0%), transparent calc(var(--w, 0%) + 22%));
  mask-image: linear-gradient(90deg, #000 0, #000 var(--w, 0%), transparent calc(var(--w, 0%) + 22%));
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 1000%;
  mask-size: 100% 1000%;
  -webkit-mask-position: 0 50%;
  mask-position: 0 50%;
}
.invite__sub {
  font-family: var(--serif);
  font-weight: 500;
  /* Width-based so it scales down to stay on one line on any screen. */
  white-space: nowrap;
  font-size: clamp(11px, 3.1vw, 19px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: clamp(4px, 0.8vh, 8px);
  text-align: center;
  text-indent: 0.1em; /* optical centring against trailing letter-spacing */
}

.invite__rule {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  margin: clamp(8px, 1.4vh, 16px) 0 clamp(8px, 1.2vh, 14px);
}
.invite__rule span {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.invite__note {
  font-family: var(--serif);
  font-size: clamp(14px, 1.7vh, 17px);
  line-height: 1.42;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: clamp(10px, 1.6vh, 18px);
}
.invite__note em { color: var(--gold-deep); font-style: italic; }

/* "See the evening" trigger */
.invite__details {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  justify-content: center;
  margin-bottom: clamp(10px, 1.6vh, 16px);
  padding: clamp(9px, 1.2vh, 12px) 16px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: rgba(255,255,255,0.45);
  border: 1px solid var(--gold);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.invite__details svg { color: var(--gold); transition: transform 0.3s; }
.invite__details-arrow { margin-left: -2px; }
.invite__details:hover {
  background: linear-gradient(180deg, #fff8ec, #f7ead4);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -14px rgba(160,126,68,0.7);
}
.invite__details:hover .invite__details-arrow { transform: translateX(4px); }
.invite__details:hover svg:first-child { transform: rotate(72deg) scale(1.1); }

/* ---------- Form ---------- */
/* Countdown to the celebration */
.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(8px, 1.8vw, 14px);
  margin: clamp(6px, 1.2vh, 12px) 0 clamp(10px, 1.6vh, 16px);
}
.cd__unit { display: flex; flex-direction: column; align-items: center; min-width: 40px; }
.cd__num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(22px, 3.4vh, 30px);
  line-height: 1;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.cd__lab {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.55;
  margin-top: 5px;
}
.cd__sep {
  font-family: var(--serif);
  font-size: clamp(18px, 2.6vh, 24px);
  line-height: 1;
  color: var(--gold);
  opacity: 0.5;
}
.countdown--done {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 2vh, 18px);
  color: var(--gold-deep);
  letter-spacing: 0.02em;
}

.rsvp { display: grid; gap: clamp(8px, 1.4vh, 14px); }
.field { display: grid; gap: clamp(3px, 0.6vh, 6px); }
.field--row { grid-template-columns: 0.7fr 1.3fr; gap: 14px; }
@media (max-width: 420px) { .field--row { grid-template-columns: 1fr; } }

/* When a guest can't make it, Party size is irrelevant — collapse it and let
   "Dedicate a song" take the full row. */
.rsvp.is-declining #guests-field { display: none; }
.rsvp.is-declining .field--row { grid-template-columns: 1fr; }

.field label, .field__label {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field .opt { text-transform: none; letter-spacing: 0; opacity: 0.7; }

input, select, textarea {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(8px, 1.1vh, 12px) 14px;
  width: 100%;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
textarea { resize: vertical; min-height: 44px; line-height: 1.35; }
input::placeholder, textarea::placeholder { color: #b3a899; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fffdf9;
  box-shadow: 0 0 0 4px rgba(189,154,95,0.16);
}

.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 14px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--gold-deep);
  border-bottom: 1.5px solid var(--gold-deep);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}
select { appearance: none; -webkit-appearance: none; padding-right: 36px; }

.choice { display: flex; gap: 10px; }
.choice__opt {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 16px;
  text-align: center;
  padding: clamp(8px, 1.1vh, 11px) 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: none; letter-spacing: 0;
}
.choice__opt input { display: none; }
.choice__opt:has(input:checked) {
  border-color: var(--gold);
  background: linear-gradient(180deg, #fff8ec, #f7ead4);
  color: var(--gold-deep);
  box-shadow: 0 6px 18px -10px rgba(160,126,68,0.6);
}

.btn-rsvp {
  margin-top: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 14px;
  color: #fffdf8;
  padding: clamp(12px, 1.7vh, 16px) 22px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  background: linear-gradient(135deg, #c8a467 0%, #a87f3f 55%, #c8a467 100%);
  background-size: 200% 100%;
  box-shadow: 0 16px 34px -14px rgba(160,126,68,0.85), inset 0 1px 0 rgba(255,255,255,0.35);
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s, background-position 0.5s;
}
.btn-rsvp:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 22px 40px -16px rgba(160,126,68,0.95); }
.btn-rsvp:active { transform: translateY(0); }
.btn-rsvp__arrow { transition: transform 0.25s; }
.btn-rsvp:hover .btn-rsvp__arrow { transform: translateX(4px); }

.rsvp__fineprint {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 2px;
}

input.invalid, textarea.invalid { border-color: var(--blush-deep); box-shadow: 0 0 0 4px rgba(217,169,158,0.18); }

/* ---------- Success ---------- */
.thanks { text-align: center; padding: 14px 6px 6px; }
.thanks__seal {
  width: 72px; height: 72px; margin: 0 auto 14px;
  display: grid; place-items: center;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #c8a467, #a87f3f);
  box-shadow: 0 16px 34px -14px rgba(160,126,68,0.85);
}
.thanks__title {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 58px);
  color: var(--ink);
  line-height: 1;
  margin-bottom: 10px;
}
.thanks__msg {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 34ch; margin: 0 auto 18px;
}
.thanks__edit {
  font-family: var(--sans);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-deep);
  background: none; border: none; cursor: pointer;
  border-bottom: 1px solid var(--line); padding-bottom: 3px;
}

/* ---------- Controls ---------- */
.replay {
  position: absolute;
  left: 18px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(255,253,249,0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.replay:hover { color: var(--gold-deep); transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(160,126,68,0.6); }

.tap-to-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: none; border: none; cursor: pointer;
  color: var(--gold-deep);
}
.tap-to-play__ring {
  width: 92px; height: 92px; border-radius: 50%;
  border: 1px solid var(--gold);
  display: grid; place-items: center;
  position: relative;
  background: rgba(255,253,249,0.5);
  backdrop-filter: blur(6px);
}
.tap-to-play__ring::after {
  content: "";
  width: 0; height: 0;
  border-left: 20px solid var(--gold-deep);
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  margin-left: 6px;
}
.tap-to-play__label {
  position: absolute;
  bottom: 30%;
  font-family: var(--serif); font-style: italic; font-size: 18px;
  color: var(--ink-soft);
}

/* ---------- Responsive ---------- */
/* Desktop / landscape: full-bleed animation with the card floating in the centre. */
@media (min-width: 901px) {
  .stage { height: 100svh; overflow: hidden; }
  .stage__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    min-height: 0;
  }
  .media__ground { left: 22%; bottom: 7%; width: min(24%, 300px); }
  .stage__invite {
    position: relative;
    z-index: 2;
    height: 100svh;
    justify-content: center; /* horizontally centred invitation */
    padding: 0 clamp(20px, 3vw, 48px);
  }
  .invite {
    margin: 0;
    z-index: 3;
    box-shadow: 0 44px 96px -34px rgba(86, 64, 33, 0.5);
  }
}

/* Tablet / mobile: full-screen animation that slides off to the left as the
   invitation slides in from the right (driven by GSAP in main.js). */
@media (max-width: 900px) {
  .stage { height: 100svh; overflow: hidden; }
  .stage__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    min-height: 0;
  }
  .media__ground { left: 50%; bottom: 8%; width: min(56%, 260px); }
  .stage__invite {
    position: absolute;
    inset: 0;
    z-index: 2;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: clamp(18px, 7vw, 40px) 18px 44px;
  }
  .invite { margin: 0; max-height: none; overflow: visible; }
}

@media (max-width: 520px) {
  .invite { border-radius: 22px; }
  .choice { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .petal { display: none; }
  * { scroll-behavior: auto; }
}

/* ====================================================================
   Event details modal + interactive timeline
   ==================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 40px);
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 800px at 30% 20%, rgba(54,48,42,0.45), rgba(40,34,28,0.7));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
}
.modal__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(92svh, 840px);
  overflow: hidden;
  padding: 10px;
  background: linear-gradient(180deg, #fdfaf4 0%, #f8efe0 100%);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 24px;
  box-shadow: 0 50px 110px -30px rgba(40,28,12,0.7);
  opacity: 0;
}
/* The decorative frame lives on the scroll container so content is clipped at
   the frame and slides cleanly behind it — never crossing the line. */
.modal__scroll {
  max-height: min(calc(92svh - 20px), 820px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(26px, 4vw, 46px) clamp(22px, 3.4vw, 44px) clamp(22px, 3vw, 36px);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.modal__scroll::-webkit-scrollbar { width: 0; height: 0; display: none; }

.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  color: var(--ink-soft);
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s, background 0.2s;
  z-index: 2;
}
.modal__close:hover { color: var(--gold-deep); transform: rotate(90deg); background: #fff; }

.modal__eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-align: center;
}
.modal__date {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 4.4vw, 38px);
  text-align: center;
  color: var(--ink);
  letter-spacing: 0.01em;
  margin: 6px 0 14px;
}
.modal__date sup { font-size: 0.5em; vertical-align: super; color: var(--gold-deep); }
.modal__intro {
  font-family: var(--serif);
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.5;
  text-align: center;
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0 auto clamp(18px, 3vw, 28px);
}
.modal__intro em { color: var(--gold-deep); font-style: italic; }

/* Timeline */
.timeline {
  position: relative;
  list-style: none;
  margin: 0 0 22px;
  padding: 4px 0 4px 8px;
}
.timeline__rail {
  position: absolute;
  left: 25px; top: 14px; bottom: 26px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--blush-deep));
  transform: scaleY(0);
  transform-origin: top center;
  border-radius: 2px;
}
.tl {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: start;
  gap: 12px;
  padding: 10px 10px 10px 0;
  border-radius: 14px;
  transition: background 0.25s, transform 0.25s;
}
.tl + .tl { margin-top: 4px; }
.tl__dot {
  position: relative;
  z-index: 1;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #c8a467, #a87f3f);
  border-radius: 50%;
  box-shadow: 0 8px 18px -8px rgba(160,126,68,0.8), 0 0 0 5px rgba(250,244,236,0.9);
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s;
}
.tl__time {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 2px;
}
.tl__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink);
  line-height: 1.1;
}
.tl__desc {
  font-family: var(--serif);
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.4;
  color: var(--ink-soft);
  margin-top: 2px;
}
.tl__desc em { color: var(--gold-deep); font-style: italic; }
.tl:hover {
  background: rgba(255,255,255,0.55);
  transform: translateX(3px);
}
.tl:hover .tl__dot {
  transform: scale(1.14) rotate(-6deg);
  box-shadow: 0 12px 22px -8px rgba(160,126,68,0.95), 0 0 0 5px rgba(255,248,236,1);
}

/* Venue */
.venue {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 16px;
}
.venue__pin {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: var(--gold-deep);
  background: linear-gradient(180deg, #fff8ec, #f3e6cf);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(189,154,95,0.4);
}
.venue__label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 2px;
}
.venue__name {
  font-family: var(--serif);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.25;
  color: var(--ink);
}
.venue__addr {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.45;
  color: var(--ink);
  opacity: 0.78;
  margin-top: 3px;
}

.modal__cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 14px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: all 0.22s ease;
}
.btn-ghost svg { color: var(--gold-deep); }
.btn-ghost:hover {
  color: var(--gold-deep);
  border-color: var(--gold);
  background: linear-gradient(180deg, #fff8ec, #f7ead4);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -14px rgba(160,126,68,0.7);
}

.modal__notes {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}
.note-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.note-row__ic {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  color: var(--gold-deep);
  background: linear-gradient(180deg, #fff8ec, #f3e6cf);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(189,154,95,0.4);
}
.note-row__title {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 4px;
}
.note-row__text {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  opacity: 0.82;
}
.note-row__text a {
  color: var(--gold-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(189,154,95,0.5);
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.note-row__text a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.modal__secret {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
}

@media (max-width: 440px) {
  .modal__cta { grid-template-columns: 1fr; }
  .timeline { padding-left: 2px; }
}

/* ====================================================================
   Honeypot (hidden from real guests, visible to dumb bots)
   ==================================================================== */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ====================================================================
   Thanks state actions + well-wishes link
   ==================================================================== */
.thanks__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
}
.thanks__wishes { text-decoration: none; }

/* ====================================================================
   Ambient music toggle
   ==================================================================== */
.music-toggle {
  position: fixed;
  right: clamp(14px, 2vw, 26px);
  bottom: clamp(14px, 2vw, 26px);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px 9px 11px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(255, 253, 249, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  box-shadow: 0 14px 30px -18px rgba(86, 64, 33, 0.55);
  transition: color 0.2s, transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.music-toggle:hover {
  color: var(--gold-deep);
  transform: translateY(-1px);
  border-color: var(--gold);
  box-shadow: 0 18px 36px -18px rgba(160, 126, 68, 0.7);
}
.music-toggle__icon { display: grid; place-items: center; width: 22px; height: 22px; }
.music-toggle__heart { grid-area: 1 / 1; color: var(--blush-deep); will-change: transform, opacity; }
.music-toggle__bars {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5px;
  height: 16px;
  opacity: 0;
  will-change: opacity;
}
.music-toggle__bars i {
  display: block;
  width: 3px;
  height: 16px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  transform: scaleY(0.32);
  will-change: transform;
}

/* ====================================================================
   Post-event mode (thank-you + gallery after Aug 1)
   ==================================================================== */
.postevent {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow-y: auto;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(189, 154, 95, 0.16), transparent 60%),
    var(--ivory);
  display: grid;
  place-items: start center;
}
.postevent__inner {
  max-width: 920px;
  width: 100%;
  padding: clamp(40px, 8vh, 96px) clamp(20px, 5vw, 56px) 80px;
  text-align: center;
}
.postevent__eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.postevent__title {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(56px, 12vw, 120px);
  line-height: 1;
  color: var(--ink);
  margin-bottom: 18px;
}
.postevent__msg {
  font-family: var(--serif);
  font-size: clamp(17px, 2.4vw, 21px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 54ch;
  margin: 0 auto 36px;
}
.postevent__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.postevent__gallery .ge {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -34px rgba(86, 64, 33, 0.5);
  background: var(--cream);
}
.postevent__gallery .ge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}
.postevent__note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
}
.postevent__note a { color: var(--gold-deep); text-decoration: none; border-bottom: 1px solid var(--line); }
.postevent__note a:hover { color: var(--ink); border-color: var(--ink); }
