/* ============================================================
   MARGIN MAX — STRATA V1.1 IDENTITY SYSTEM
   Locked stylesheet. Deployable. 2026.05.07
   Tokens, typography, and grid all derived from
   Margin_Max_Identity_System_v1.1_FINAL.pdf
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* Color tokens — locked */
  --charcoal: #16161A;       /* Operating Charcoal */
  --bone:     #EFE8DA;       /* Margin Bone */
  --red:      #B23A2C;       /* Margin Red */
  --graphite: #3A3A3F;       /* Steel Graphite */
  --grey:     #6E6A64;       /* Industrial Grey */
  --stone:    #C5BFB1;       /* Quiet Stone */
  --deep-red: #7E2519;       /* Deep Margin */
  --bone-lt:  #F6F1E5;       /* Bone Light */

  /* Type scale */
  --font-display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;

  /* Spacing — built on 8pt grid */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 32px;
  --s-6: 48px;
  --s-7: 64px;
  --s-8: 96px;
  --s-9: 128px;
  --s-10: 160px;

  /* Layout */
  --max-w: 1200px;
  --max-prose: 64ch;        /* Body-text width — tighter executive briefing */
  --gutter: 32px;
  --rule: 1px solid rgba(22,22,26,0.10);
  --rule-strong: 1px solid rgba(22,22,26,0.30);

  /* Card surface — palette-only border definition */
  --card-border: 1px solid rgba(22,22,26,0.18);
  --card-border-hover: 1px solid rgba(22,22,26,0.55);

  /* Button surface — warm near-black, derived from charcoal family */
  --btn-bg: #1F1D1B;
  --btn-border: rgba(239,232,218,0.10);
  --btn-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 1px 2px rgba(22,22,26,0.18);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; }
body { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- BASE ---------- */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 0, "calt" 0;
  word-spacing: normal;
}

::selection { background: var(--red); color: var(--bone); }

/* Print-color preservation for all interactive controls */
button, input[type="submit"], input[type="reset"], a.btn, a.nav-cta {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* ---------- TYPOGRAPHY TIERS — LOCKED PER PDF ---------- */
.eyebrow,
.tag {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--grey);
  display: inline-block;
}
/* .eyebrow.red retained as opt-in accent; defaults are graphite/grey for restraint */
.eyebrow.red { color: var(--red); }
.eyebrow.charcoal { color: var(--charcoal); }

.h-display {
  font-family: var(--font-display);
  font-weight: 700;                                /* dialed back from 800 — calmer */
  font-size: clamp(40px, 5.2vw, 68px);              /* slightly smaller ceiling */
  line-height: 1.06;
  letter-spacing: -0.018em;                         /* tighter for premium feel */
  word-spacing: 0.02em;
  color: var(--charcoal);
  margin: 0;
  text-wrap: balance;
  font-feature-settings: "kern" 1, "liga" 0, "calt" 0;
}

.h-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 40px);              /* slightly tighter */
  line-height: 1.14;
  letter-spacing: -0.012em;
  word-spacing: 0.02em;
  margin: 0;
  text-wrap: balance;
  font-feature-settings: "kern" 1, "liga" 0, "calt" 0;
}

.h-section {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.22;
  letter-spacing: -0.005em;
  word-spacing: 0.02em;
  margin: 0;
  font-feature-settings: "kern" 1, "liga" 0, "calt" 0;
}

.h-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin: 0 0 var(--s-3) 0;
}

p { margin: 0 0 var(--s-3) 0; }
p.lead {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  color: var(--graphite);
  max-width: 60ch;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.caption {
  font-size: 13px;
  line-height: 1.5;
  color: var(--grey);
}

/* ---------- LAYOUT PRIMITIVES ---------- */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 96px 0;          /* generous, calm */
  border-top: var(--rule);
}
.section:first-of-type { border-top: 0; }
.prose { max-width: var(--max-prose); }

.grid {
  display: grid;
  gap: var(--s-6);
}
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.col-span-2 { grid-column: span 2; }

.divider {
  height: 1px;
  background: rgba(22,22,26,0.10);
  border: 0;
  margin: var(--s-6) 0;
}

.rule-red {
  height: 3px;
  width: 56px;
  background: var(--red);
  border: 0;
  margin: 0 0 var(--s-4) 0;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(239,232,218,0.94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: var(--rule);
  transition: box-shadow .28s cubic-bezier(.2,.7,.2,1), border-color .28s ease;
}
.nav.nav-scrolled {
  box-shadow: 0 1px 0 rgba(22,22,26,0.06), 0 6px 18px rgba(22,22,26,0.04);
  border-bottom-color: rgba(22,22,26,0.18);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.015em;
  color: var(--charcoal);
  line-height: 1;
}
.nav-logo img { height: 22px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  height: 100%;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  color: var(--graphite);
  transition: color .15s ease;
  line-height: 1;
}
.nav-links a:hover { color: var(--charcoal); }
.nav-links a.active { color: var(--charcoal); }

/* Higher-specificity selector to win against .nav-links a cascade */
a.nav-cta,
.nav-links a.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--btn-bg);
  color: var(--bone);
  padding: 12px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  border: 1px solid var(--btn-border);
  border-radius: 2px;
  line-height: 1;
  margin-left: 12px;
  position: relative;
  box-shadow: var(--btn-shadow);
  height: auto;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  transition:
    background .28s cubic-bezier(.2,.7,.2,1),
    color .28s cubic-bezier(.2,.7,.2,1),
    border-color .28s cubic-bezier(.2,.7,.2,1),
    transform .28s cubic-bezier(.2,.7,.2,1),
    box-shadow .28s cubic-bezier(.2,.7,.2,1);
}
.nav-cta::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: rgba(22,22,26,0.18);
}
.nav-cta .arrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  color: inherit;
  transition: transform .28s cubic-bezier(.2,.7,.2,1);
}
a.nav-cta:hover,
.nav-links a.nav-cta:hover {
  background: var(--bone);
  color: var(--btn-bg);
  border-color: var(--btn-bg);
  box-shadow: 0 2px 0 var(--btn-bg);
}
a.nav-cta:hover .arrow { transform: translateX(3px); }
a.nav-cta:active { transform: translateY(1px); box-shadow: none; }
a.nav-cta:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(22,22,26,0.30);
  padding: 8px 10px;
  color: var(--charcoal);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Mobile-nav drawer — hidden on desktop by default; only revealed via media query */
.nav-mobile { display: none; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  border: 1px solid var(--btn-border);
  border-radius: 2px;
  background: var(--btn-bg);
  color: var(--bone);
  line-height: 1;
  box-shadow: var(--btn-shadow);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  transition:
    background .28s cubic-bezier(.2,.7,.2,1),
    color .28s cubic-bezier(.2,.7,.2,1),
    border-color .28s cubic-bezier(.2,.7,.2,1),
    transform .28s cubic-bezier(.2,.7,.2,1),
    box-shadow .28s cubic-bezier(.2,.7,.2,1);
}
.btn .arrow {
  font-family: var(--font-mono);
  font-weight: 500;
  transition: transform .28s cubic-bezier(.2,.7,.2,1);
}
.btn:hover {
  background: var(--bone);
  color: var(--btn-bg);
  border-color: var(--btn-bg);
  box-shadow: 0 2px 0 var(--btn-bg);
}
.btn:hover .arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.btn-ghost {
  background: transparent;
  color: var(--btn-bg);
  border-color: rgba(22,22,26,0.30);
  box-shadow: none;
}
.btn-ghost:hover {
  background: var(--btn-bg);
  color: var(--bone);
  border-color: var(--btn-bg);
  box-shadow: var(--btn-shadow);
}

/* ---------- HERO ---------- */
.hero {
  padding: 88px 0 64px;     /* tightened from 128/96 */
  border-bottom: var(--rule);
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: var(--s-5);
}
.hero-eyebrow .sep { color: var(--grey); opacity: 0.55; margin: 0 10px; }
.hero-title { margin-bottom: var(--s-5); }
.hero-title .red { color: var(--red); }
.hero-sub {
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--graphite);
  max-width: 60ch;
  margin-bottom: var(--s-6);
}
.hero-actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-8);
}

/* ---------- KPI BAR ---------- */
.kpi-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(22,22,26,0.30);
  border-bottom: 1px solid rgba(22,22,26,0.30);
}
.kpi {
  padding: 28px 24px;
  border-right: 1px solid rgba(22,22,26,0.18);
}
.kpi:last-child { border-right: 0; }
.kpi-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 10px;
}
.kpi-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 2.4vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--charcoal);
}
.kpi-value .unit { color: var(--red); margin-left: 4px; }

/* ---------- META BAR ---------- */
.meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-3) 0;
  border-top: var(--rule);
  border-bottom: var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  gap: var(--s-3);
  flex-wrap: wrap;
}

/* ---------- CARDS / CAPABILITY GRID ---------- */
.cap-card {
  padding: var(--s-5);
  border: var(--card-border);
  background: var(--bone-lt);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  transition: border-color .22s cubic-bezier(.2,.7,.2,1);
  position: relative;
}
.cap-card:hover { border-color: var(--charcoal); }
.cap-card .glyph {
  width: 44px;
  height: 44px;
  color: var(--charcoal);
  margin-bottom: var(--s-3);
}
.cap-card .glyph svg { width: 100%; height: 100%; }
.cap-card:hover .glyph { color: var(--red); }
.cap-card .id {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.13em;
  color: var(--red);
  margin-bottom: var(--s-3);
}
.cap-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
  line-height: 1.18;
  margin: 0 0 var(--s-3) 0;
}
.cap-card p { color: var(--graphite); margin: 0; }
.cap-card ul {
  list-style: none;
  padding: 0;
  margin: var(--s-4) 0 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
}
.cap-card ul li { padding: 6px 0; border-top: 1px solid rgba(22,22,26,0.10); }

/* ---------- OUTPUT STRIP — standardized capability/service output panel ---------- */
.output-strip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--graphite);
  margin: var(--s-4) 0 0 0;
  padding: 14px 16px;
  border-left: 2px solid var(--charcoal);
  background: rgba(22,22,26,0.03);
}
.output-strip .k {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-right: 8px;
}
.cap-card .output-strip { margin-top: auto; }

/* ---------- OPERATIONAL ARTIFACT — redacted institutional reference ---------- */
.artifact {
  border: 1px solid rgba(22,22,26,0.18);
  background: var(--bone-lt);
  padding: var(--s-5);
}
.artifact-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid rgba(22,22,26,0.18);
  margin-bottom: var(--s-4);
  flex-wrap: wrap;
}
.artifact-head .h-section {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}
.artifact-head .stamp {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--grey);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.artifact-head .stamp::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  display: inline-block;
}
.artifact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(22,22,26,0.18);
  background: var(--bone);
}
.artifact-cell {
  padding: 16px 18px;
  border-right: 1px solid rgba(22,22,26,0.10);
  border-bottom: 1px solid rgba(22,22,26,0.10);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 96px;
}
.artifact-cell:nth-child(4n) { border-right: 0; }
.artifact-cell .k {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}
.artifact-cell .v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.012em;
  color: var(--charcoal);
  line-height: 1.05;
}
.artifact-cell .v .delta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--red);
  margin-left: 6px;
  display: inline-block;
}
.artifact-cell .v .delta.up { color: #2A6B3F; }
.artifact-cell .v .redacted {
  display: inline-block;
  height: 14px;
  width: 60px;
  background: var(--charcoal);
  vertical-align: middle;
  margin-right: 4px;
}
.artifact-cell .sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--grey);
}
.artifact-aging {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: var(--s-4);
}
.artifact-aging-head,
.artifact-aging-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: var(--s-3);
  padding: 12px 0;
  border-top: 1px solid rgba(22,22,26,0.10);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--graphite);
  align-items: center;
}
.artifact-aging-head {
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--grey);
  border-top: 1px solid rgba(22,22,26,0.30);
  border-bottom: 1px solid rgba(22,22,26,0.30);
}
.artifact-aging-row:last-child { border-bottom: 1px solid rgba(22,22,26,0.10); }
.artifact-aging-row .lbl { color: var(--charcoal); font-weight: 600; }
.artifact-aging-row .bar {
  display: inline-block;
  height: 6px;
  background: var(--charcoal);
}
.artifact-aging-row .bar.warn { background: var(--red); }
.artifact-foot {
  margin-top: var(--s-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-2);
  padding-top: var(--s-3);
  border-top: 1px solid rgba(22,22,26,0.10);
}

/* ---------- SYSTEMS IN PRACTICE — real operational artifacts ---------- */
.practice {
  display: grid;
  gap: var(--s-8);                  /* generous rhythm between artifacts */
}
.practice-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin: 0 auto;                   /* centered cards by default */
  width: 100%;
}
.practice-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.005em;
  line-height: 1.35;
  margin: 0;
  color: var(--charcoal);
  max-width: 60ch;
}
.practice-frame {
  position: relative;
  width: 100%;
  background: var(--bone);
  border: 1px solid rgba(22,22,26,0.18);
  overflow: hidden;
  display: block;
}
.practice-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Per-artifact width constraints — different visual weights create rhythm */
.practice-card.is-anchor      { max-width: 900px; }   /* workflow — primary anchor */
.practice-card.is-portrait    { max-width: 560px; }   /* SOP binder photo */
.practice-card.is-landscape   { max-width: 1000px; }  /* claims spreadsheet */
.practice-card.is-band        { max-width: 100%; }    /* JobNimbus full-width band */

.practice-disclosure {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--grey);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(22,22,26,0.18);
  max-width: 70ch;
  margin: 0 auto;
  text-align: center;
}

/* ---------- ENGAGEMENT TABLE ---------- */
.engage-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.engage-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-family: var(--font-body);
}
.engage-table th, .engage-table td {
  text-align: left;
  padding: var(--s-4) var(--s-3);
  border-top: var(--rule);
  vertical-align: top;
}
.engage-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--grey);
  border-top: 1px solid rgba(22,22,26,0.30);
  border-bottom: 1px solid rgba(22,22,26,0.30);
}
.engage-table td.tier {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.engage-table td.tier .id {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.13em;
  color: var(--red);
  margin-bottom: 4px;
}

/* ---------- DIAGNOSTIC PHASES ---------- */
.phase {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--s-5);
  padding: var(--s-5) 0;
  border-top: var(--rule);
  align-items: start;
}
.phase:last-child { border-bottom: var(--rule); }
.phase .num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--red);
  padding-top: 4px;
}
.phase h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 0 0 var(--s-2) 0;
}
.phase .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: var(--s-3);
}

/* ---------- FOUNDER BLOCK — portrait layout for homepage founder section ---------- */
.founder-portrait {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--s-7);
  align-items: start;
  padding-top: var(--s-3);
  max-width: 1080px;
  margin: 0 auto;
}
.founder-portrait > div:first-child {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.founder-portrait > div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: var(--s-3);
}
.founder-portrait > div:last-child .h-headline {
  margin-top: 0;
}
.portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--charcoal);
  overflow: hidden;
  border: 1px solid rgba(22,22,26,0.18);
}
.portrait-frame img,
.portrait-frame svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portrait-meta {
  margin-top: var(--s-3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--grey);
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid rgba(22,22,26,0.10);
}
.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-4);
}
.credentials .credential {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--charcoal);
  background: var(--bone-lt);
  border: 1px solid rgba(22,22,26,0.18);
  padding: 8px 12px;
}
.credentials .credential.red {
  color: var(--red);
  border-color: rgba(178,58,44,0.35);
}

/* ---------- FORM SUCCESS STATE ---------- */
.form-success {
  background: var(--bone-lt);
  border: var(--card-border);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.form-success[hidden] { display: none; }
.form-success .h-section {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.012em;
  color: var(--charcoal);
}
.form-success .label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--red);
}
.form-success .receipt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--grey);
  border-top: 1px solid rgba(22,22,26,0.10);
  padding-top: var(--s-3);
}

/* ---------- START HERE — productized engagement blocks ---------- */
.start-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
.start-card {
  display: flex;
  flex-direction: column;
  background: var(--bone-lt);
  border: 1px solid rgba(22,22,26,0.18);
  padding: var(--s-5);
  position: relative;
  transition:
    border-color .28s cubic-bezier(.2,.7,.2,1),
    transform .28s cubic-bezier(.2,.7,.2,1),
    box-shadow .28s cubic-bezier(.2,.7,.2,1);
}
.start-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--charcoal);
  opacity: 0;
  transition: opacity .28s cubic-bezier(.2,.7,.2,1);
}
.start-card:hover {
  border-color: var(--charcoal);
  box-shadow: 0 4px 16px rgba(22,22,26,0.06);
}
.start-card:hover::before { opacity: 1; }
.start-card .id {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--s-2);
}
.start-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.014em;
  line-height: 1.16;
  margin: 0;
  color: var(--charcoal);
}
.start-card .price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.005em;
  color: var(--graphite);
  margin: 8px 0 var(--s-3) 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.start-card .price .from {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}
.start-card .price strong {
  color: var(--charcoal);
  font-weight: 700;
}
.start-card .divider-rule {
  height: 1px;
  background: rgba(22,22,26,0.30);
  border: 0;
  margin: 0 0 var(--s-3) 0;
}
.start-card .row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--s-3) 0;
  border-top: 1px solid rgba(22,22,26,0.10);
}
.start-card .row:first-of-type { border-top: 0; padding-top: 0; }
.start-card .row .k {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}
.start-card .row ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--graphite);
}
.start-card .row ul li {
  padding: 3px 0;
  position: relative;
  padding-left: 14px;
}
.start-card .row ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 6px; height: 1px;
  background: var(--charcoal);
}
.start-card .timeline {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: var(--s-3) 0;
  border-top: 1px solid rgba(22,22,26,0.10);
}
.start-card .timeline .k {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}
.start-card .timeline .v {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  color: var(--charcoal);
}
.start-card .actions {
  margin-top: auto;
  padding-top: var(--s-3);
}
.start-card .actions .btn {
  width: 100%;
  justify-content: space-between;
}

/* ---------- REFERENCE EXCERPTS — restrained editorial ---------- */
.refs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  border-top: 1px solid rgba(22,22,26,0.30);
  padding-top: var(--s-6);
}
.ref {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.ref blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--charcoal);
  word-spacing: 0.02em;
}
.ref-attr {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: var(--s-3);
  border-top: 1px solid rgba(22,22,26,0.18);
  margin-top: auto;
}
.ref-attr .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.005em;
  color: var(--charcoal);
}
.ref-attr .role {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--grey);
}
.ref-foot {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid rgba(22,22,26,0.18);
}

/* ---------- OPERATIONAL BRIEF (proof block — restrained, redacted) ---------- */
.brief {
  border: 1px solid rgba(22,22,26,0.18);
  background: var(--bone-lt);
  padding: var(--s-6);
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--s-6);
  align-items: start;
}
.brief .brief-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.brief .brief-meta .row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid rgba(22,22,26,0.18);
}
.brief .brief-meta .row:first-of-type { border-top: 0; padding-top: 0; }
.brief .brief-meta .k {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--grey);
}
.brief .brief-meta .v {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--charcoal);
}
.brief .brief-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.18;
  margin: 0 0 var(--s-3) 0;
}
.brief .brief-body p {
  color: var(--graphite);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 var(--s-3) 0;
  max-width: 56ch;
}
.brief .brief-body ul {
  list-style: none;
  padding: 0;
  margin: var(--s-3) 0 0 0;
}
.brief .brief-body ul li {
  padding: 10px 0;
  border-top: 1px solid rgba(22,22,26,0.18);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--graphite);
}
.brief .brief-body ul li:last-child { border-bottom: 1px solid rgba(22,22,26,0.18); }
.brief .brief-body ul li .num {
  color: var(--red);
  margin-right: 10px;
}
.brief .brief-body .redacted-note {
  margin-top: var(--s-4);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ---------- INSTITUTIONAL CONTACT CARD ---------- */
.contact-card {
  background: var(--bone-lt);
  border: var(--card-border);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.contact-card .label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--grey);
}
.contact-card .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.015em;
  color: var(--charcoal);
  line-height: 1.1;
}
.contact-card .role {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--graphite);
}
.contact-card .row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--s-3) 0;
  border-top: 1px solid rgba(22,22,26,0.10);
}
.contact-card .row:last-of-type { border-bottom: 1px solid rgba(22,22,26,0.10); }
.contact-card .row .k {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--grey);
}
.contact-card .row .v {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--charcoal);
}
.contact-card .row .v a { color: var(--charcoal); }
.contact-card .row .v a:hover { color: var(--red); }
.contact-card .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}
/* ---------- CTA STRIP ---------- */
.cta-strip {
  background: var(--charcoal);
  color: var(--bone);
  padding: 80px 0;
}
.cta-strip .eyebrow { color: rgba(239,232,218,0.55); }
.cta-strip .h-headline { color: var(--bone); }
.cta-strip p { color: rgba(239,232,218,0.78); max-width: 60ch; }
.cta-strip .btn {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--btn-bg);
}
.cta-strip .btn:hover { background: transparent; color: var(--bone); border-color: var(--bone); }
.cta-strip .btn-ghost {
  background: transparent;
  color: var(--bone);
  border-color: rgba(239,232,218,0.30);
}
.cta-strip .btn-ghost:hover { background: var(--bone); color: var(--charcoal); border-color: var(--bone); }

/* ---------- FORM ---------- */
.form {
  display: grid;
  gap: var(--s-4);
  max-width: 720px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--grey);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--charcoal);
  background: var(--bone-lt);
  border: var(--card-border);
  padding: 14px 16px;
  outline: none;
  transition: border-color .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--charcoal); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.consent {
  font-size: 13px;
  color: var(--grey);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.consent input { margin-top: 4px; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--charcoal);
  color: var(--bone);
  padding: var(--s-8) 0 var(--s-5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-6);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid rgba(239,232,218,0.16);
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(239,232,218,0.55);
  margin: 0 0 var(--s-3) 0;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { padding: 6px 0; }
.footer ul a { color: var(--bone); font-size: 14px; }
.footer ul a:hover { color: var(--red); }
.footer-brand .h-section { color: var(--bone); margin-bottom: var(--s-3); }
.footer-brand p { color: rgba(239,232,218,0.70); max-width: 38ch; font-size: 14px; }
.footer-meta {
  display: flex;
  justify-content: space-between;
  padding-top: var(--s-4);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(239,232,218,0.55);
  flex-wrap: wrap;
  gap: var(--s-3);
}

/* ---------- UTIL ---------- */
.text-grey { color: var(--grey); }
.text-graphite { color: var(--graphite); }
.text-red { color: var(--red); }
.bg-charcoal { background: var(--charcoal); color: var(--bone); }
.bg-bone-lt { background: var(--bone-lt); }
.mb-3 { margin-bottom: var(--s-3); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-5 { margin-bottom: var(--s-5); }
.mb-6 { margin-bottom: var(--s-6); }
.mb-7 { margin-bottom: var(--s-7); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  :root { --gutter: 24px; }
  .section { padding: var(--s-7) 0; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  .kpi-bar { grid-template-columns: 1fr 1fr; }
  .kpi { border-bottom: 1px solid rgba(22,22,26,0.10); }
  .kpi:nth-child(2) { border-right: 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-links a { display: none; }
  a.nav-cta,
  .nav-links a.nav-cta { display: none; }
  .nav-toggle { display: inline-block; }
  .nav-links.open { display: block; }
  .nav-mobile {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bone);
    border-bottom: var(--rule);
    padding: var(--s-4) var(--gutter);
    z-index: 49;
  }
  .nav-mobile.open { display: block; }
  .nav-mobile a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(22,22,26,0.10);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 17px;
    color: var(--charcoal);
  }
  .nav-mobile a:last-child { border-bottom: 0; }

  .founder-portrait { grid-template-columns: 1fr; gap: var(--s-5); padding-top: 0; }
  .founder-portrait > div:last-child { justify-content: flex-start; padding-left: 0; }
  .portrait-frame { max-width: 260px; }
  .field-row { grid-template-columns: 1fr; }
  .phase { grid-template-columns: 1fr; gap: var(--s-2); }
  .brief { grid-template-columns: 1fr; gap: var(--s-5); padding: var(--s-5); }
  .refs { grid-template-columns: 1fr; gap: var(--s-5); }
  .start-grid { grid-template-columns: 1fr; gap: var(--s-4); }

  /* Practice — tighten rhythm at tablet */
  .practice { gap: var(--s-7); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .kpi-bar { grid-template-columns: 1fr; }
  .kpi { border-right: 0; border-bottom: 1px solid rgba(22,22,26,0.10); padding: 20px 16px; }
  .kpi:last-child { border-bottom: 0; }
  .hero { padding: var(--s-7) 0 var(--s-6); }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .meta-bar { font-size: 10px; }

  /* Tighter display scale on phones — prevent giant headlines pushing content */
  .h-display { font-size: clamp(32px, 8.5vw, 42px); line-height: 1.08; }
  .h-headline { font-size: clamp(22px, 6vw, 28px); }
  .hero-sub { font-size: 16px; line-height: 1.55; }
  .hero-eyebrow { font-size: 10px; letter-spacing: 0.10em; }
  .hero-eyebrow .sep { margin: 0 6px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: space-between; }

  /* Cards & section spacing */
  .cap-card { min-height: 0; padding: var(--s-4); }
  .start-card { padding: var(--s-4); }
  .brief, .form-success, .contact-card { padding: var(--s-4); }
  .practice-card h3 { font-size: 16px; }
  .practice { gap: var(--s-6); }

  /* Brief readability */
  .brief .brief-body h3 { font-size: 19px; }

  /* Nav mobile drawer — align to actual nav height */
  .nav-mobile { top: 64px; }

  /* Footer meta — stack neatly */
  .footer-meta { flex-direction: column; align-items: flex-start; }
}

/* ---------- PRINT ---------- */
@media print {
  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  body { background: var(--bone); color: var(--charcoal); }
  .section { padding: 24px 0; }

  /* Keep nav visible in print — override mobile-width display:none rules
     because Chrome PDF rendering uses Letter width (~816 CSS px) which
     also matches the mobile breakpoint */
  .nav { position: static; border-bottom: 1px solid rgba(22,22,26,0.18); break-inside: avoid; }
  .nav-toggle { display: none !important; }
  .nav-mobile { display: none !important; }
  .nav-links a { display: inline-flex !important; }
  a.nav-cta,
  .nav-links a.nav-cta { display: inline-flex !important; }

  /* Print color override for CTA buttons — survives Chrome print color reduction */
  .btn, .nav-cta {
    background: var(--btn-bg) !important;
    color: var(--bone) !important;
    border-color: var(--btn-bg) !important;
    box-shadow: none !important;
  }
  .btn-ghost {
    background: transparent !important;
    color: var(--btn-bg) !important;
    border-color: var(--btn-bg) !important;
  }

  .cta-strip {
    background: var(--charcoal) !important;
    color: var(--bone) !important;
  }
  .cap-card, .contact-card, .form-success, .start-card, .brief, .artifact {
    background: var(--bone-lt) !important;
  }

  /* Footer hidden in print — page-level chrome not useful when exported */
  .footer { display: none; }
}
