/* ==========================================================================
   10,452 w noss
   Hand-written stylesheet. No build step. Mobile first.
   Tokens: warm white paper, Lebanese red as the anchor, cedar green as a
   rare accent, deep charcoal ink.
   ========================================================================== */

:root {
  --paper: #f5f4ef;
  --paper-deep: #ece9e1;
  --card: #fefcf8;
  --ink: #0e1113;
  --ink-soft: #2b2e31;
  --muted: #5a5853;
  --stone: #e3dfd4;
  --stone-deep: #c9c3b5;
  --line-strong: #8a857a; /* 3.6:1: form field edges people must be able to see */
  --red: #d11f2d;
  --red-deep: #a8141f;
  --red-tint: #fbe9ea;
  --cedar: #1f6b3a;
  --cedar-tint: #e6f1ea;
  --amber: #7f5a00;      /* 5.6:1 on its tint, so amber text passes AA */
  --amber-tint: #fbf3df;

  --display: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 80rem;
  --gutter: 1.25rem;
  --radius: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 40em) { :root { --gutter: 2rem; } }
@media (min-width: 64em) { :root { --gutter: 3rem; } }

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
}
main { flex: 1; }
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ol, ul { margin: 0; }
p + p { margin-top: 1em; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; inset-inline-start: 1rem; top: 1rem; z-index: 200; background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 999px; font-family: var(--display); font-weight: 700; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* Layout ----------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-tight { padding-block: clamp(2.5rem, 6vw, 5rem); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--paper); }
.section-dark .muted { color: #b9b5aa; }
.section-red { background: var(--red); color: #fff; }
.section-red h1, .section-red h2, .section-red h3 { color: #fff; }
.grid { display: grid; gap: 2rem; }
@media (min-width: 52em) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-asym { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
  .grid-asym-r { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
}
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.75rem; }
.cluster { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.measure { max-width: 36rem; }
.measure-wide { max-width: 44rem; }
.divider { border: 0; border-top: 1px solid var(--stone); margin: 0; }

/* Type ------------------------------------------------------------------- */
.display-number {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: .86;
  font-variant-numeric: tabular-nums lining-nums;
}
.h-display { font-weight: 800; letter-spacing: -.035em; line-height: .98; font-size: clamp(2.5rem, 6.2vw, 5.4rem); }
.h-section { font-weight: 800; letter-spacing: -.03em; line-height: 1.02; font-size: clamp(1.9rem, 3.9vw, 3.2rem); }
.h-sub { font-weight: 700; letter-spacing: -.02em; line-height: 1.12; font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
.h-small { font-weight: 700; letter-spacing: -.01em; font-size: 1.125rem; }
.lede { font-size: clamp(1.125rem, 1.5vw, 1.35rem); line-height: 1.55; color: var(--ink-soft); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.tiny { font-size: .8rem; }
.eyebrow { font-family: var(--display); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.red { color: var(--red); }
.cedar { color: var(--cedar); }
.tnum { font-variant-numeric: tabular-nums; }
.rule { height: 4px; width: 3.5rem; background: var(--red); border: 0; margin: 0; }
.link { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .2em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.link:hover { text-decoration-color: currentColor; }
.wordmark { font-family: var(--display); font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.wordmark .w { font-weight: 700; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.9rem; padding: .5rem 1.35rem; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--display); font-weight: 700; font-size: .95rem; letter-spacing: -.01em; line-height: 1.15; text-align: center;
  text-decoration: none; cursor: pointer; user-select: none; max-width: 100%;
  transition: background-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), border-color .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--ink-soft); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.section-dark .btn-outline, .section-red .btn-outline { border-color: currentColor; color: inherit; }
.section-dark .btn-outline:hover { background: var(--paper); color: var(--ink); }
.section-red .btn-outline:hover { background: #fff; color: var(--red); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--stone); }
.btn-lg { min-height: 3.3rem; padding: .7rem 1.75rem; font-size: 1rem; }
.btn-sm { min-height: 2.3rem; padding: .35rem 1rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn svg { width: 1rem; height: 1rem; }

/* Nav -------------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 50; position: sticky; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--stone) 70%, transparent); }
.nav-progress { position: absolute; inset-inline-start: 0; bottom: -1px; height: 3px; width: 0; background: var(--red); transition: width .12s linear; }
.nav { position: sticky; }
.nav-inner { height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .8rem; }
.brand a { display: flex; align-items: center; text-decoration: none; color: inherit; }
.brand .brand-partner-link { border-radius: 50%; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.brand .brand-partner-link:hover { opacity: .85; transform: scale(1.04); }
.brand .brand-ll { height: 18px; width: auto; }
.brand .brand-partner { height: 40px; width: auto; }
.brand .sep { width: 1px; height: 1.2rem; background: var(--stone-deep); display: inline-block; }
.brand .sep-wordmark, .brand .wordmark { display: none; }
.brand .wordmark { font-size: 1.05rem; }
@media (min-width: 64em) and (max-width: 79.99em) { .brand .sep-wordmark, .brand .wordmark { display: inline-block; } }
.nav-links { display: none; gap: 1.1rem; align-items: center; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .88rem; color: var(--ink-soft); white-space: nowrap; }
/* Menu: a red line grows under a link on hover; the open page keeps it, in red. */
.nav-links a { position: relative; padding: .45rem .1rem; transition: color .2s var(--ease); }
.nav-links a::after { content: ""; position: absolute; inset-inline: 0; bottom: .05rem; height: 2px; border-radius: 2px; background: var(--red); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--red); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.nav-inner .btn[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .nav-links a, .nav-links a::after { transition: none; } }
.nav-cta { display: none; }
@media (min-width: 80em) { .nav-links { display: flex; } }
@media (min-width: 48em) { .nav-cta { display: inline-flex; } }
.nav-toggle { display: inline-flex; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; border: 0; background: transparent; border-radius: 999px; cursor: pointer; }
.nav-toggle:hover { background: var(--stone); }
@media (min-width: 80em) { .nav-toggle { display: none; } }
.nav-mobile { display: none; border-top: 1px solid var(--stone); background: var(--paper); }
.nav-mobile[data-open="true"] { display: block; }
.nav-mobile a.item { display: block; padding: .9rem 0; border-bottom: 1px solid color-mix(in srgb, var(--stone) 70%, transparent); font-family: var(--display); font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.nav-mobile a.item { position: relative; transition: color .2s var(--ease), padding .25s var(--ease); }
.nav-mobile a.item::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; width: 4px; height: 1.2rem; margin-top: -.6rem; border-radius: 4px; background: var(--red); transform: scaleY(0); transition: transform .25s var(--ease); }
.nav-mobile a.item:hover, .nav-mobile a.item:focus-visible { color: var(--red); padding-inline-start: .5rem; }
.nav-mobile a.item[aria-current="page"] { color: var(--red); padding-inline-start: .9rem; }
.nav-mobile a.item[aria-current="page"]::before { transform: scaleY(1); }
@media (prefers-reduced-motion: reduce) { .nav-mobile a.item, .nav-mobile a.item::before { transition: none; } }
.nav-mobile .actions { display: grid; gap: .6rem; padding-block: 1rem; }

/* Flash / notices -------------------------------------------------------- */
.notice { border-radius: var(--radius); padding: .9rem 1.1rem; border: 1px solid var(--stone-deep); background: var(--card); display: flex; gap: .75rem; align-items: flex-start; }
.notice strong { font-family: var(--display); }
.notice-ok { border-color: color-mix(in srgb, var(--cedar) 40%, transparent); background: var(--cedar-tint); }
.notice-warn { border-color: color-mix(in srgb, var(--amber) 40%, transparent); background: var(--amber-tint); }
.notice-bad { border-color: color-mix(in srgb, var(--red) 40%, transparent); background: var(--red-tint); }
.notice-dot { width: .6rem; height: .6rem; border-radius: 50%; margin-top: .5rem; flex: none; background: var(--muted); }
.notice-ok .notice-dot { background: var(--cedar); }
.notice-warn .notice-dot { background: var(--amber); }
.notice-bad .notice-dot { background: var(--red); }

/* Forms ------------------------------------------------------------------ */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 40em) { .form-row-2 { grid-template-columns: 1fr 1fr; } }
.label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.field { width: 100%; border: 1px solid var(--line-strong); background: var(--card); border-radius: 8px; padding: .8rem .9rem; font-size: 1rem; color: var(--ink); }
.field:focus { border-color: var(--ink); outline: 3px solid var(--red); outline-offset: 1px; box-shadow: none; }
.field[aria-invalid="true"] { border-color: var(--red); }
.help { font-size: .86rem; color: var(--muted); margin-top: .35rem; }
.error { font-size: .86rem; color: var(--red-deep); font-weight: 500; margin-top: .35rem; }
.checkbox { display: flex; gap: .7rem; align-items: flex-start; }
.checkbox input { width: 1.15rem; height: 1.15rem; margin-top: .25rem; accent-color: var(--red); }
.radio-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; inset: 0; opacity: 0; }
.radio-pill span { display: inline-flex; align-items: center; height: 2.6rem; padding-inline: 1.1rem; border-radius: 999px; border: 1.5px solid var(--stone-deep); background: var(--card); font-family: var(--display); font-weight: 700; cursor: pointer; }
.radio-pill input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.radio-pill input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.dropzone { border: 1.5px dashed var(--stone-deep); border-radius: var(--radius); background: var(--card); padding: 1.5rem; text-align: center; }
.dropzone input { display: block; margin: .75rem auto 0; max-width: 100%; }
.file-preview { margin-top: 1rem; display: none; }
.file-preview img { max-height: 16rem; margin: 0 auto; border-radius: 8px; border: 1px solid var(--stone); }
.file-preview[data-visible="true"] { display: block; }

/* Cards (used in the app, sparingly on the landing) ---------------------- */
.card { background: var(--card); border: 1px solid var(--stone); border-radius: var(--radius); padding: 1.4rem; }
.card-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.card-ink h3, .card-ink h2 { color: var(--paper); }
.card-ink .muted { color: #b9b5aa; }
.card-red-top { border-top: 4px solid var(--red); }

/* Status pills ----------------------------------------------------------- */
.pill { display: inline-flex; align-items: center; gap: .45rem; height: 1.9rem; padding-inline: .8rem; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: .8rem; letter-spacing: .01em; border: 1.5px solid transparent; }
.pill-verified { background: var(--cedar); color: #fff; }
.pill-retry { background: var(--card); color: var(--ink); border-color: var(--ink); }
.pill-review { background: var(--amber-tint); color: var(--amber); border-color: color-mix(in srgb, var(--amber) 35%, transparent); }
.pill-pending { background: var(--stone); color: var(--ink-soft); }
.pill-paid { background: var(--cedar-tint); color: var(--cedar); }
.pill-locked { background: var(--stone); color: var(--muted); }

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); }
.hero-grid { display: grid; gap: 2.5rem; }
@media (min-width: 64em) { .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: end; gap: 4rem; } }
.hero .h-display { font-size: clamp(2.3rem, 4.3vw, 4.1rem); }
.hero-figure { container-type: inline-size; min-width: 0; }
.hero-number { font-size: clamp(5rem, 27cqi, 15rem); color: var(--red); margin-inline-start: -.03em; white-space: nowrap; will-change: transform; }
.hero-photo { margin-top: .9rem; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 100%); mask-image: linear-gradient(180deg, #000 58%, transparent 100%); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.hero-photo[data-in="true"] img, html.no-js .hero-photo img { transform: none; }
.hero-photo + .hero-number { position: relative; margin-top: -.42em; }
.hero-kicker { font-family: var(--display); font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.2rem); letter-spacing: -.01em; }
.hero-stage { position: relative; height: clamp(5rem, 14vw, 9rem); margin-top: -1rem; }
.hero-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-walker { position: absolute; inset-inline-start: 0; bottom: 1.6rem; }
.hero-copy { align-self: end; }
.hero-countdown { display: inline-flex; align-items: baseline; gap: .5rem; padding: .45rem .9rem; border: 1px solid var(--stone-deep); border-radius: 999px; font-size: .88rem; background: var(--card); }
.hero-countdown b { font-family: var(--display); font-weight: 800; font-size: 1.05rem; }

/* Why 10,452 ------------------------------------------------------------- */
.why-figure { position: relative; }
.why-figure svg { width: 100%; height: auto; }
.why-stat { display: grid; gap: .25rem; padding-inline-start: 1.2rem; border-inline-start: 3px solid var(--red); }
.why-stat b { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.04em; line-height: 1; }

/* Journey (scroll-driven) ------------------------------------------------- */
.journey-head { padding-top: 1.5rem; }
.journey-foot { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding-bottom: 1.5rem; }
.journey-counter { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -.04em; line-height: 1; color: var(--red); }
.journey-counter small { display: block; font-family: var(--sans); font-weight: 500; font-size: .85rem; letter-spacing: 0; color: var(--muted); margin-top: .35rem; }
/* Static fallback: no JS or reduced motion */
/* Story: one map, five blocks ------------------------------------------ */
.story { position: relative; }
.story-grid { position: relative; }
.story-map { position: sticky; top: 4rem; z-index: 2; background: var(--paper); height: 42vh; min-height: 17rem; border-bottom: 1px solid var(--stone); }
.story-sticky { position: relative; height: 100%; }
.story-sticky canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.story-fallback { display: none; position: absolute; inset: 0; padding: 1rem; }
.story-fallback svg { width: 100%; height: 100%; }
html.no-js .story-fallback, .story[data-failed="true"] .story-fallback { display: block; }
html.no-js .story-sticky canvas, .story[data-failed="true"] .story-sticky canvas, html.no-js .story-caption { display: none; }
.story-caption { position: absolute; left: 50%; bottom: .75rem; translate: -50% 0; width: max-content; max-width: min(34ch, calc(100% - 2rem)); text-align: center; font-family: var(--display); font-weight: 800; font-size: clamp(.95rem, 1.6vw, 1.25rem); letter-spacing: -.02em; line-height: 1.2; color: var(--ink); text-shadow: 0 0 6px var(--paper), 0 0 14px var(--paper); opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease); pointer-events: none; }
.story-caption[data-on="true"] { opacity: 1; transform: none; }
.story-blocks { display: grid; }
.story-block { display: grid; align-content: center; gap: 1.4rem; padding: clamp(2.5rem, 6vw, 4rem) var(--gutter); min-height: 70vh; }
.story-block .cluster { gap: .75rem; }
.story-hero { min-height: 110vh; container-type: inline-size; }
.hero-sticky { display: grid; gap: 1rem; }
.story-hero { align-content: start; padding-top: 1.25rem; }
@media (min-width: 40em) { .hero-sticky { gap: 1.4rem; } }
/* Home opening: headline, intro, countdown. All on screen at once; they settle in on load. */
.hero-title { display: grid; gap: .1em; font-size: clamp(1.6rem, 7.4cqi, 3.5rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
.hero-title .hero-brand { color: var(--red); }
.hero-title .hero-call { color: var(--ink-soft); }
.hero-intro { font-size: clamp(1.02rem, 2.4cqi, 1.2rem); line-height: 1.55; color: var(--ink-soft); max-width: 38rem; }
.hero-launch { font-family: var(--display); font-weight: 700; font-size: clamp(1rem, 2.4cqi, 1.15rem); letter-spacing: -.01em; border-inline-start: 3px solid var(--red); padding-inline-start: .8rem; max-width: 34rem; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 5.2rem)); gap: .5rem; }
.countdown > div { display: grid; justify-items: center; gap: .1rem; padding: .7rem .3rem .55rem; border-radius: 8px; background: var(--ink); color: var(--paper); }
.countdown b { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 5cqi, 2.2rem); line-height: 1; letter-spacing: -.03em; }
.countdown span { font-family: var(--display); font-weight: 700; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: #b9b5aa; }
.countdown[data-done="true"] { display: none; }
.hero-in { animation: hero-in .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 80ms); }
@keyframes hero-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Block 3: walk, connect, make a difference. They light up in step with the map. */
.walk-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.walk-points li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .8rem; align-items: start; transition: opacity .5s var(--ease); }
.walk-points .n { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-family: var(--display); font-weight: 800; font-size: .9rem; transition: background .5s var(--ease); }
.walk-points b { font-family: var(--display); display: block; font-size: 1.05rem; }
.walk-points span:not(.n) { color: var(--ink-soft); }
.walk-points li[data-on="false"] { opacity: .4; }
.walk-points li[data-on="false"] .n { background: var(--stone-deep); }

.stats-line { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-family: var(--display); font-weight: 800; letter-spacing: -.02em; font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--red); }
@media (min-width: 64em) {
  .story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 0; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
  .story-map { position: static; height: auto; min-height: 0; border: 0; background: transparent; order: 2; }
  .story-sticky { position: sticky; top: 4rem; height: calc(100dvh - 4rem); }
  .story-blocks { order: 1; }
  .story-block { padding: clamp(3rem, 8vh, 6rem) 3rem clamp(3rem, 8vh, 6rem) 0; min-height: 100vh; }
  .story-hero { min-height: calc(100dvh - 4rem); align-content: start; padding-top: clamp(2rem, 6vh, 3.5rem); }
  /* The opening text stays put while the first block scrolls, so the page starts with no empty screen. */
  .hero-sticky { position: sticky; top: 5.5rem; }
  .story-block[data-mode="roots"] { min-height: 190vh; }
  .story-block[data-mode="archive"], .story-block[data-mode="walk"] { min-height: 140vh; }
}
.story[data-static="true"] .story-block { min-height: 0; }

/* Radio tabs (no JavaScript needed) */
.tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.tab-labels { display: flex; flex-wrap: wrap; gap: .4rem; }
.tab-labels label { cursor: pointer; display: inline-flex; align-items: center; height: 2.3rem; padding-inline: .9rem; border-radius: 999px; border: 1.5px solid var(--stone-deep); font-family: var(--display); font-weight: 700; font-size: .85rem; background: var(--card); }
.tab-panel { display: none; margin-top: 1rem; }
#board-hometown:checked ~ .tab-labels label[for="board-hometown"], #board-city:checked ~ .tab-labels label[for="board-city"], #board-company:checked ~ .tab-labels label[for="board-company"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
#board-hometown:checked ~ .tab-panel[data-tab="hometown"], #board-city:checked ~ .tab-panel[data-tab="city"], #board-company:checked ~ .tab-panel[data-tab="company"] { display: block; }
.tabs > input:focus-visible ~ .tab-labels label { outline: 3px solid var(--red); outline-offset: 2px; }
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; counter-reset: b; }
.board li { counter-increment: b; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: .5rem .75rem; border: 1px solid var(--stone); border-radius: 8px; background: var(--card); font-size: .95rem; }
.board li::before { content: counter(b); font-family: var(--display); font-weight: 800; color: var(--red); margin-inline-end: .6rem; }
.board li span { flex: 1; }
.board li b { font-family: var(--display); }

/* Profile extras */
.story-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 64em) { .story-steps { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.story-steps > li { display: grid; gap: .8rem; align-content: start; }
.interstitial { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1.5rem; }
.interstitial h1 { color: var(--paper); }
.badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
@media (min-width: 40em) { .badges { grid-template-columns: repeat(2, 1fr); } }
.badge { display: grid; grid-template-columns: 2rem 1fr; grid-template-rows: auto auto; column-gap: .6rem; padding: .7rem .8rem; border: 1px solid var(--stone); border-radius: 8px; background: var(--card); opacity: .55; }
.badge[data-earned="true"] { opacity: 1; border-color: var(--cedar); }
.badge-mark { grid-row: 1 / 3; width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--stone-deep); display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: #fff; }
.badge[data-earned="true"] .badge-mark { background: var(--cedar); border-color: var(--cedar); }
/* Badges on the map page: three groups; with nobody signed in, every badge reads as open to earn. */
.badge-groups { display: grid; gap: 1.6rem; }
@media (min-width: 52em) { .badge-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; } }
.badges-1 { grid-template-columns: minmax(0, 1fr); }
.badge[data-earned="open"] { opacity: 1; }
.badge[data-earned="open"] .badge-mark { border-color: var(--red); background: radial-gradient(circle, var(--red) 0 30%, transparent 32%); }
.badge b { font-family: var(--display); font-size: .92rem; }
.badge span { font-size: .8rem; color: var(--muted); }
.offers { display: grid; gap: 1.2rem; }
@media (min-width: 64em) { .offers { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.offer { display: grid; gap: .9rem; align-content: start; }

/* Map page pins */
.pin-map { position: relative; width: 100%; aspect-ratio: 2 / 1; min-height: 18rem; border: 1px solid var(--stone); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.pin-map canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.pin-card { position: absolute; z-index: 2; max-width: 20rem; background: var(--card); border: 1px solid var(--stone-deep); border-radius: 10px; padding: .9rem 1rem; box-shadow: 0 16px 40px -24px rgba(0,0,0,.4); font-size: .9rem; }
.pin-card b { font-family: var(--display); display: block; }
.pin-card .meta { color: var(--muted); font-size: .8rem; }
.pin-card p { margin-top: .4rem; color: var(--ink-soft); }
.pin-card button { position: absolute; top: .35rem; inset-inline-end: .35rem; border: 0; background: transparent; font-size: 1.1rem; cursor: pointer; line-height: 1; padding: .2rem .4rem; }
@media (max-width: 40em) { .pin-map { aspect-ratio: 4 / 3; } }
.how { position: relative; }
.how-list { list-style: none; padding: 0; display: grid; gap: 0; position: relative; }
.how-list::before { content: ""; position: absolute; inset-inline-start: 1.15rem; top: 1.5rem; bottom: 1.5rem; border-inline-start: 2px dashed var(--stone-deep); }
.how-item { position: relative; display: grid; grid-template-columns: 2.4rem 1fr; align-content: start; gap: 1rem; padding-block: 1.5rem; }
.how-num { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; position: relative; z-index: 1; }
.how-list::after { content: ""; position: absolute; inset-inline-start: 1.15rem; top: 1.5rem; height: var(--fill, 0px); border-inline-start: 2px solid var(--red); pointer-events: none; }
.how-num { transition: background-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
.how-list[data-live] .how-item { opacity: .38; transition: opacity .4s var(--ease); }
.how-list[data-live] .how-num { background: var(--stone-deep); }
.how-list[data-live] .how-item[data-state="done"], .how-list[data-live] .how-item[data-state="now"] { opacity: 1; }
.how-list[data-live] .how-item[data-state="done"] .how-num { background: var(--red); }
.how-list[data-live] .how-item[data-state="now"] .how-num { background: var(--red); transform: scale(1.18); box-shadow: 0 0 0 6px var(--red-tint); }
.how-item h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.how-item p { color: var(--ink-soft); max-width: 32rem; margin-top: .3rem; }
@media (min-width: 64em) {
  .how-list { grid-template-columns: repeat(4, 1fr); }
  .how-list::before { inset-inline-start: 1.2rem; inset-inline-end: 1.2rem; top: 1.2rem; bottom: auto; border-inline-start: 0; border-top: 2px dashed var(--stone-deep); }
  .how-list::after { inset-inline-start: 1.2rem; top: 1.2rem; height: 0; width: var(--fill, 0px); border-inline-start: 0; border-top: 2px solid var(--red); }
  .how-item { grid-template-columns: 1fr; padding: 0 1.5rem 0 0; }
  .how-item h3 { margin-top: 1rem; }
}

/* Pledge ----------------------------------------------------------------- */
.pledge-number { font-size: clamp(5rem, 16vw, 13rem); color: var(--paper); opacity: .96; }
.pledge-lines { display: grid; gap: .5rem; font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: -.01em; }
.pledge-lines span::before { content: "/ "; color: var(--red); }

/* Phone demo ------------------------------------------------------------- */
.phone { width: min(100%, 22rem); margin-inline: auto; border: 3px solid var(--ink); border-radius: 28px; background: var(--card); padding: 1.25rem; box-shadow: 0 20px 50px -30px rgba(0,0,0,.35); }
.phone-top { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); font-family: var(--display); font-weight: 700; }
.phone-steps { font-family: var(--display); font-weight: 800; font-size: 3rem; letter-spacing: -.05em; line-height: 1; margin-top: 1.25rem; }
.phone-bar { height: .6rem; border-radius: 999px; background: var(--stone); overflow: hidden; margin-top: 1rem; }
.phone-bar i { display: block; height: 100%; width: 0; background: var(--red); transition: width 1.2s var(--ease); }
.phone-bar i[data-fill="true"] { width: 100%; }
.outcomes { display: grid; gap: .9rem; }
.outcome { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; padding: 1rem; border: 1px solid var(--stone); border-radius: var(--radius); background: var(--card); }
.outcome.is-verified { border-color: color-mix(in srgb, var(--cedar) 45%, transparent); }
.outcome.is-retry { border-color: var(--ink); }
.outcome h4 { font-size: 1rem; }
.outcome p { font-size: .92rem; color: var(--ink-soft); margin-top: .2rem; }

/* Contribute ------------------------------------------------------------- */
.amounts { display: flex; flex-wrap: wrap; gap: .55rem; }
.amounts .radio-pill span { height: 3rem; padding-inline: 1.3rem; font-size: 1.05rem; }
.keepsakes { display: grid; gap: 1rem; }
@media (min-width: 52em) { .keepsakes { grid-template-columns: 1fr 1fr; } }
.keepsake { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center; padding: 1.4rem; border: 1px solid var(--stone); border-radius: var(--radius); background: var(--card); }
.keepsake b { font-family: var(--display); font-weight: 800; font-size: 2.4rem; letter-spacing: -.05em; line-height: 1; }
.keepsake h3 { font-size: 1.15rem; margin-top: .2rem; }
.keepsake p { font-size: .92rem; color: var(--ink-soft); margin-top: .2rem; }
.book-icon { width: 3.2rem; height: 4.2rem; border-radius: 4px; background: var(--ink); border-inline-start: 7px solid var(--red); }
.bracelet-icon { width: 3.4rem; height: 3.4rem; border-radius: 50%; border: 9px solid var(--red); }
.terms { font-size: .9rem; color: var(--ink-soft); display: grid; gap: .4rem; padding-inline-start: 1.1rem; }

/* Bracelet --------------------------------------------------------------- */
.bracelet-figure { position: relative; aspect-ratio: 1; max-width: 26rem; margin-inline: auto; }
.bracelet-figure svg { width: 100%; height: 100%; }
html.no-js .bracelet-ring { transform-origin: 200px 200px; transform-box: view-box; animation: ring-turn 18s linear infinite; }
.bracelet-figure { overflow: visible; }
@keyframes ring-turn { to { transform: rotate(360deg); } }
.bracelet-lines { display: grid; gap: .9rem; font-family: var(--display); font-weight: 800; letter-spacing: -.03em; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.05; }
.bracelet-lines span:nth-child(2) { color: var(--red); }

/* Fundraise demo --------------------------------------------------------- */
.demo { border: 1px solid var(--stone); border-radius: var(--radius); background: var(--card); padding: 1.4rem; display: grid; gap: 1.1rem; }
.demo-person { display: flex; align-items: center; gap: .8rem; }
.demo-avatar { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.1rem; flex: none; }
.demo-person b { font-family: var(--display); display: block; }
.demo-person > div > span { font-size: .9rem; color: var(--muted); }
.demo-person .demo-avatar { color: #fff; }
.bracelet-dots { display: grid; grid-template-columns: repeat(10, minmax(0, 1.6rem)); gap: .35rem; }
.bracelet-dots i { aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--red); transition: border-color .4s var(--ease), transform .4s var(--ease); }
.bracelet-dots i[data-sold="true"] { border-color: var(--stone-deep); transform: scale(.7); }
.demo-url { font-family: var(--display); font-weight: 700; overflow-wrap: anywhere; }
.llm { display: grid; gap: .4rem; }
.llm-track { height: .9rem; border-radius: 999px; background: var(--stone); overflow: hidden; container-type: inline-size; }
.llm-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--red) 0%, var(--amber) 55%, var(--cedar) 100%); background-size: 100cqw 100%; background-repeat: no-repeat; transition: width .45s var(--ease); }
.demo-badge { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--stone-deep); border-radius: 4px; background: var(--paper); padding: .15rem .5rem; font-family: var(--display); font-weight: 700; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); width: fit-content; }
.demo-link { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem .9rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--stone-deep); font-family: var(--display); font-weight: 700; font-size: .95rem; }
.demo-steps { display: grid; gap: .6rem; list-style: none; padding: 0; }
.demo-steps li { display: flex; gap: .7rem; align-items: center; opacity: .45; transition: opacity .4s var(--ease); }
.demo-steps li[data-on="true"] { opacity: 1; }
.demo-steps .n { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--stone); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: .8rem; flex: none; }
.demo-steps li[data-on="true"] .n { background: var(--red); color: #fff; }
.stock { display: grid; gap: .4rem; }
.stock-bar { height: .7rem; border-radius: 999px; background: var(--stone); overflow: hidden; }
.stock-bar i { display: block; height: 100%; width: 0; background: var(--red); transition: width .8s var(--ease); }
.stock-row { display: flex; justify-content: space-between; font-family: var(--display); font-weight: 700; font-size: .95rem; }
.fund-steps { counter-reset: fs; list-style: none; padding: 0; display: grid; gap: 1rem; }
.fund-steps li { counter-increment: fs; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: .8rem; row-gap: .25rem; }
.fund-steps li::before { grid-row: 1 / span 2; }
.fund-steps li > * { grid-column: 2; }
.fund-steps li::before { content: counter(fs, decimal-leading-zero); font-family: var(--display); font-weight: 800; color: var(--red); }
.fund-steps b { font-family: var(--display); display: block; }
.fund-steps span { color: var(--ink-soft); font-size: .95rem; }

/* Meter ------------------------------------------------------------------ */
.meter { display: grid; gap: 1.1rem; }
.meter-total { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 7vw, 5.5rem); letter-spacing: -.05em; line-height: .9; color: var(--red); }
.meter-bar { display: flex; height: 2.4rem; border-radius: 8px; overflow: hidden; background: var(--stone); }
.meter-bar i { display: block; height: 100%; }
.meter-bar .c { background: var(--ink); }
.meter-bar .s { background: var(--red); }
.meter-rows { display: grid; }
.meter-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--stone); }
.meter-row:last-child { border-bottom: 2px solid var(--ink); font-weight: 700; }
.meter-row .sw { width: .9rem; height: .9rem; border-radius: 3px; display: inline-block; margin-inline-end: .6rem; vertical-align: -1px; }
.meter-row b { font-family: var(--display); }
.tiles { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 52em) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { padding: 1.1rem 1.2rem; border: 1px solid var(--stone); border-radius: var(--radius); background: var(--card); }
.tile b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(1.35rem, 2.3vw, 1.9rem); letter-spacing: -.04em; line-height: 1; white-space: nowrap; }
.tile span { display: block; font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.tile.is-red b { color: var(--red); }
.tile.card-ink { background: var(--ink); border-color: #2b2e31; }
.tile.card-ink b { color: var(--paper); }
.tile.card-ink span { color: #b9b5aa; }

/* Rankings --------------------------------------------------------------- */
.rank-table { width: 100%; border-collapse: collapse; }
.rank-table th, .rank-table td { text-align: start; padding: .85rem .6rem; border-bottom: 1px solid var(--stone); vertical-align: middle; }
.rank-table th { font-family: var(--display); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.rank-table td.num { font-family: var(--display); font-weight: 800; text-align: end; font-variant-numeric: tabular-nums; }
.rank-table .rank { font-family: var(--display); font-weight: 800; color: var(--muted); width: 3rem; }
.rank-table tr.top .rank { color: var(--red); }
.rank-table tr.me { background: var(--red-tint); }
.rank-table tr.me td:first-child { box-shadow: inset 4px 0 0 var(--red); }
.rank-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.rank-tabs a { text-decoration: none; display: inline-flex; align-items: center; height: 2.4rem; padding-inline: 1rem; border-radius: 999px; border: 1.5px solid var(--stone-deep); font-family: var(--display); font-weight: 700; font-size: .88rem; }
.rank-tabs a[aria-current="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nudge { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 1.6rem; display: grid; gap: .8rem; }
.nudge h3 { color: var(--paper); font-size: 1.4rem; letter-spacing: -.02em; }
.nudge ul { margin: 0; padding-inline-start: 1.1rem; color: #d8d4c9; }

/* Book ------------------------------------------------------------------- */
.book-figure { position: relative; overflow: hidden; width: min(100%, 20rem); aspect-ratio: 3 / 4; background: var(--ink); border-radius: 6px 12px 12px 6px; border-inline-start: 14px solid var(--red); padding: 1.6rem; display: flex; flex-direction: column; justify-content: space-between; color: var(--paper); box-shadow: 30px 30px 0 -10px var(--stone); }
.book-mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 2px; background: var(--ink); }
.book-mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,17,19,.78) 0%, rgba(14,17,19,0) 24%, rgba(14,17,19,0) 46%, rgba(14,17,19,.9) 100%); }
.book-figure .top, .book-figure .title { position: relative; z-index: 1; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.book-figure .top { font-family: var(--display); font-weight: 700; letter-spacing: .14em; font-size: .8rem; }
.book-figure .title { font-family: var(--display); font-weight: 800; font-size: 1.8rem; letter-spacing: -.03em; line-height: 1.05; }
.book-themes { display: flex; flex-wrap: wrap; gap: .5rem; }
.book-themes span { border: 1px solid var(--stone-deep); border-radius: 999px; padding: .35rem .85rem; font-family: var(--display); font-weight: 700; font-size: .85rem; background: var(--card); }

/* Movement / map --------------------------------------------------------- */
.field-of-dots { position: relative; min-height: 18rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--stone); overflow: hidden; }
.field-of-dots svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.field-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 2rem; }
.people { list-style: none; padding: 0; display: grid; gap: .6rem; }
@media (min-width: 40em) { .people { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64em) { .people { grid-template-columns: repeat(3, 1fr); } }
.person { display: grid; gap: .1rem; padding: .9rem 1rem; border: 1px solid var(--stone); border-radius: 8px; background: var(--card); }
.person b { font-family: var(--display); }
.person span { font-size: .88rem; color: var(--muted); }
.person .arrow { color: var(--red); }

/* FAQ -------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--stone); }
.faq details { border-bottom: 1px solid var(--stone); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.1rem 0; font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 500; font-size: 1.4rem; color: var(--red); transition: transform .2s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 1.3rem; color: var(--ink-soft); max-width: 44rem; }

/* Final ------------------------------------------------------------------ */
.final-number { font-size: clamp(5rem, 20vw, 16rem); color: var(--red); }
.final-stage { position: relative; height: 5rem; }
.final-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* Dashboard -------------------------------------------------------------- */
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.linkbox { display: grid; gap: .6rem; }
.linkbox .url { display: flex; gap: .5rem; align-items: center; }
.linkbox input { flex: 1; min-width: 0; }
.share-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.progress-steps { list-style: none; padding: 0; display: grid; gap: .6rem; }
.progress-steps li { display: grid; grid-template-columns: 1.7rem 1fr; gap: .7rem; align-items: start; }
.progress-steps .st { width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: .78rem; background: var(--stone); color: var(--muted); }
.progress-steps li[data-state="done"] .st { background: var(--cedar); color: #fff; }
.progress-steps li[data-state="now"] .st { background: var(--red); color: #fff; }
.progress-steps b { font-family: var(--display); display: block; }
.progress-steps span { font-size: .9rem; color: var(--muted); }
.list { list-style: none; padding: 0; display: grid; gap: .6rem; }
.list-row { display: grid; gap: .3rem; padding: .9rem 1rem; border: 1px solid var(--stone); border-radius: 8px; background: var(--card); }
.list-row .meta { font-size: .85rem; color: var(--muted); }

/* Footer ----------------------------------------------------------------- */
.footer { border-top: 1px solid var(--stone); }
.footer-grid { display: grid; gap: 2rem; padding-block: 3.5rem; }
@media (min-width: 52em) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer img { height: 22px; width: auto; }
.footer nav { display: grid; gap: .45rem; font-size: .92rem; }
.footer nav a { text-decoration: none; width: fit-content; }
.footer nav a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid color-mix(in srgb, var(--stone) 70%, transparent); padding-block: 1.2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .8rem; color: var(--muted); }

/* Walker figure ---------------------------------------------------------- */
.walker .leg-l, .walker .leg-r { transform-box: fill-box; transform-origin: 50% 0; animation: none; }
.walker[data-moving="true"] .leg-l { animation: stride-l .7s ease-in-out infinite; }
.walker[data-moving="true"] .leg-r { animation: stride-r .7s ease-in-out infinite; }
@keyframes stride-l { 0% { transform: rotate(22deg); } 50% { transform: rotate(-22deg); } 100% { transform: rotate(22deg); } }
@keyframes stride-r { 0% { transform: rotate(-22deg); } 50% { transform: rotate(22deg); } 100% { transform: rotate(-22deg); } }

/* Reveal on scroll (progressive, non-blocking) --------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal[data-in="true"], html.no-js .reveal { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-stagger[data-in="true"] > *, html.no-js .reveal-stagger > * { opacity: 1; transform: none; }
.reveal-stagger[data-in="true"] > :nth-child(2) { transition-delay: .1s; }
.reveal-stagger[data-in="true"] > :nth-child(3) { transition-delay: .2s; }
.reveal-stagger[data-in="true"] > :nth-child(4) { transition-delay: .3s; }
.reveal-stagger[data-in="true"] > :nth-child(5) { transition-delay: .4s; }
.reveal-stagger[data-in="true"] > :nth-child(6) { transition-delay: .5s; }
.reveal-scale { opacity: 0; transform: scale(.94); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-scale[data-in="true"], html.no-js .reveal-scale { opacity: 1; transform: none; }
.why-figure .path-end { transition: opacity .35s var(--ease), transform .35s var(--ease); transform-box: fill-box; transform-origin: center; }
.why-figure[data-arrived="false"] .path-end { opacity: .25; }
.why-figure[data-arrived="true"] circle.path-end { transform: scale(1.25); }
.parallax { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > *, .reveal-scale { opacity: 1; transform: none; transition: none; }
  .bracelet-ring, .walker .leg-l, .walker .leg-r { animation: none !important; }
  .story-caption, .stock-bar i, .phone-bar i, .demo-steps li { transition: none; }
  .hero-in { animation: none; }
}

/* Print: keep it readable */
@media print { .nav, .footer, .btn { display: none !important; } }

/* Live Love Meter card ---------------------------------------------------- */
.meter-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.meter-pulse { position: relative; width: 4.5rem; height: 4.5rem; flex: none; }
.meter-pulse b { position: absolute; inset: 50%; width: .9rem; height: .9rem; margin: -.45rem; border-radius: 50%; background: var(--red); }
.meter-pulse i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--red); opacity: 0; animation: pulse-ring 2.4s var(--ease) infinite; }
.meter-pulse i:nth-child(2) { animation-delay: .8s; }
.meter-pulse i:nth-child(3) { animation-delay: 1.6s; }
@keyframes pulse-ring { 0% { transform: scale(.2); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
.meter-bar { height: 1.4rem; border-radius: 999px; gap: 2px; }
.meter-bar i { min-width: 2px; }
.meter-row { padding: .55rem 0; font-size: .95rem; }
.meter-home { margin-top: .5rem; }
.story-block .meter-total { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.tiles-2 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 52em) { .tiles-2 { grid-template-columns: repeat(3, 1fr); } }
.points-note summary { font-size: .9rem; }

/* Badges block on the home page */
.badge-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.badge-list li { display: grid; grid-template-columns: 2.6rem 1fr; gap: .9rem; align-items: start; }
.badge-list b { font-family: var(--display); display: block; }
.badge-list span { color: var(--ink-soft); font-size: .95rem; }
.badge-ring { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 2px solid var(--red); display: grid; place-items: center; position: relative; }
.badge-ring i { width: 1rem; height: 1rem; border-radius: 50%; background: var(--red); }
.badge-ring::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--red); opacity: .35; }
@media (min-width: 64em) { .story-block[data-mode="badges"] { min-height: 100vh; } }

/* Map page: city dots, gallery and stories */
.pin-hint { position: absolute; inset-inline-start: .75rem; bottom: .75rem; z-index: 2; font-family: var(--display); font-weight: 700; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: rgba(254,252,248,.85); border: 1px solid var(--stone); border-radius: 999px; padding: .3rem .7rem; pointer-events: none; transition: opacity .4s var(--ease); }
.pin-hint[data-on="false"] { opacity: 0; }
.pin-gallery { display: grid; gap: 1rem; scroll-margin-top: 5rem; }
.pin-gallery-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.pin-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
@media (min-width: 40em) { .pin-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); gap: .6rem; } }
.pin-tile { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: 8px; overflow: hidden; background: var(--paper-deep); cursor: pointer; text-align: start; display: block; width: 100%; }
.pin-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.pin-tile:hover img, .pin-tile:focus-visible img { transform: scale(1.05); }
.pin-tile .initials { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.8rem; color: var(--red); }
.pin-tile .name { position: absolute; inset-inline-start: 0; inset-inline-end: 0; bottom: 0; padding: 1.4rem .5rem .4rem; font-family: var(--display); font-weight: 700; font-size: .8rem; color: #fff; background: linear-gradient(180deg, rgba(14,17,19,0) 0%, rgba(14,17,19,.75) 100%); }
.pin-tile .name small { font-size: inherit; font-weight: 500; opacity: .8; }
.pin-tile[data-on="false"] { opacity: .45; }
.pin-tile:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.pin-story { display: grid; gap: 1rem; }
@media (min-width: 52em) { .pin-story { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; } }
.pin-story img { width: 100%; border-radius: 8px; object-fit: cover; aspect-ratio: 4 / 5; }
.pin-story .initials { aspect-ratio: 4 / 5; border-radius: 8px; background: var(--paper-deep); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 3rem; color: var(--red); }
.pin-story h3 { font-size: 1.4rem; }
.pin-story .story-text { color: var(--ink-soft); white-space: pre-line; }
.story-row { display: grid; grid-template-columns: 4.5rem 1fr; gap: .9rem; align-items: start; }
.story-row:not(:has(.story-thumb)) { grid-template-columns: 1fr; }
.story-thumb { width: 4.5rem; height: 4.5rem; border-radius: 8px; object-fit: cover; }

/* Profile: story photo, network tree */
.story-photo { display: grid; gap: .5rem; margin-bottom: .5rem; }
.story-photo img { width: 100%; max-width: 14rem; border-radius: 8px; aspect-ratio: 4 / 5; object-fit: cover; }
.tree { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.tree-level { border-inline-start: 3px solid var(--red); padding-inline-start: .9rem; }
.tree-level:nth-child(2) { border-color: var(--amber); }
.tree-level:nth-child(3) { border-color: var(--cedar); }
.tree-level:nth-child(n+4) { border-color: var(--stone-deep); }
.tree-people { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .35rem; }
.tree-people li { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: baseline; font-size: .95rem; }
.tree-people b { font-family: var(--display); }

/* Calendar */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.event { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; align-items: start; }
.event-date { display: grid; justify-items: center; align-content: start; padding: .4rem 0; border-radius: 8px; background: var(--red-tint); color: var(--red-deep); }
.event-date b { font-family: var(--display); font-weight: 800; font-size: 1.8rem; line-height: 1; letter-spacing: -.04em; }
.event-date span { font-family: var(--display); font-weight: 700; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }

/* Columns that give way on phones */
@media (max-width: 40em) { .hide-sm { display: none; } }

/* Place pickers: a search field with a list of real places under it */
.picker-box { position: relative; }
.picker-list { position: absolute; z-index: 30; inset-inline: 0; top: calc(100% + 4px); margin: 0; padding: .3rem; list-style: none; max-height: 18rem; overflow-y: auto; background: var(--card); border: 1px solid var(--stone-deep); border-radius: 10px; box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .45); }
.picker-list [role="option"] { display: grid; gap: .05rem; padding: .55rem .7rem; border-radius: 7px; cursor: pointer; }
.picker-list [role="option"] b { font-family: var(--display); font-weight: 700; font-size: .98rem; }
.picker-list [role="option"] span { font-size: .8rem; color: var(--muted); }
.picker-list [role="option"][aria-selected="true"], .picker-list [role="option"]:hover { background: var(--red-tint); }
.picker-list .picker-note { padding: .6rem .7rem; font-size: .88rem; color: var(--muted); }


/* Languages: the switcher, Arabic type and right-to-left details */
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; display: inline-flex; align-items: center; gap: .3rem; min-height: 2.25rem; padding: 0 .6rem; border: 1px solid var(--stone-deep); border-radius: 999px; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .06em; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.lang-switch ul { position: absolute; z-index: 60; inset-inline-end: 0; top: calc(100% + 6px); margin: 0; padding: .35rem; list-style: none; min-width: 10rem; background: var(--card); border: 1px solid var(--stone-deep); border-radius: 10px; box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .45); }
.lang-switch li a { display: block; padding: .5rem .7rem; border-radius: 7px; text-decoration: none; font-weight: 600; }
.lang-switch li a:hover, .lang-switch li a[aria-current="true"] { background: var(--red-tint); }
.footer-langs { display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.footer-langs a[aria-current="true"] { font-weight: 700; color: var(--ink); }
html[lang="ar"] { --display: "Montserrat", "Noto Kufi Arabic", system-ui, sans-serif; --sans: "Inter", "Noto Sans Arabic", system-ui, sans-serif; }
html[lang="ar"] body * { letter-spacing: 0 !important; }   /* spacing breaks the joins between Arabic letters */
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] .hero-title { line-height: 1.35; }
html[lang="ar"] body { line-height: 1.8; }
[dir="rtl"] .to-arrow, [dir="rtl"] .btn svg, [dir="rtl"] .link svg { display: inline-block; transform: scaleX(-1); }

/* Header: labels stay on one line in every language; the call to action and language button never stack. */
.nav-inner > .cluster { flex-wrap: nowrap; }
.nav-cta, .lang-switch summary { white-space: nowrap; }
/* Measured widths (scratch measure, per language): the full menu with Sign in and the call to action needs up to
   1,150px, so it shows from 1280px; the wordmark only fits beside the menu button (1024 to 1279px); the call to
   action joins the bar from 768px and sits in the menu below that. */

/* Sign in and sign out sit in the header on every screen size. */
.nav-auth { display: inline-flex; margin: 0; white-space: nowrap; }
.nav-auth .btn, a.nav-auth { white-space: nowrap; }
.brand .brand-partner { height: 26px; }
@media (min-width: 40em) { .brand .brand-partner { height: 30px; } }
.lang-switch summary svg { flex: none; }
/* The two equal buttons at the top of the home page */
.hero-doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; max-width: 38rem; }
.hero-doors .btn { justify-content: center; text-align: center; }
@media (max-width: 30em) { .hero-doors { grid-template-columns: 1fr; } }
/* Family branches on the Autobiography page */
.branches { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 40em) { .branches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .branches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.branch { display: grid; gap: .8rem; align-content: start; padding: 0; overflow: hidden; }
.branch img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.branch > .stack { padding: 0 1.1rem 1.1rem; }
.branch > .stack:first-child { padding-top: 1.1rem; }
/* Organisation logos (checklist item 14) */
.org-logo { max-height: 5rem; max-width: 12rem; width: auto; object-fit: contain; }
.logo-preview { display: grid; gap: .5rem; }
.logo-preview img { max-height: 6rem; max-width: 14rem; width: auto; object-fit: contain; background: #fff; border: 1px solid var(--stone); border-radius: 8px; padding: .5rem; }
.guest-gift { display: grid; gap: 1rem; max-width: 46rem; }
.meter-how { max-width: 38rem; }
/* Partners: what you get and how to take part */
.ticks, .steps-plain { margin: 0; padding-inline-start: 1.2rem; display: grid; gap: .4rem; color: var(--ink-soft); font-size: .95rem; }
.ticks { list-style: none; padding-inline-start: 0; }
.ticks li { position: relative; padding-inline-start: 1.3rem; }
.ticks li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--cedar); font-weight: 800; }

/* The site name in the header and footer, styled like the hero brand line. */
.brand-word { font-family: var(--display); font-weight: 800; font-size: 1.3rem; line-height: 1; letter-spacing: -.035em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-word:hover, .brand-word:focus-visible { color: var(--red); }
.brand-word-lg { font-size: 1.9rem; }
/* On phones the name stacks into a two-line lockup, so the header keeps room for Sign in. */
@media (max-width: 39.99em) { .nav-inner { gap: .75rem; } .nav-inner .brand-word { font-size: .92rem; line-height: 1; } .nav-inner .brand-word span { display: block; } }
.footer-partners { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; align-items: center; gap: .5rem 2.4rem; }
.footer-partners .footer-ll { height: 22px; width: auto; }
.footer-partners .footer-wlcu { height: 64px; width: auto; }
.footer-partners > * { margin: 0; }

/* Registration: parts that unlock in order, points chips, the privacy promise --------- */
:is(.join-form, [data-join]) fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
:is(.join-form, [data-join]) .join-part[hidden], :is(.join-form, [data-join]) [data-show-for][hidden] { display: none; }
:is(.join-form, [data-join]) .join-part[data-locked] > :not(.gate-note) { opacity: .45; }
:is(.join-form, [data-join]) .join-part { display: grid; gap: 1.1rem; }
.join-section { display: grid; gap: .9rem; padding-block-start: 1.1rem; border-block-start: 1px solid var(--stone); }
.join-head { font-family: var(--display); font-size: 1rem; font-weight: 800; margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .6rem; }
.pts { display: inline-block; font-family: var(--display); font-size: .72rem; font-weight: 700; letter-spacing: .02em; color: var(--red-deep); background: var(--red-tint); border-radius: 999px; padding: .15rem .55rem; white-space: nowrap; }
.gate-note { margin: 0; font-size: .82rem; color: var(--amber); background: var(--amber-tint); border-radius: 8px; padding: .5rem .75rem; }
.privacy-promise { display: flex; align-items: center; gap: .45rem; margin: 0; font-weight: 600; color: var(--cedar); }
.privacy-promise svg { flex: none; }
.join-points { margin: 0; color: var(--ink-soft); }
.walk-explainer { background: var(--paper-deep); border-color: transparent; gap: .6rem; }
.password-box { position: relative; }
.password-box .field { padding-inline-end: 4.5rem; }
.password-toggle { position: absolute; inset-block: 0; inset-inline-end: .35rem; margin: auto 0; height: 2rem; padding: 0 .7rem; border: 0; border-radius: 999px; background: transparent; font: 600 .78rem var(--display); color: var(--ink-soft); cursor: pointer; }
.password-toggle:hover { background: var(--stone); }
.password-toggle:focus-visible { outline: 3px solid var(--red); outline-offset: 1px; }
.privacy-pledge { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.15rem; border-radius: var(--radius); background: var(--cedar-tint); color: var(--cedar); }
.privacy-pledge svg { flex: none; margin-top: .1rem; }
.privacy-pledge b { font-family: var(--display); color: var(--ink); }
.privacy-pledge p { margin: .25rem 0 0; color: var(--ink-soft); }
.vintage-row { display: flex; gap: .9rem; align-items: center; }

/* Home page steps: bigger step titles and a bar to go through them --------- */
.step-tag { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: 0 0 .25rem; }
.step-n { display: inline-flex; align-items: center; padding: .3rem .7rem; border-radius: 999px; background: var(--red); color: #fff; font: 800 .82rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.step-t { font: 800 clamp(1.15rem, 2.4vw, 1.5rem)/1.15 var(--display); color: var(--red); letter-spacing: -.01em; }
.step-nav { position: fixed; z-index: 40; inset-inline: 0; bottom: max(.9rem, env(safe-area-inset-bottom)); margin-inline: auto; width: max-content; max-width: calc(100% - 1.5rem); display: flex; align-items: center; gap: .25rem; padding: .3rem; border-radius: 999px; background: var(--ink); color: var(--paper); box-shadow: 0 10px 30px rgba(14, 17, 19, .25); transition: transform .35s var(--ease), opacity .35s var(--ease); }
.step-nav[data-away="true"] { transform: translateY(150%); opacity: 0; pointer-events: none; }
.step-nav ol { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; }
.step-nav a { display: flex; align-items: center; gap: .45rem; padding: .35rem .5rem; border-radius: 999px; color: inherit; text-decoration: none; font: 700 .82rem var(--display); white-space: nowrap; }
.step-nav a:hover { background: rgba(255, 255, 255, .1); }
.step-nav .d { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); font-weight: 800; font-size: .8rem; }
.step-nav a[data-done="true"] .d { background: var(--cedar); }
.step-nav a[aria-current="step"] { background: var(--paper); color: var(--ink); }
.step-nav a[aria-current="step"] .d { background: var(--red); color: #fff; }
.step-nav .l { display: none; }
.step-nav a[aria-current="step"] .l { display: inline; padding-inline-end: .3rem; }
@media (min-width: 64em) { .step-nav { inset-inline: auto; inset-inline-start: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); margin: 0; } }
.step-count { font: 800 .78rem var(--display); padding: 0 .4rem; opacity: .7; }
.step-arrow { width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 0; display: grid; place-items: center; background: transparent; color: inherit; cursor: pointer; }
.step-arrow:hover:not(:disabled) { background: rgba(255, 255, 255, .12); }
.step-arrow:disabled { opacity: .3; cursor: default; }
.step-nav a:focus-visible, .step-arrow:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .step-nav { transition: none; } }
[dir="rtl"] .step-arrow svg { transform: scaleX(-1); }

/* Admin: screenshot thumbnails and the story review queue */
.shot-review { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.shot-thumb { display: grid; gap: .25rem; text-decoration: none; color: var(--muted); }
.shot-thumb img { width: 140px; max-height: 260px; object-fit: contain; object-position: top; border: 1px solid var(--stone); border-radius: 8px; background: var(--ink); }
.story-review { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; }
.story-review img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid var(--stone); }
@media (max-width: 40em) { .story-review { grid-template-columns: 1fr; } }
.help.refill { color: var(--amber); font-weight: 600; }

/* Error summary at the top of a form sent back with errors (drawn by site.js). */
.error-summary{border:2px solid var(--red);border-radius:12px;padding:.85rem 1rem;background:color-mix(in srgb,var(--red) 6%,var(--paper,#fff));scroll-margin-top:6rem}
.error-summary:focus{outline:3px solid var(--red);outline-offset:3px}
.error-summary-title{font-weight:700;margin:0 0 .35rem}
.error-summary ul{margin:0;padding-inline-start:1.1rem;display:grid;gap:.2rem}
.error-summary a{color:var(--red);text-decoration:underline;text-underline-offset:2px}

/* Footer links use the header's page names, with a short description under each. */
.footer nav a small { display: block; font-size: .8em; color: var(--muted); margin-top: .05rem; }
.footer nav a:hover small { text-decoration: none; }

/* The map page: two heatmaps and their tables ------------------------------------------------ */
.heat-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.heat-tabs a { padding: .5rem .9rem; border: 1px solid var(--stone-deep); border-radius: 999px; text-decoration: none; color: var(--ink); font: 700 .9rem var(--display); }
.heat-tabs a:hover { border-color: var(--ink); }
.heat-section { scroll-margin-top: 4.5rem; }
.heat-layout { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 60em) { .heat-layout { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.heat-map { position: relative; margin: 0; border: 1px solid var(--stone); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.heat-map canvas { display: block; width: 100%; touch-action: manipulation; }
.heat-lebanon canvas { aspect-ratio: 4 / 5; max-height: 78vh; }
.heat-world canvas { aspect-ratio: 16 / 10; }
.heat-tip { position: absolute; z-index: 2; pointer-events: none; background: var(--ink); color: var(--paper); border-radius: 8px; padding: .45rem .65rem; font-size: .8rem; line-height: 1.3; max-width: 16rem; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.heat-tip b { display: block; font-family: var(--display); }
.heat-legend { display: flex; align-items: center; gap: .6rem; padding: .6rem .9rem; border-top: 1px solid var(--stone); font-size: .75rem; color: var(--muted); }
.heat-legend i { flex: 1; max-width: 10rem; height: .5rem; border-radius: 999px; background: linear-gradient(90deg, #f3c969, #ec8a3c, #d11f2d, #7a0f17); }
.counts { width: 100%; border-collapse: collapse; font-size: .92rem; }
.counts th, .counts td { padding: .55rem .5rem; border-bottom: 1px solid var(--stone); text-align: start; vertical-align: top; }
.counts thead th { font-size: .75rem; color: var(--muted); font-weight: 600; border-bottom-color: var(--stone-deep); }
.counts tbody th { font-weight: 600; }
.counts tbody th small { display: block; font-weight: 400; font-size: .78rem; color: var(--muted); }
.counts .num { text-align: end; white-space: nowrap; }
.counts td:first-child { width: 2.2rem; }

/* Home */
.home-hero-text { container-type: inline-size; }
.home-how { gap: .9rem; }

/* Admin: walk photos */
.admin-walks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.admin-walks li { display: grid; gap: .7rem; padding: .8rem; }
.admin-walks img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--paper-deep); }
.heat-tabs a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.pager-off { font-size: .85rem; color: var(--stone-deep); padding: .45rem .9rem; }
.admin-messages > summary { cursor: pointer; } .admin-messages[open] > summary { margin-bottom: .8rem; }
