/* pilot.css — pilot pages (design.md §12.4 "Pilot pages", redesign 3a "Twin Hero · Bold Motion", 2026-11-16)
   Loaded only by the pilot pages (first: /onion-creek-pilot/), after styles.css. Colours, type, spacing and buttons are the
   site's own: the tokens of styles.css :root and its components (.hero, .eyebrow, .section-heading, .btn, .conversion).
   No new font or colour; translucent values are the tokens' own rgb variables (--ink-rgb, --surface-rgb) or, where a
   gradient needs them, --hero-orange written as rgba(239, 89, 16, a).
   Every animation runs only with pilot.js (.pilot-js on <html>), stops under prefers-reduced-motion, and pauses with the
   hero's round "Pause motion" button (.pilot-paused on <html>). Motion is an illustration, never live data.
   Without pilot.js the page is complete and still. */

/* ---------- Hero: the home video hero (.hero) with a drawn twin instead of the video ---------- */
.hero--pilot {
  /* .hero sizes its text block from the video presenter's position (--hero-room); here the block is simply 640px. */
  --hero-room: min(640px, calc(100cqw - 2 * var(--hero-pad)));
  min-height: 640px;
  min-height: clamp(600px, calc(100svh - var(--hdr-h) - 1px), 860px);   /* under the normal (white) header */
}
.hero--pilot .hero__overlay {   /* the home hero's bottom and left ink layers; no top band (the header is not over the hero) */
  background:
    linear-gradient(0deg, rgba(var(--ink-rgb), 0.72) 0%, rgba(var(--ink-rgb), 0) 30%),
    linear-gradient(90deg, rgba(var(--ink-rgb), 0.9) 0%, rgba(var(--ink-rgb), 0.78) 30%, rgba(var(--ink-rgb), 0.3) 60%, rgba(var(--ink-rgb), 0.06) 100%);
}
.hero--pilot .hero__inner { padding-top: 72px; padding-bottom: 140px; }
.hero--pilot .hero__content { max-width: 640px; }
.hero--pilot .hero__title {     /* the name wraps (the home H1 is one line) */
  margin-bottom: 20px;
  font-size: clamp(36px, 4.72vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  white-space: normal;
  text-wrap: balance;
}
.hero--pilot .hero__lede { max-width: 580px; margin: 0; font-size: 21px; }
.hero--pilot .hero__title.hero__title--long { font-size: clamp(34px, 4vw, 56px); }   /* longer pilot names (Salado) */
.pilot-shimmer {                /* "Digital Twin": orange, with a cream glint that crosses it (pilot.js only) */
  background-image: linear-gradient(100deg, var(--hero-orange) 0%, var(--hero-orange) 40%, var(--cream) 50%, var(--hero-orange) 60%, var(--hero-orange) 100%);
  background-size: 260% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pilot-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}
.pilot-facts li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 2px 16px;
  border-left: 1px solid rgba(var(--surface-rgb), 0.28);
}
.pilot-fact__n {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--surface);
}
.pilot-facts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 480px; }
.pilot-fact__l { font-size: 13px; font-weight: 500; line-height: 1.4; letter-spacing: 0.02em; color: var(--cream); }

/* Background: contour lines and the twin map (both drawn by pilot.js), each in its own layer for the parallax. */
.pilot-twin { overflow: hidden; }
.pilot-twin__contours { position: absolute; inset: -40px; }
.pilot-twin__map { position: absolute; top: 76px; right: 0; width: clamp(560px, 69vw, 1000px); }
.pilot-twin__map--tall { top: 40px; right: 9vw; width: auto; height: calc(100% - 80px); aspect-ratio: var(--twin-ratio, 480 / 726); }   /* a north-south watershed (Salado): height-fitted */
.pilot-contours { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pilot-contours__base { fill: none; stroke: var(--cream); stroke-opacity: 0.1; stroke-width: 1; }
.pilot-contours__iso { fill: none; stroke: var(--hero-orange); stroke-width: 1.25; stroke-opacity: 0; }

/* Scan line over the whole hero, top to bottom (pilot.js only). */
.pilot-scan { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.pilot-scan span { position: absolute; top: 0; left: 0; right: 0; height: 100%; display: none; }
.pilot-scan span::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -160px;
  height: 160px;
  background: linear-gradient(180deg, rgba(239, 89, 16, 0), rgba(239, 89, 16, 0.07));   /* --hero-orange */
}
.pilot-scan span::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(239, 89, 16, 0), rgba(239, 89, 16, 0.6) 25%, rgba(239, 89, 16, 0.6) 75%, rgba(239, 89, 16, 0));
}

/* The round button: .hero__toggle, its ring runs once per run-pulse cycle (9 s). */
.pilot-ring { stroke-dashoffset: 138.23; }

/* ---------- Twin drawings (hero map, built by pilot.js; site map, written by onion_pilot_map.mjs + layers from pilot.js) ---------- */
.pilot-twin__map svg, .pilot-map { display: block; width: 100%; height: auto; overflow: visible; }
.twin { --t-line: var(--cream); --t-flow: var(--surface); --t-dot: var(--surface); --t-hi: var(--surface); --t-ring: var(--hero-navy); --t-box: var(--ink); --t-sub: var(--hero-orange); --t-label: var(--surface); }
.pilot-map { --t-line: var(--hero-navy); --t-flow: var(--cream); --t-dot: var(--hero-navy); --t-hi: var(--hero-orange); --t-ring: var(--cream); --t-box: var(--surface); --t-sub: var(--orange-90); --t-label: var(--ink); }
.twin__basin { fill: var(--t-line); fill-opacity: 0.05; stroke: var(--t-line); stroke-opacity: 0.8; stroke-width: 1.25; stroke-linejoin: round; }
.twin__rivers { fill: none; stroke: var(--t-line); stroke-linecap: round; stroke-linejoin: round; }
.twin__tribs { stroke-opacity: 0.4; stroke-width: 1; }
.twin__stem { stroke-opacity: 0.95; stroke-width: 2.25; }
.twin__major { stroke-opacity: 0.8; stroke-width: 2; }
.twin__dot { fill: var(--t-dot); fill-opacity: 0.2; }
.pilot-map .twin__dot { fill-opacity: 0.13; }
.twin__dothi { fill: var(--t-hi); }
.twin__band-stop { stop-color: var(--surface); }
.twin__rain-stop { stop-color: var(--t-line); }
.twin__rain-line { stroke: var(--t-line); stroke-opacity: 0.55; stroke-width: 0.45; }
.twin__flow { fill: none; stroke: var(--t-flow); stroke-linecap: round; }
.twin__flow--tribs { stroke-opacity: 0.5; stroke-width: 1; stroke-dasharray: 1.5 12; }
.twin__flow--stem { stroke-width: 2.25; stroke-dasharray: 3 15; }
.pilot-map .twin__flow--stem { stroke-opacity: 0.9; }
.twin__flow--major { stroke-width: 2; }
.twin__pulse { fill: none; stroke: var(--hero-orange); stroke-linecap: round; stroke-dashoffset: 0.08; }
.twin__pulse--glow { stroke-width: 8; stroke-opacity: 0.25; stroke-dasharray: 0.08 1.3; }
.twin__pulse--core { stroke-width: 3; stroke-dasharray: 0.05 1.3; }
.twin__ping, .twin__active { fill: none; stroke: var(--hero-orange); transform-box: fill-box; transform-origin: center; opacity: 0; }
.twin__ping { stroke-width: 1.5; }
.twin__active { stroke-width: 1; }
.twin__site { fill: var(--hero-orange); stroke: var(--t-ring); stroke-width: 1.5; }
.twin__callout-line { fill: none; stroke: var(--t-sub); stroke-width: 0.8; }
.twin__callout-box { fill: var(--t-box); stroke: var(--t-label); stroke-opacity: 0.22; stroke-width: 0.6; }
.twin .twin__callout-box { fill-opacity: 0.88; }
.pilot-map .twin__callout-box { stroke: var(--ink); stroke-opacity: 0.12; }
.twin__callout-id { fill: var(--t-sub); font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: 0.06em; }
.twin__callout-name { fill: var(--t-label); font-family: 'Inter', sans-serif; font-weight: 600; }
.pilot-map__gage.is-on .pilot-map__site { stroke: var(--hero-orange); }
.twin__active { display: none; }
.is-on > .twin__active { display: inline; }
.twin__gage.is-on .twin__site { r: 5.5px; }

/* ---------- Notice ---------- */
.pilot .pilot-notice { padding: 28px 0; border-bottom: 1px solid var(--hairline); }
.pilot-notice__grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: start; }
.pilot-notice__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 5px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-90);
}
.pilot-notice__label::before { content: ''; flex: none; width: 24px; height: 2px; background: var(--hero-orange); }
.pilot-notice__body { font-size: 16px; line-height: 1.6; color: var(--body); }
.pilot-notice__body p { margin: 0; }
.pilot-notice__body p + p { margin-top: 4px; }
.pilot-notice__body strong { font-weight: 600; color: var(--ink); }

/* Links inside running text */
.pilot-notice__body a, .pilot-intro a, .pilot-gages a {
  color: var(--hero-navy);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.pilot-notice__body a:hover, .pilot-intro a:hover, .pilot-gages a:hover { color: var(--orange-90); }
.pilot a:focus-visible, .pilot button:focus-visible { outline: 2px solid var(--hero-orange); outline-offset: 2px; }

/* ---------- How it is built ---------- */
.pilot .pilot-built { padding: 72px 0; border-bottom: 1px solid var(--hairline); }
.pilot-built__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.pilot-built__head .eyebrow { margin: 0; }
.pilot-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.pilot-principles li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  transition: border-color 150ms ease-out;
}
.pilot-principles li:hover { border-color: var(--hero-navy); }
.pilot-tile { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--hairline); border-radius: 4px; }
.pilot-principles__t { margin: 0; font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.pilot-principles p:not(.pilot-principles__t) { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--body); }

/* ---------- Sections ---------- */
.pilot-sec { border-top: 1px solid var(--hairline); }
.pilot-intro { max-width: 640px; margin: 0; font-size: 18px; line-height: 1.7; color: var(--body); }
.pilot-cta { margin-top: 32px; }

/* Pilot area: map panel and progress panel */
.pilot-area { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 48px; }
.pilot-panel { padding: 24px 28px 28px; background: var(--cream); border: 1px solid var(--hairline); border-radius: 4px; }
.pilot-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.pilot-mapbox { padding: 24px 0 8px; }
.pilot-map-note { margin: 16px 0 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.pilot-gages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 20px 0 0; padding: 0; list-style: none; counter-reset: gage; border-top: 1px solid var(--hairline); }
.pilot-gages li {
  counter-increment: gage;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 12px 14px 8px;
  border-bottom: 1px solid var(--hairline);
  transition: background-color 150ms ease-out;
}
.pilot-gages li::before {
  content: counter(gage);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--hero-orange);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.pilot-gages li:hover, .pilot-gages li.is-on { background: var(--surface); }
.pilot-gages div { display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.45; }
.pilot-gages span { font-size: 12px; letter-spacing: 0.02em; color: var(--muted); }

/* Progress steps (written by pilot_progress.mjs): a rail of dots, solid orange where done. */
.pilot-asof { margin: 18px 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.pilot-steps { margin: 0; padding: 0; list-style: none; }
.pilot-step { position: relative; padding: 0 0 22px 42px; }
.pilot-step::before {           /* the rail to the next step */
  content: '';
  position: absolute;
  left: 13px; top: 21px; bottom: 3px;
  border-left: 1px dashed var(--muted);
  opacity: 0.55;
}
.pilot-step--done::before { border-left: 1px solid var(--hero-orange); opacity: 1; }
.pilot-step:last-child::before { display: none; }
.pilot-step__dot {
  position: absolute;
  left: 7px; top: 5px;
  width: 12px; height: 12px;
  box-sizing: border-box;
  border: 1.5px dashed var(--muted);
  border-radius: 50%;
}
.pilot-step--done .pilot-step__dot { background: var(--hero-orange); border: 0; }
.pilot-step--ongoing .pilot-step__dot { background: var(--hero-orange); border: 0; box-shadow: 0 0 0 3px var(--cream), 0 0 0 4px var(--hero-orange); }
.pilot-step--ongoing .pilot-step__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--hero-orange);
  border-radius: 50%;
  opacity: 0;
}
.pilot-step--next .pilot-step__dot { border: 1.5px solid var(--hero-navy); }
.pilot-step__state { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pilot-step--ongoing .pilot-step__state { color: var(--orange-90); }
.pilot-step__title { display: block; margin-top: 4px; font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.pilot-step__text { display: block; margin-top: 4px; font-size: 15px; line-height: 1.6; color: var(--body); }

/* Cards: Why Onion Creek, How the pilot works, Where this is heading */
.pilot-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 48px 0 0; padding: 0; list-style: none; }
.pilot-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  transition: border-color 150ms ease-out;
}
.section-surface .pilot-card { background: var(--cream); padding: 32px 28px; }
.pilot-card:hover { border-color: var(--hero-navy); }
.pilot-card h3 { margin: 28px 0 0; font-size: 18px; line-height: 1.3; }
.section-surface .pilot-card h3 { margin-top: 20px; font-size: 20px; font-weight: 700; line-height: 1.25; }
.pilot-card p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--body); }
.section-surface .pilot-card p { margin-top: 12px; }
.pilot-card__num { margin-bottom: 24px; font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange-90); }
.pilot-card__hit { position: absolute; top: -1px; left: -1px; right: -1px; height: 3px; border-radius: 4px 4px 0 0; background: var(--hero-orange); opacity: 0; }
.pilot-chip {
  align-self: flex-start;
  margin-bottom: 24px;
  padding: 4px 10px;
  border: 1px solid var(--hero-orange);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-90);
}

/* Flow rail over the method cards: dashed line, a node per card, a packet that travels along. */
.pilot-flow { position: relative; margin-top: 48px; padding-top: 28px; }
.pilot-flow .pilot-cards { margin-top: 0; gap: 16px; }
.pilot-flow__rail { position: absolute; top: 0; left: 0; right: 0; height: 10px; overflow: hidden; }
@supports (overflow: clip) { .pilot-flow__rail { overflow: visible; overflow-x: clip; } }   /* the packet's glow shows above and below */
.pilot-flow__line {
  position: absolute;
  left: 0; right: 0; top: 4px;
  height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--hero-orange) 0 4px, transparent 4px 12px);
  opacity: 0.7;
}
.pilot-flow__node {
  position: absolute;
  top: 0;
  width: 10px; height: 10px;
  box-sizing: border-box;
  border: 1.5px solid var(--hero-orange);
  border-radius: 50%;
  background: var(--surface);
}
.pilot-flow__node:nth-of-type(2) { left: 0; }
.pilot-flow__node:nth-of-type(3) { left: calc((100% + 16px) / 4); }
.pilot-flow__node:nth-of-type(4) { left: calc(2 * (100% + 16px) / 4); }
.pilot-flow__node:nth-of-type(5) { left: calc(3 * (100% + 16px) / 4); }
.pilot-flow__track { position: absolute; inset: 0; display: none; }
.pilot-flow__packet {
  position: absolute;
  top: 2px; left: -3px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--hero-orange);
  box-shadow: 0 0 10px 2px rgba(239, 89, 16, 0.5);   /* --hero-orange */
}

/* Limits + Status */
.pilot-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.pilot-nots { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hairline); }
.pilot-nots li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
}
.pilot-nots li::before { content: ''; width: 24px; height: 2px; margin-top: 12px; background: var(--hero-orange); }
.pilot-prose p { max-width: 640px; margin: 0 0 24px; font-size: 18px; line-height: 1.7; color: var(--body); }
.pilot-prose p:last-child { margin-bottom: 0; }
.pilot-prose strong { color: var(--ink); }
.pilot-prose--after { margin-top: 24px; }
.pilot-nots strong { font-weight: 600; }

/* ---------- Icons: 24px line icons (navy, one orange part) ---------- */
.pi { display: block; width: 24px; height: 24px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: var(--hero-navy); }
.pi--lg { width: 48px; height: 48px; stroke-width: 1.2; }
.pi .pi-a { stroke: var(--hero-orange); }
.pi .pi-af { fill: var(--hero-orange); stroke: none; }
.pi .pi-dim { opacity: 0.6; }
.pi .pi-half { opacity: 0.5; }
.pi .pi-draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.pi .pi-flow { stroke-dasharray: 3 3; }
.pi .pi-spin, .pi .pi-hand, .pi .pi-wave { transform-box: view-box; transform-origin: 12px 12px; }

/* ---------- Conversion band on pilot pages: contour lines behind it (pilot.js) ---------- */
main.pilot ~ .conversion { position: relative; overflow: hidden; isolation: isolate; }
main.pilot ~ .conversion .pilot-contours { z-index: -1; }

/* ---------- Motion (only with pilot.js; .pilot-js is set on <html>) ---------- */
@keyframes pilot-rise-in { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes pilot-shimmer { 0% { background-position: 100% 0; } 40%, 100% { background-position: 0% 0; } }
@keyframes pilot-scan { from { transform: translateY(0); } to { transform: translateY(100%); } }
@keyframes pilot-ring { from { stroke-dashoffset: 138.23; } to { stroke-dashoffset: 0; } }
@keyframes pilot-sway { 0%, 100% { transform: rotate(-2deg) scale(1); } 50% { transform: rotate(2deg) scale(1.04); } }
@keyframes pilot-iso { 0%, 100% { stroke-opacity: 0; } 8% { stroke-opacity: 0.8; } 22% { stroke-opacity: 0; } }
@keyframes pilot-draw-in { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pilot-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pilot-pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes pilot-band { from { transform: translateX(0); } to { transform: translateX(660px); } }
@keyframes pilot-rain { from { transform: translateX(-140px); } to { transform: translateX(640px); } }
@keyframes pilot-flow-m { to { stroke-dashoffset: -18; } }
@keyframes pilot-flow-t { to { stroke-dashoffset: -13.5; } }
@keyframes pilot-pulse { 0% { stroke-dashoffset: 0.08; } 55%, 100% { stroke-dashoffset: -1.02; } }
@keyframes pilot-ping { 0% { transform: scale(1); opacity: 0; } 1% { opacity: 0.95; } 16%, 100% { transform: scale(5); opacity: 0; } }
@keyframes pilot-halo { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes pilot-callout { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes pilot-dash { to { background-position: -12px 0; } }
@keyframes pilot-travel { from { transform: translateX(0); } to { transform: translateX(100%); } }
@keyframes pilot-hit { 0% { opacity: 0; } 3% { opacity: 1; } 24%, 100% { opacity: 0; } }
@keyframes pilot-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
@keyframes pilot-draw { 0% { stroke-dashoffset: 1; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
@keyframes pilot-up { 0%, 100% { transform: translateY(1.5px); } 50% { transform: translateY(-1.5px); } }
@keyframes pilot-down { 0%, 100% { transform: translateY(-1.5px); } 50% { transform: translateY(1.5px); } }
@keyframes pilot-icon-flow { to { stroke-dashoffset: -6; } }
@keyframes pilot-spin { to { transform: rotate(360deg); } }
@keyframes pilot-wave { 0% { opacity: 1; transform: scale(0.5); } 100% { opacity: 0; transform: scale(1.1); } }

/* Hero intro: the text rises in, the facts count up (pilot.js), then .pilot-intro-done ends it for good. */
.pilot-js .hero--pilot .hero__content > * { animation: pilot-rise-in 1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.pilot-js .hero--pilot .hero__content > :nth-child(1) { animation-delay: 0.25s; }
.pilot-js .hero--pilot .hero__content > :nth-child(2) { animation-delay: 0.39s; }
.pilot-js .hero--pilot .hero__content > :nth-child(3) { animation-delay: 0.53s; }
.pilot-js .hero--pilot .hero__content > :nth-child(4) { animation-delay: 0.67s; }
.pilot-intro-done .hero--pilot .hero__content > * { animation: none; }
.pilot-js .pilot-shimmer { animation: pilot-shimmer 5.2s ease-in-out 1.8s infinite; }
.pilot-js .pilot-scan span { display: block; animation: pilot-scan 9s linear infinite; }
.pilot-js .pilot-ring { animation: pilot-ring 9s linear 3s infinite; }
.pilot-js .pilot-contours__sway { animation: pilot-sway 26s ease-in-out infinite; }
.pilot-js .pilot-contours__iso { animation: pilot-iso 8s linear infinite; }

/* Twin drawings: intro (draw the outline, then the creeks, then the gages), then the loops. The site map waits until it
   scrolls into view (.twin-wait), the hero map starts at once; .twin-done ends the intro (also on pause). */
.twin-wait .twin-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.twin-wait .twin-fade, .twin-wait .twin-pop { opacity: 0; }
.twin-intro .twin-draw { stroke-dasharray: 1; animation: pilot-draw-in var(--dur, 2.4s) var(--ease, cubic-bezier(0.6, 0, 0.2, 1)) var(--delay, 0s) both; }
.twin-intro .twin-fade { animation: pilot-fade-in var(--dur, 0.8s) ease-out var(--delay, 0s) both; }
.twin-intro .twin-pop { transform-box: fill-box; transform-origin: center; animation: pilot-pop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) var(--delay, 0s) both; }
.twin-done .twin-draw { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
.twin-done .twin-fade, .twin-done .twin-pop { animation: none; opacity: 1; transform: none; }
.twin-run .twin__scanband { animation: pilot-band 8s linear infinite; }
.twin-run .twin__rain { animation: pilot-rain var(--dur) linear var(--delay) infinite; }
.twin-run .twin__flow--stem { animation: pilot-flow-m 1.4s linear infinite; }
.twin-run .twin__flow--tribs { animation: pilot-flow-t 2.2s linear infinite; }
.twin-run .twin__pulse { animation: pilot-pulse 9s linear 3s infinite both; }
.twin-run .twin__ping { animation: pilot-ping 9s ease-out var(--delay) infinite both; }
.twin-run .twin__active { animation: pilot-halo 1.6s ease-out infinite; }
.twin__callout { animation: pilot-callout 0.45s ease-out both; }
.pilot-js .pilot-step--ongoing .pilot-step__dot::after { animation: pilot-halo 2s ease-out infinite; }

/* Method rail and card highlights, in step with the travelling packet (5 s). */
.pilot-js .pilot-flow__line { animation: pilot-dash 1.4s linear infinite; }
.pilot-js .pilot-flow__track { display: block; animation: pilot-travel 5s linear infinite; }
.pilot-js .pilot-flow .pilot-card__hit { animation: pilot-hit 5s linear infinite; }
.pilot-js .pilot-flow .pilot-card:nth-child(2) .pilot-card__hit { animation-delay: 1.27s; }
.pilot-js .pilot-flow .pilot-card:nth-child(3) .pilot-card__hit { animation-delay: 2.54s; }
.pilot-js .pilot-flow .pilot-card:nth-child(4) .pilot-card__hit { animation-delay: 3.81s; }

/* Icons */
.pilot-js .pi .pi-blink { animation: pilot-blink 2.4s ease-in-out infinite; }
.pilot-js .pi .pi-blink.pi-late { animation-delay: 1.2s; }
.pilot-js .pi .pi-draw { stroke-dashoffset: 1; animation: pilot-draw 3.6s ease-in-out infinite; }
.pilot-js .pi .pi-rise { animation: pilot-up 2.4s ease-in-out infinite; }
.pilot-js .pi .pi-sink { animation: pilot-down 2.4s ease-in-out infinite; }
.pilot-js .pi .pi-flow { animation: pilot-icon-flow 1.1s linear infinite; }
.pilot-js .pi .pi-spin { animation: pilot-spin 3.6s linear infinite; }
.pilot-js .pi .pi-hand { animation: pilot-spin 12s steps(60) infinite; }
.pilot-js .pi .pi-wave { opacity: 0; animation: pilot-wave 2.4s ease-out infinite; }
.pilot-js .pi .pi-wave.pi-late { animation-delay: 1.2s; }

/* Reveal on scroll (pilot.js adds .is-in); stagger lists bring their items in one by one. */
.pilot-js [data-reveal]:not([data-reveal="stagger"]):not(.is-in),
.pilot-js [data-reveal="stagger"]:not(.is-in) > * { opacity: 0; transform: translateY(36px); }
.pilot-js [data-reveal]:not([data-reveal="stagger"]),
.pilot-js [data-reveal="stagger"] > * { transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 150ms ease-out, background-color 150ms ease-out; }
.pilot-js [data-reveal="stagger"].is-in > :nth-child(2) { transition-delay: 0.11s; }
.pilot-js [data-reveal="stagger"].is-in > :nth-child(3) { transition-delay: 0.22s; }
.pilot-js [data-reveal="stagger"].is-in > :nth-child(4) { transition-delay: 0.33s; }
.pilot-js [data-reveal="stagger"].is-in > :nth-child(5) { transition-delay: 0.44s; }
.pilot-js [data-reveal="stagger"].is-in > :nth-child(n+6) { transition-delay: 0.55s; }
.pilot-js [data-reveal="stagger"].is-in > :hover { transition-delay: 0s; }

/* ---------- Pause ("Pause motion": .pilot-paused on <html>) ---------- */
.pilot-paused .pilot *, .pilot-paused .pilot *::before, .pilot-paused .pilot *::after,
.pilot-paused main.pilot ~ .conversion * { animation-play-state: paused !important; }
.pilot-paused [data-reveal], .pilot-paused [data-reveal] > * { transition: none !important; }
.pilot-paused .pi .pi-draw { animation: none; stroke-dashoffset: 0; }   /* a paused icon line is shown whole */

/* ---------- Load: the page behind an open mobile menu, and the hero once it has scrolled away, hold still ----------
   (SVG animations repaint on the main thread; on phones they would slow the menu down — nav_check 2026-11-16). */
body.menu-open .pilot *, body.menu-open .pilot *::before, body.menu-open .pilot *::after,
.hero--pilot.is-away *, .hero--pilot.is-away *::before, .hero--pilot.is-away *::after { animation-play-state: paused !important; }
/* Phones and touch screens: the costliest layers stay still or off (contour sway and iso lines, rain cells, the dot scan band). */
@media (max-width: 720px), (hover: none) {
  .pilot-js .pilot-contours__sway { animation: none; }
  .pilot-contours__iso, .twin__rain, .twin__scanhi { display: none; }
}

/* ---------- Reduced motion: nothing moves, everything is shown ---------- */
@media (prefers-reduced-motion: reduce) {
  .pilot *, .pilot *::before, .pilot *::after, main.pilot ~ .conversion * { animation: none !important; transition: none !important; }
  .pilot-js [data-reveal], .pilot-js [data-reveal] > * { opacity: 1 !important; transform: none !important; }
  .twin-wait .twin-draw, .twin-intro .twin-draw { stroke-dasharray: none; stroke-dashoffset: 0; }
  .twin-wait .twin-fade, .twin-wait .twin-pop { opacity: 1; }
  .twin__flow, .twin__pulse, .twin__ping, .twin__active, .twin__rain, .twin__scanhi, .pilot-scan, .pilot-flow__track, .pilot-contours__iso { display: none; }
  .pilot-js .pi .pi-draw { stroke-dashoffset: 0; }
  .pilot-js .pi .pi-wave { opacity: 0.5; }
  .pilot-shimmer { background: none; color: var(--hero-orange); -webkit-background-clip: border-box; background-clip: border-box; }
  .hero--pilot .hero__toggle { display: none; }
}

/* ---------- Narrower screens ---------- */
@media (max-width: 1100px) {
  .pilot-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pilot-flow { padding-top: 0; }
  .pilot-flow__rail { display: none; }
  .pilot-principles { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1023px) {
  .pilot-area { grid-template-columns: minmax(0, 1fr); }
  .pilot-two { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .pilot-fact__n { font-size: 36px; }
}
/* Portrait windows (phones, upright tablets) — the home hero puts its text at the bottom here; the twin map takes the top. */
@media (max-aspect-ratio: 4/5) {
  .hero--pilot { min-height: 0; }
  .hero--pilot .hero__overlay { background: linear-gradient(0deg, rgba(var(--ink-rgb), 0.72) 0%, rgba(var(--ink-rgb), 0) 60%); }
  .hero--pilot .hero__inner { padding-top: calc(66vw + 16px); padding-bottom: 96px; }
  .pilot-twin__map { top: 12px; left: -12%; right: -12%; width: auto; }
  .pilot-twin__map--tall { left: 18%; right: 18%; width: auto; height: auto; }
}
@media (max-width: 720px) {
  .pilot .pilot-notice { padding: 24px 0; }
  .pilot-notice__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pilot .pilot-built { padding: 48px 0; }
  .pilot-built__head { flex-direction: column; gap: 8px; }
  .pilot-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 0; margin-top: 32px; }
  .pilot-facts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pilot-fact__n { font-size: 32px; }
  .hero--pilot .hero__lede { font-size: 18px; }
  .pilot-intro { font-size: 17px; }
  .pilot-area { margin-top: 32px; }
  .pilot-panel { padding: 20px 16px 20px; }
  .pilot-map { width: calc(100% + 32px); max-width: none; margin: 0 -16px; }   /* the map runs to the panel edges so its labels stay 12px or more */
  .twin__callout { display: none; }   /* too small to read here; the same names are in the gage list */
  .pilot-cards { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
  .pilot-gages { grid-template-columns: minmax(0, 1fr); }
  .pilot-card h3 { margin-top: 20px; }
  .pilot-nots li { font-size: 16px; }
  .pilot-prose p { font-size: 17px; }
}
@media (min-aspect-ratio: 4/5) and (max-height: 560px) {
  .hero--pilot .hero__inner { padding-top: 24px; padding-bottom: 88px; }
  .pilot-facts { margin-top: 20px; }
}
@media print {
  .pilot-twin, .pilot-scan, .hero--pilot .hero__bar { display: none; }
  .hero--pilot { min-height: 0; }
  .pilot-js [data-reveal], .pilot-js [data-reveal] > * { opacity: 1 !important; transform: none !important; }
}

/* ---------- Pilot results (Salado, written by _workspace/tools/salado_results.mjs, 2026-11-17) ----------
   Stat tiles, two panels (past storms table, replay bar table), limits and sources. Tokens only; the lighter bar is
   navy at 55% opacity on the cream panel (dataviz check 2026-11-17: navy vs this tint passes CVD and 3:1 contrast).
   QA 2026-11-17: the wrapper hides vertical overflow (no scrollbar beside the bars), the gridlines are the one approved
   repeating gradient of this section (design.md §12.4), the 16 h edge is a border, and #results clears the sticky header. */
.pilot-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 40px 0 0; padding: 0; list-style: none; }
.pilot-stats li { display: flex; flex-direction: column; gap: 10px; padding: 2px 0 2px 20px; border-left: 2px solid var(--hero-orange); }
.pilot-stat__n { font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--hero-navy); }
.pilot-stat__l { max-width: 340px; font-size: 15px; line-height: 1.5; color: var(--body); }
.pilot-area--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pilot-panel__lead { margin: 16px 0 0; font-size: 15px; line-height: 1.6; color: var(--body); }
.pilot-note { margin: 14px 0 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.pilot-table-wrap { position: relative; margin-top: 16px; overflow-x: auto; overflow-y: hidden; }   /* positioned: the scroll also clips the .sr-only caption */
.pilot-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.pilot-table:not(.pilot-bars) { min-width: 400px; }
.pilot-table:not(.pilot-bars) tbody th { min-width: 150px; }
.pilot-table thead th { padding: 8px 10px 8px 0; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; line-height: 1.35; text-align: left; text-transform: uppercase; vertical-align: bottom; color: var(--muted); border-bottom: 1px solid var(--hairline); }
.pilot-table td, .pilot-table tbody th { padding: 10px 10px 10px 0; line-height: 1.45; text-align: left; vertical-align: top; color: var(--body); border-bottom: 1px solid var(--hairline); }
.pilot-table tbody th { font-weight: 500; color: var(--ink); }
.pilot-table tbody th small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.pilot-table .num { text-align: right; white-space: nowrap; }
.pilot-table thead th.num { white-space: normal; }
.pilot-table tbody tr:last-child > * { border-bottom: 0; font-weight: 600; }
/* Replay: a table whose middle column draws the bars (aria-hidden; the numbers are in the next two cells). */
.pilot-bars tbody th[scope="row"] { width: 1%; white-space: nowrap; }
.pilot-bars td, .pilot-bars tbody th { padding-top: 7px; padding-bottom: 7px; vertical-align: middle; }
.pilot-bars tbody tr:last-child > * { font-weight: inherit; }
.pilot-bars tbody tr:last-child th { font-weight: 500; }
.pilot-bars__gage th { padding: 14px 0 6px; font-size: 13px; font-weight: 600; color: var(--ink); border-bottom: 0; }
.pilot-bars__cell { width: 100%; min-width: 80px; }
.pilot-bars__track { display: flex; align-items: center; height: 20px; background: repeating-linear-gradient(90deg, var(--hairline) 0 1px, transparent 1px 25%); border-right: 1px solid var(--hairline); }
.pilot-bars__a, .pilot-bars__e { display: block; height: 12px; }
.pilot-bars__a { width: var(--w); }
.pilot-bars__e { width: calc(var(--w) - 2px); margin-left: 2px; }
.pilot-bars__track > span:last-child { border-radius: 0 4px 4px 0; }
.pilot-bars tfoot td { padding: 4px 10px 0 0; border-bottom: 0; }
.pilot-bars__axis { position: relative; display: block; height: 16px; font-size: 12px; line-height: 16px; color: var(--muted); }
.pilot-bars__axis span { position: absolute; top: 0; transform: translateX(-50%); }
.pilot-bars__axis span:nth-child(1) { left: 0; transform: none; }
.pilot-bars__axis span:nth-child(2) { left: 25%; }
.pilot-bars__axis span:nth-child(3) { left: 50%; }
.pilot-bars__axis span:nth-child(4) { left: 75%; }
.pilot-bars__axis span:nth-child(5) { left: 100%; transform: translateX(-100%); white-space: nowrap; }
.pilot-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--body); }
.pilot-legend li { display: inline-flex; align-items: center; gap: 8px; }
.pilot-key { display: inline-block; width: 16px; height: 10px; border-radius: 2px; }
.pilot-key--a, .pilot-bars__a { background: var(--hero-navy); }
.pilot-key--e, .pilot-bars__e { background: var(--hero-navy); opacity: 0.55; }
.pilot-sec[id] { scroll-margin-top: 48px; }
.pilot-results__foot { margin-top: 56px; }
.pilot-results__foot h3 { font-size: 20px; line-height: 1.3; }
.pilot-prose--small p { margin-bottom: 14px; font-size: 15px; line-height: 1.65; }
@media (max-width: 1100px) {
  .pilot-area--even { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1023px) {
  .pilot-stat__n { font-size: 34px; }
}
@media (max-width: 720px) {
  .pilot-stats { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 28px; }
  .pilot-stat__n { font-size: 32px; }
  .pilot-results__foot { margin-top: 40px; }
  .pilot-table { font-size: 13px; }
  .pilot-table:not(.pilot-bars) { min-width: 0; }
  .pilot-table:not(.pilot-bars) tbody th { min-width: 0; }
  .pilot-table thead th { letter-spacing: 0.04em; }
  .pilot-table td, .pilot-table th { padding-right: 8px; }
  .pilot-bars__axis span:nth-child(2), .pilot-bars__axis span:nth-child(4) { display: none; }   /* 0, 8 and 16 h only: the bars are narrow here */
}
