/* ---------------------------------------------------------------
   Design tokens — see DESIGN.md
   --------------------------------------------------------------- */
:root {
  /* Color */
  --ink-black: #07070a;
  --panel-black: #0a0b0d;
  --yellow: #FFED29;
  --yellow-hover: #e6d525;
  --yellow-halo: rgba(255, 237, 41, 0.14);
  --scoreboard-blue: #4a82ba;
  --scoreboard-blue-deep: #2f6aa5;
  --scoreboard-blue-deeper: #255b91;
  --scoreboard-blue-light: #87aed5;
  --blue-tint: #c3daee;      /* secondary text on blue surfaces */
  --chalk-blue: #5f93c7;
  --white: #ffffff;
  --body-gray: #8d97a1;
  --nav-gray: #a0a7b0;
  --quote-gray: #c5c5d6;
  --muted-gray: #6f7c86;
  --hairline: #151719;
  --seam: #1d2124;
  --diagram-ghost: #3b4148;
  --diagram-ink: #e8e6df;
  --diagram-eyebrow: #71808c;
  --error-red: #e8867a;
  --error-red-light: #ffc2b8; /* error text on blue surfaces */

  /* Type */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-script: 'Caveat', cursive;

  /* Layout — mobile first, overridden at the breakpoints below */
  --space-x: 20px;
  --space-y: 48px;
  --hero-pt: 64px;
  --hero-pb: 48px;
  --gap-lg: 32px;
  --gap-md: 24px;
  --nav-gap: 18px;
  --cols-observation: 1fr;
  --cols-bio: 1fr;
  --cols-panel: 1fr;
  --cols-compare: 1fr;
  --cols-position: 1fr;
  --rail-border: none;
  --rail-pl: 0px;
}

@media (min-width: 640px) {
  :root {
    --space-x: 40px;
    --space-y: 64px;
    --hero-pt: 90px;
    --hero-pb: 64px;
    --nav-gap: 28px;
    --cols-bio: 160px 1fr;
    --cols-compare: 1fr 1fr;
    --cols-position: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  :root {
    --space-x: 56px;
    --space-y: 90px;
    --hero-pt: 110px;
    --hero-pb: 90px;
    --gap-lg: 64px;
    --gap-md: 48px;
    --nav-gap: 36px;
    --cols-observation: 1fr 300px;
    --cols-panel: 1fr 340px;
    --cols-position: repeat(4, 1fr);
    --rail-border: 1px solid var(--seam);
    --rail-pl: 32px;
  }
}

/* ---------------------------------------------------------------
   Base
   --------------------------------------------------------------- */
* { box-sizing: border-box; }

/* Tells the browser to render native controls (select menus, autofill,
   scrollbars) in their dark variants rather than default light */
html { background: var(--ink-black); color-scheme: dark; }

body {
  margin: 0;
  background: var(--ink-black);
  color: var(--body-gray);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--scoreboard-blue-light); text-decoration: none; }
a:hover, a:focus-visible { color: var(--yellow); }
a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
::selection { background: var(--yellow); color: var(--ink-black); }

p { margin: 0; }

.page { width: 100%; background: var(--ink-black); min-height: 100vh; }
.shell { max-width: 1200px; margin: 0 auto; }

.section {
  padding: var(--space-y) var(--space-x);
  border-bottom: 1px solid var(--hairline);
}
.section--panel { background: var(--panel-black); }

/* ---------------------------------------------------------------
   Typography
   --------------------------------------------------------------- */
.eyebrow-script {
  font-family: var(--font-script);
  font-size: 30px;
  color: var(--chalk-blue);
  margin-bottom: 32px;
}
.eyebrow-script--wide { margin-bottom: 36px; }

.headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.5vw, 2.375rem);
  line-height: 1.15;
  color: var(--white);
  margin: 0;
  max-width: 760px;
  text-wrap: pretty;
}
.headline--tight { max-width: 640px; margin-bottom: 20px; }
.headline--who { font-size: clamp(1.375rem, 4vw, 2.125rem); line-height: 1.25; margin-bottom: 24px; }

.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--body-gray);
  max-width: 560px;
}

.prose {
  font-size: 17px;
  line-height: 1.6;
  color: var(--body-gray);
  max-width: min(723px, 100%);
}

/* Pull-quote / callout: the page's sharpest claim per section */
.callout {
  font-size: 17px;
  line-height: 1.6;
  color: var(--quote-gray);
  border-left: 2px solid var(--yellow);
  padding-left: 18px;
  max-width: min(709px, 100%);
}
.callout--bright { color: #FDFDFD; }
.callout--spaced { margin-top: 48px; }
.callout--solution { margin-top: 36px; max-width: none; }

/* ---------------------------------------------------------------
   Header / nav
   --------------------------------------------------------------- */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px var(--space-x) 0;
}
.masthead__logo { height: 26px; display: block; flex-shrink: 0; }

.nav {
  display: flex;
  gap: var(--nav-gap);
  font-size: 14px;
  flex: 0 1 auto;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--nav-gray); flex-shrink: 0; }
.nav a:hover, .nav a:focus-visible { color: var(--yellow); }
.nav a[aria-current="page"] { color: var(--white); }

/* ---------------------------------------------------------------
   Hero — a deep blue slab against the near-black page, with the
   standard yellow CTA. Uses Scoreboard Blue Deeper rather than the
   base blue, which fails every contrast check as a background
   (4.04:1 white text, 3.35:1 against a yellow button).
   --------------------------------------------------------------- */
.hero {
  padding: var(--hero-pt) var(--space-x) var(--hero-pb);
  background: var(--scoreboard-blue-deeper);
  /* Inset on both sides by the page gutter, so the slab's edges land
     exactly where the body text of every section below begins — the
     box reads as deliberately placed rather than arbitrarily narrowed. */
  margin: 48px var(--space-x) 0;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 7vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0 0 28px;
  max-width: 900px;
}
.hero__lede {
  font-size: 19px;
  line-height: 1.55;
  /* White softened rather than a gray — 5.58:1 on the slab */
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 40px;
  max-width: min(720px, 100%);
}

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  background: var(--yellow);
  color: var(--ink-black);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 15px 26px;
  border-radius: 2px;
}
.btn:hover, .btn:focus-visible { background: var(--yellow-hover); color: var(--ink-black); }
.btn:focus-visible { outline: 2px solid var(--ink-black); outline-offset: 2px; }
.btn--cta { padding: 16px 30px; }

/* Short label on phones so the button text stays on one line */
.btn__label--short { display: inline; }
.btn__label--full { display: none; }
@media (min-width: 640px) {
  .btn__label--short { display: none; }
  .btn__label--full { display: inline; }
}

/* ---------------------------------------------------------------
   Section layouts
   --------------------------------------------------------------- */
.observation-grid {
  display: grid;
  grid-template-columns: var(--cols-observation);
  gap: var(--gap-lg);
  align-items: start;
}
.rail {
  padding-left: var(--rail-pl);
  border-left: var(--rail-border);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.rail p { font-size: 15px; line-height: 1.65; color: var(--body-gray); }
.rail .callout { font-size: 15px; line-height: 1.65; padding-left: 16px; }

/* The problem section's h2 row runs full width: the shared sidebar column
   would otherwise squeeze the heading into an orphaned third line. */
.problem-head { margin-bottom: 56px; }

.compare-grid {
  display: grid;
  grid-template-columns: var(--cols-compare);
  gap: var(--gap-md);
  max-width: 720px;
}

.panel-grid {
  display: grid;
  grid-template-columns: var(--cols-panel);
  gap: var(--gap-lg);
  align-items: center;
  margin-bottom: 56px;
}

/* Hairline seams between cards come from the 1px grid gap, not borders */
.position-grid {
  display: grid;
  grid-template-columns: var(--cols-position);
  gap: 1px;
  background: var(--seam);
  border: 1px solid var(--seam);
}
.position-card { background: var(--ink-black); padding: 32px 26px; }
.position-card__eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--scoreboard-blue);
  margin-bottom: 16px;
}
.position-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  margin: 0 0 10px;
}
.position-card p { font-size: 13px; line-height: 1.6; color: var(--body-gray); }

/* ---------------------------------------------------------------
   Closing CTA
   --------------------------------------------------------------- */
.cta {
  padding: calc(var(--space-y) + 48px) var(--space-x) var(--space-y);
  text-align: center;
  background: var(--panel-black);
}
.cta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 3.5vw, 1.875rem);
  line-height: 1.3;
  color: var(--white);
  max-width: 640px;
  margin: 0 auto 32px;
}
.cta__subtitle {
  font-weight: 300;
  font-size: 0.6em;
  display: inline-block;
  margin-top: 6px;
}
.cta__alt { font-size: 14px; color: var(--muted-gray); margin-top: 18px; }

/* ---------------------------------------------------------------
   Leadership / bio page (leadership.html)
   --------------------------------------------------------------- */
.bio {
  padding: var(--space-y) var(--space-x) calc(var(--space-y) + 20px);
  min-height: calc(100vh - 210px);
  min-height: calc(100dvh - 210px);
}
.bio__eyebrow {
  font-family: var(--font-script);
  font-size: 30px;
  font-weight: 500;
  color: var(--chalk-blue);
  margin: 0 0 36px;
}

.bio-grid {
  display: grid;
  grid-template-columns: var(--cols-bio);
  gap: var(--gap-lg);
  align-items: start;
}

/* The portrait is the system's one circular shape — see DESIGN.md.
   The hairline ring ties it back to the flat, bordered vocabulary
   used everywhere else. */
.bio__portrait {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid var(--seam);
  display: block;
  object-fit: cover;
}

.bio__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0 0 24px;
}
.bio__prose {
  font-size: 17px;
  line-height: 1.65;
  color: var(--body-gray);
  max-width: 640px;
}
.bio__prose + .bio__prose { margin-top: 18px; }
.bio__body .btn { margin-top: 36px; }

/* ---------------------------------------------------------------
   Contact page (contact.html)
   Booking stays the primary action across the site, so the form's
   submit is a ghost variant: yellow keeps its single-marker role.
   --------------------------------------------------------------- */
.contact-page {
  padding: var(--space-y) var(--space-x) calc(var(--space-y) + 20px);
  /* Keeps the footer at the bottom on a page this short, rather than
     floating it partway up a tall screen */
  min-height: calc(100vh - 210px);
  min-height: calc(100dvh - 210px);
}
.contact-page__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0 0 16px;
  max-width: 560px;
}
.contact-page__lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--body-gray);
  max-width: 560px;
  margin: 0;
}
.contact-page__alt {
  font-size: 14px;
  color: var(--muted-gray);
  max-width: 560px;
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}

.form {
  max-width: 560px;
  margin: 28px 0 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form__row { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) {
  .form__row { grid-template-columns: 1fr 1fr; }
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field__label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nav-gray);
}
.field__note {
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted-gray);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  /* 16px: anything smaller triggers iOS auto-zoom on focus */
  font-size: 16px;
  line-height: 1.5;
  color: var(--white);
  background: var(--ink-black);
  border: 1px solid var(--seam);
  border-radius: 2px;
  padding: 12px 14px;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 118px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-gray); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--diagram-ghost); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 1px;
  border-color: var(--yellow);
}

/* Post-submit states */
.form-success {
  max-width: 560px;
  margin: 28px 0 0;
  text-align: left;
  border-left: 2px solid var(--yellow);
  padding-left: 18px;
}
.form-success:focus { outline: none; }
.form-success__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
}
.form-success__body { font-size: 15px; color: var(--body-gray); margin-top: 10px; }
.form-success__body + .form-success__body { margin-top: 14px; }

.form-error {
  max-width: 560px;
  margin: 16px 0 0;
  text-align: left;
  font-size: 14px;
  color: var(--error-red);
  border-left: 2px solid var(--error-red);
  padding-left: 14px;
}

/* --- Blue form panel ---------------------------------------------
   The form sits on a Scoreboard Blue Deeper slab, echoing the hero.
   Every muted grey the form normally uses fails on blue (labels
   2.90:1, the "(optional)" note 1.64:1, error text 2.72:1), so the
   panel restates each of them in a tint that clears AA. */
.form-panel {
  background: var(--scoreboard-blue-deeper);
  padding: 32px 24px;
  margin-top: 28px;
  max-width: 620px;
}
@media (min-width: 640px) {
  .form-panel { padding: 40px; }
}
.form-panel .form,
.form-panel .form-success { margin: 0; max-width: none; }

.form-panel .field__label { color: var(--white); }
.form-panel .field__note { color: var(--blue-tint); }

/* The input fill can't reach 3:1 against blue at any darkness, so the
   border carries the boundary instead of the fill. */
.form-panel .field input,
.form-panel .field select,
.form-panel .field textarea { border-color: var(--scoreboard-blue-light); background: var(--white); }
.form-panel .field input:hover,
.form-panel .field select:hover,
.form-panel .field textarea:hover { border-color: var(--blue-tint); }

.form-panel .form-error { color: var(--error-red-light); border-left-color: var(--error-red-light); }
.form-panel .form-success__body { color: var(--blue-tint); }
.form-panel .form-success__body a { color: var(--white); text-decoration: underline; }
.form-panel .form-error a { color: var(--white); }

/* The form is a flex column, so without this the button stretches full width */
.form .btn { align-self: flex-start; }

/* Spam honeypot: hidden from people, tempting to bots */
.form__gotcha {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.footer {
  padding: 36px var(--space-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--hairline);
  gap: 16px;
  flex-wrap: wrap;
}
.footer__logo { height: 20px; opacity: 0.7; display: block; }
.footer__legal { font-size: 13px; color: var(--muted-gray); }

/* ---------------------------------------------------------------
   Telestrator diagrams (signature component)
   Presentation lives here; the SVG markup carries only geometry.
   --------------------------------------------------------------- */
.diagram { width: 100%; height: auto; overflow: visible; }
.diagram--cycle { max-width: 340px; display: block; margin: 0; }

.diagram-caption {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--diagram-eyebrow);
  margin-bottom: 12px;
}

/* Shared diagram primitives */
.dg-label {
  font-family: var(--font-script);
  font-size: 24px;
  fill: var(--diagram-ink);
  text-anchor: middle;
}
.dg-label--hot { fill: var(--yellow); }
.dg-label--dev { font-size: 26px; fill: var(--yellow); }
.dg-note {
  font-family: var(--font-script);
  font-size: 21px;
  fill: var(--body-gray);
  text-anchor: middle;
}
.dg-orbit {
  fill: none;
  stroke: var(--diagram-ghost);
  stroke-width: 2;
  stroke-dasharray: 7 11;
}
.dg-tick {
  fill: none;
  stroke: var(--muted-gray);
  stroke-width: 2;
  stroke-linecap: round;
}
.dg-node { fill: none; stroke: var(--body-gray); stroke-width: 2; }
.dg-halo { fill: var(--yellow-halo); stroke: var(--yellow); stroke-width: 3; }
.dg-bolt {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 2;
  stroke-linejoin: round;
  opacity: 0.9;
}
.dg-spark { fill: var(--yellow); opacity: 0.55; }

/* Output-vs-throughput stat chart */
.oc-title { font-family: var(--font-script); font-size: 30px; fill: var(--white); }
.oc-stat { font-family: var(--font-script); font-size: 34px; font-weight: 700; fill: var(--yellow); }
.oc-stat--blue { fill: var(--scoreboard-blue-light); }
.oc-bar { fill: var(--white); opacity: 0.92; }
.oc-bar--blue { fill: var(--scoreboard-blue); opacity: 0.92; }
.oc-rule { fill: none; stroke: var(--white); stroke-width: 2.5; stroke-linecap: round; }
.oc-connector { fill: none; stroke: var(--body-gray); stroke-width: 2; stroke-linecap: round; }
.oc-ask {
  font-family: var(--font-script);
  font-size: 42px;
  font-weight: 600;
  fill: var(--white);
}
.oc-underline {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.8;
}

/* Formation diagram (X's and O's) */
.fd-scrimmage {
  stroke: var(--body-gray);
  stroke-width: 2;
  stroke-dasharray: 5 5;
  opacity: 0.6;
}
.fd-o { fill: none; stroke: var(--scoreboard-blue); stroke-width: 2.5; }
.fd-x { stroke: var(--scoreboard-blue); stroke-width: 2.5; stroke-linecap: round; }
.fd-focus { fill: none; stroke: var(--yellow); stroke-width: 2.5; }
