/* Full Stack Legacy site styles.
   Every color is a token from brand-kit-full-stack-legacy-2026-09-07.md (Palette A, "AGS Navy").
   Pairings used are PASS in the kit's contrast table. Two derived values, both non-text:
   --grid-line and --hero-line are hero-soft (#A9C3DE) at low alpha, for hairlines on navy only. */
:root {
  --background: #FFFFFF;
  --surface: #F2F5F9;
  --line: #DFE6EE;
  --ink: #152238;
  --ink-soft: #44556E;
  --accent: #2C4A6E;
  --accent-soft: #E2EAF3;
  --pop: #2FBF8F;
  --hero-bg: #0C1626;
  --hero-text: #FFFFFF;
  --hero-soft: #A9C3DE;
  --hero-line: rgba(169, 195, 222, 0.18);
  --grid-line: rgba(169, 195, 222, 0.12);

  /* Type B. Faces set in fonts.css so a swap is one file. */
  --f-display: var(--font-display, system-ui, sans-serif);
  --f-body: var(--font-body, system-ui, sans-serif);
  --f-mono: var(--font-mono, ui-monospace, monospace);

  --wrap: 1120px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--pop); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--background); color: var(--ink); padding: 8px 12px; }

/* Availability bar */
.avail {
  background: var(--hero-bg);
  color: var(--hero-soft);
  font-size: 13px;
  line-height: 1.4;
  padding: 8px 0;
  border-bottom: 1px solid var(--hero-line);
}
.avail .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pop); margin-right: 8px; vertical-align: 1px; }

/* Header and nav, on navy */
.site-header { background: var(--hero-bg); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.wordmark {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--hero-text);
  text-decoration: none;
  white-space: nowrap;
}
.nav ul { list-style: none; display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; }
.nav a:not(.pill):not(.wordmark) { color: var(--hero-soft); text-decoration: none; font-size: 15px; }
.nav a:not(.pill):not(.wordmark):hover,
.nav a[aria-current="page"]:not(.pill) { color: var(--hero-text); }

/* The one pill: ink on pop, never white on green (kit: 6.81:1 vs 2.34:1) */
.pill {
  display: inline-block;
  background: var(--pop);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease;
}
.pill:hover { transform: translateY(-1px); text-decoration: none; }
.pill.lg { font-size: 16px; padding: 16px 26px; }
.nav .pill { padding: 10px 18px; font-size: 14px; }

/* Hero, navy on every page */
.hero { background: var(--hero-bg); color: var(--hero-text); padding: 72px 0 88px; }
.hero h1 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(38px, 6.2vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 15ch;
  text-wrap: balance;
}
.hero h1 .acc {
  font-family: var(--f-mono);
  font-weight: 500;
  color: var(--pop);
  letter-spacing: -0.06em;
}
.hero .sub { color: var(--hero-soft); font-size: 19px; line-height: 1.55; margin: 24px 0 0; max-width: 44ch; }
.hero .actions { margin-top: 36px; }
.label {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin: 0 0 18px;
}
.hero .label { color: var(--hero-soft); }

/* Home hero: H1 left, positioning sentence lower-right on a split baseline */
.hero-split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: end; }
.hero-split h1 { max-width: none; }
.hero-split .sub { margin: 0; justify-self: end; }
.hero-split .actions { margin-top: 28px; }

/* Stats row */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { padding: 32px 24px 32px 0; }
.stats li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-n { display: block; font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
.stat-c { display: block; margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }

/* Navy grid band, no content */
.grid-band {
  height: 120px;
  background-color: var(--hero-bg);
  background-image: repeating-linear-gradient(to right, var(--grid-line) 0 1px, transparent 1px 80px);
}

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--surface); }
.section h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 24ch;
}
.section p { max-width: 66ch; margin: 0 0 18px; }
.lead { font-size: 19px; }
.more { font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.two-col h3 { font-family: var(--f-display); font-size: 22px; letter-spacing: -0.01em; margin: 0 0 10px; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { counter-increment: s; border-top: 1px solid var(--line); padding-top: 20px; }
.steps li::before { content: "0" counter(s); display: block; font-family: var(--f-mono); color: var(--accent); font-size: 14px; margin-bottom: 10px; }
.steps strong { display: block; font-family: var(--f-display); font-size: 19px; margin-bottom: 6px; }
.cta-block { text-align: left; }
.cta-block h2 { margin-bottom: 28px; }

/* Consulting ledger: number left, copy right */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ledger li { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.ledger .n { font-family: var(--f-mono); font-size: 15px; color: var(--accent); padding-top: 4px; }
.ledger h3 { font-family: var(--f-display); font-size: 23px; letter-spacing: -0.01em; margin: 0 0 8px; }
.ledger p { margin: 0; color: var(--ink); }
.section.alt .ledger li { background: transparent; }

.walls { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.walls li { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.walls li:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
.walls strong { display: block; font-family: var(--f-display); font-size: 19px; margin-bottom: 6px; }
.walls .n { font-family: var(--f-mono); color: var(--accent); font-size: 14px; display: block; margin-bottom: 8px; }

/* Products */
.hairline { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { border: 1px solid var(--line); border-radius: 6px; padding: 28px; background: var(--background); }
.card h3 { font-family: var(--f-display); font-size: 24px; letter-spacing: -0.01em; margin: 0 0 14px; }
.tag { display: inline-block; background: var(--accent-soft); color: var(--accent); font-family: var(--f-mono); font-size: 13px; padding: 5px 10px; border-radius: 4px; }

/* About */
.beliefs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 48px; }
.beliefs strong { font-family: var(--f-display); }

/* Contact form */
.form { max-width: 640px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 24px; color: var(--ink-soft); }
.form-status { margin-top: 20px; font-weight: 600; color: var(--ink); }
.form-status[hidden] { display: none; }
.success { border-left: 3px solid var(--pop); padding: 4px 0 4px 18px; font-size: 19px; }

/* Privacy */
.prose { max-width: 68ch; }
.prose h2 { font-size: 22px; margin: 36px 0 10px; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0; font-size: 14px; color: var(--ink-soft); }
.site-footer p { margin: 0 0 8px; }
.site-footer a { color: var(--accent); }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }

/* Phone */
@media (max-width: 860px) {
  .nav ul { gap: 18px; }
  .nav li.hide-s { display: none; }
  .hero { padding: 52px 0 64px; }
  .hero-split { grid-template-columns: 1fr; gap: 24px; }
  .hero-split .sub { justify-self: start; }
  .stats ul { grid-template-columns: repeat(2, 1fr); }
  .stats li, .stats li + li { padding: 22px 16px 22px 0; border-left: 0; }
  .stats li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid-band { height: 72px; }
  .section { padding: 64px 0; }
  .two-col, .steps, .walls, .beliefs, .cards { grid-template-columns: 1fr; }
  .walls li:nth-child(even) { padding-left: 0; border-left: 0; }
  .ledger li { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 520px) {
  :root { --gutter: 16px; }
  .nav { flex-wrap: wrap; row-gap: 12px; }
  .nav ul { gap: 16px; }
  .nav a:not(.pill):not(.wordmark) { font-size: 14px; }
}

/* Weights match the self-hosted files: body 400/600, display 700, mono 500 */
strong, b { font-weight: 600; }
.steps strong, .walls strong, .beliefs strong, .section h2, .two-col h3, .ledger h3, .card h3 { font-weight: 700; }
.nw { white-space: nowrap; }
.hero-split { grid-template-columns: 1.7fr 1fr; }
.h1-home { font-size: clamp(38px, 5.2vw, 70px); }
.h1-home .ln { display: block; }
@media (min-width: 861px) { .h1-home .ln { white-space: nowrap; } }
.stat-n { font-size: clamp(22px, 2.2vw, 28px); }
.hero h1:not(.h1-home) { max-width: 18ch; }
.hero .sub { max-width: 52ch; }
.section .form-note { margin-top: 28px; color: var(--ink-soft); }
.section .form-status { margin: 20px 0 0; }
