/* Pool to Pavement. Shared paper frame, two contrasting halves. */
:root {
  --paper: #f4efe4;
  --paper-2: #ebe3d3;
  --ink: #231d16;
  --ink-soft: #4a4037;
  --clay: #9c4221;

  --pool-deep: #084a72;
  --pool: #0d6c9f;
  --pool-ink: #062a40;
  --pool-ink-soft: #0a3b57;
  --lane-black: #0b2842;

  --asphalt: #2a2c2e;
  --asphalt-2: #222426;
  --road-text: #f3f2ec;
  --road-soft: #c9c8c0;
  --yellow: #f2c230;
  --yellow-dim: #6b5a22;
  --sign-green: #00684a;

  --display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Overpass", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Kalam", "Comic Sans MS", "Bradley Hand", cursive;
  --marker-blue: #2b2f8c;
  --marker-red: #c62f3a;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Nothing may widen the page: on phones an overflow makes Firefox zoom out,
   which pushes the layout past the 860px breakpoint and un-stacks the halves. */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
}
a { color: inherit; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- masthead ---------- */
.masthead { padding: clamp(28px, 5vw, 64px) 16px clamp(24px, 4vw, 48px); }
.masthead-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px); align-items: end;
}
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--clay);
}
.logo { height: 44px; width: auto; }
h1 {
  font: 900 clamp(2.8rem, 7.5vw, 5.6rem)/.95 var(--display);
  letter-spacing: -.02em; margin: 14px 0 10px;
}
.subtitle { font: 500 clamp(1.15rem, 2.2vw, 1.5rem)/1.3 var(--display); margin: 0 0 18px; }
.subtitle em { color: var(--clay); font-style: italic; }
.mission { max-width: 62ch; margin: 0; color: var(--ink-soft); }

.combined {
  display: flex; flex-direction: column; gap: 4px;
  position: relative; overflow: hidden;
  background: #fffcf6; color: var(--ink);
  border: 1px solid #e2d8c6; border-radius: var(--radius); padding: 24px 26px 30px;
  box-shadow: 0 18px 40px -28px rgba(35,29,22,.45);
}
.combined::after { /* pool on the left, road on the right */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px;
  background: linear-gradient(90deg, #3fbde0 0 50%, var(--yellow) 50% 100%);
}
.combined-label { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); }
.combined-amount { font: 900 clamp(2.6rem, 6vw, 4rem)/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.combined-split { color: var(--ink-soft); font-size: .95rem; }
.updated { margin-top: 8px; font-size: .8rem; color: #6f6458; }
.updated.stale { color: var(--clay); }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.side { position: relative; overflow: hidden; }
.side-inner {
  position: relative; z-index: 1;
  max-width: 590px; padding: clamp(28px, 4vw, 52px) clamp(16px, 4vw, 48px) clamp(36px, 5vw, 60px);
  display: flex; flex-direction: column; gap: 22px; height: 100%;
}
.pool .side-inner { margin-left: auto; }
.side h2 {
  font: 900 clamp(2rem, 4vw, 2.9rem)/1 var(--display); margin: -14px 0 0; letter-spacing: -.01em;
}
.eyebrow { margin: 0; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.pledge-chip {
  align-self: flex-start; margin: -8px 0 0;
  padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: .95rem;
}

/* CTA shared */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 16px 26px; margin-top: auto;
  border-radius: 12px; border: 0; cursor: pointer;
  font: 900 1.15rem/1.1 var(--sans); letter-spacing: .01em; text-decoration: none; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta::after { content: "\2197"; font-weight: 800; }
.cta:hover { transform: translateY(-2px); }
.cta:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.cta[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.cta[aria-disabled="true"]::after { content: none; }

/* ---------- POOL: looking down at the pool floor ---------- */
.pool {
  color: var(--pool-ink);
  background:
    /* tile grout */
    repeating-linear-gradient(0deg, rgba(255,255,255,.22) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 1px, transparent 1px 34px),
    /* deeper toward the bottom */
    linear-gradient(180deg, #5fd0ea 0%, #3fbde0 55%, #2eaed6 100%);
}
.floor { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.floor-line { /* dark lane line on the floor, T at the wall end */
  position: absolute; top: 0; bottom: 64px; width: 22px;
  background: var(--lane-black); opacity: .82; border-radius: 2px;
  box-shadow: 0 0 3px rgba(11,40,66,.6);
}
.floor-line::after {
  content: ""; position: absolute; bottom: 0; left: -26px; width: 74px; height: 22px;
  background: inherit; border-radius: 2px;
}
.floor-l { left: 3.5%; }
.floor-r { right: 3.5%; }
.floor::after { /* caustics drifting over everything on the floor */
  content: ""; position: absolute; inset: -10%;
  background:
    url(assets/caustics.svg) 0 0 / 520px 520px,
    url(assets/caustics.svg) 210px 140px / 820px 820px;
  opacity: .55; mix-blend-mode: screen;
  animation: caustics 22s ease-in-out infinite alternate;
}
@keyframes caustics { to { transform: translate(3%, 2%) rotate(.6deg); } }

.pool .eyebrow { color: var(--pool-ink-soft); }
.pool .pledge-chip { background: rgba(255,255,255,.7); border: 1px solid rgba(6,42,64,.25); }

.whiteboard { /* swim practice whiteboard */
  position: relative; transform: rotate(.6deg);
  background:
    radial-gradient(40% 25% at 75% 30%, rgba(120,130,150,.07), transparent 70%),
    radial-gradient(30% 20% at 20% 80%, rgba(120,130,150,.06), transparent 70%),
    linear-gradient(160deg, #ffffff, #f3f4f2);
  border: 9px solid #c3c8cd; border-radius: 6px;
  border-color: #d9dde1 #a9afb5 #9aa1a8 #c9ced3;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 20px 34px -20px rgba(6,42,64,.75);
  padding: 16px 22px 30px;
  font-family: var(--hand); color: var(--marker-blue); line-height: 1.15;
}
.whiteboard p { margin: 0; }
.wb-title { color: var(--marker-red); font-size: clamp(1.7rem, 3.4vw, 2.2rem); margin-bottom: 6px !important; }
.wb-line { font-size: clamp(1.35rem, 2.6vw, 1.65rem); }
.wb-k { margin-right: .25em; }
.wb-big { font-size: 1.6rem; font-weight: 700; white-space: nowrap; }
@supports (font-size: 1cqi) {
  .whiteboard { container-type: inline-size; }
  .wb-big { font-size: clamp(1.1rem, 8cqi, 3rem); } /* sized to the board, so the line always fits */
}
.wb-big .wb-keep { color: #16182a; } /* distance and unit in one ink */
.wb-indent { padding-left: 2.6em; }
.wb-small { font-size: clamp(1.15rem, 2.2vw, 1.35rem); }
.wb-note { color: var(--marker-red); font-size: .85em; margin-left: .35em; white-space: nowrap; }
.wb-wave { display: block; width: 100%; height: 16px; margin: 8px 0 6px; color: var(--marker-red); }
.wb-tray { /* aluminum marker ledge */
  position: absolute; left: -9px; right: -9px; bottom: -20px; height: 11px;
  background: linear-gradient(#e2e5e8, #9ea5ab); border-radius: 0 0 4px 4px;
}
.wb-marker {
  position: absolute; right: 18%; top: -7px; width: 64px; height: 9px; border-radius: 3px;
  background: linear-gradient(90deg, #f5f5f5 0 72%, #c62f3a 72%);
  box-shadow: 0 1px 1px rgba(0,0,0,.35);
}

.cta-pool { background: var(--pool-ink); color: #ffffff; box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); }

/* ---------- ROAD: top-down asphalt ---------- */
.road {
  color: var(--road-text);
  background:
    /* wear: lighter tire tracks and darker patches */
    radial-gradient(120% 30% at 30% 20%, rgba(255,255,255,.035), transparent 70%),
    radial-gradient(80% 25% at 70% 75%, rgba(0,0,0,.22), transparent 70%),
    linear-gradient(90deg, transparent 18%, rgba(255,255,255,.03) 28%, transparent 38%, transparent 62%, rgba(255,255,255,.03) 72%, transparent 82%),
    url(assets/asphalt.svg) 0 0 / 320px 320px,
    var(--asphalt);
}
.road-marks { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.lane-dash { /* dashed white lane divider down the middle */
  position: absolute; top: 0; bottom: 0; left: 50%; width: 9px; margin-left: -4.5px;
  background: repeating-linear-gradient(180deg, #ecebe4 0 64px, transparent 64px 150px);
  opacity: .5;
}
.edge-white { position: absolute; top: 0; bottom: 0; width: 9px; background: #ecebe4; opacity: .85; }
.edge-l { left: 18px; }
.edge-r { right: 18px; }
.road .eyebrow { color: var(--yellow); }
.road .pledge-chip { background: var(--yellow); color: #1b1c1d; }

.road-hero { display: flex; justify-content: flex-start; padding: 6px 4px 10px; }
.road-hero .bib { width: min(100%, 340px); }
.bib {
  position: relative; display: flex; flex-direction: column; align-items: center;
  background: #fbfaf6; color: #15171a; border-radius: 10px;
  padding: 22px 18px 16px; transform: rotate(-2.2deg);
  box-shadow: 0 2px 0 #d8d5cc, 0 22px 30px -18px rgba(0,0,0,.9);
}
.bib-top {
  align-self: stretch; text-align: center;
  background: var(--sign-green); color: #fff; border-radius: 4px; padding: 4px 6px;
  font-size: .78rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase;
}
.bib-number { font: 900 clamp(4rem, 10vw, 6.4rem)/1 var(--sans); letter-spacing: -.03em; margin: 10px 0 2px; font-variant-numeric: tabular-nums; }
.bib-bottom { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #3d4248; text-align: center; }
.pin {
  position: absolute; width: 22px; height: 8px; border-radius: 4px;
  background: linear-gradient(#f2f4f6, #9aa1a8); box-shadow: 0 1px 1px rgba(0,0,0,.4);
}
.pin::after { content: ""; position: absolute; right: -3px; top: 1px; width: 6px; height: 6px; border-radius: 50%; background: #c7ccd1; }
.pin-tl { top: 8px; left: 8px; transform: rotate(-20deg); }
.pin-tr { top: 8px; right: 8px; transform: rotate(18deg); }
.pin-bl { bottom: 8px; left: 8px; transform: rotate(14deg); }
.pin-br { bottom: 8px; right: 8px; transform: rotate(-16deg); }


.cta-road { background: var(--yellow); color: #15171a; box-shadow: 0 10px 24px -12px rgba(0,0,0,.9); }

/* ---------- open-ended meters: no end point, the scale grows with the numbers ---------- */
.meter { display: flex; flex-direction: column; gap: 10px; }
.meter-track {
  position: relative; height: 46px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 78%, transparent 100%);
}
.meter-fill { position: absolute; top: 0; bottom: 0; left: 0; width: 0; transition: width 1s ease; }
.meter-who { /* emoji riding the done point */
  position: absolute; top: 50%; left: 0; z-index: 2; width: 36px; height: 36px; margin: -18px 0 0 -18px; /* centered on the pledged mark */
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; line-height: 1; transition: left 1s ease;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.6));
}
.meter-who > span { display: block; transform: scaleX(-1); } /* emoji face left by default; face the way the bar grows */
.meter-ticks { position: relative; height: 1.4em; margin-top: 2px; font-size: .78rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.meter-ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }

.meter-pool .meter-track { background: #063a5a; border: 2px solid var(--pool-ink); border-right: 0; border-radius: 10px 0 0 10px; }
.meter-pool .meter-done { background: repeating-linear-gradient(115deg, #8fe6f7 0 14px, #63d2ec 14px 28px); }
.meter-pool .lane-line { /* lane line with a T at the start wall only */
  position: absolute; left: 14px; right: 0; top: 50%; height: 8px; margin-top: -4px; background: #0b0f14; z-index: 1;
}
.meter-pool .lane-line::before { content: ""; position: absolute; left: 0; top: -9px; width: 8px; height: 26px; background: #0b0f14; }
.meter-pool .meter-ticks { color: var(--pool-ink); }
.meter-pool .meter-ticks span::before { content: ""; position: absolute; left: 50%; top: -7px; width: 2px; height: 5px; background: var(--pool-ink); }
.meter-pool .meter-ticks .tick-pledged { font-weight: 900; font-size: .9rem; }
.meter-pool .meter-ticks .tick-pledged::before { top: -10px; width: 3px; height: 8px; }
.meter-ticks .tick-ahead { opacity: .6; }
.meter-road .meter-track { /* a solid, outlined bar like the pool's */
  background: #121314; border: 2px solid rgba(243,242,236,.9); border-right: 0;
  border-radius: 10px 0 0 10px; box-shadow: 0 12px 24px -12px rgba(0,0,0,.95);
}
.meter-road .meter-track::before { /* unpainted road ahead: faint dashes */
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.14) 0 26px, transparent 26px 44px);
}
.meter-road .meter-done { /* full-height fill, bright center dashes on top */
  z-index: 1;
  background:
    repeating-linear-gradient(90deg, var(--yellow) 0 26px, transparent 26px 44px) left center / 100% 6px no-repeat,
    linear-gradient(180deg, #6e5a17, #54450f);
  box-shadow: inset 0 2px 0 rgba(255,236,170,.25);
}
.meter-road .meter-ticks { height: 2.4em; margin-top: 10px; }
.meter-road .meter-ticks span { /* mile-marker signs on posts */
  top: 0; background: var(--sign-green); color: #fff; padding: 2px 7px 1px; border-radius: 3px;
  box-shadow: inset 0 0 0 1px var(--sign-green), inset 0 0 0 2px #fff;
}
.meter-road .meter-ticks span::before { /* post up to the road edge */
  content: ""; position: absolute; left: 50%; top: -10px; width: 3px; margin-left: -1.5px; height: 10px;
  background: linear-gradient(90deg, #8b9096, #c7cbcf, #8b9096);
}
.meter-road .meter-ticks .tick-pledged {
  z-index: 1; background: var(--yellow); color: #15171a; font-size: .9rem; font-weight: 900;
  box-shadow: inset 0 0 0 1px var(--yellow), inset 0 0 0 2px #15171a;
}
/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .masthead-inner { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .pool .side-inner, .side-inner { margin: 0 auto; max-width: 640px; padding-left: 34px; padding-right: 34px; }
  .floor-l { left: 6px; } .floor-r { right: 6px; }
  .floor-line { width: 14px; }
  .floor-line::after { width: 46px; height: 14px; left: -16px; }
  .edge-l { left: 8px; }
  .edge-r { right: 8px; }
}
@media (max-width: 420px) {
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
