/* Marathon Shrine Club — fez red on clean paper */
:root {
  --bg:      oklch(97% 0.004 60);          /* clean off-white */
  --surface: oklch(99.3% 0.002 60);        /* white paper */
  --paper:   oklch(94.5% 0.005 50);        /* light neutral card */
  --fg:      oklch(22% 0.025 60);
  --muted:   oklch(48% 0.025 60);
  --faint:   oklch(72% 0.020 60);
  --border:  oklch(89% 0.006 55);
  --rule:    oklch(82% 0.008 50);

  /* Fez red — the hero color. The color of the fez. */
  --accent:       oklch(52% 0.205 25);     /* fez red */
  --accent-deep:  oklch(40% 0.16 23);      /* deep burgundy */

  /* Old gold — restrained tassel/emblem accent only */
  --gold:         oklch(74% 0.095 86);     /* antique tassel gold */
  --gold-deep:    oklch(60% 0.085 78);     /* deep brass */

  /* Keys teal — the water voice */
  --teal:         oklch(72% 0.115 215);    /* shallow water */
  --teal-deep:    oklch(50% 0.115 220);    /* deep water */

  --ink:          oklch(16% 0.025 60);     /* warm near-black */

  --font-poster:  'Alfa Slab One', 'Iowan Old Style', Georgia, serif;
  --font-display: 'Fraunces', 'Iowan Old Style', 'Charter', Georgia, serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;

  --measure: 64ch;
  --gutter: clamp(1.5rem, 5vw, 2.5rem);
  --container: 1280px;

  /* Sun-ray + halftone backdrops, reusable */
  --sunburst: repeating-conic-gradient(
    from 0deg,
    transparent 0 13deg,
    color-mix(in oklch, var(--gold) 50%, transparent) 13deg 15deg,
    transparent 15deg 30deg
  );
  --halftone:
    radial-gradient(circle at center, color-mix(in oklch, var(--ink) 30%, transparent) 0.7px, transparent 1.2px)
    0 0 / 8px 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a.link { color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
a.link:hover { color: var(--accent-deep); }

::selection { background: var(--accent); color: var(--surface); }

/* ----- Typography ----- */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 5rem); line-height: 1.02; margin: 0; }
h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.08; margin: 0; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.2; margin: 0; }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: var(--ink);
  font-weight: 500;
  background: var(--gold);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  display: inline-block;
  border: 1.5px solid var(--ink);
  box-shadow: 2px 2px 0 0 var(--ink);
}
.kicker {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: var(--muted);
}
.lede {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.45;
  color: var(--fg);
  font-style: italic;
  font-weight: 400;
  text-wrap: pretty;
}
.body-prose p { font-size: 1.0625rem; line-height: 1.65; color: var(--fg); margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }
.numeric { font-variant-numeric: tabular-nums; }

/* ----- Layout primitives ----- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.divider-thick { border-top: 2px solid var(--ink); margin: 0; }

/* ----- Top bar ----- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.masthead-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 0.95rem var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.55rem;
}
.wordmark .wordmark-fez {
  width: 26px; height: 22px;
  flex: 0 0 auto;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.wordmark:hover .wordmark-fez { transform: rotate(-12deg); }
.wordmark small {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.62rem;
  color: var(--muted);
  margin-left: 0.4rem;
}
.nav {
  display: flex; gap: 1.6rem; justify-self: center;
  font-family: var(--font-body);
  font-size: 0.86rem;
}
.nav a {
  color: var(--fg); text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease, color 120ms ease;
}
.nav a:hover, .nav a[aria-current="page"] {
  border-bottom-color: var(--ink);
}
.donate-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--accent); color: var(--bg);
  padding: 0.65rem 1.15rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem; font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 0 var(--ink);
  transition: transform 140ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 140ms ease, background 140ms ease;
}
.donate-btn:hover {
  background: var(--gold);
  color: var(--ink);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 0 var(--ink);
}
.donate-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 0 var(--ink);
}
.donate-btn .arrow {
  font-family: var(--font-body);
  font-size: 1em;
  display: inline-block;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.donate-btn:hover .arrow { transform: translateX(3px); }
@media (max-width: 820px) {
  .nav { display: none; }
  .masthead-inner { grid-template-columns: auto 1fr auto; }
}

/* ============================================================
   HERO: postcard with sunburst, palms, ribbon, stamp, squiggle
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(2rem, 4vw, 3.5rem) 0 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 60% at 50% -10%, color-mix(in oklch, var(--gold) 40%, transparent), transparent 60%),
    var(--bg);
}
.hero-sunburst {
  position: absolute;
  top: -42vmin;
  left: 50%;
  transform: translateX(-50%);
  width: 140vmin; height: 140vmin;
  background: var(--sunburst);
  -webkit-mask: radial-gradient(circle, black 30%, transparent 65%);
          mask: radial-gradient(circle, black 30%, transparent 65%);
  opacity: 0.7;
  z-index: -1;
  pointer-events: none;
  animation: sun-rotate 240s linear infinite;
}
@keyframes sun-rotate { to { transform: translateX(-50%) rotate(360deg); } }

.hero-palms {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  color: color-mix(in oklch, var(--accent-deep) 35%, transparent);
}
.hero-palms .palm {
  position: absolute;
  bottom: -2rem;
  width: clamp(80px, 14vw, 180px);
  height: auto;
  opacity: 0.6;
}
.hero-palms .palm-left  { left: 1vw;  transform: rotate(-12deg); }
.hero-palms .palm-right { right: 1vw; transform: scaleX(-1) rotate(-12deg); }
@media (max-width: 720px) {
  .hero-palms .palm { display: none; }
}

.hero-inner {
  position: relative;
  display: grid;
  gap: clamp(1.25rem, 2.4vw, 2rem);
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  text-align: center;
  justify-items: center;
}

/* Top ribbon banner with fezzes */
.ribbon-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.55rem 1.4rem;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 999px;
  box-shadow: 0 6px 0 -2px var(--accent-deep);
  animation: ribbon-flutter 4.5s ease-in-out infinite;
  transform-origin: center center;
}
@keyframes ribbon-flutter {
  0%, 100% { transform: rotate(-1.5deg) translateY(0); }
  50%      { transform: rotate(0.8deg) translateY(-2px); }
}
.ribbon-banner .fez-mark {
  width: 1.4rem; height: 1.1rem;
  flex: 0 0 auto;
  color: var(--ink);
}
.ribbon-banner .fez-mark.mirrored { transform: scaleX(-1); }

/* Headline */
.hero-headline {
  display: grid;
  gap: 0.04em;
  font-family: var(--font-poster);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.015em;
  margin: 0;
  position: relative;
  text-wrap: balance;
}
.hero-headline .hero-line {
  display: block;
  font-size: clamp(3rem, 13vw, 11rem);
  color: var(--ink);
  text-shadow: 6px 6px 0 var(--gold);
  opacity: 0;
  transform: translateY(28px) rotate(-1.2deg);
  animation: hero-line-in 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--stagger, 0) * 120ms + 100ms);
}
.hero-headline .hero-line[data-stagger="0"] { --stagger: 0; }
.hero-headline .hero-line[data-stagger="1"] { --stagger: 1; transform: translateY(28px) rotate(0.8deg); }
.hero-headline .hero-line[data-stagger="2"] { --stagger: 2; }
.hero-headline .line-2 {
  color: var(--accent);
  text-shadow: 6px 6px 0 var(--ink);
}
.hero-headline .line-2 em {
  font-style: normal;
  color: inherit;
}
.hero-headline .line-3 {
  font-size: clamp(2.6rem, 11vw, 9.5rem);
}
@keyframes hero-line-in {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

/* Shriners International emblem in the hero (real PNG) */
.hero-emblem {
  position: absolute;
  top: 9%;
  left: 4%;
  width: clamp(100px, 14vw, 190px);
  pointer-events: none;
  transform: rotate(-10deg);
  animation: emblem-bob 6s ease-in-out infinite;
  filter: drop-shadow(3px 4px 0 var(--ink));
  z-index: 0;
}
.hero-emblem svg,
.hero-emblem img { width: 100%; height: auto; display: block; }
@keyframes emblem-bob {
  0%, 100% { transform: rotate(-10deg) translateY(0); }
  50%      { transform: rotate(-6deg) translateY(-6px); }
}
@media (max-width: 720px) {
  .hero-emblem { display: none; }
}
.hero-headline .squiggle {
  width: clamp(180px, 32vw, 320px);
  height: auto;
  margin: 0.4rem auto 0;
  color: var(--gold-deep);
  display: block;
}

.hero-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  color: var(--muted);
  max-width: 44ch;
  margin: 0;
  text-wrap: balance;
}
.hero-sub strong {
  font-style: normal;
  font-weight: 500;
  color: var(--ink);
  background: linear-gradient(to top, color-mix(in oklch, var(--gold) 70%, transparent) 0 35%, transparent 35%);
  padding: 0 0.2em;
}

/* CTA row */
.hero-ctas {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.6rem;
}

/* Big poster CTA */
.btn-poster {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.6rem;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 0 var(--ink);
  transition: transform 140ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 140ms ease, background 140ms ease;
  cursor: pointer;
}
.btn-poster:hover {
  background: var(--accent-deep);
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 0 var(--ink);
}
.btn-poster:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 0 var(--ink);
}
.btn-poster .poster-arrow {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 1.2em;
  display: inline-block;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-poster:hover .poster-arrow { transform: translateX(4px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 1rem 1.4rem;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid var(--ink);
  transition: background 140ms ease, color 140ms ease;
}
.btn-outline:hover { background: var(--ink); color: var(--bg); }

/* Circular "100%" stamp, floating */
.hero-stamp {
  position: absolute;
  top: clamp(4.5rem, 5vw + 2.5rem, 5.5rem);
  right: clamp(1rem, 4vw, 4rem);
  width: clamp(80px, 12vw, 140px);
  color: var(--accent);
  pointer-events: none;
  transform: rotate(-14deg);
  animation: stamp-wobble 9s ease-in-out infinite;
}
.hero-stamp svg { width: 100%; height: auto; display: block; }
.hero-stamp .stamp-arc {
  font-family: var(--font-mono);
  font-weight: 500;
  fill: var(--accent);
}
.hero-stamp .stamp-big {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 30px;
  font-weight: 500;
  fill: var(--accent);
}
.hero-stamp .stamp-small {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.24em;
  fill: var(--accent);
}
@keyframes stamp-wobble {
  0%, 100% { transform: rotate(-14deg); }
  50%      { transform: rotate(-10deg); }
}
@media (max-width: 720px) {
  .hero-stamp { top: 5rem; right: 0.75rem; width: 70px; }
}

/* Bottom meta strip */
.hero-meta-strip {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding: 1.1rem 0;
  background: var(--ink);
  color: var(--bg);
  border-top: 4px solid var(--gold);
  border-bottom: 4px solid var(--gold);
}
.hero-meta {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  justify-content: center;
  gap: 0;
  border: 0;
}
.hero-meta .item {
  display: grid;
  gap: 0.2rem;
  justify-items: center;
  text-align: center;
  border-right: 1px dashed color-mix(in oklch, var(--bg) 25%, transparent);
  padding: 0 1.4rem;
}
.hero-meta .item:last-child { border-right: 0; }
.hero-meta .item .k {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--bg) 55%, transparent);
}
.hero-meta .item .v {
  font-family: var(--font-poster);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  color: var(--gold);
  font-feature-settings: "tnum";
  letter-spacing: -0.005em;
  margin: 0;
  line-height: 1;
}
@media (max-width: 720px) {
  .hero-meta {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    gap: 0.2rem 0;
  }
  .hero-meta .item:nth-last-child(-n+2) { border-right: 0; }
  .hero-meta .item:last-child { grid-column: 1 / -1; border-right: 0; padding-right: 1.4rem; }
}

/* ============================================================
   Color-block sections (poster-stack rhythm)
   ============================================================ */
.block {
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) 0;
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.block-teal {
  background:
    radial-gradient(60% 80% at 80% 0%, color-mix(in oklch, var(--gold) 30%, transparent), transparent 60%),
    radial-gradient(80% 80% at 0% 100%, color-mix(in oklch, var(--teal-deep) 30%, transparent), transparent 60%),
    var(--teal);
  color: var(--ink);
}
.block-gold {
  background:
    radial-gradient(70% 100% at 90% 50%, color-mix(in oklch, var(--accent) 22%, transparent), transparent 65%),
    var(--gold);
  color: var(--ink);
}
.block-cream {
  background: var(--bg);
  color: var(--ink);
}

/* Halftone overlay for posterly grain */
.block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--halftone);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
.block > * { position: relative; z-index: 1; }

/* Block headings */
.block-head {
  display: grid;
  gap: 1rem;
  max-width: 56rem;
  margin: 0 auto clamp(2rem, 4vw, 3.5rem);
  text-align: center;
  justify-items: center;
}
.block-title {
  font-family: var(--font-poster);
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  text-shadow: 4px 4px 0 var(--bg);
  text-wrap: balance;
}
.block-title em {
  font-style: normal;
  color: var(--accent);
  text-shadow: 4px 4px 0 var(--ink);
  display: inline-block;
  transform: rotate(-2deg);
}
.block-gold .block-title { text-shadow: 4px 4px 0 var(--accent); color: var(--ink); }
.block-gold .block-title em { color: var(--accent); text-shadow: 4px 4px 0 var(--ink); }
.block-teal .block-title { text-shadow: 4px 4px 0 var(--gold); }
.block-teal .block-title em { color: var(--accent); text-shadow: 4px 4px 0 var(--ink); }
.block-lede {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: 48ch;
  margin: 0;
  text-wrap: pretty;
}

/* Decorative SVGs that float in blocks */
.block-deco-anchor,
.block-deco-sun,
.block-deco-wave {
  position: absolute;
  z-index: 0;
  color: var(--ink);
  pointer-events: none;
}
.block-deco-anchor {
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 4vw, 3rem);
  width: clamp(60px, 8vw, 110px);
  filter: drop-shadow(3px 3px 0 var(--bg));
  animation: anchor-sway 4s ease-in-out infinite;
}
@keyframes anchor-sway {
  0%, 100% { transform: rotate(-4deg); }
  50%      { transform: rotate(4deg); }
}
.block-deco-sun {
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 4vw, 4rem);
  width: clamp(70px, 10vw, 130px);
  animation: sun-spin 28s linear infinite;
}
@keyframes sun-spin { to { transform: rotate(360deg); } }
.block-deco-wave {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 28px;
  opacity: 0.4;
}
@media (max-width: 720px) {
  .block-deco-anchor, .block-deco-sun { width: 64px; top: 0.6rem; right: 0.6rem; }
}

/* ----- Lede spotlight callout ----- */
.lede-spotlight {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 6px 6px 0 0 var(--ink);
  position: relative;
  transform: rotate(-0.4deg);
  margin: clamp(2rem, 4vw, 3rem) auto;
  max-width: 64rem;
}
@media (max-width: 720px) {
  .lede-spotlight { grid-template-columns: 1fr; text-align: center; gap: 1rem; }
}
.lede-spotlight-mark {
  width: clamp(64px, 8vw, 90px);
  flex: 0 0 auto;
  animation: star-spin 18s linear infinite;
}
.lede-spotlight-mark svg { width: 100%; height: auto; display: block; }
@keyframes star-spin { to { transform: rotate(360deg); } }
.lede-spotlight-text {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
  text-wrap: pretty;
}
.lede-spotlight-text em {
  font-style: italic;
  color: var(--accent);
}
.lede-spotlight-text strong {
  font-weight: 500;
  background: linear-gradient(to top, color-mix(in oklch, var(--gold) 70%, transparent) 0 30%, transparent 30%);
  padding: 0 0.15em;
}

/* ============================================================
   PAPER DRIVE callout (one fundraiser, US-1 & 109th)
   ============================================================ */
.paper-drive {
  background:
    radial-gradient(60% 100% at 80% 50%, color-mix(in oklch, var(--gold) 28%, transparent), transparent 65%),
    var(--bg);
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  padding: clamp(3rem, 6vw, 5rem) 0;
  position: relative;
  overflow: hidden;
}
.paper-drive::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(45deg, var(--accent) 0 14px, var(--gold) 14px 28px);
}
.paper-drive::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--halftone);
  opacity: 0.10;
  pointer-events: none;
}
.paper-drive-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 880px) {
  .paper-drive-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

.paper-drive-meta {
  display: grid;
  gap: 0.6rem;
  justify-items: start;
  max-width: 14rem;
}
@media (max-width: 880px) {
  .paper-drive-meta { justify-items: center; max-width: none; }
}
.paper-drive-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  box-shadow: 2px 2px 0 0 var(--ink);
  font-weight: 500;
}
.paper-drive-when {
  font-family: var(--font-poster);
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  line-height: 1;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.005em;
}

.paper-drive-body { max-width: 38rem; }
.paper-drive-title {
  font-family: var(--font-poster);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 0.98;
  margin: 0 0 0.6rem;
  color: var(--ink);
  letter-spacing: -0.015em;
  text-shadow: 3px 3px 0 var(--gold);
}
.paper-drive-title em {
  font-style: normal;
  color: var(--accent);
  text-shadow: 3px 3px 0 var(--ink);
}
.paper-drive-copy {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 1.2rem;
  max-width: 56ch;
  text-wrap: pretty;
}
.paper-drive-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}
@media (max-width: 880px) {
  .paper-drive-ctas { justify-content: center; }
}

/* The road sign on the right: a stylized US-1 highway shield */
.paper-drive-sign {
  display: grid;
  gap: 0.6rem;
  justify-items: center;
  flex: 0 0 auto;
}
.paper-drive-shield {
  width: clamp(108px, 14vw, 150px);
  aspect-ratio: 5 / 6;
  background: var(--bg);
  border: 4px solid var(--ink);
  /* US Route shield silhouette via clip-path */
  clip-path: polygon(
    50% 0%, 100% 8%, 100% 38%, 95% 60%, 80% 80%,
    62% 95%, 50% 100%, 38% 95%, 20% 80%, 5% 60%, 0% 38%, 0% 8%
  );
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.5rem 0.4rem 1rem;
  filter: drop-shadow(4px 4px 0 var(--ink));
  transform: rotate(-4deg);
  position: relative;
}
.paper-drive-shield .shield-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  margin-top: 0.1rem;
}
.paper-drive-shield .shield-num {
  font-family: var(--font-poster);
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 0.9;
  color: var(--accent);
  letter-spacing: -0.04em;
  text-shadow: 2px 2px 0 var(--ink);
}
.paper-drive-shield .shield-meta {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.paper-drive-where {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  padding: 0.4rem 0.85rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: 2px 2px 0 0 var(--ink);
  margin: 0;
  font-weight: 500;
}
.paper-drive-where span {
  font-feature-settings: "sups";
  font-size: 0.7em;
  vertical-align: super;
}
@media (max-width: 880px) {
  .paper-drive-sign { order: -1; }
}

/* ----- Carnival marquee band ----- */
.marquee-band {
  background: var(--accent);
  color: var(--bg);
  padding: 1.1rem 0;
  overflow: hidden;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: scroll-x 48s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.marquee-track > span { flex: 0 0 auto; }
.marquee-track em {
  font-style: italic;
  color: var(--gold);
}
.marquee-track .m-star {
  color: var(--gold);
  font-style: normal;
  font-size: 0.7em;
  align-self: center;
}

/* ----- Decorative section dividers ----- */
.divider-zigzag {
  height: 16px;
  background:
    conic-gradient(from -45deg at 50% 0, var(--bg) 90deg, transparent 0)
    top left / 24px 100% repeat-x;
  filter: drop-shadow(0 -2px 0 var(--ink));
}
.divider-wave {
  height: 28px;
  background:
    radial-gradient(circle at 14px 0, var(--bg) 14px, transparent 14.5px) 0 0 / 28px 28px repeat-x;
  filter: drop-shadow(0 -2px 0 var(--ink));
}

/* ----- Section base ----- */
section.section {
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 56rem;
}
@media (min-width: 760px) {
  .section-head.split {
    grid-template-columns: 14rem 1fr;
    align-items: start;
    gap: 2rem;
    max-width: none;
  }
  .section-head.split .meta { padding-top: 0.4rem; }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.92rem; font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.btn-primary { background: var(--accent); color: var(--surface); border: 1.5px solid var(--accent); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* ----- Footer: Florida postcard ----- */
.foot {
  background:
    radial-gradient(120% 60% at 80% 100%, color-mix(in oklch, var(--gold) 35%, transparent), transparent 55%),
    radial-gradient(120% 60% at 0% 100%, color-mix(in oklch, var(--teal) 25%, transparent), transparent 55%),
    var(--bg);
  color: var(--ink);
  padding: clamp(4rem, 8vw, 6rem) 0 2rem;
  margin-top: clamp(4rem, 8vw, 7rem);
  position: relative;
  border-top: 4px solid var(--ink);
}
.foot::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(45deg, var(--accent) 0 14px, var(--gold) 14px 28px);
  margin-top: -10px;
}
.foot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--halftone);
  opacity: 0.10;
  pointer-events: none;
}
.foot-inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }
.foot-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr) auto;
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 3rem;
  border-bottom: 2px dashed var(--ink);
}
@media (max-width: 820px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-qr { grid-column: 1 / -1; justify-self: start; }
}
.foot-qr {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}
.foot-qr-link {
  display: inline-block;
  background: #ffffff;
  padding: 8px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  box-shadow: 4px 4px 0 0 var(--ink);
  line-height: 0;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.foot-qr-link:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 0 var(--ink);
}
.foot-qr-link img { display: block; width: 120px; height: 120px; }
.foot-qr-cap {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  max-width: 136px;
  line-height: 1.5;
}
.foot-qr-cap a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.foot h4 {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  padding: 0.3rem 0.65rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  display: inline-block;
  margin: 0 0 1rem;
  box-shadow: 2px 2px 0 0 var(--ink);
}
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.foot a { color: var(--ink); text-decoration: none; font-size: 0.95rem; font-family: var(--font-display); transition: color 140ms ease; }
.foot a:hover { color: var(--accent); }
.foot-mast {
  font-family: var(--font-poster);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.05;
  color: var(--ink);
  max-width: 22ch;
  margin: 0 0 1.4rem;
  letter-spacing: -0.015em;
}
.foot-mast em {
  color: var(--accent);
  font-style: normal;
  text-shadow: 2px 2px 0 var(--gold);
}
.foot-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--ink) 65%, transparent);
  margin: 0 0 1.2rem;
  font-weight: 500;
}
.foot-affil {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  background: var(--surface);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 0 var(--ink);
  max-width: max-content;
}
.foot-affil-line {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.foot-affil img {
  height: 28px;
  width: auto;
  display: block;
}
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.6rem; flex-wrap: wrap; gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: color-mix(in oklch, var(--ink) 70%, transparent);
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ----- Tinted "image" placeholders (no external assets) ----- */
.fig {
  position: relative;
  background:
    radial-gradient(120% 80% at 30% 20%, color-mix(in oklch, var(--accent) 22%, var(--paper)) 0%, transparent 60%),
    radial-gradient(120% 80% at 80% 80%, color-mix(in oklch, var(--ink) 12%, var(--paper)) 0%, transparent 70%),
    var(--paper);
  border: 1px solid var(--border);
  overflow: hidden;
  isolation: isolate;
}
.fig::after {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg,
      color-mix(in oklch, var(--ink) 4%, transparent) 0 1px,
      transparent 1px 6px);
  mix-blend-mode: multiply;
  pointer-events: none;
  opacity: 0.7;
}
.fig.tone-warm {
  background:
    radial-gradient(140% 90% at 20% 30%, color-mix(in oklch, var(--accent) 35%, var(--paper)) 0%, transparent 60%),
    radial-gradient(140% 90% at 90% 70%, color-mix(in oklch, oklch(72% 0.06 50) 32%, var(--paper)) 0%, transparent 60%),
    var(--paper);
}
.fig.tone-water {
  background:
    radial-gradient(140% 90% at 30% 80%, color-mix(in oklch, oklch(60% 0.10 215) 30%, var(--paper)) 0%, transparent 65%),
    radial-gradient(140% 90% at 80% 20%, color-mix(in oklch, oklch(85% 0.035 80) 35%, var(--paper)) 0%, transparent 65%),
    var(--paper);
}
.fig.tone-sun {
  background:
    radial-gradient(80% 60% at 60% 30%, color-mix(in oklch, oklch(82% 0.07 78) 55%, var(--paper)) 0%, transparent 70%),
    radial-gradient(120% 80% at 20% 90%, color-mix(in oklch, var(--accent) 25%, var(--paper)) 0%, transparent 65%),
    var(--paper);
}
.fig .label {
  position: absolute; left: 1rem; bottom: 0.85rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.62rem;
  color: var(--surface);
  background: color-mix(in oklch, var(--ink) 80%, transparent);
  padding: 0.3rem 0.55rem;
  border-radius: 2px;
  z-index: 2;
}
.fig.aspect-16x9 { aspect-ratio: 16 / 9; }
.fig.aspect-4x5  { aspect-ratio: 4 / 5; }
.fig.aspect-1x1  { aspect-ratio: 1 / 1; }
.fig.aspect-3x2  { aspect-ratio: 3 / 2; }
.fig.aspect-21x9 { aspect-ratio: 21 / 9; }

/* ----- Pinned story scroll: carnival edition ----- */
.story {
  background:
    radial-gradient(80% 60% at 30% 20%, color-mix(in oklch, var(--accent) 70%, var(--ink)), transparent 60%),
    radial-gradient(80% 60% at 80% 80%, color-mix(in oklch, var(--accent-deep) 90%, var(--ink)), transparent 60%),
    var(--accent-deep);
  color: var(--bg);
  position: relative;
  border-top: 6px solid var(--ink);
  border-bottom: 6px solid var(--ink);
  /* No overflow: hidden — it would kill position: sticky on .story-visual.
     The decorative ::before/::after pseudo-elements are absolutely positioned
     within .story (relative parent) so they're already contained. */
}
.story::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--halftone);
  opacity: 0.18;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.story::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(45deg, var(--gold) 0 14px, var(--ink) 14px 28px);
}
.story-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* `align-items: start` is mandatory: with the default stretch, the
     sticky child fills the grid row's full height and has no room to
     actually stick. */
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.story-visual {
  position: sticky;
  top: 0;
  height: 100vh;
  align-self: start;
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 1024px) {
  .story-inner { grid-template-columns: 1fr; }
  .story-visual { display: none !important; }
  .story-text { padding: 6vh 0; gap: 4vh; }
  .story-step { min-height: auto; }
}
.story-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 78vh;
  border: 4px solid var(--ink);
  background:
    radial-gradient(120% 80% at 50% 30%, color-mix(in oklch, var(--gold) 30%, var(--bg)), transparent 60%),
    var(--bg);
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 8px 8px 0 0 var(--ink);
  transform: rotate(-1deg);
}
.story-canvas .stage {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  opacity: 0;
  transition: opacity 700ms ease;
  padding: 2.5rem;
  text-align: center;
}
.story-canvas .stage[data-active="true"] { opacity: 1; }
.story-canvas .stage .num {
  position: absolute; top: 1rem; left: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  box-shadow: 2px 2px 0 0 var(--ink);
  transform: rotate(-3deg);
}
.story-canvas .stage .glyph {
  width: 60%; aspect-ratio: 1; max-width: 360px;
  position: relative;
  display: grid; place-items: center;
}
/* HTML-content stages need flexible vertical room (the odometer is wide,
   the receipt is tall). Keep the .glyph 60%-wide so the receipt's width
   percentage resolves cleanly, but drop the square aspect-ratio so its
   children can be as tall as they need. */
.story-canvas .stage[data-stage="1"] .glyph,
.story-canvas .stage[data-stage="2"] .glyph {
  aspect-ratio: auto;
  width: 80%;
  max-width: 380px;
}
.story-canvas .stage .glyph-mark {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 10rem);
  font-style: italic;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 400;
}
.story-text {
  padding: 18vh 0;
  display: grid;
  gap: 18vh;
}
.story-step {
  min-height: 60vh;
  display: grid; align-content: center;
  gap: 1.25rem;
}
.story-step .step-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  box-shadow: 2px 2px 0 0 var(--ink);
  display: inline-block;
  font-weight: 500;
  align-self: start;
}
.story-step h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  color: var(--bg);
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.story-step h3 em { color: var(--gold); font-style: italic; font-weight: 900; }
.story-step p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: color-mix(in oklch, var(--bg) 78%, transparent);
  max-width: 36ch;
  margin: 0;
}

/* ----- Stats: trading-card / fairground-tally ----- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.5rem 0;
}
@media (max-width: 880px) { .stats { grid-template-columns: 1fr 1fr; } }
.stats .stat {
  padding: 1.5rem 1.25rem;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 4px 0 0 var(--ink);
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease;
  position: relative;
}
.stats .stat:nth-child(odd)  { transform: rotate(-0.6deg); }
.stats .stat:nth-child(even) { transform: rotate(0.5deg); }
.stats .stat:hover {
  transform: rotate(0deg) translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 var(--ink);
}
.stats .stat:nth-child(2) { background: color-mix(in oklch, var(--gold) 22%, var(--surface)); }
.stats .stat:nth-child(3) { background: color-mix(in oklch, var(--teal) 18%, var(--surface)); }
.stats .num {
  font-family: var(--font-poster);
  font-size: clamp(2.8rem, 5.8vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stats .num em { font-style: normal; color: var(--accent); }
.stats .lab {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 0.7rem;
  max-width: 24ch;
  line-height: 1.4;
}

/* ----- Trading-card style article cards ----- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 1rem;
}
@media (max-width: 880px) { .cards { grid-template-columns: 1fr; } }
.card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 4px 4px 0 0 var(--ink);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 240ms ease;
}
.card:nth-child(odd)  { transform: rotate(-0.5deg); }
.card:nth-child(even) { transform: rotate(0.4deg); }
.card:hover {
  transform: rotate(0deg) translate(-2px, -3px);
  box-shadow: 7px 7px 0 0 var(--ink);
}
.card .fig {
  border: 2px solid var(--ink);
  border-radius: 8px;
}
.card .cat {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.66rem;
  color: var(--bg);
  background: var(--accent);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  justify-self: start;
}
.card h3 { font-size: 1.4rem; line-height: 1.15; padding: 0 0.25rem; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; max-width: 38ch; padding: 0 0.25rem; }
.card .meta { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--faint); padding: 0 0.25rem; }
.card a.read {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent);
  text-decoration: none;
  align-self: start;
  padding: 0 0.25rem;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
  display: inline-block;
}
.card a.read:hover { transform: translateX(3px); color: var(--accent-deep); }

/* ----- Donate band: parade poster ----- */
.donate-band {
  background: var(--accent);
  color: var(--bg);
  padding: clamp(4rem, 9vw, 7rem) 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.donate-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--halftone);
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}
.donate-band::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(45deg, var(--gold) 0 12px, var(--ink) 12px 24px);
}
.donate-band .container { position: relative; z-index: 1; }
.donate-band .donate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 880px) { .donate-band .donate-grid { grid-template-columns: 1fr; } }
.donate-band h2 {
  font-family: var(--font-poster);
  color: var(--bg);
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-shadow: 4px 4px 0 var(--ink);
}
.donate-band h2 em {
  color: var(--gold);
  font-style: normal;
  text-shadow: 4px 4px 0 var(--accent-deep);
  display: inline-block;
  transform: rotate(-2deg);
}
.donate-band .lede { color: color-mix(in oklch, var(--bg) 88%, transparent); }
.donate-band .eyebrow {
  color: var(--ink) !important;
  background: var(--gold);
  border-color: var(--ink);
  box-shadow: 2px 2px 0 0 var(--ink);
}
.donate-band .ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.donate-band .btn-primary {
  background: var(--gold);
  border: 2px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  box-shadow: 4px 4px 0 0 var(--ink);
  transition: transform 140ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 140ms ease, background 140ms ease;
}
.donate-band .btn-primary:hover {
  background: var(--bg);
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 0 var(--ink);
}
.donate-band .btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 0 var(--ink);
}
.donate-band .btn-ghost {
  color: var(--bg);
  border: 2px solid var(--bg);
  background: transparent;
  font-style: italic;
  padding: 1rem 1.4rem;
}
.donate-band .btn-ghost:hover { background: var(--bg); color: var(--accent); }

/* Trust mark in donate band: cream "ticket" with Shriners Children's logo */
.trust-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 1.5rem 0 0;
  background: var(--bg);
  padding: 0.55rem 1rem 0.55rem 1.1rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 0 var(--ink);
  max-width: max-content;
}
.trust-mark .trust-line {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.trust-mark img {
  height: 32px;
  width: auto;
  display: block;
}

/* ----- Pull quote (broadsheet hairline + hanging quote) ----- */
.pull {
  position: relative;
  margin: 2rem 0;
  padding: 1.5rem 0 0.25rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.3;
  color: var(--ink);
  max-width: 32ch;
  text-indent: -0.4em;
  hanging-punctuation: first;
}
.pull::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 1px;
  background: var(--ink);
}
.pull cite {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.25rem;
  text-indent: 0;
}

/* ----- Forms ----- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.66rem; color: var(--muted); }
.field input, .field textarea, .field select {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 0.85rem 0.95rem;
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink);
  transition: border-color 120ms ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--ink);
}
.field textarea { min-height: 6rem; resize: vertical; }

/* ----- Page head for inner pages: postcard top ----- */
.page-head {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  position: relative;
  background:
    radial-gradient(60% 100% at 80% 0%, color-mix(in oklch, var(--gold) 30%, transparent), transparent 65%),
    var(--bg);
}
.page-head::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(45deg, var(--accent) 0 12px, var(--gold) 12px 24px);
}
.page-head h1 {
  font-family: var(--font-poster);
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-shadow: 4px 4px 0 var(--gold);
}
.page-head h1 em {
  font-style: normal;
  color: var(--accent);
  text-shadow: 4px 4px 0 var(--ink);
}
.page-head .crumb {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 500;
  box-shadow: 2px 2px 0 0 var(--ink);
}

/* ----- Two-column read ----- */
.two-col {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 2.5rem;
  margin-top: 1.5rem;
}
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.two-col aside { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 0.5rem; line-height: 1.6; }

/* ----- Gallery ----- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.gallery > .fig { grid-column: span 4; }
.gallery > .fig.span-6 { grid-column: span 6; }
.gallery > .fig.span-8 { grid-column: span 8; }
.gallery > .fig.span-12 { grid-column: span 12; }
@media (max-width: 760px) {
  .gallery > .fig,
  .gallery > .fig.span-6,
  .gallery > .fig.span-8 { grid-column: span 12; }
}

/* ----- Events page: featured grid ----- */
.featured-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 2.5rem;
  border-top: 1px solid var(--rule);
  padding-top: 2rem;
}
@media (max-width: 880px) { .featured-grid { grid-template-columns: 1fr; } }

/* ----- Event list ----- */
.events-list { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.event {
  display: grid;
  grid-template-columns: 6rem 1fr auto;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
@media (max-width: 700px) { .event { grid-template-columns: 5rem 1fr; } .event .where { grid-column: 1 / -1; padding-left: 6.5rem; padding-top: 0.5rem; } }
.event .date {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--accent);
  letter-spacing: -0.005em;
}
.event .date .d { display: block; font-size: 1.8rem; font-style: normal; color: var(--ink); font-feature-settings: "tnum"; }
.event h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 0.3rem;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.event .desc { color: var(--muted); font-size: 0.94rem; max-width: 52ch; margin: 0; }
.event .where { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* ----- Officer roster ----- */
.roster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}
@media (max-width: 760px) { .roster { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .roster { grid-template-columns: 1fr; } }
.roster .person {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1rem;
}
.roster .person .role { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.roster .person .name { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); margin-top: 0.4rem; }

/* ----- Ribbon mark (subtle fez nod, abstracted) ----- */
.ribbon {
  display: inline-block;
  width: 14px; height: 14px;
  background:
    linear-gradient(180deg, var(--accent) 0 60%, transparent 60%),
    linear-gradient(180deg, var(--ink) 60% 65%, transparent 65%);
  position: relative;
  border-radius: 1px;
  vertical-align: -2px;
  margin-right: 0.4rem;
}
.ribbon::after {
  content: "";
  position: absolute; left: 50%; top: 60%; width: 2px; height: 6px;
  background: var(--accent);
  transform: translateX(-50%);
}

/* ----- Reveal on scroll ----- */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 700ms ease, transform 700ms ease; }
[data-reveal][data-revealed="true"] { opacity: 1; transform: none; }

/* ----- Focus-visible rings (accessibility) ----- */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn-poster:focus-visible,
.donate-btn:focus-visible,
.btn-outline:focus-visible {
  outline-color: var(--ink);
  outline-offset: 4px;
  border-radius: 999px;
}
.donate-band .btn-primary:focus-visible {
  outline-color: var(--bg);
  outline-offset: 4px;
}
a:focus-visible:not(.btn):not(.btn-poster):not(.donate-btn):not(.btn-outline) {
  outline-offset: 2px;
}

/* ============================================================
   OVERDRIVE: story-pin glyphs + atlas of transports
   ============================================================ */

/* ---- Stage 1: Shriner statue photo (replaces former Keys-map SVG) ---- */
.story-canvas .stage[data-stage="0"] .glyph {
  aspect-ratio: 600 / 466;
  width: 88%;
  max-width: 460px;
}
.glyph-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  box-shadow: 6px 6px 0 0 var(--ink);
  background: var(--bg);
}
/* legacy: kept for parity if any other page still references it */
.glyph-keys {
  width: 88%; max-width: 360px; aspect-ratio: 4 / 3;
  fill: none; stroke: none;
}
.glyph-keys .coast {
  fill: color-mix(in oklch, var(--gold) 35%, var(--bg));
  stroke: var(--ink);
  stroke-width: 2;
}
.glyph-keys .keys-arc circle {
  fill: var(--accent-deep);
}
.glyph-keys .child-marker .pulse {
  fill: var(--accent);
}
.glyph-keys .child-marker .pulse-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  transform-origin: 132px 212px;
  transform-box: fill-box;
  animation: child-pulse 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
.glyph-keys .locus {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  fill: var(--ink);
  font-weight: 500;
}
@keyframes child-pulse {
  0%   { r: 3;  opacity: 0.9; }
  70%  { r: 22; opacity: 0; }
  100% { r: 22; opacity: 0; }
}

/* ---- Stage 2: odometer ---- */
.odometer {
  display: inline-flex;
  gap: 0.04em;
  font-family: var(--font-poster);
  font-size: clamp(5rem, 14vw, 11rem);
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  text-shadow: 5px 5px 0 var(--accent);
}
.odometer .digit {
  position: relative;
  width: 1ch;
  height: 1em;
  overflow: hidden;
  display: inline-block;
  vertical-align: top;
  text-align: center;
}
.odometer .digit .strip {
  display: block;
  line-height: 1;
  transform: translateY(0);
  transition: transform 1400ms cubic-bezier(0.22, 1, 0.36, 1);
}
.odometer .digit .strip::before {
  /* Each \A is a CSS escape for U+000A (LF). The trailing space terminates
     the hex escape and is consumed; without it, "\A1" parses as U+00A1. */
  content: "0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9";
  white-space: pre;
  display: block;
  line-height: 1;
}
/* Per-digit transition durations: staggered roll. Always applied (not gated
   on [data-active="true"]) so JS-driven inline transforms animate correctly
   regardless of stage state. The actual roll target is set by JS to avoid
   the CSS-class-driven reversal that produced "flashes of 000". */
.odometer .digit:nth-child(1) .strip { transition-duration: 1200ms; }
.odometer .digit:nth-child(2) .strip { transition-duration: 1500ms; }
.odometer .digit:nth-child(3) .strip { transition-duration: 1800ms; }
.odometer-cap {
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  background: var(--gold);
  padding: 0.4rem 0.8rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  display: inline-block;
  box-shadow: 2px 2px 0 0 var(--ink);
}

/* ---- Stage 3: receipt ---- */
.receipt {
  width: min(94%, 380px);
  background: var(--surface);
  color: var(--ink);
  padding: 1.4rem 1.4rem 1.4rem;
  font-family: var(--font-mono);
  text-align: left;
  position: relative;
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 5px 5px 0 0 var(--ink);
  z-index: 1;
}
.receipt-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  color: var(--muted);
}
.receipt-line .rl {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.receipt-line.struck {
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  opacity: 0.7;
}
.receipt-rule {
  height: 1px;
  background: var(--ink);
  margin: 0.7rem 0 0.9rem;
}
.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.receipt-total .rt-label {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}
.receipt-total .rt-amt {
  font-family: var(--font-poster);
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  text-shadow: 3px 3px 0 var(--ink);
}
.receipt-total .rt-amt em {
  font-style: normal;
  color: inherit;
}

/* ---- Stage 4: infinity with sun-burst ---- */
.glyph-inf-burst {
  width: 88%; max-width: 360px;
  aspect-ratio: 1 / 1;
  fill: none;
}
.glyph-inf-burst .ray-burst line {
  stroke: var(--gold);
  stroke-width: 6;
  stroke-linecap: round;
  opacity: 0;
  transform: scale(0);
  transform-origin: 120px 120px;
  transform-box: fill-box;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1), opacity 600ms ease;
}
.stage[data-active="true"] .glyph-inf-burst .ray-burst line {
  opacity: 1;
  transform: scale(1);
}
.stage[data-active="true"] .glyph-inf-burst .ray-burst line:nth-child(1) { transition-delay: 600ms; }
.stage[data-active="true"] .glyph-inf-burst .ray-burst line:nth-child(2) { transition-delay: 660ms; }
.stage[data-active="true"] .glyph-inf-burst .ray-burst line:nth-child(3) { transition-delay: 700ms; }
.stage[data-active="true"] .glyph-inf-burst .ray-burst line:nth-child(4) { transition-delay: 750ms; }
.stage[data-active="true"] .glyph-inf-burst .ray-burst line:nth-child(5) { transition-delay: 800ms; }
.stage[data-active="true"] .glyph-inf-burst .ray-burst line:nth-child(6) { transition-delay: 840ms; }
.stage[data-active="true"] .glyph-inf-burst .ray-burst line:nth-child(7) { transition-delay: 880ms; }
.stage[data-active="true"] .glyph-inf-burst .ray-burst line:nth-child(8) { transition-delay: 920ms; }
.glyph-inf-burst .inf-path {
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  transition: stroke-dashoffset 2400ms cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(3px 3px 0 var(--ink));
}
.stage[data-active="true"] .glyph-inf-burst .inf-path {
  stroke-dashoffset: 0;
}
.inf-cap {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  background: var(--gold);
  padding: 0.4rem 0.8rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  display: inline-block;
  box-shadow: 2px 2px 0 0 var(--ink);
}

/* ---- Bloom on italic story-step accents ---- */
@supports (animation-timeline: view()) {
  .story-step h3 em {
    animation: story-bloom both;
    animation-timeline: view();
    animation-range: entry 5% cover 35%;
  }
}
@keyframes story-bloom {
  from { color: oklch(78% 0.02 60); }
  to   { color: oklch(74% 0.095 86); }
}

/* ============================================================
   ATLAS: 487 miles, drawn (scroll-driven SVG)
   ============================================================ */
.atlas {
  background:
    radial-gradient(120% 60% at 80% 0%, color-mix(in oklch, var(--gold) 35%, transparent), transparent 55%),
    radial-gradient(120% 60% at 0% 100%, color-mix(in oklch, var(--teal) 25%, transparent), transparent 50%),
    var(--surface);
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  position: relative;
}
.atlas::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, var(--gold) 14px 28px);
}
.atlas::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(45deg, var(--accent) 0 14px, var(--gold) 14px 28px);
}
.atlas-inner { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.atlas-head {
  display: grid;
  gap: 1rem;
  max-width: 64ch;
}
.atlas-title {
  font-family: var(--font-poster);
  font-size: clamp(2.2rem, 5.5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
  text-shadow: 3px 3px 0 var(--gold);
}
.atlas-title em {
  color: var(--accent);
  font-style: normal;
  text-shadow: 3px 3px 0 var(--ink);
}
.atlas-lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 56ch;
  margin: 0;
}

.atlas-figure {
  position: relative;
  display: grid;
  gap: 1.5rem;
  margin: 0;
}
.atlas-svg {
  width: 100%;
  height: auto;
  display: block;
  background:
    radial-gradient(circle at 30% 80%, color-mix(in oklch, var(--teal) 18%, transparent), transparent 55%),
    var(--bg);
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 0 var(--ink);
}
.atlas-svg .atlas-bg {
  fill: transparent;
}
.atlas-svg .atlas-bg-hatch {
  opacity: 0.08;
}
.atlas-svg .hatch-line {
  stroke: var(--ink);
  stroke-width: 0.5;
}
.atlas-svg .atlas-coast {
  fill: color-mix(in oklch, var(--gold) 35%, var(--bg));
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.atlas-svg .atlas-lake {
  fill: color-mix(in oklch, var(--teal) 50%, var(--bg));
  stroke: var(--ink);
  stroke-width: 1;
}
.atlas-svg .atlas-keys circle {
  fill: var(--accent-deep);
}
.atlas-svg .atlas-route-ghost {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 3 6;
  opacity: 0.35;
}
.atlas-svg .atlas-route {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: var(--route-len, 1200);
  stroke-dashoffset: var(--route-len, 1200);
  filter: drop-shadow(0 2px 0 var(--ink));
}
.atlas-svg .atlas-car {
  opacity: 0;
  transition: opacity 220ms ease;
  filter: drop-shadow(2px 3px 0 var(--ink));
  transform-box: fill-box;
  transform-origin: center;
}

/* MM 50 highway shield, the real Keys mile marker */
.atlas-svg .atlas-mm50-pos { filter: drop-shadow(3px 4px 0 var(--ink)); }
.atlas-svg .atlas-mm50 {
  transform-origin: 25px 86px;
  transform-box: fill-box;
  animation: mm-sway 5s ease-in-out infinite;
}
@keyframes mm-sway {
  0%, 100% { transform: rotate(-7deg); }
  50%      { transform: rotate(-3deg); }
}

.atlas-svg .atlas-anchor .anchor-dot {
  fill: var(--gold);
  stroke: var(--ink);
  stroke-width: 1.5;
}
.atlas-svg .atlas-anchor .anchor-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  opacity: 0.6;
}
.atlas-svg .atlas-anchor .anchor-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  letter-spacing: -0.005em;
  fill: var(--ink);
  font-weight: 500;
}
.atlas-svg .atlas-milestones .milestone {
  opacity: 0;
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.atlas-svg .atlas-milestones .milestone.is-lit {
  opacity: 1;
}
.atlas-svg .atlas-milestones .m-dot {
  fill: var(--gold);
  stroke: var(--ink);
  stroke-width: 1.5;
  r: 5;
}
.atlas-svg .atlas-milestones .m-year {
  font-family: var(--font-display);
  font-size: 16px;
  font-style: italic;
  font-weight: 500;
  fill: var(--accent);
  text-anchor: middle;
}
.atlas-svg .atlas-milestones .m-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  fill: var(--muted);
  text-anchor: middle;
}
.atlas-svg .atlas-compass .compass-ring {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  opacity: 0.4;
}
.atlas-svg .atlas-compass .compass-axis {
  stroke: var(--ink);
  stroke-width: 1;
  opacity: 0.35;
}
.atlas-svg .atlas-compass .compass-n {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  fill: var(--ink);
  font-weight: 500;
}

/* Caption with the live mile counter */
.atlas-caption {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 2rem;
  padding: 0 0.25rem;
}
@media (max-width: 720px) {
  .atlas-caption { grid-template-columns: 1fr; align-items: start; }
}
.atlas-counter {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.atlas-counter .ac-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.atlas-counter .ac-value {
  font-family: var(--font-poster);
  font-size: clamp(3rem, 6vw, 4.6rem);
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  letter-spacing: -0.025em;
  text-shadow: 3px 3px 0 var(--ink);
}
.atlas-counter .ac-value em {
  font-style: normal;
  color: inherit;
}
.atlas-counter .ac-of {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.atlas-counter .ac-of strong {
  color: var(--ink);
  font-weight: 500;
}
.atlas-meta {
  display: grid;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}
@media (max-width: 720px) {
  .atlas-meta { text-align: left; }
}

/* Scroll-driven route reveal in browsers that support scroll-timeline.
   Falls back to JS-driven --route-progress in others. */
@supports (animation-timeline: view()) {
  .atlas-svg .atlas-route {
    animation: route-draw both linear;
    animation-timeline: view();
    animation-range: entry 25% cover 70%;
  }
  .atlas-svg .atlas-anchor-end .anchor-dot,
  .atlas-svg .atlas-anchor-end .anchor-ring {
    animation: anchor-arrive both;
    animation-timeline: view();
    animation-range: cover 55% cover 75%;
  }
}
@keyframes route-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes anchor-arrive {
  from { transform: scale(0.4); opacity: 0; transform-origin: 300px 90px; transform-box: fill-box; }
  to   { transform: scale(1);   opacity: 1; }
}

/* JS fallback for browsers without scroll-timeline (Firefox without flag) */
.atlas-svg .atlas-route[data-progress] {
  stroke-dashoffset: calc(var(--route-len, 1200) * (1 - var(--route-progress, 0)));
  transition: stroke-dashoffset 80ms linear;
}

/* ============================================================
   Reduced motion: collapse the cinema, keep the dignity
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .glyph-keys .child-marker .pulse-ring { animation: none; opacity: 0.3; }
  .odometer .digit .strip { transition: none; }
  .glyph-inf-burst .inf-path { stroke-dashoffset: 0; transition: none; }
  .glyph-inf-burst .ray-burst line { transition: none; opacity: 1; transform: scale(1); }
  .atlas-svg .atlas-route { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .atlas-svg .atlas-anchor-end .anchor-dot,
  .atlas-svg .atlas-anchor-end .anchor-ring { animation: none; }
  .atlas-svg .atlas-car { transition: none; }
  .story-step h3 em { animation: none; color: var(--gold); }
  .hero-sunburst { animation: none; }
  .hero-stamp { animation: none; }
  .lede-spotlight-mark { animation: none; }
  .stats .stat:nth-child(odd),
  .stats .stat:nth-child(even),
  .card:nth-child(odd),
  .card:nth-child(even) { transform: none; }
  .lede-spotlight { transform: none; }
  .ribbon-banner { transform: none; animation: none; }
  .hero-headline .hero-line { animation: none; opacity: 1; transform: none; }
  .hero-emblem { animation: none; }
  .block-deco-anchor, .block-deco-sun { animation: none; }
  .atlas-svg .atlas-mm50 { animation: none; transform: rotate(-5deg); }
  [data-marquee] { animation: none !important; }
}

/* ============================================================
   CAROUSEL: scroll-snap photo slider for the gallery
   ============================================================ */
.carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1rem);
  margin: 0;
  padding: 0;
}
.carousel-track {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0.25rem;
  display: flex;
  gap: clamp(1rem, 2vw, 1.5rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: grid;
  gap: 1rem;
}
@media (min-width: 880px) {
  .carousel-slide { flex-basis: calc(100% - 4rem); }
}
.carousel-fig {
  display: block;
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 6px 6px 0 0 var(--ink);
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  background:
    radial-gradient(circle at center, color-mix(in oklch, var(--gold) 25%, var(--paper)), var(--paper));
}
@media (max-width: 600px) {
  .carousel-fig { aspect-ratio: 3 / 4; }
}
.carousel-cap {
  display: grid;
  gap: 0.45rem;
  padding: 0 0.4rem;
}
.carousel-cap .cap-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  box-shadow: 2px 2px 0 0 var(--ink);
  display: inline-block;
  justify-self: start;
  font-weight: 500;
}
.carousel-cap p {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
  text-wrap: pretty;
  max-width: 56ch;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 3px 3px 0 0 var(--ink);
  transition: transform 140ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 140ms ease, background 140ms ease;
  z-index: 2;
}
.carousel-btn:hover { background: var(--gold); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 0 var(--ink); }
.carousel-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 0 var(--ink); }
.carousel-btn[disabled] { opacity: 0.45; cursor: default; box-shadow: 2px 2px 0 0 var(--ink); }
.carousel-btn[disabled]:hover { background: var(--bg); transform: none; }

@media (max-width: 600px) {
  .carousel { grid-template-columns: 1fr; }
  .carousel-prev, .carousel-next { display: none; }
}

.carousel-dots {
  grid-column: 1 / -1;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}
.carousel-dots li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease;
}
.carousel-dots li[aria-current="true"] {
  background: var(--accent);
  transform: scale(1.2);
}
.carousel-dots li:hover { background: var(--gold); }

.gallery-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2rem;
  text-align: center;
}
.gallery-note em {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}

/* ============================================================
   QR HANDOUT (printable scan-to-donate flyer)
   ============================================================ */
.qr-body {
  background: var(--bg);
  margin: 0;
  padding: 0;
}
.qr-sheet {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background:
    radial-gradient(60% 60% at 80% 0%, color-mix(in oklch, var(--gold) 35%, transparent), transparent 60%),
    radial-gradient(60% 60% at 0% 100%, color-mix(in oklch, var(--teal) 25%, transparent), transparent 60%),
    var(--bg);
}
.qr-frame {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 8.5 / 11;
  background: var(--surface);
  border: 4px solid var(--ink);
  border-radius: 6px;
  box-shadow: 8px 10px 0 0 var(--ink);
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2rem);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: clamp(0.6rem, 1.6vw, 1.2rem);
  align-items: center;
  text-align: center;
  overflow: hidden;
}
.qr-header { display: grid; gap: 0.4rem; justify-items: center; }
.qr-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  padding: 0.35rem 0.8rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-weight: 500;
  box-shadow: 2px 2px 0 0 var(--ink);
  display: inline-block;
}
.qr-headline {
  font-family: var(--font-poster);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.95;
  margin: 0.4rem 0 0;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-shadow: 4px 4px 0 var(--gold);
}
.qr-headline em {
  font-style: normal;
  color: var(--accent);
  text-shadow: 4px 4px 0 var(--ink);
}
.qr-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--muted);
  margin: 0.4rem 0 0;
  text-wrap: balance;
}

.qr-code {
  display: grid;
  place-items: center;
  width: clamp(220px, 38vw, 380px);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: clamp(0.6rem, 1.5vw, 1rem);
  background: var(--bg);
  border: 3px solid var(--ink);
  border-radius: 4px;
  box-shadow: 5px 5px 0 0 var(--ink);
}
.qr-code svg {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-url {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0;
  word-break: break-all;
}

.qr-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: end;
  padding-top: clamp(0.5rem, 1.5vw, 1rem);
  border-top: 2px dashed var(--ink);
  text-align: left;
}
.qr-foot-left { display: grid; gap: 0.35rem; }
.qr-foot-mast {
  font-family: var(--font-poster);
  font-size: 1.15rem;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.qr-foot-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  font-weight: 500;
}
.qr-foot-right {
  display: grid;
  gap: 0.4rem;
  justify-items: end;
}
.qr-foot-logo {
  height: 38px;
  width: auto;
  display: block;
}
.qr-foot-tax {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  font-weight: 500;
}

/* Poster corner trim */
.qr-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 4px solid var(--accent);
  pointer-events: none;
}
.qr-corner-tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.qr-corner-tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.qr-corner-bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.qr-corner-br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

.qr-print-hint {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
}
.qr-print-hint a { color: var(--accent); font-weight: 500; }

/* Print: full sheet, hide hints, sharpen contrast */
@media print {
  @page { size: letter; margin: 0.4in; }
  html, body { background: white !important; }
  .qr-body { background: white !important; }
  .qr-sheet { padding: 0; min-height: auto; background: white; }
  .qr-frame {
    box-shadow: none;
    border-color: black;
    aspect-ratio: auto;
    page-break-inside: avoid;
    background: white;
  }
  .qr-headline { text-shadow: none; color: black; }
  .qr-headline em { color: black; text-shadow: none; }
  .qr-eyebrow { background: white; box-shadow: none; border-color: black; color: black; }
  .qr-code { box-shadow: none; border-color: black; }
  .qr-corner { border-color: black; }
  .no-print, .qr-print-hint { display: none !important; }
}

/* ----- Print sanity ----- */
@media print {
  .masthead, .donate-band, .foot { background: white !important; color: black !important; }
}
