/* ==========================================================================
   MFLC · 25th Anniversary RSVP
   Brand: faceted red / sky / grey geometry · Georgia-style serif + geometric sans
   ========================================================================== */

@font-face { font-family: "Gelasio"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/gelasio.woff2") format("woff2"); }
@font-face { font-family: "Gelasio"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("/fonts/gelasio-italic.woff2") format("woff2"); }
@font-face { font-family: "Albert Sans"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/albert-sans.woff2") format("woff2"); }

:root {
  /* brand palette (sampled from the design deliverables) */
  --red: #E72529;
  --red-deep: #CD2027;
  --red-ink: #B8161D;      /* AA text on white */
  --sky: #44C4EA;
  --sky-ink: #0E7FA6;
  --grey: #A1A3A8;
  --grey-mid: #8A8C91;
  --mist: #E5E5E5;
  --paper: #FFFFFF;
  --paper-2: #F5F5F6;
  --ink: #171917;
  --ink-2: #4A4C50;
  --ink-3: #5E6066;

  --serif: "Gelasio", "Georgia Pro", Georgia, "Times New Roman", serif;
  --sans: "Albert Sans", "Articulat CF", "Helvetica Neue", sans-serif;

  --r-sm: 4px;
  --r-md: 10px;
  --shadow-card: 0 1px 0 rgba(23,25,23,.04), 0 30px 60px -20px rgba(80,10,12,.35), 0 18px 36px -18px rgba(0,0,0,.25);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(16px, 1.05vw + 10px, 18px);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.mflc { color: var(--ink); height: auto; }

.eyebrow {
  font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--red-ink); display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: #fff; }

/* ───────────── Buttons ───────────── */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: currentColor;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border-radius: 999px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer;
  font-family: var(--sans); font-weight: 650; font-size: 15px; letter-spacing: .02em;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .25s, color .25s;
  -webkit-tap-highlight-color: transparent; overflow: hidden; isolation: isolate;
}
.btn::after { /* light sweep */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--red { --bg: var(--red-deep); --fg: #fff; --bd: var(--red-deep); box-shadow: 0 10px 24px -10px rgba(205,32,39,.7); }
.btn--red:hover { --bg: var(--red-ink); box-shadow: 0 16px 30px -12px rgba(205,32,39,.75); }
.btn--white { --bg: #fff; --fg: var(--red-ink); --bd: #fff; }
.btn--ghost { --fg: var(--ink); --bd: rgba(23,25,23,.25); }
.btn--ghost:hover { --bd: var(--ink); }
.btn--lg { min-height: 56px; padding-inline: 34px; font-size: 16px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ───────────── Top bar ───────────── */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 64px;
  display: flex; align-items: center; justify-content: space-between; padding-inline: var(--gutter);
  transition: background-color .4s, box-shadow .4s, transform .5s var(--ease-out);
}
.topbar.is-solid { background: rgba(255,255,255,.88); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.topbar__brand { display: block; width: 86px; padding: 6px 10px; margin-left: -10px; background: #fff; border-radius: var(--r-sm); }
.topbar.is-solid .topbar__brand { background: transparent; }
.topbar__nav { display: flex; align-items: center; gap: 4px; }
.topbar__nav a {
  text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.25); transition: background-color .2s, color .2s;
}
.topbar__nav a:hover { background: rgba(255,255,255,.18); }
.topbar.is-solid .topbar__nav a { color: var(--ink); text-shadow: none; }
.topbar.is-solid .topbar__nav a:hover { background: var(--paper-2); }
.topbar__nav .topbar__cta, .topbar.is-solid .topbar__nav .topbar__cta { background: #fff; color: var(--red-ink); text-shadow: none; margin-left: 6px; }
.topbar.is-solid .topbar__nav .topbar__cta { background: var(--red-deep); color: #fff; }
@media (max-width: 720px) { .topbar__nav a:not(.topbar__cta) { display: none; } }

/* ───────────── HERO ───────────── */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; overflow: hidden;
  background: var(--red);
  padding: 96px var(--gutter) 88px;
  perspective: 1400px;
}
.hero__shards { position: absolute; inset: -4%; z-index: 0; }
.hero__shards svg { width: 100%; height: 100%; }
.shard { transform-box: fill-box; transform-origin: center; will-change: transform; }

.hero__stage { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); display: grid; place-items: center; }

.hero__rail {
  transition: opacity .3s;
  position: absolute; top: 50%; font-weight: 700; font-size: 12px; letter-spacing: .38em; text-transform: uppercase; color: #fff;
  white-space: nowrap; text-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.hero__rail--l { left: 0; transform: translate(-40%, -50%) rotate(-90deg); }
.hero__rail--r { right: 0; transform: translate(40%, -50%) rotate(90deg); }
@media (max-width: 980px) { .hero__rail { display: none; } }

.card {
  position: relative; width: min(520px, 100%);
  background: var(--paper); box-shadow: var(--shadow-card);
  transform-style: preserve-3d; will-change: transform;
  animation: cardIn 1.4s var(--ease-out) .25s both;
}
.card::before { /* thin inner keyline like the printed card */
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(231,37,41,.18); pointer-events: none;
}
.card__inner { padding: clamp(28px, 5vw, 52px) clamp(24px, 5vw, 56px) clamp(24px, 4vw, 40px); text-align: center; display: grid; justify-items: center; }
.card__mark { width: clamp(130px, 34%, 180px); height: auto; margin-bottom: 18px; transform: translateZ(40px); filter: drop-shadow(0 10px 14px rgba(205,32,39,.18)); animation: markIn 1.6s var(--ease-out) .6s both; }
.card__greet { font-family: var(--serif); font-style: italic; color: var(--ink-2); font-size: 17px; margin-bottom: 8px; animation: fadeUp .9s var(--ease-out) both; }
.card__title {
  font-family: var(--serif); color: var(--red-deep); font-size: clamp(26px, 3.1vw, 34px); line-height: 1.16; letter-spacing: -.005em;
  max-width: 15ch; text-wrap: balance; transform: translateZ(26px);
}
.card__lede { margin-top: 16px; font-size: 15px; line-height: 1.65; color: var(--ink-2); max-width: 36ch; text-wrap: pretty; }
.card__when { margin-top: 18px; font-weight: 600; font-size: 16px; color: var(--ink); }
.card__where { font-weight: 700; color: var(--red-ink); font-size: 16px; }
.card__actions { margin-top: 24px; transform: translateZ(30px); }
.card__logo { width: 92px; margin-top: 28px; }

.countdown {
  position: absolute; right: clamp(0px, 4vw, 60px); bottom: -36px; z-index: 3;
  display: flex; gap: 2px; background: var(--ink); color: #fff; padding: 6px; border-radius: var(--r-md);
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.55); transform: rotate(-3deg);
  animation: fadeUp 1s var(--ease-out) 1.2s both;
}
.countdown > div { display: grid; justify-items: center; min-width: 62px; padding: 8px 10px; border-radius: 6px; }
.countdown > div:first-child { background: var(--red-deep); }
.countdown span { font-weight: 750; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.countdown small { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; opacity: .8; margin-top: 4px; }
@media (max-width: 720px) { .countdown { position: relative; right: auto; bottom: auto; margin-top: 18px; transform: rotate(-2deg); } }

.hero__scroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3; width: 28px; height: 46px; border: 2px solid rgba(255,255,255,.85); border-radius: 20px; }
.hero__scroll span { position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scrollDot 1.8s var(--ease-io) infinite; }
@media (max-width: 720px) { .hero__scroll { display: none; } }

@keyframes cardIn { from { opacity: 0; transform: translateY(60px) rotateX(18deg) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes markIn { from { opacity: 0; transform: translateZ(40px) translateY(20px) scale(.8) rotate(-6deg); } to { opacity: 1; transform: translateZ(40px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* ───────────── THE EVENING ───────────── */
.evening { position: relative; padding: clamp(110px, 14vw, 180px) 0 clamp(150px, 16vw, 230px); overflow: hidden; background: var(--paper); }
.evening__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; position: relative; z-index: 2; }
@media (max-width: 900px) { .evening__grid { grid-template-columns: 1fr; } }
.evening h2 {
  margin-top: 20px; font-family: var(--serif); font-size: clamp(38px, 5.4vw, 72px); line-height: 1.04; letter-spacing: -.02em; color: var(--ink); text-wrap: balance;
}
.evening h2 em { color: var(--red-deep); font-style: italic; }
.evening__body { margin-top: 24px; max-width: 46ch; color: var(--ink-2); font-size: 18px; }

.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 2px solid var(--ink); }
.fact { padding: 22px 18px 24px 0; border-bottom: 1px solid var(--mist); }
.fact:nth-child(odd) { border-right: 1px solid var(--mist); }
.fact:nth-child(even) { padding-left: 22px; }
.fact dt { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.fact dd { margin: 8px 0 0; font-size: 16px; color: var(--ink-2); line-height: 1.35; }
.fact dd strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 30px); color: var(--red-deep); line-height: 1.1; margin-bottom: 2px; }
.fact .arr { display: flex; align-items: baseline; gap: 10px; }
.fact .arr strong { display: inline; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); margin: 0; }
.fact .arr + .arr strong { color: var(--ink); }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } .fact:nth-child(odd) { border-right: 0; } .fact:nth-child(even) { padding-left: 0; } }

.float-shard { position: absolute; z-index: 1; pointer-events: none; will-change: transform; }
.float-shard.s1 { top: 8%; right: -60px; width: 260px; height: 300px; background: linear-gradient(140deg, var(--sky), #9BDDF2); clip-path: polygon(30% 0, 100% 30%, 70% 100%); opacity: .9; }
.float-shard.s2 { bottom: 4%; left: -90px; width: 280px; height: 260px; background: linear-gradient(200deg, var(--red), var(--red-deep)); clip-path: polygon(0 20%, 100% 0, 40% 100%); }
.float-shard.s3 { top: 80%; right: 46%; width: 90px; height: 110px; background: var(--mist); clip-path: polygon(50% 0, 100% 100%, 0 70%); }
@media (max-width: 900px) { .float-shard.s3 { display: none; } .float-shard.s1 { width: 160px; height: 190px; right: -50px; top: 3%; opacity: .6; } .float-shard.s2 { width: 170px; height: 160px; left: -70px; opacity: .85; } }

.ribbon { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(90px, 12vw, 200px); z-index: 1; }
.ribbon__a, .ribbon__b { transform-origin: 0 100%; transform: scaleX(var(--rb, 0)); transition: transform 1.6s var(--ease-out); }
.ribbon.in .ribbon__a { --rb: 1; }
.ribbon.in .ribbon__b { --rb: 1; transition-delay: .2s; }

/* ───────────── AGENDA ───────────── */
.agenda { position: relative; background: var(--paper-2); padding: clamp(96px, 12vw, 160px) 0 clamp(96px, 12vw, 150px); overflow: hidden; overflow: clip; }
.agenda__ghost {
  position: absolute; top: clamp(30px, 5vw, 60px); left: 0; white-space: nowrap; z-index: 0;
  font-family: var(--sans); font-weight: 800; font-size: clamp(90px, 16vw, 240px); line-height: 1; letter-spacing: -.04em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1.5px rgba(23,25,23,.07); will-change: transform;
}
.agenda__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 0.9fr 1.3fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
@media (max-width: 900px) { .agenda__grid { grid-template-columns: 1fr; } }
.agenda__head { position: sticky; top: 110px; }
@media (max-width: 900px) { .agenda__head { position: static; } }
.bismillah { text-align: left; font-family: "Amiri", "Noto Naskh Arabic", "Traditional Arabic", "Scheherazade New", serif; font-size: 26px; color: var(--ink-2); margin-bottom: 26px; line-height: 1.6; }
.agenda h2 { margin-top: 16px; font-family: var(--serif); font-size: clamp(36px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; }
.agenda__note { margin-top: 18px; color: var(--ink-3); font-size: 15px; }
.agenda__mark { width: min(240px, 60%); margin-top: 40px; height: auto; opacity: .95; }
@media (max-width: 900px) { .agenda__mark { display: none; } }

.timeline { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; counter-reset: tl; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; background: var(--mist); }
.timeline::after { content: ""; position: absolute; left: 6px; top: 10px; width: 2px; height: calc((100% - 20px) * var(--progress, 0)); background: linear-gradient(var(--red), var(--red-deep)); transition: height .15s linear; }
.tl { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 18px; padding: 15px 0 15px; border-bottom: 1px solid rgba(23,25,23,.07); }
.tl::before { content: ""; position: absolute; left: -30px; top: 23px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--grey); transition: border-color .4s, background-color .4s, transform .4s var(--ease-out); z-index: 1; }
.tl.in::before { border-color: var(--red); }
.tl--hi::before { background: var(--sky); border-color: var(--sky) !important; transform: rotate(45deg); border-radius: 2px; }
.tl time { font-weight: 750; font-size: 19px; color: var(--red-ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; padding-top: 1px; }
.tl span { font-size: 18px; line-height: 1.4; color: var(--ink); font-weight: 500; }
.tl small { display: block; margin-top: 2px; font-size: 14px; color: var(--ink-3); font-weight: 400; }
.tl--hi span { font-weight: 650; }
.tl-break { display: flex; align-items: center; gap: 16px; padding: 30px 0 16px; margin-left: -30px; }
.tl-break span { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-2); white-space: nowrap; }
.tl-break::before, .tl-break::after { content: ""; flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--grey) 0 6px, transparent 6px 12px); }
.tl--after time { color: var(--ink-3); }
@media (max-width: 480px) { .tl { grid-template-columns: 62px 1fr; gap: 12px; } .tl time { font-size: 17px; } .tl span { font-size: 16px; } }

/* ───────────── VENUE + DRESS ───────────── */
.venue { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; background: var(--paper); }
@media (max-width: 900px) { .venue { grid-template-columns: 1fr; } }
.venue__panel {
  position: relative; overflow: hidden; color: #fff; background: var(--red-deep);
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
  min-height: 620px; display: flex; align-items: center;
}
@media (max-width: 900px) { .venue__panel { clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); min-height: 560px; } }
.venue__facets { position: absolute; inset: 0; width: 100%; height: 100%; }
.venue__content { position: relative; z-index: 1; padding: clamp(60px, 9vw, 120px) clamp(24px, 12%, 140px) clamp(60px, 9vw, 120px) var(--gutter); max-width: 680px; margin-left: max(0px, calc((100vw - var(--maxw)) / 2)); }
.venue__content::before { /* readability scrim */
  content: ""; position: absolute; inset: 8% 4% 8% -20%; z-index: -1;
  background: radial-gradient(closest-side, rgba(160,18,24,.85), rgba(160,18,24,0)); filter: blur(10px);
}
.venue h2 { margin-top: 20px; font-family: var(--serif); font-size: clamp(42px, 5.6vw, 78px); line-height: 1; letter-spacing: -.02em; text-wrap: balance; text-shadow: 0 2px 24px rgba(90,0,0,.3); }
.venue__place { margin-top: 14px; font-size: 19px; font-weight: 500; opacity: .95; }
.venue__meta { list-style: none; padding: 0; margin: 30px 0 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.venue__meta li { display: grid; padding: 12px 18px; border: 1px solid rgba(255,255,255,.4); border-radius: var(--r-md); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; backdrop-filter: blur(4px); background: rgba(120,10,14,.25); }
.venue__meta li span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; opacity: .85; }

.venue__side { display: grid; align-content: center; gap: clamp(28px, 4vw, 44px); padding: clamp(56px, 8vw, 110px) var(--gutter) clamp(56px, 8vw, 110px) clamp(24px, 5vw, 70px); min-width: 0; }
.dress { max-width: 560px; }
.dress h3 { margin-top: 18px; font-family: var(--serif); font-size: clamp(34px, 4vw, 52px); line-height: 1.05; letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.swatches { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.swatches li { display: grid; gap: 10px; min-width: 0; }
.swatch { display: block; height: 76px; background: var(--c); }
.swatches li:nth-child(1) { --c: #6E7076; } .swatches li:nth-child(1) .swatch { clip-path: polygon(0 0, 100% 10%, 100% 100%, 0 100%); }
.swatches li:nth-child(2) { --c: #8A8C91; } .swatches li:nth-child(2) .swatch { clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%); }
.swatches li:nth-child(3) { --c: #A1A3A8; } .swatches li:nth-child(3) .swatch { clip-path: polygon(0 0, 100% 14%, 100% 100%, 0 100%); }
.swatches li:nth-child(4) { --c: #C4C6CA; } .swatches li:nth-child(4) .swatch { clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 100%); }
.swatches code { font-family: var(--sans); font-size: 13px; font-weight: 650; letter-spacing: .04em; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.map { margin: 0; max-width: 560px; border: 1px solid var(--mist); background: var(--paper); }
.map__canvas { position: relative; aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden; display: grid; place-items: end center; padding-bottom: 18px; }
.map__art, .map__canvas iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__pin { position: absolute; left: 58%; top: 44%; width: 34px; height: 44px; transform: translate(-50%, -100%); filter: drop-shadow(0 8px 10px rgba(120,10,14,.35)); }
.map__pin::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--red) 0 50%, var(--red-deep) 50%); clip-path: polygon(50% 100%, 0 38%, 18% 6%, 50% 0, 82% 6%, 100% 38%); }
.map__pin span { position: absolute; left: 50%; top: 32%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #fff; }
.map__pin::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 24px; height: 8px; margin-left: -12px; border-radius: 50%; background: rgba(0,0,0,.18); z-index: -1; }
.map__load { position: relative; z-index: 1; min-height: 42px; padding: 9px 20px; font-size: 14px; border-color: var(--mist); box-shadow: 0 10px 24px -12px rgba(0,0,0,.35); }
.map__canvas.is-live { padding: 0; }
.map__canvas.is-live .map__pin, .map__canvas.is-live .map__load, .map__canvas.is-live .map__art { display: none; }
.map__cap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; padding: 14px 16px; border-top: 1px solid var(--mist); font-size: 14px; color: var(--ink-2); }
.map__cap strong { font-weight: 700; color: var(--ink); margin-right: 6px; }
.map__cap a { color: var(--red-ink); font-weight: 650; text-decoration: none; }
.map__cap a:hover { text-decoration: underline; }

/* ───────────── RSVP ───────────── */
.rsvp { position: relative; overflow: hidden; background: var(--red); padding: clamp(100px, 12vw, 170px) var(--gutter); display: grid; place-items: center; outline: none; }
.rsvp__shards { position: absolute; inset: -6%; }
.rsvp__shards svg { width: 100%; height: 100%; }
.rsvp__card {
  position: relative; z-index: 1; width: min(640px, 100%); background: var(--paper);
  padding: clamp(32px, 5vw, 60px) clamp(22px, 5vw, 60px); box-shadow: var(--shadow-card);
}
.rsvp__card::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(231,37,41,.18); pointer-events: none; }
.rsvp h2 { margin-top: 14px; font-family: var(--serif); font-size: clamp(34px, 4.4vw, 54px); line-height: 1.05; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.rsvp h2 em { color: var(--red-deep); font-style: italic; }
.state { margin-top: 26px; position: relative; }
.state__lede { color: var(--ink-2); font-size: 17px; }
.state .btn { margin-top: 20px; }

.loader { display: flex; gap: 8px; padding: 20px 0; }
.loader span:not(.sr-only) { width: 14px; height: 14px; background: var(--red); clip-path: polygon(50% 0, 100% 100%, 0 100%); animation: bob 1s var(--ease-io) infinite; }
.loader span:nth-child(2) { background: var(--sky); animation-delay: .12s; }
.loader span:nth-child(3) { background: var(--grey); animation-delay: .24s; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(180deg); } }

.choice { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .choice { grid-template-columns: 1fr; } }
.choice__opt { position: relative; cursor: pointer; }
.choice__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice__face {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  padding: 18px 18px; border: 1.5px solid var(--mist); border-radius: var(--r-md); background: #fff;
  transition: border-color .25s, box-shadow .3s var(--ease-out), transform .3s var(--ease-out), background-color .25s;
}
.choice__opt:hover .choice__face { border-color: var(--grey); transform: translateY(-2px); }
.choice__icon { grid-row: 1 / span 2; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--paper-2); color: var(--ink-3); transition: background-color .25s, color .25s, transform .45s var(--ease-out); }
.choice__icon svg { width: 22px; height: 22px; }
.choice__label { font-weight: 700; font-size: 17px; line-height: 1.2; }
.choice__sub { font-size: 14px; color: var(--ink-3); }
.choice__opt input:focus-visible + .choice__face { outline: 3px solid var(--sky); outline-offset: 3px; }
.choice__opt--yes input:checked + .choice__face { border-color: var(--red-deep); background: #FFF6F6; box-shadow: 0 14px 28px -16px rgba(205,32,39,.6); }
.choice__opt--yes input:checked + .choice__face .choice__icon { background: var(--red-deep); color: #fff; transform: rotate(-8deg) scale(1.06); }
.choice__opt--no input:checked + .choice__face { border-color: var(--ink); background: var(--paper-2); }
.choice__opt--no input:checked + .choice__face .choice__icon { background: var(--ink); color: #fff; }

.fields { display: grid; gap: 0; transition: opacity .3s; }
.fields.is-off { display: none; }
.field { margin-top: 22px; }
.field__label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.field__label .opt { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink-3); }
.input {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--mist); border-radius: var(--r-sm); background: #fff;
  font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.input:hover { border-color: var(--grey); }
.input:focus { outline: none; border-color: var(--sky-ink); box-shadow: 0 0 0 4px rgba(68,196,234,.25); }
.input[aria-invalid="true"] { border-color: var(--red-deep); }
.input--area { resize: vertical; min-height: 96px; line-height: 1.5; }
.field__hint { margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.field__hint--right { text-align: right; font-variant-numeric: tabular-nums; }
.field__err { margin-top: 8px; font-size: 14px; color: var(--red-ink); font-weight: 600; }
.field__err--block { margin-top: 16px; padding: 12px 14px; background: #FFF1F1; border-left: 3px solid var(--red-deep); }

.rsvp__submit { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.rsvp__deadline { margin-top: 16px; font-size: 14px; color: var(--ink-3); }

.summary { text-align: left; }
.summary__badge { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--red-deep); color: #fff; animation: pop .7s var(--ease-out) both; }
.summary__badge.is-no { background: var(--ink); }
.summary__badge svg { width: 30px; height: 30px; }
.summary__head { margin-top: 18px; font-family: var(--serif); font-size: clamp(24px, 3vw, 30px); line-height: 1.2; color: var(--ink); }
.summary__list { margin: 22px 0 0; border-top: 2px solid var(--ink); }
.summary__list > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--mist); }
.summary__list dt { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.summary__list dd { margin: 0; font-size: 16px; overflow-wrap: anywhere; white-space: pre-line; }
@media (max-width: 480px) { .summary__list > div { grid-template-columns: 1fr; gap: 2px; } }
.summary__actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
@keyframes pop { 0% { transform: scale(.4) rotate(-20deg); opacity: 0; } 60% { transform: scale(1.08) rotate(4deg); opacity: 1; } 100% { transform: none; } }

/* celebration burst particles */
.burst { position: fixed; left: 0; top: 0; width: 14px; height: 14px; pointer-events: none; z-index: 80; clip-path: polygon(50% 0, 100% 100%, 0 100%); }

/* ───────────── Footer ───────────── */
.footer { background: var(--paper); border-top: 1px solid var(--mist); padding: 48px 0 56px; }
.footer__grid { display: grid; justify-items: center; gap: 10px; text-align: center; }
.footer__logo { width: 110px; margin-bottom: 8px; }
.footer p { font-size: 14px; color: var(--ink-2); }
.footer__fine { color: var(--ink-3) !important; font-size: 13px !important; }
.noscript { position: fixed; inset: auto 0 0 0; background: var(--ink); color: #fff; padding: 14px; text-align: center; z-index: 99; }

/* ───────────── Reveal on scroll ───────────── */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.js .fact.reveal:nth-child(2) { transition-delay: .08s; }
.js .fact.reveal:nth-child(3) { transition-delay: .16s; }
.js .fact.reveal:nth-child(4) { transition-delay: .24s; }

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