/* ==========================================================================
   Rio Bravo Lab — riobravolab.org
   Shared stylesheet. Edit design tokens below to restyle the whole site.
   ========================================================================== */

:root {
  /* --- Surfaces (slate gray, cool undertone toward Navy) --- */
  --ink-950: #191C24;
  --ink-900: #222630;
  --ink-850: #2A2F3C;
  --ink-800: #323948;
  --ink-750: #3D4557;
  --line:    #495165;
  --line-2:  #566076;

  /* --- Type (derived from Bone, oklch(0.96 0.008 70), for a warm text scale) ---
     Lightened from the original 0.68/0.56 to clear 4.5:1 against every surface
     tile (ink-950 through ink-750), verified by measured contrast, not eyeballed. */
  --text:    #F5F1EC;   /* = Bone, exact brand color */
  --muted:   #D0C9C2;   /* oklch(0.84 0.012 70) — was #9E9791, failed AA (as low as 4.0:1) */
  --faint:   #BDB6AE;   /* oklch(0.78 0.014 70) — was #7A736C, failed AA (as low as 2.9:1) */

  /* --- Accents: brand palette (Rio Bravo Lab Logo Theme 1.0) --- */
  --river:      #BF623D;   /* terra cotta — primary accent, oklch(0.60 0.13 42). Official brand value: keep exact for fills/buttons/logo, never as small foreground text on dark (fails AA — use --river-text). */
  --river-dim:  #994E31;
  --river-light: #DA7B55;  /* terra cotta, lightened for hover states, oklch(0.68 0.13 42) */
  --river-text: #FAA685;  /* terra cotta, lightened for legible small text-on-dark, oklch(0.80 0.11 42) */
  --river-glow: rgba(191, 98, 61, 0.14);
  --clay:        #073964;   /* navy — secondary accent, oklch(0.34 0.09 250). Official brand value: keep exact for fills, never as text-on-dark. */
  --clay-dim:    #03294F;   /* navy deep, oklch(0.28 0.08 252) */
  --clay-light:  #97C2F0;   /* navy, lightened for legible text-on-dark, oklch(0.80 0.08 250) — was #5584B4, failed AA (as low as 3.4:1) */
  --clay-lighter: #B7D8FB;  /* navy, lightened further for hover states, oklch(0.87 0.06 250) */
  --clay-glow:   rgba(7, 57, 100, 0.18);
  --sand:        #F5F1EC;   /* bone, oklch(0.96 0.008 70) */

  /* --- Type stacks --- */
  --sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* --- Layout --- */
  --wrap: 1180px;
  --wrap-narrow: 820px;
  --gutter: 24px;
  --radius: 4px;
  --radius-lg: 8px;

  --header-h: 68px;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--ink-950);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  font-feature-settings: "cv05" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.028em;
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 5.4vw, 4.1rem); font-weight: 620; letter-spacing: -0.038em; }
h2 { font-size: clamp(1.85rem, 3.3vw, 2.6rem); }
h3 { font-size: clamp(1.18rem, 1.7vw, 1.42rem); letter-spacing: -0.02em; }
h4 { font-size: 1.02rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--clay-light); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--clay-lighter); }

strong { color: var(--text); font-weight: 600; }

ul, ol { margin: 0 0 1.15em; padding-left: 1.15em; }
li { margin-bottom: 0.4em; }

hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 56px 0;
}

::selection { background: var(--river); color: var(--ink-950); }

:focus-visible {
  outline: 2px solid var(--river);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding: clamp(64px, 9vw, 116px) 0; }
.section--tight { padding: clamp(48px, 6vw, 76px) 0; }

/* Where consecutive sections share a background there is no colour change to
   mark the seam, so a full top-and-bottom pad reads as dead space rather than
   as a division. Tighten the second section's top in those cases only. */
.section:not(.section--alt) + .section:not(.section--alt),
.section--alt + .section--alt,
.section--alt + .cta { padding-top: clamp(36px, 4.2vw, 56px); }
.section--alt { background: var(--ink-900); border-block: 1px solid var(--line); }

/* The core two-track model: the one section that gets distinct weight,
   since it's the actual differentiator the rest of the page supports. */
.section--featured { position: relative; }
.section--featured::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--river) 0%, var(--river) 48%, var(--clay-light) 52%, var(--clay-light) 100%);
}
.section--featured h2 { font-size: clamp(2.1rem, 3.8vw, 3rem); }

.lede {
  font-size: clamp(1.06rem, 1.6vw, 1.24rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 68ch;
}

/* Full-width sections put these paragraphs beside grids and lists that run
   the whole container, so a capped measure ends ~360px short and reads as an
   accidental break rather than the edge of a column. Let them fill the
   container here; .wrap-narrow sections keep the measure, and text nested in
   a grid column is bounded by the column. */
.wrap:not(.wrap-narrow) > .lede,
.wrap:not(.wrap-narrow) > .note-caveat { max-width: none; }

.muted { color: var(--muted); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay-light);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--clay-light);
  flex: 0 0 auto;
  opacity: .7;
}

.center .eyebrow { justify-content: center; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: var(--river);
  color: var(--ink-950);
  padding: 10px 16px;
  font-weight: 600;
  border-radius: var(--radius);
}
.skip-link:focus { left: 16px; }

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(25, 28, 36, 0.82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 4.6px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.03rem;
  margin-right: auto;
  white-space: nowrap;
  text-transform: uppercase;
}
.brand:hover .brand-word { color: var(--text); }
.brand svg { width: 20px; height: 30px; flex: 0 0 auto; }
.brand-word { color: var(--sand); transition: color .18s ease; }
.brand-lab { color: var(--river); }   /* exact brand terra cotta — logo/brand-name text is exempt from WCAG contrast minimums (SC 1.4.3) */

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.nav a:not(.btn) { color: var(--muted); }
.nav a:not(.btn):hover, .nav a:not(.btn)[aria-current="page"] { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--text);
  padding: 7px 11px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 560;
  letter-spacing: -0.008em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--river);
  color: var(--ink-950);
  border-color: var(--river);
}
.btn--primary:hover {
  background: var(--river-light);
  border-color: var(--river-light);
  color: var(--ink-950);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn--ghost:hover {
  border-color: var(--river-dim);
  color: var(--text);
  background: rgba(191, 98, 61, 0.06);
}

.btn--sm { padding: 9px 16px; font-size: 0.87rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.center .btn-row { justify-content: center; }

.arrow-link {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.arrow-link::after { content: "→"; transition: transform .18s ease; }
.arrow-link:hover::after { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(72px, 11vw, 148px) 0 clamp(56px, 8vw, 104px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

/* Topographic contour backdrop + river glow */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 460px at 68% 8%, var(--river-glow), transparent 62%),
    radial-gradient(700px 420px at 8% 96%, rgba(7, 57, 100, 0.10), transparent 66%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(1000px 560px at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(1000px 560px at 50% 30%, #000 20%, transparent 78%);
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 2; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { max-width: 17ch; margin-bottom: 26px; }
.hero .lede { max-width: 60ch; font-size: clamp(1.08rem, 1.7vw, 1.28rem); }

.hero-slider {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  overflow: hidden;
  background: var(--ink-850);
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-slide.is-active { opacity: 1; z-index: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 24px 14px 32px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: rgba(245, 241, 236, 0.82);
  background: linear-gradient(to top, rgba(25, 28, 36, 0.85), transparent);
}

.hero-slider-dots {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4.6px;
}

.hero-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dot.is-active { background: var(--river); }

/* --------------------------------------------------------------------------
   Stat band
   -------------------------------------------------------------------------- */

.stat-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-900);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 34px 26px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; padding-left: 0; }

.stat .num {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.1;
  display: block;
  margin-bottom: 8px;
}
.stat .num em { font-style: normal; color: var(--river); }

.stat .label {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
  display: block;
}

/* --------------------------------------------------------------------------
   Generic grid + cards
   -------------------------------------------------------------------------- */

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--ink-850);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
}

.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* Two-track cards */
.track-card {
  background: var(--ink-850);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 32px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.track-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--river);
}
.track-card--b::before { background: var(--clay); }

.track-card .track-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--river-text);
  margin-bottom: 14px;
}
.track-card--b .track-tag { color: var(--clay-light); }

.track-card h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  margin-bottom: 14px;
}

.track-card > p { color: var(--muted); }

.spec-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  border-top: 1px solid var(--line);
}

.spec-list li {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.5;
}

.spec-list .k {
  font-family: var(--mono);
  font-size: 0.71rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  flex: 0 0 116px;
  padding-top: 3px;
}

.spec-list .v { flex: 1; }
.spec-list .v strong { color: var(--text); }

/* --------------------------------------------------------------------------
   Flywheel
   -------------------------------------------------------------------------- */

.flywheel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(191,98,61,0.045), transparent 60%),
    var(--ink-850);
  padding: 32px;
  margin-top: 24px;
}

.flywheel-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;   /* equal-height boxes; uneven copy otherwise leaves them ragged */
  gap: 14px;
  margin-top: 20px;
}

.fw-step {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--ink-800);
  padding: 16px 18px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}
.fw-step b { display: block; color: var(--text); font-size: 0.95rem; margin-bottom: 3px; font-weight: 600; }

.fw-arrow {
  color: var(--clay-light);
  font-size: 1.2rem;
  text-align: center;
  align-self: center;   /* the steps stretch; the arrow should not */
}

/* Closing notes — where the site states how something is sourced, or flags
   design intent rather than fact. Set at body size: these carry real content
   and shrinking them argues against their own substance. Separation comes
   from the space above, not from dimming the type. */
.note-caveat {
  color: var(--muted);
  max-width: 74ch;
  margin-top: 26px;
}

/* --------------------------------------------------------------------------
   Corridors
   -------------------------------------------------------------------------- */

.corridor {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  background: var(--ink-850);
  position: relative;
}

.corridor h3 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.corridor h3 span {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.asset-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.asset-list li {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--text);
  border: 1px solid var(--line-2);
  background: var(--ink-800);
  border-radius: 100px;
  padding: 6px 13px;
}

/* --------------------------------------------------------------------------
   Partner strip
   -------------------------------------------------------------------------- */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-850);
}

.partner {
  padding: 26px 24px;
  border-left: 1px solid var(--line);
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.partner:first-child { border-left: 0; }

.partner .name {
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
  line-height: 1.3;
}

.partner .role {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--faint);
}

/* --------------------------------------------------------------------------
   People
   -------------------------------------------------------------------------- */

.person {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink-850);
  padding: 28px;
}

.person .initials {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: var(--ink-750);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: var(--clay-light);
  margin-bottom: 18px;
}

.person .photo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  object-fit: cover;
  object-position: center top;
  display: block;
  margin-bottom: 18px;
}

.person .name {
  color: var(--text);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.person .title {
  font-family: var(--mono);
  font-size: 0.73rem;
  letter-spacing: 0.02em;
  color: var(--clay-light);
  margin-bottom: 14px;
  line-height: 1.5;
}

.person .bio {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Momentum list
   -------------------------------------------------------------------------- */

.momentum {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.momentum li {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
  align-items: start;
}

.status {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 100px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  white-space: nowrap;
  display: inline-block;
  line-height: 1.3;
}
.status--active {
  color: var(--river-text);
  border-color: rgba(191, 98, 61, 0.4);
  background: rgba(191, 98, 61, 0.07);
}
.status--progress {
  color: var(--clay-light);
  border-color: rgba(7, 57, 100, 0.4);
  background: rgba(7, 57, 100, 0.07);
}

.momentum .item strong { display: block; margin-bottom: 3px; font-size: 1rem; }
/* The item column is 1fr of a 1180px wrap, so without a cap the description
   line runs ~133 characters. */
.momentum .item span { color: var(--muted); font-size: 0.94rem; display: block; max-width: 76ch; }

/* --------------------------------------------------------------------------
   Callout / notice
   -------------------------------------------------------------------------- */

.notice {
  border: 1px solid var(--line-2);
  border-left: 2px solid var(--clay);
  background: rgba(7, 57, 100, 0.05);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 0.93rem;
  color: var(--muted);
  max-width: 82ch;   /* a full-width callout in a .wrap section reads at ~146 characters per line */
}
.notice strong { color: var(--sand); }

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--ink-900);
  padding: clamp(64px, 8vw, 104px) 0;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(760px 340px at 50% 120%, var(--river-glow), transparent 70%);
  pointer-events: none;
}
.cta .wrap { position: relative; z-index: 2; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form {
  display: grid;
  gap: 18px;
  max-width: 620px;
}

.field { display: grid; gap: 7px; }

.field label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--ink-850);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.97rem;
  padding: 12px 14px;
  transition: border-color .18s ease, background .18s ease;
}

.field textarea { min-height: 132px; resize: vertical; line-height: 1.55; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--river-dim);
  background: var(--ink-800);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-note { font-size: 0.85rem; color: var(--faint); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink-950);
  padding: 56px 0 40px;
  font-size: 0.9rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--muted); max-width: 40ch; font-size: 0.9rem; }

/* Social links. Scoped under .site-footer so the colour beats the global
   `a` rule outright rather than relying on source order. The <svg>s also
   carry width/height attributes in the markup, so a stale stylesheet
   degrades to small icons instead of full-width ones. */
.footer-social { display: flex; gap: 10px; margin-top: 18px; }

.site-footer .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  transition: color .18s ease, border-color .18s ease;
}

.site-footer .footer-social a:hover { color: var(--text); border-color: var(--line-2); }

.site-footer .footer-social svg { width: 15px; height: 15px; flex: 0 0 auto; fill: currentColor; }

.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
  font-weight: 500;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  color: var(--faint);
  font-size: 0.82rem;
}

.footer-bottom .legal { max-width: 62ch; line-height: 1.5; }

/* --------------------------------------------------------------------------
   Page header (interior pages)
   -------------------------------------------------------------------------- */

.page-head {
  position: relative;
  padding: clamp(56px, 7vw, 92px) 0 clamp(40px, 5vw, 60px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(760px 320px at 20% 0%, var(--clay-glow), transparent 66%);
  pointer-events: none;
}
.page-head .wrap { position: relative; z-index: 2; }
.page-head h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); max-width: 20ch; }

/* --------------------------------------------------------------------------
   Prose blocks
   -------------------------------------------------------------------------- */

/* Drops a second column's body text down to align with the first column's,
   clearing the eyebrow and heading above it. A fixed offset can only be exact
   at one heading-wrap state; this is tuned for a single-line h3, which is how
   the Demo Day block sets at desktop widths. Zeroed below 720px, where
   .grid-2 stacks and the offset would read as a stray gap. */
.col-offset { margin-top: 73px; }

.prose h2 { margin-top: 48px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 32px; }
/* Cap the measure on body prose the way .lede already does. Without this,
   list items in a .wrap-narrow section run ~89 characters per line. */
.prose p:not(.lede), .prose li { color: var(--muted); max-width: 74ch; }
.prose li::marker { color: var(--river-dim); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-media { max-width: 420px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 1px solid var(--line); border-top: 1px solid var(--line); padding: 26px 22px; }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .partner:nth-child(odd) { border-left: 0; }
  .partner:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .flywheel-steps { grid-template-columns: 1fr; }
  .fw-arrow { transform: rotate(90deg); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink-900);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 18px;
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav .btn { margin-top: 14px; justify-content: center; }
  .nav-toggle { display: inline-flex; }
  .btn-row .btn { flex: 1 1 100%; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .col-offset { margin-top: 0; }
  .field-row { grid-template-columns: 1fr; }
  .momentum li { grid-template-columns: 1fr; gap: 10px; }
  .spec-list li { flex-direction: column; gap: 4px; }
  .spec-list .k { flex: none; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .partner-grid { grid-template-columns: 1fr; }
  .partner { border-left: 0; }
  .partner:not(:first-child) { border-top: 1px solid var(--line); }
  .stat-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header, .cta, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
}

.pullquote {
  margin: 28px 0 0;
  padding: 20px 24px;
  border-left: 3px solid var(--river);
  background: transparent;
}
.pullquote blockquote {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
}
.pullquote figcaption {
  font-size: 0.8rem;
  color: var(--muted, #666);
  font-family: 'IBM Plex Mono', monospace;
}
.pullquote figcaption a {
  color: inherit;
  text-decoration: underline;
}
