/* =========================================================
   Sections, in page order
   ========================================================= */

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
}
.site-header::before {
  /* Background fades in on scroll (opacity only) */
  content: "";
  position: absolute;
  inset: 0;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 400ms var(--ease-out);
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.site-header__logo {
  display: block;
  transform-origin: left center;
  transition: transform 400ms var(--ease-out);
}
.site-header.is-scrolled .site-header__logo { transform: scale(0.84); }
.site-header__logo img { width: clamp(132px, 22vw, 176px); }
.js .site-header__inner > * { animation: header-in 900ms var(--ease-out) both; }
.js .site-header__inner > .btn { animation-delay: 150ms; }
@keyframes header-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* Over a dark hero (options 1 and 2) the header goes transparent with the cream logo and a gold button */
.site-header__logo { position: relative; }
.site-header__logo img { transition: opacity 400ms var(--ease-out); }
.site-header .logo-on-dark { position: absolute; left: 0; top: 0; opacity: 0; }
.site-header.on-dark .logo-on-light { opacity: 0; }
.site-header.on-dark .logo-on-dark { opacity: 1; }
.site-header.on-dark::before { opacity: 0 !important; }
.site-header .btn { transition: transform 400ms var(--ease-out), background 400ms var(--ease-out), color 400ms var(--ease-out), border-color 400ms var(--ease-out); }
.site-header.on-dark .btn { background: var(--c-gold); border-color: var(--c-gold); color: var(--c-navy); }

/* Floating pause / play control */
.motion-toggle {
  position: fixed;
  right: calc(var(--space-4) + env(safe-area-inset-right, 0px));
  bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-s);
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 0 0 2px var(--bg), 0 6px 18px rgba(15, 22, 33, 0.22);
  cursor: pointer;
  opacity: 0.88;
  transition: opacity 200ms, transform 200ms var(--ease-out);
}
.motion-toggle:hover { opacity: 1; transform: scale(1.06); }
.motion-toggle:focus-visible { opacity: 1; }
.motion-toggle__icon { width: 14px; height: 14px; fill: currentColor; }
.motion-toggle .mt-play { display: none; }
.motion-toggle[aria-pressed="true"] .mt-play { display: inline; }
.motion-toggle[aria-pressed="true"] .mt-pause { display: none; }
@media (prefers-reduced-motion: reduce) { .motion-toggle { display: none; } }
.site-header .btn { transition: transform 400ms var(--ease-out), opacity 200ms; }
.site-header.is-scrolled .btn { transform: scale(0.94); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + var(--space-5));
  padding-bottom: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}
/* Oversized logo mark. Bleeds off the right (and top on small screens);
   the bottom always stops short of the next section so nothing is hard-cropped there. */
.hero__graphic {
  position: absolute;
  /* Mobile: large mark starting just under the header (clear of the logo and button), bleeding off the right */
  top: calc(var(--header-h) + var(--space-3) - 66svh * 0.1);
  right: -30vw;
  height: 66svh;
  aspect-ratio: 1000 / 1100;
  z-index: -1;
  pointer-events: none;
}
.hero__graphic svg { width: 100%; height: 100%; overflow: visible; }
.hero { padding-top: calc(var(--header-h) + var(--space-3) + 66svh * 0.82 + var(--space-4)); }
@media (max-width: 899px) { .hero-svg .bg-bar--soft { display: none; } }
.hero__content { position: relative; z-index: 1; }
.hero__title .line { display: block; }
.hero__title .highlight { margin-top: 0.08em; }
.hero__sub {
  margin-top: var(--space-6);
  font-size: var(--fs-lg);
  line-height: 1.45;
  max-width: 34rem;
  text-wrap: pretty;
}
.hero__cta { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-3); }
/* Secondary button: outline on the page background */
.btn--ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn--ghost:hover { background: var(--text); color: var(--bg); }

@media (min-width: 900px) {
  .hero { justify-content: center; padding-top: calc(var(--header-h) + var(--space-5)); }
  .hero__graphic {
    top: auto;
    right: auto;
    bottom: var(--space-6);
    height: 116svh;
    /* Mark's left edge (11% into the artwork) lands at 58vw; the right side bleeds off */
    left: calc(58vw - 116svh * 0.909 * 0.11);
  }
  .hero__content > * { max-width: calc(57vw - max(var(--gutter), (100vw - var(--max-w)) / 2)); }
}

/* ---------- Hero option 1: editorial ----------
   Large headline, a short rule, a lead paragraph and a smaller supporting column,
   then one full-width photo (reference: classic editorial "about" page layout). */
.hero-editorial {
  position: relative;
  padding: calc(var(--header-h) + var(--space-8)) 0 var(--space-8);
  background: var(--bg);
}
.hero-editorial__title { max-width: none; font-size: clamp(2.6rem, 0.8rem + 5vw, 5.75rem); line-height: 1.08; }
.hero-editorial__title .line { display: block; }
.hero-editorial__title .line + .line { margin-top: 0.06em; }
/* Each line sits on its own gold bar (gold easing to a lighter gold), navy text */
.ed-mark {
  display: inline-block;
  padding: 0.02em 0.2em 0.08em 0.12em;
  color: var(--c-navy);
  background: linear-gradient(90deg, var(--c-gold) 0%, #F4C35C 100%) no-repeat left center / 100% 100%;
  border-radius: var(--radius-s);
}
/* "America working." is two bars: joined into one on desktop, stacked as separate boxes on mobile */
.hero-editorial__title .line--split { display: flex; flex-wrap: wrap; align-items: flex-start; }
@media (min-width: 900px) {
  .line--split .ed-mark:first-child { padding-right: 0.28em; border-top-right-radius: 0; border-bottom-right-radius: 0;
    background-image: linear-gradient(90deg, var(--c-gold) 0%, #F2BC48 100%); }
  .line--split .ed-mark + .ed-mark { padding-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0;
    background-image: linear-gradient(90deg, #F2BC48 0%, #F4C35C 100%); }
  .js .line--split .ed-mark + .ed-mark { transition-delay: calc(var(--reveal-delay, 0ms) + 600ms); transition-timing-function: cubic-bezier(0.2, 0.6, 0.3, 1); }
}
@media (max-width: 899px) {
  .hero-editorial__title .line--split { flex-direction: column; row-gap: 0.06em; }
  .js .line--split .ed-mark + .ed-mark { transition-delay: calc(var(--reveal-delay, 0ms) + 300ms); }
}
.js .ed-mark { background-size: 0% 100%; transition: background-size 900ms var(--ease-out); transition-delay: calc(var(--reveal-delay, 0ms) + 150ms); }
.js .is-visible > .ed-mark { background-size: 100% 100%; }
.hero-editorial__rule {
  display: block; width: clamp(120px, 14vw, 200px); height: 2px;
  margin: var(--space-6) 0 var(--space-6);
  background: var(--c-navy);
  transform-origin: left center;
}
.js .hero-editorial__rule.reveal { opacity: 1; transform: scaleX(0); }
.js .hero-editorial__rule.reveal.is-visible { transform: none; transition-duration: 1200ms; }
.hero-editorial__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: var(--space-8);
  max-width: 64rem;
}
.hero-editorial__lead { font-size: var(--fs-lg); line-height: 1.4; text-wrap: pretty; }
.hero-editorial__aside { font-size: var(--fs-sm); line-height: 1.6; color: var(--text-muted); padding-top: 0.3rem; }
.hero-editorial__aside p + p { margin-top: var(--space-4); }
.text-link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px;
  font-weight: 700; color: var(--text);
  text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 2px;
  text-decoration-color: var(--c-gold);
}
.text-link::before { content: ""; width: 0.9em; height: 0.36em; background: var(--c-gold); transform: rotate(-45deg); }
.text-link:hover { text-decoration-color: var(--c-navy); }
.hero-editorial__figure { margin: var(--space-8) 0 0; overflow: hidden; border-radius: var(--radius-s); }
.hero-editorial__figure img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 2.4 / 1; object-fit: cover;
  object-position: 50% 32%;           /* lose some of the top, keep the faces */
}
.js .hero-editorial__figure.reveal { transform: none; }
.js .hero-editorial__figure img { transform: scale(1.06); transition: transform 1800ms var(--ease-out) 900ms; }
.js .hero-editorial__figure.is-visible img { transform: none; }
@media (max-width: 899px) {
  .hero-editorial { padding-top: calc(var(--header-h) + var(--space-6)); }
  .hero-editorial__cols { grid-template-columns: 1fr; row-gap: var(--space-5); }
  .hero-editorial__figure { margin-top: var(--space-6); }
  .hero-editorial__figure img { aspect-ratio: 4 / 3; object-position: 40% 30%; }
}

/* ---------- Hero option 2: brick-cropped photos, pinned while scrolling ---------- */
.hero-bricks {
  position: relative;
  height: 280svh;             /* pinned for 1.8 screens so the bricks can leave */
  background: var(--c-navy);
  color: var(--c-cream-light);
}
.hero-bricks__stage {
  position: sticky; top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid; place-items: center;
  isolation: isolate;
  /* Centre is exactly the navy of the "working." text and of the next section */
  background: var(--c-navy);
}
/* Darker edges fade away while scrolling, so the stage ends as flat navy and meets
   the next section without a seam */
.hero-bricks__stage::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(75% 70% at 50% 50%, rgba(14, 31, 56, 0) 55%, rgba(14, 31, 56, 0.75) 100%);
  opacity: calc(1 - var(--p, 0) * 1.25);
}
/* Fine grain, like the reference */
.hero-bricks__stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: calc(0.22 - var(--p, 0) * 0.28); pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.92 0 0 0 0 0.87 0 0 0 0 0.78 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-bricks__content {
  position: relative; z-index: 1;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  transform: translateY(calc(var(--p, 0) * -70px)) scale(calc(1 - var(--p, 0) * 0.06));
  opacity: calc(1 - max(0, var(--p, 0) - 0.35) * 1.8);
  will-change: transform, opacity;
}
.hero-bricks__content .hero__title { text-align: center; }
/* Small screens: "Let's" and "keep" on separate lines so the headline stays narrow and clear of the tiles */
@media (max-width: 560px) { .hero-bricks .hero__title .w { display: block; } }
.hero-bricks__content .hero__sub { max-width: 40rem; margin-inline: auto; color: var(--c-cream-light); }
.hero-bricks__bricks { position: absolute; inset: 0; z-index: 0; }
.brick-wrap {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--w); aspect-ratio: 150 / 88;
  /* Scroll: each brick travels its own way (direction and distance set per brick, so speeds differ),
     with a little turn and growth */
  transform: translate(-50%, -50%)
             translate(calc(var(--dx) * var(--p, 0)), calc(var(--dy) * var(--p, 0)))
             rotate(calc(var(--rot, 0deg) * var(--p, 0)))
             scale(calc(1 + var(--sc, 0.35) * var(--p, 0)));
  opacity: calc(1 - max(0, var(--p, 0) - 0.5) * 2.2);   /* fade out as they leave */
  will-change: transform, opacity;
}
.brick {
  position: relative; width: 100%; height: 100%;
  overflow: hidden;
  border-radius: var(--radius-s);
  transform: rotate(-22.5deg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.js .brick { animation: brick-in 1100ms cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(var(--i) * 160ms + 200ms); }
@keyframes brick-in { from { opacity: 0; transform: rotate(-22.5deg) translateY(48px) scale(0.9); } to { opacity: 1; transform: rotate(-22.5deg); } }
/* Photo stays upright inside the rotated brick (cover box for a 150:88 brick at 22.5deg) */
.brick img {
  position: absolute; left: 50%; top: 50%;
  width: 116%; height: 180%; max-width: none;
  object-fit: cover;
  transform: translate(-50%, -50%) rotate(22.5deg);
}
@media (max-width: 899px) {
  .brick-wrap { --w: 42vw !important; }
  /* Top pair sits below the header logo and button; bottom pair sits above the floating controls */
  .brick-wrap--1 { --w: 54vw !important; --x: 4% !important; --y: 24% !important; }
  .brick-wrap--2 { --w: 54vw !important; --x: 96% !important; --y: 22% !important; --dx: 45vw !important; --dy: -25vh !important; }
  .brick-wrap--3 { --x: 6% !important; --y: 80% !important; }
  .brick-wrap--4 { --x: 94% !important; --y: 78% !important; --dx: 40vw !important; --dy: 20vh !important; }
  /* On narrow screens the right-hand bricks exit sideways so they never cross the text */
  .brick-wrap--5 { display: none; }
  .hero-bricks__content { padding-inline: var(--gutter); }
}
/* Short phones (e.g. iPhone SE): smaller bricks so they stay clear of the text */
@media (max-width: 899px) and (max-height: 720px) {
  .brick-wrap { --w: 32vw !important; }
  .brick-wrap--1, .brick-wrap--2 { --w: 40vw !important; }
  .brick-wrap--1, .brick-wrap--3 { --x: 3% !important; }
  .brick-wrap--2, .brick-wrap--4 { --x: 97% !important; }
}
/* The pinned stage keeps its full scroll length (so the brick motion is unchanged), but the
   challenge section slides up over its last 65svh: its top is transparent there, so the bricks
   finish moving out behind the challenge content instead of over an empty navy screen. */
.hero-bricks { --bricks-overlap: 65svh; margin-bottom: calc(var(--bricks-overlap) * -1); }
:root:not([data-option]) .challenge,
:root[data-option="1"] .challenge {
  z-index: 1;
  background: linear-gradient(to bottom, transparent 0, transparent calc(var(--bricks-overlap, 65svh) - 3px), var(--dark-bg) calc(var(--bricks-overlap, 65svh) - 3px));  /* starts 3px early so no hairline shows at the seam */
}
@media (prefers-reduced-motion: reduce) {
  .hero-bricks { margin-bottom: 0; }
  :root:not([data-option]) .challenge, :root[data-option="1"] .challenge { background: var(--dark-bg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bricks { height: auto; }
  .hero-bricks__stage { position: relative; }
  .brick { animation: none !important; }
}

/* ---------- The challenge (dark) ---------- */
.challenge__grid {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-7);
}
/* Each point is a card: cropped animation on top, a thin rule, then the text */
.challenge__item {
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-m);
  overflow: hidden;
  padding-bottom: var(--space-6);
}
.challenge__art {
  position: relative;
  aspect-ratio: 10 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--dark-line);
  background: rgba(255, 255, 255, 0.03);
}
.challenge__item .h-card {
  margin: var(--space-5) 0 var(--space-3);
  padding-inline: var(--space-5);
  font-size: var(--fs-md);
}
.challenge__item p { padding-inline: var(--space-5); color: var(--text-muted); max-width: 32rem; }
.challenge__num {
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  color: var(--dark-accent);
}
@media (min-width: 820px) {
  .challenge__grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
}

/* ---------- Our approach ---------- */
.approach__grid { display: grid; gap: var(--space-6); align-items: start; }
.approach__body { font-size: var(--fs-lg); line-height: 1.5; max-width: 36rem; }
@media (min-width: 900px) {
  .approach__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .approach__body { padding-top: 0.4rem; }
}
.diagram-wrap { margin: var(--space-8) 0 0; }

/* ---------- Our three goals ---------- */
.goals .h-section { margin-bottom: var(--space-7); }
.goal__label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--accent-text);
}
.stat {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-stat);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums lining-nums;
  margin-top: var(--space-3);
}
.stat--sm { font-size: var(--fs-stat-sm); }
.goal--primary { padding-bottom: var(--space-7); border-bottom: 1px solid var(--line); }
.goal__context { margin-top: var(--space-4); font-size: var(--fs-lg); color: var(--dark-text); }

.goals__secondary { display: grid; gap: var(--space-7); padding-top: var(--space-7); }
@media (min-width: 720px) { .goals__secondary { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }
.goals__explainer {
  margin-top: var(--space-8);
  max-width: 44rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* ---------- Who's at the table ---------- */
.table__grid { display: grid; gap: var(--space-6); align-items: end; margin-bottom: var(--space-7); }
.table__stat { color: var(--accent-text); }
.table__body { font-size: var(--fs-lg); line-height: 1.45; max-width: 30rem; }
.funders-note { margin-top: var(--space-5); font-size: var(--fs-sm); }
@media (min-width: 820px) {
  .table__grid { grid-template-columns: auto 1fr; gap: var(--space-8); }
  .table__body { padding-bottom: 0.6em; }
}

/* ---------- How we got here (timeline) ---------- */
.timeline-sec__intro {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.4rem, 1.05rem + 1.4vw, 2.1rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 40rem;
  margin-top: var(--space-5);
  text-wrap: pretty;
}
.timeline {
  --tl-node: 52px;
  --tl-gap: var(--space-4);
  position: relative;
  margin-top: var(--space-8);
  padding-left: calc(var(--tl-node) + var(--tl-gap));
}
.tl-list { margin: 0; padding: 0; list-style: none; }
.tl-step { position: relative; padding-bottom: var(--space-8); min-height: calc(var(--tl-node) + var(--space-8)); }
.tl-step:last-child { padding-bottom: 0; }

/* Square node on the rail holding a small looping animation */
.tl-node {
  position: absolute;
  left: calc(-1 * (var(--tl-node) + var(--tl-gap)));
  top: 0;
  width: var(--tl-node);
  height: var(--tl-node);
  background: #2B3E5D;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-s);
  overflow: hidden;
  z-index: 1;
}
.tl-node svg { width: 100%; height: 100%; display: block; }

/* Rail: each step draws the segment down to the next node, on reveal */
.tl-step::before {
  content: "";
  position: absolute;
  left: calc(-1 * (var(--tl-node) + var(--tl-gap)) + var(--tl-node) / 2 - 1px);
  top: var(--tl-node);
  bottom: 0;
  width: 2px;
  background: var(--dark-text);
  transform-origin: top center;
}
.tl-step:last-child::before { display: none; }
/* Into projected milestones the rail turns dashed */
.tl-step--to-future::before,
.tl-step--future::before {
  background: repeating-linear-gradient(to bottom, var(--dark-text-muted) 0 6px, transparent 6px 12px);
}
.js .tl-step::before { transform: scaleY(0); transition: transform 1400ms var(--ease-out) 400ms; }
.js .tl-step.is-visible::before { transform: scaleY(1); }

.tl-date {
  display: block;
  padding-top: 0.15rem;
  font-size: var(--fs-md);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.1;
}
.tl-tag {
  display: inline-block;
  margin-left: var(--space-2);
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--dark-text-muted);
  border-radius: var(--radius-s);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--dark-text-muted);
  vertical-align: middle;
  letter-spacing: 0;
}
.tl-title {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.3;
}
.tl-step__what > p { margin-top: var(--space-3); max-width: var(--measure); font-size: var(--fs-md); line-height: 1.45; }
.tl-step__what > p:first-child { margin-top: 0; }
.tl-step .tl-title { color: var(--text); }
.tl-step--future .tl-title { color: var(--text); }
.tl-step--future .tl-step__what > p:not(.tl-title) { color: var(--text-muted); }
.tl-footnote { margin-top: var(--space-6); font-size: var(--fs-sm); color: var(--text-muted); max-width: var(--measure); }
.ideas {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-5);
  max-width: 52rem;
}
.idea {
  padding: var(--space-5);
  background: var(--surface);
  color: var(--text);
  border-left: 3px solid var(--c-sand);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
}
.idea .h-card { font-size: var(--fs-base); }
.idea p { margin-top: var(--space-2); font-size: var(--fs-sm); color: var(--text-muted); }
@media (min-width: 640px) { .ideas { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .timeline { --tl-node: 64px; padding-left: 0; }
  .tl-step { display: grid; grid-template-columns: 12rem 1fr; }
  .tl-step__when { padding-right: var(--space-6); }
  .tl-step__what { padding-left: calc(var(--tl-node) / 2 + var(--space-6)); }
  .tl-node { left: calc(12rem - var(--tl-node) / 2); }
  .tl-step::before { left: calc(12rem - 1px); }
  .tl-step__what .tl-title { margin-top: 0; }
  .tl-footnote { margin-left: calc(12rem + var(--tl-node) / 2 + var(--space-6)); }
}
.tl-step__when .tl-tag { margin-left: 0; margin-top: var(--space-2); }
@media (min-width: 900px) { .tl-date .tl-tag { display: table; } }

/* ---------- Early results ---------- */
.pilots { display: grid; gap: var(--space-5); }
@media (min-width: 820px) { .pilots { grid-template-columns: 1fr 1fr; } }
.pilot {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: var(--surface);
  overflow: hidden;
}
.pilot__art {
  background: var(--bg-recessed);
  border-bottom: 1px solid var(--line);
  padding: var(--space-5) var(--space-5) var(--space-4);
}
.pilot__text { padding: var(--space-6); }
.pilot__num { font-size: var(--fs-sm); color: var(--text-muted); }
.pilot .h-card {
  margin-top: var(--space-2);
  font-size: var(--fs-lg);
  font-family: var(--font-display);
  font-weight: 400;
}
.pilot__text > p:last-child { margin-top: var(--space-4); color: var(--text-muted); }
.status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-s);
  border: 1px solid var(--line-strong);
  font-size: var(--fs-xs);
  font-weight: 600;
}

/* Photo band before the form */
/* ---------- News (carousel) ----------
   Desktop shows two stories plus the edge of a third; scrolls by one card. */
.news__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); }
.news__controls { display: flex; align-items: center; gap: var(--space-3); }
/* Filter tags (only "All news" for now, shown selected; more tags in the fuller site) */
.news-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-right: var(--space-3); }
.news-tag {
  min-height: 36px; padding: 0 0.9rem;
  border: 1.5px solid var(--c-navy); border-radius: var(--radius-s);
  background: transparent; color: var(--c-navy);
  font: inherit; font-size: var(--fs-sm); font-weight: 600;
  cursor: default;
}
.news-tag[aria-pressed="true"] { background: var(--c-navy); color: var(--c-cream-light); }
.news__nav {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1.5px solid var(--text); border-radius: var(--radius-s);
  background: transparent; color: var(--text); cursor: pointer;
  transition: background 200ms, color 200ms, opacity 200ms;
}
.news__nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.news__nav:hover:not(:disabled) { background: var(--text); color: var(--bg); }
.news__nav:disabled { opacity: 0.3; cursor: default; }
.news-list { outline-offset: 6px; }
.news-track {
  --card-w: 82%;
  display: flex; gap: var(--space-5);
  margin: 0; padding: 0 0 var(--space-3); list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.news-track::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .news-track { --card-w: 46%; } }
@media (min-width: 1100px) { .news-track { --card-w: 44%; } }   /* two cards + the edge of a third */
.news-card { position: relative; flex: 0 0 var(--card-w); scroll-snap-align: start; display: flex; flex-direction: column; }
.js .news-card { opacity: 0; transform: translateY(22px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(var(--n, 0) * 110ms); }
.js .news-list.is-visible .news-card { opacity: 1; transform: none; }
.news-card__media { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-s); background: var(--c-cream); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.news-card:hover .news-card__media img { transform: scale(1.04); }
/* Stand-in image area for the "more stories" card: the logo mark in sand on cream */
.news-card__dummy { display: grid; place-items: center; width: 100%; height: 100%; background: var(--c-cream); }
.news-card__dummy svg { height: 46%; width: auto; fill: var(--c-sand); }
.news-card__date { margin-top: var(--space-4); font-size: var(--fs-xs); font-weight: 500; color: var(--text-muted); }
.news-card__title { margin-top: var(--space-2); font-size: var(--fs-lg); font-weight: 700; line-height: 1.3; }
.news-card--empty .news-card__title { margin-top: var(--space-4); }
.news-card__title a { text-decoration: none; }
.news-card__open { all: unset; cursor: pointer; text-align: left; }
.news-card__open:focus-visible { outline: 2px solid var(--focus, var(--c-navy)); outline-offset: 3px; }
.news-card__title a::after, .news-card__open::after { content: ""; position: absolute; inset: 0; }
.news-card__open:hover { text-decoration: underline; text-decoration-color: var(--c-gold); text-decoration-thickness: 2px; }
.news-card__title a:hover { text-decoration: underline; text-decoration-color: var(--c-gold); text-decoration-thickness: 2px; }
.news-card__summary { margin-top: var(--space-2); font-size: var(--fs-base); color: var(--text-muted); max-width: 36rem; }

/* Get involved: short summary in place of the funder panels */
.engage__text { font-size: var(--fs-md); line-height: 1.5; max-width: 32rem; color: var(--text-muted); }

/* Photo bands: full container width, 2px corners, two logo-style blocks overlapping a corner */
.photo-band { padding-block: 0; }   /* no overflow clip: iOS Safari clipped the corner blocks at the photo top */
.photo-band--after-approach { padding-bottom: var(--space-9); }
.photo { position: relative; margin: 0; }
.photo img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-s);
}
@media (min-width: 720px) { .photo img { aspect-ratio: 21 / 9; } }
.photo__block {
  position: absolute; display: block; z-index: 2;
  width: clamp(56px, 7vw, 110px); aspect-ratio: 150 / 88;
  border-radius: var(--radius-s);
  transform: rotate(-22.5deg);
}
.photo__block--a { background: var(--c-gold); left: calc(clamp(56px, 7vw, 110px) * -0.25); bottom: calc(clamp(56px, 7vw, 110px) * -0.2); }
.photo__block--b { background: var(--c-navy-mid); left: calc(clamp(56px, 7vw, 110px) * 0.55); bottom: calc(clamp(56px, 7vw, 110px) * -0.55); }
.photo-band--after-approach .photo__block--a { left: auto; right: calc(clamp(56px, 7vw, 110px) * -0.25); bottom: auto; top: calc(clamp(56px, 7vw, 110px) * -0.2); }
.photo-band--after-approach .photo__block--b { left: auto; right: calc(clamp(56px, 7vw, 110px) * 0.55); bottom: auto; top: calc(clamp(56px, 7vw, 110px) * -0.55); background: var(--c-navy); }
/* Mobile: the side gutter is narrow, so the corner blocks overhang less and stay fully on screen */
@media (max-width: 719px) {
  .photo-band--after-approach .photo__block--a { right: calc(clamp(56px, 7vw, 110px) * -0.1); }
  .photo-band--after-approach .photo__block--b { right: calc(clamp(56px, 7vw, 110px) * 0.68); }
}
.js .photo .photo__block { opacity: 0; transform: rotate(-22.5deg) translateY(24px); transition: opacity 800ms var(--ease-out) 500ms, transform 1000ms var(--ease-out) 500ms; }
.js .photo.is-visible .photo__block { opacity: 1; transform: rotate(-22.5deg); }
.js .photo .photo__block--b { transition-delay: 700ms; }

/* ---------- Learn more (form) ---------- */
/* Mobile order: intro, summary ("National funders bring capital..."), form. Desktop: intro and summary left, form right. */
.join__grid { display: grid; gap: var(--space-7); grid-template-areas: "intro" "engage" "form"; }
.join__intro { grid-area: intro; }
.join .form-card { grid-area: form; align-self: start; }
.engage { grid-area: engage; }
@media (min-width: 960px) {
  .join__grid {
    grid-template-columns: 5fr 6fr;
    grid-template-areas: "intro form" "engage form";
    grid-template-rows: auto 1fr;
    column-gap: var(--space-8);
    row-gap: var(--space-7);
  }
}
.join__body { margin-top: var(--space-5); font-size: var(--fs-md); line-height: 1.5; max-width: 32rem; }
.form-card {
  padding: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  background: var(--surface);
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
}
.form-note { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--space-5); }
.field { margin-bottom: var(--space-5); }
.field label { display: block; font-weight: 600; margin-bottom: var(--space-2); }
.field .req { font-weight: 400; color: var(--text-muted); }
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--text-muted); /* 7:1, meets 3:1 for UI boundaries */
  border-radius: var(--radius-s);
  background: var(--bg);
  font-size: var(--fs-base);
}
.field input:hover, .field textarea:hover { border-color: var(--text); }
.field textarea { resize: vertical; min-height: 6.5rem; line-height: 1.5; display: block; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--focus); }
.field__control { position: relative; }
.field__line {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--c-navy-mid);
  border-radius: 0 0 var(--radius-s) var(--radius-s);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 450ms var(--ease-out);
  pointer-events: none;
}
.field__control:focus-within .field__line { transform: scaleX(1); }
.field.is-shaking { animation: field-shake 420ms var(--ease-out); }
@keyframes field-shake {
  0%, 100% { transform: none; }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}
.field input[aria-invalid="true"] { border-color: var(--c-error); border-width: 2px; }
.field-help { margin: calc(var(--space-1) * -1) 0 var(--space-2); font-size: var(--fs-sm); color: var(--text-muted); max-width: 34rem; }

/* Audience choice: three segmented options */
.field--choice { border: 0; padding: 0; margin: 0 0 var(--space-5); min-width: 0; }
.field--choice legend { padding: 0; font-weight: 600; margin-bottom: var(--space-2); }
.choice { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
@media (min-width: 1100px) { .choice { grid-template-columns: repeat(4, 1fr); } }
.choice__opt { position: relative; display: block; margin: 0; cursor: pointer; }
.choice__opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice__opt span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; height: 100%; padding: 0.55rem 0.6rem;
  border: 1.5px solid var(--text-muted); border-radius: var(--radius-s);
  font-weight: 600; font-size: var(--fs-sm); line-height: 1.25;
  transition: background 200ms, color 200ms, border-color 200ms, transform 200ms var(--ease-out);
}
.choice__opt:hover span { border-color: var(--text); }
.choice__opt input:checked + span { background: var(--c-navy); border-color: var(--c-navy); color: var(--c-cream-light); }
.choice__opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice__opt input:active + span { transform: scale(0.98); }
.field--choice.is-invalid .choice__opt span { border-color: var(--c-error); }

.js .field--reveal-on-other.is-appearing { animation: q-swap 450ms var(--ease-out); }
.js .field--question.is-swapping label,
.js .field--question.is-swapping .field-help { animation: q-swap 450ms var(--ease-out); }
@keyframes q-swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Funder panels (from the funder deck) ---------- */
.engage__label {
  font-family: var(--font-display); font-size: var(--fs-sm); letter-spacing: 0.01em;
  color: var(--accent-text); margin-bottom: var(--space-3);
}
.acc { border-top: 1px solid var(--line-strong); }
.acc:last-of-type { border-bottom: 1px solid var(--line-strong); }
.acc__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: 56px; padding: var(--space-4) 0;
  font-weight: 700; font-size: var(--fs-md); line-height: 1.3;
  cursor: pointer; list-style: none;
}
.acc__head::-webkit-details-marker { display: none; }
.acc__head:hover span:first-child { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.acc__icon { position: relative; flex: 0 0 auto; width: 16px; height: 16px; }
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: currentColor;
  transition: transform 300ms var(--ease-out);
}
.acc__icon::after { transform: rotate(90deg); }
.acc[open] .acc__icon::after { transform: rotate(0deg); }
.acc__body { padding: 0 0 var(--space-6); color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.55; }
.acc__body > * + * { margin-top: var(--space-4); }
.js .acc[open] .acc__body { animation: acc-in 450ms var(--ease-out); }
@keyframes acc-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.acc__note { padding: var(--space-4); background: var(--bg-recessed); border-left: 3px solid var(--c-gold); color: var(--text); }
.roles, .steps, .spectrum { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-4); }
.roles li { display: grid; grid-template-columns: 2rem 1fr; gap: var(--space-3); align-items: start; }
.roles__num, .steps li::before {
  display: grid; place-items: center; width: 2rem; height: 2rem;
  background: var(--c-gold); color: var(--c-navy);
  font-family: var(--font-display); font-size: var(--fs-sm); border-radius: var(--radius-s);
}
.roles__title, .steps__title, .spectrum__title { font-weight: 700; color: var(--text); margin-bottom: var(--space-1); }
.roles__title span { color: var(--accent-text); }
.steps { counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2rem 1fr; column-gap: var(--space-3); }
.steps li::before { content: counter(step); grid-row: span 2; }
.steps li > * { grid-column: 2; }
.spectrum { grid-template-columns: 1fr; gap: var(--space-3); }
.spectrum li { display: grid; grid-template-columns: 5.5rem 1fr; column-gap: var(--space-4); align-items: start; }
.spectrum .vis { grid-row: span 2; margin: 0.45rem 0 0; }
.spectrum li > p { grid-column: 2; }
.spectrum li { padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); }

.vis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: var(--space-3); }
.vis__bar { height: 6px; border-radius: 999px; background: var(--line); }
.vis__bar.is-on { background: var(--c-navy); }
.section--dark .vis__bar.is-on { background: var(--c-gold); }
.engage__download { margin-top: var(--space-5); display: grid; gap: var(--space-2); justify-items: start; font-size: var(--fs-sm); }
.download-link { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }
.download-link svg { width: 16px; height: 16px; fill: currentColor; flex: 0 0 auto; }
.field-error {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-error);
}
.field-error:empty { display: none; }
.field-error::before { content: "!"; display: inline-grid; place-items: center; flex: 0 0 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--c-error); color: #fff; font-size: 0.75rem; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-5); margin-top: var(--space-6); }
.privacy-link {
  background: none;
  border: 0;
  padding: 0.5rem 0;
  font-size: var(--fs-sm);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
  color: var(--text-muted);
}
.btn--submit { position: relative; overflow: hidden; }
.btn__bar {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--c-gold);
  transform: scaleX(0); transform-origin: left center;
}
.btn--submit[aria-busy="true"] .btn__bar { animation: btn-progress 900ms var(--ease-out) infinite; }
@keyframes btn-progress { from { transform: scaleX(0); } to { transform: scaleX(1); opacity: 0; } }
.form-status { margin-top: var(--space-5); }
.form-status:empty { display: none; }
.form-status__msg {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5);
  border-radius: var(--radius-s);
  background: var(--bg-recessed);
  border-left: 4px solid var(--c-gold);
  font-weight: 600;
}
.js .form-status__msg { animation: status-in 500ms var(--ease-out) both; }
@keyframes status-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark-bg);
  color: var(--dark-text);
  --text-muted: var(--dark-text-muted);
  --focus: var(--c-gold);
  padding-block: var(--space-8) calc(var(--space-7) + 64px); /* room for the floating controls */
}
.site-footer__top { display: grid; gap: var(--space-6); align-items: end; padding-bottom: var(--space-7); border-bottom: 1px solid var(--dark-line); }
.site-footer__logo img { width: 210px; }
.site-footer .highlight { background: var(--c-gold); color: var(--c-navy); margin-top: 0.1em; }
.site-footer__tagline {
  font-size: clamp(1.6rem, 1rem + 2.6vw, 3rem);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.site-footer__meta { display: grid; gap: var(--space-5); padding-top: var(--space-6); font-size: var(--fs-sm); color: var(--text-muted); }
.site-footer__meta dt { font-weight: 700; color: var(--dark-text); }
.site-footer__meta dd { margin: var(--space-1) 0 0; }
/* Social buttons (labels only; links TBD) */
.social { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-2) 0 var(--space-2); padding: 0; list-style: none; }
.social__btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem;
  border: 1.5px solid var(--dark-line); border-radius: var(--radius-s);
  color: var(--dark-text); font-weight: 600; text-decoration: none;
  transition: background 200ms, color 200ms, border-color 200ms, transform 200ms var(--ease-out);
}
.social__btn:hover { background: var(--c-gold); border-color: var(--c-gold); color: var(--c-navy); transform: translateY(-2px); }
.site-footer .privacy-link { color: var(--dark-text-muted); padding: 0; }
@media (min-width: 820px) {
  .site-footer__top { grid-template-columns: auto 1fr; gap: var(--space-8); }
  .site-footer__tagline { text-align: right; }
  .site-footer__meta { grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--space-8); }
}

/* ---------- Privacy dialog ---------- */
.dialog {
  width: min(42rem, calc(100vw - 2rem));
  max-height: calc(100svh - 3rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius-m);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(10, 16, 26, 0.35);
}
.dialog::backdrop { background: rgba(15, 22, 33, 0.6); }
.dialog__inner { padding: clamp(1.25rem, 0.8rem + 2vw, 2.5rem); }
.dialog__head { display: flex; justify-content: space-between; align-items: start; gap: var(--space-4); margin-bottom: var(--space-5); }
.dialog__head h2 { font-size: var(--fs-md); font-family: var(--font-display); font-weight: 400; }
.dialog__close {
  flex: 0 0 auto;
  min-width: 44px; min-height: 44px;
  border: 1.5px solid var(--text-muted);
  border-radius: var(--radius-s);
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  padding: 0 1rem;
}
.draft-banner {
  padding: var(--space-4);
  margin-bottom: var(--space-5);
  background: var(--tbd-bg);
  color: var(--tbd-text);
  border: 1px dashed var(--tbd-line);
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: var(--fs-sm);
}
.dialog--story .dialog__head h2 { font-size: var(--fs-lg); line-height: 1.25; }
.news-dialog__media { margin: 0 0 var(--space-5); overflow: hidden; border-radius: var(--radius-s); background: var(--c-cream); }
.news-dialog__media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.news-dialog__media[hidden] { display: none; }
.news-dialog__date { margin-top: 0 !important; font-weight: 500; }
.news-dialog__body p { font-size: var(--fs-base); line-height: 1.6; }
.news-dialog__body p + p { margin-top: var(--space-4); }
.news-dialog__body strong { font-weight: 700; color: var(--text); }
.news-dialog__body a { color: var(--text); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--c-gold); text-decoration-thickness: 2px; }
.news-dialog__body a:hover { text-decoration-color: var(--c-navy); }
.news-dialog__body hr { margin: var(--space-6) 0 var(--space-4); border: 0; border-top: 1px solid var(--line-strong, var(--c-sand)); }
.news-dialog__body ul { margin: var(--space-2) 0 0; padding-left: 1.2rem; color: var(--text-muted); font-size: var(--fs-sm); }
.dialog h3 { font-size: var(--fs-base); font-weight: 700; margin-top: var(--space-5); }
.dialog p { margin-top: var(--space-2); font-size: var(--fs-sm); color: var(--text-muted); }
.section--dark .idea { border-left-color: var(--c-gold); }
