:root {
  --burgundy: #6b1e2e;
  --burgundy-deep: #48141f;
  --brown: #8f6a4a;
  --rose: #d4a5a5;
  --blush: #f4e8e4;
  --cream: #faf5f0;
  --ink: #3a2828;
  --muted: #7a6663;
  --line: rgba(107, 30, 46, 0.18);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

.wrap { width: min(1080px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(680px, 100% - 48px); }
.center { text-align: center; }

/* ---------- Type ---------- */
.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brown);
  margin: 0 0 14px;
}
.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin: 0 0 16px;
}
.lede { color: var(--muted); max-width: 46ch; margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: 400 0.72rem/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 30px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-light { background: #fff; color: var(--burgundy); }
.btn-light:hover { background: var(--blush); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn-dark { background: var(--burgundy); color: #fff; }
.btn-dark:hover { background: var(--burgundy-deep); }
.btn-outline { border-color: var(--burgundy); color: var(--burgundy); background: transparent; }
.btn-outline:hover { background: var(--burgundy); color: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: #fff;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.nav.scrolled, .nav.open {
  background: rgba(250, 245, 240, 0.94);
  backdrop-filter: blur(10px);
  color: var(--burgundy);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(20px, 4vw, 56px);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.nav-left { justify-content: flex-start; }
.nav-right { justify-content: flex-end; }
.nav-links a { text-decoration: none; opacity: 0.9; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

.brand { text-decoration: none; display: grid; place-items: center; height: 72px; }
.brand-logo { height: 54px; width: auto; }
.brand-logo--dark { display: none; }
.nav.scrolled .brand-logo--light, .nav.open .brand-logo--light { display: none; }
.nav.scrolled .brand-logo--dark, .nav.open .brand-logo--dark { display: block; }

.menu-btn { display: none; }
.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 15%, rgba(212, 165, 165, 0.35), transparent 55%),
    linear-gradient(140deg, #3a0f19, #5e1a29 60%, #7a2c3b);
}
/* Portrait photo on the right, its left edge fading into the burgundy */
.hero-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(48%, 760px);
  z-index: 0;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32%);
  mask-image: linear-gradient(90deg, transparent 0, #000 32%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 24px 190px;
  width: 54%;
  margin-right: auto;
}
.eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin: 0 0 22px;
  opacity: 0.92;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 22px;
}
.hero-title .amp { font-style: italic; text-transform: none; font-size: 0.8em; padding: 0 0.08em; opacity: 0.9; }
.hero-date {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}
.hero-place { font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; margin: 6px 0 34px; opacity: 0.85; }

.countdown { display: flex; justify-content: center; gap: clamp(14px, 3.5vw, 36px); margin-bottom: 36px; }
.countdown div { min-width: 58px; display: grid; gap: 2px; }
.countdown b { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 6vw, 3.1rem); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.85; }
.married { font-family: var(--serif); font-size: 1.6rem; font-style: italic; margin: 0 0 36px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.arch {
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: -2px;
  height: 120px;
  background: var(--cream);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 1;
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.blush { background: var(--blush); }
.section-head { text-align: center; margin-bottom: clamp(36px, 6vw, 56px); }

.invitation { padding-top: 40px; }
.flourish { width: 96px; margin: 0 auto 28px; color: var(--brown); display: block; }
.families {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  line-height: 1.35;
  margin: 0 0 24px;
  color: var(--burgundy);
}
.families .and, .couple .and {
  display: block;
  font-style: italic;
  font-size: 0.8em;
  color: var(--brown);
}
.request { color: var(--muted); letter-spacing: 0.06em; margin: 0 0 14px; }
.couple {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--burgundy);
  margin: 10px 0 0;
  line-height: 1.1;
}
.couple .and { display: inline; padding: 0 0.15em; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 48px);
  text-align: center;
}
.card-label { font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--brown); margin: 0 0 12px; }
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; line-height: 1.2; color: var(--burgundy); margin: 0 0 18px; }
.card-time { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 14px; }
.card-venue { font-weight: 500; letter-spacing: 0.04em; margin: 0; }
.card-address { color: var(--muted); margin: 4px 0 22px; }
.link { display: inline-block; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--burgundy); text-decoration: none; border-bottom: 1px solid var(--rose); padding: 12px 0 4px; }
.link:hover { border-color: var(--burgundy); }

.cal { text-align: center; margin-top: 48px; }
.cal p { color: var(--muted); margin: 0 0 16px; }
.cal-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.story-text { text-align: left; font-size: 1.05rem; }
.story-text p { margin: 0 0 1.2em; }

.gallery { columns: 3 260px; column-gap: 14px; }
.gallery button { display: block; width: 100%; padding: 0; margin: 0 0 14px; border: 0; background: none; cursor: zoom-in; break-inside: avoid; }
.gallery img { width: 100%; height: auto; transition: opacity 0.3s; }
.gallery button:hover img { opacity: 0.88; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(30, 8, 14, 0.88); }
.lightbox img { max-height: 90vh; width: auto; margin: auto; }
.lb-close { position: fixed; top: 14px; right: 20px; font-size: 2.4rem; line-height: 1; background: none; border: 0; color: #fff; cursor: pointer; }

.swatches { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(20px, 5vw, 44px); }
.swatches li { display: grid; gap: 12px; justify-items: center; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; }
.swatches span { width: 78px; height: 78px; border-radius: 50%; background: var(--c); border: 1px solid var(--line); box-shadow: 0 8px 20px -10px rgba(58, 14, 24, 0.45); }

/* ---------- RSVP ---------- */
.rsvp { background: linear-gradient(180deg, var(--cream), var(--blush)); }
.form { background: #fff; border: 1px solid var(--line); padding: clamp(24px, 4vw, 44px); display: grid; gap: 20px; }
.form label, .form legend { display: grid; gap: 8px; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--burgundy); }
.form small { text-transform: none; letter-spacing: 0.02em; color: var(--muted); font-size: 0.78rem; }
.form input[type="text"], .form select, .form textarea {
  font: 300 1rem var(--sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 14px 16px;
  width: 100%;
  border-radius: 0;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--burgundy); }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.form legend { padding: 0; margin-bottom: 4px; }
.form .choice { display: flex; align-items: center; gap: 12px; text-transform: none; letter-spacing: 0.02em; font-size: 1rem; color: var(--ink); padding: 12px 16px; border: 1px solid var(--line); background: var(--cream); cursor: pointer; }
.form .choice:has(input:checked) { border-color: var(--burgundy); background: #fbeeee; }
.form input[type="radio"] { accent-color: var(--burgundy); width: 18px; height: 18px; }
.form .error { border-color: #b3261e !important; }
.form-note { margin: 0; min-height: 1.4em; font-size: 0.9rem; text-align: center; color: var(--muted); }
.form-note.ok { color: #2e6b3f; }
.form-note.bad { color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.accounts { display: grid; gap: 14px; margin-top: 28px; }
.account { background: var(--cream); border: 1px solid var(--line); padding: 20px; display: grid; gap: 4px; }
.account b { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; letter-spacing: 0.08em; color: var(--burgundy); }
.account button { justify-self: center; margin-top: 8px; }

/* ---------- Footer ---------- */
.footer { background: var(--burgundy-deep); color: #f0dede; text-align: center; padding: 64px 24px 48px; }
.footer-logo { width: min(300px, 70%); height: auto; margin: 0 auto 24px; }
.footer-date { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.7; margin: 0; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2) { transition-delay: 0.12s; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: 1fr auto 1fr; }
  .brand { grid-column: 2; }
  .menu-btn {
    grid-column: 3;
    justify-self: end;
    display: grid;
    gap: 7px;
    width: 44px;
    height: 44px;
    place-content: center;
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
  }
  .menu-btn span { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease); }
  .nav.open .menu-btn span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav.open .menu-btn span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .mobile-menu {
    display: grid;
    padding: 8px 24px 28px;
    text-align: center;
    border-top: 1px solid var(--line);
  }
  .mobile-menu[hidden] { display: none !important; }
  .mobile-menu a { text-decoration: none; padding: 16px 0; font-size: 0.8rem; letter-spacing: 0.24em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
  .cards { grid-template-columns: 1fr; }
  /* phone: photo on top fading into the burgundy, text underneath */
  .hero { display: block; min-height: 0; }
  .hero-photo { position: relative; inset: auto; width: 100%; height: min(72svh, 620px); }
  .hero-photo img {
    object-position: 50% 15%;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
  .hero-content { width: 100%; margin: -90px 0 0; padding: 0 24px 130px; }
  .hero-title { font-size: clamp(2.8rem, 13vw, 4.4rem); }
  .arch { height: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ============================================================
   Motion
   Opening curtain, letter-by-letter titles, photo settle, colour-block wipes.
   Only transform and opacity are animated. All of it is switched off
   under prefers-reduced-motion (see bottom of this block).
   ============================================================ */
.hero { --base: 0.9s; }            /* when the hero content starts, after the curtain */
.no-curtain .hero { --base: 0s; }

/* Curtain: burgundy block lifts first, dusty-rose block trails it */
.curtain { display: none; position: fixed; inset: 0; z-index: 100; place-items: center; background: var(--burgundy-deep); }
.curtain img { height: 110px; width: auto; animation: logoIn 0.6s var(--ease) 0.1s both; }
.js .curtain { display: grid; animation: curtainUp 1.4s cubic-bezier(0.76, 0, 0.24, 1) forwards; }
.js .curtain--rose { z-index: 99; background: var(--rose); animation-delay: 0.12s; }
.no-curtain .curtain { display: none !important; }
@keyframes curtainUp { 0%, 40% { transform: none; } 100% { transform: translateY(-101%); } }
@keyframes logoIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }

/* Hero photo eases in from slightly zoomed */
.js .hero-photo img { animation: settle 2.8s var(--ease) 0.2s both; }
@keyframes settle { from { transform: scale(1.14); } to { transform: scale(1); } }

/* Letters: rise, overshoot a touch, settle */
.word { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; opacity: 0; will-change: transform; }
.hero-title .ch { animation: letterIn 0.95s var(--ease) forwards; animation-delay: calc(var(--base) + 0.15s + var(--i) * 55ms); }
.reveal.in .display .ch { animation: letterIn 0.85s var(--ease) forwards; animation-delay: calc(0.12s + var(--i) * 28ms); }
@keyframes letterIn {
  0%   { opacity: 0; transform: translateY(0.6em) rotate(7deg); }
  60%  { opacity: 1; transform: translateY(-0.06em) rotate(-1.5deg); }
  100% { opacity: 1; transform: none; }
}

/* Rest of the hero rises in once the title is under way */
.js .hero-content > :not(.hero-title) { opacity: 0; animation: rise 0.9s var(--ease) forwards; animation-delay: calc(var(--base) + 1.4s); }
.js .hero-content > .eyebrow { animation-delay: var(--base); }
.js .hero-content > .hero-date { animation-delay: calc(var(--base) + 0.75s); }
.js .hero-content > .hero-place { animation-delay: calc(var(--base) + 0.9s); }
.js .hero-content > .countdown, .js .hero-content > .married { animation-delay: calc(var(--base) + 1.1s); }
.js .hero-content > .hero-actions { animation-delay: calc(var(--base) + 1.3s); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Gallery: a burgundy block slides across each photo as it scrolls in */
.js .wipe { position: relative; overflow: hidden; }
.js .wipe::after {
  content: ""; position: absolute; inset: 0; background: var(--burgundy);
  transition: transform 1s var(--ease); transition-delay: calc(var(--k, 0) * 90ms);
}
.js .wipe.in::after { transform: translateX(101%); }
.js .wipe img { transform: scale(1.18); transition: transform 1.5s var(--ease), opacity 0.3s; transition-delay: calc(var(--k, 0) * 90ms), 0s; }
.js .wipe.in img { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .curtain { display: none !important; }
  .js .hero-photo img, .js .hero-content > *, .ch { animation: none !important; opacity: 1 !important; transform: none !important; }
  .js .wipe::after { display: none; }
  .js .wipe img { transform: none; transition: none; }
}

/* ============================================================
   Goodwill messages
   ============================================================ */
.wishes { background: var(--cream); }
.wish-board { position: relative; }
.wish-empty { text-align: center; color: var(--muted); margin: 0; }
.link-btn { background: none; border: 0; border-bottom: 1px solid var(--rose); cursor: pointer; font-family: var(--sans); font-weight: 300; }

/* flip card: one message at a time, turning over to the next */
.flip { --flip-h: 320px; max-width: 640px; height: var(--flip-h); margin: 0 auto; perspective: 1600px; }
.flip-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1s var(--ease); }
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip.no-anim .flip-inner { transition: none; }
.face {
  position: absolute; inset: 0; margin: 0; padding: 40px clamp(24px, 6vw, 56px);
  display: grid; align-content: center; justify-items: center; gap: 18px; text-align: center;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 24px 50px -28px rgba(58, 14, 24, 0.45);
}
.face-b { transform: rotateY(180deg); background: var(--burgundy); color: #fff; border-color: var(--burgundy); }
.face blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.1rem, 2.4vw, 1.4rem); line-height: 1.45; overflow-wrap: anywhere; }
.face blockquote::before { content: "\201C"; display: block; font-size: 3.2rem; line-height: 0.6; color: var(--rose); margin-bottom: 8px; }
.face figcaption { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brown); }
.face-b figcaption { color: var(--rose); }

.wish-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 26px; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--burgundy); font-size: 1.1rem; cursor: pointer; transition: background 0.2s, color 0.2s; }
.icon-btn:hover { background: var(--burgundy); color: #fff; }
#wishAll { margin-top: 22px; }

/* scroll mode: cards glide across by themselves, pausing on hover */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: glide var(--dur, 40s) linear infinite; }
.marquee:hover .marquee-track, .wish-board:focus-within .marquee-track { animation-play-state: paused; }
.mcard { flex: 0 0 min(320px, 78vw); margin: 0; padding: 28px 26px; display: grid; gap: 14px; align-content: start; background: #fff; border: 1px solid var(--line); }
.mcard:nth-child(even) { background: var(--blush); }
.mcard blockquote { margin: 0; font-family: var(--serif); font-size: 1.2rem; line-height: 1.4; overflow-wrap: anywhere; }
.mcard figcaption { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brown); }
@keyframes glide { to { transform: translateX(-50%); } }

.wishes .form { max-width: 640px; margin: 56px auto 0; }
.wishes .form textarea { resize: vertical; min-height: 110px; }

/* "read all" viewer */
.wishlist { border: 0; padding: 0; width: min(560px, 92vw); max-height: 82vh; background: var(--cream); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5); }
.wishlist::backdrop { background: rgba(30, 8, 14, 0.8); }
.wishlist h3 { margin: 0; padding: 26px 56px 18px 28px; font-family: var(--serif); font-weight: 500; font-size: 1.7rem; color: var(--burgundy); position: sticky; top: 0; background: var(--cream); border-bottom: 1px solid var(--line); }
.wishlist ul { list-style: none; margin: 0; padding: 8px 28px 28px; }
.wishlist li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.wishlist li p { margin: 0 0 6px; font-family: var(--serif); font-size: 1.15rem; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-line; }
.wishlist li span { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brown); }
.wl-close { position: absolute; top: 14px; right: 16px; z-index: 2; width: 40px; height: 40px; font-size: 1.8rem; line-height: 1; background: none; border: 0; color: var(--burgundy); cursor: pointer; }

.accounts .btn { justify-self: center; }

@media (max-width: 860px) { .flip { --flip-h: 400px; } }

@media (prefers-reduced-motion: reduce) {
  .flip-inner { transition: none; }
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; }
}

/* ---------- Goodwill messages: zero-gravity floating cards ---------- */
.float-stage {
  --sh: 560px; --cw: 250px;
  position: relative; height: var(--sh); overflow: hidden;
  perspective: 1100px; perspective-origin: 50% 40%;
  background: radial-gradient(ellipse at 50% 25%, #5b1b2b 0%, #2b0b13 55%, #16050a 100%);
}
.float-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 18% 82%, rgba(212, 165, 165, 0.2), transparent 38%),
    radial-gradient(circle at 86% 18%, rgba(143, 106, 74, 0.22), transparent 38%);
}
.fc {
  position: absolute; top: 0; left: calc((100% - var(--cw)) * var(--p)); width: var(--cw); margin: 0;
  transform-style: preserve-3d; will-change: transform, opacity;
  animation: zg var(--dur) linear infinite; animation-delay: calc(var(--n) * -1 * var(--dur) / 6);
  animation-play-state: paused;
}
.fc-inner {
  display: grid; gap: 12px; padding: 22px; border-radius: 8px; background: #fff; color: var(--ink);
  box-shadow: 0 34px 60px -22px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  animation: sway 7s ease-in-out infinite alternate; animation-delay: calc(var(--n) * -1.3s);
  animation-play-state: paused;
}
.fc:nth-child(3n+2) .fc-inner { background: var(--burgundy); color: #fff; }
.fc:nth-child(3n) .fc-inner { background: var(--rose); color: var(--burgundy-deep); }
.fc blockquote {
  margin: 0; font-family: var(--serif); font-size: 1.08rem; line-height: 1.38; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; line-clamp: 7; overflow: hidden;
}
.fc figcaption { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.8; }

/* move only while on screen; hold still under the pointer so a message can be read */
.float-stage.live .fc, .float-stage.live .fc-inner { animation-play-state: running; }
.float-stage:hover .fc, .float-stage:hover .fc-inner { animation-play-state: paused; }

/* each slot: where it sits across the stage, how deep, how it tilts, how long a drift takes */
.fc:nth-child(1) { --p: 0.02; --z: 40px;   --dx: 40px;  --rx0: 18deg;  --ry0: -24deg; --rz0: -9deg;  --rx1: -12deg; --ry1: 18deg;  --rz1: 8deg;   --dur: 32s; }
.fc:nth-child(2) { --p: 0.22; --z: -120px; --dx: -30px; --rx0: -14deg; --ry0: 20deg;  --rz0: 7deg;   --rx1: 16deg;  --ry1: -22deg; --rz1: -10deg; --dur: 38s; }
.fc:nth-child(3) { --p: 0.42; --z: 90px;   --dx: 25px;  --rx0: 12deg;  --ry0: 26deg;  --rz0: -6deg;  --rx1: -16deg; --ry1: -18deg; --rz1: 11deg;  --dur: 30s; }
.fc:nth-child(4) { --p: 0.6;  --z: -60px;  --dx: -45px; --rx0: -18deg; --ry0: -20deg; --rz0: 10deg;  --rx1: 12deg;  --ry1: 24deg;  --rz1: -7deg;  --dur: 36s; }
.fc:nth-child(5) { --p: 0.8;  --z: 60px;   --dx: 30px;  --rx0: 16deg;  --ry0: 18deg;  --rz0: -11deg; --rx1: -14deg; --ry1: -26deg; --rz1: 9deg;   --dur: 34s; }
.fc:nth-child(6) { --p: 0.98; --z: -160px; --dx: -35px; --rx0: -12deg; --ry0: -26deg; --rz0: 8deg;   --rx1: 18deg;  --ry1: 16deg;  --rz1: -12deg; --dur: 40s; }

@keyframes zg {
  0%        { transform: translate3d(0, calc(var(--sh) + 60px), var(--z)) rotateX(var(--rx0)) rotateY(var(--ry0)) rotateZ(var(--rz0)); opacity: 0; }
  8%, 92%   { opacity: 1; }
  100%      { transform: translate3d(var(--dx), -380px, var(--z)) rotateX(var(--rx1)) rotateY(var(--ry1)) rotateZ(var(--rz1)); opacity: 0; }
}
@keyframes sway { from { transform: translateY(-9px) rotate(-1.5deg); } to { transform: translateY(9px) rotate(1.5deg); } }

@media (max-width: 860px) {
  .float-stage { --sh: 520px; --cw: 216px; }
  .fc blockquote { font-size: 1rem; -webkit-line-clamp: 8; line-clamp: 8; }
}
@media (prefers-reduced-motion: reduce) {
  .float-stage { height: auto; display: grid; gap: 16px; padding: 24px; perspective: none; }
  .fc { position: relative; left: auto; width: auto; animation: none; opacity: 1; transform: none; }
  .fc-inner { animation: none; }
}
