/* Mission FinOps — Terminal-inspired design system
   Monospace chrome, proportional prose. Dark. Green accent. Shell metaphors.
   Restrained enough for enterprise, distinctive enough to remember. */

/* Self-hosted, Latin-subset, woff2 only. Paths are relative to this file
   (assets/site.css), so they resolve correctly regardless of page depth. */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-700.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-600.woff2") format("woff2");
}

:root {
  --bg: #0a0a0a;
  --bg-panel: #0f110f;
  --bg-card: #131613;
  --border: #1f2b1f;
  --border-bright: #2a3d2a;
  --text: #d4d4d4;
  --text-bright: #f0f0f0;
  --text-muted: #6b6b6b;
  --green: #33ff00;
  --green-dim: #1a8a00;
  --green-glow: rgba(51, 255, 0, 0.08);
  --green-border: rgba(51, 255, 0, 0.15);
  --amber: #ffb000;
  --red: #ff3333;
  --mono: "IBM Plex Mono", "SF Mono", "Cascadia Code", Consolas, monospace;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 960px;
  --radius: 0px;

  /* Type scale — every font-size in this file is one of these tokens. */
  --fs-2xs: 12px;   /* metadata, chips, minimum size on anything informational */
  --fs-xs: 13px;    /* nav, small labels, table/status text */
  --fs-sm: 14px;    /* secondary body copy, list items */
  --fs-base: 16px;  /* paragraph copy */
  --fs-md: 18px;    /* lead/intro paragraphs */
  --fs-lg: 22px;    /* h2 ceiling */
  --fs-xl: 32px;    /* h1 ceiling */

  /* ══════════════════════════════════════════════════════════════════════
     DESIGN-SPEC TOKENS (design-spec.md §9)

     Additive only. Nothing above is modified and no existing rule consumes
     these yet, so this block changes no pixel on any current page. They back
     /how-we-engage/, /services/, the Evidence Contract, and the homepage
     restructure in the commits that follow.

     Note the palette below is a LIGHT system while the tokens above are the
     current dark terminal system. Both sets coexist deliberately until the
     theme transition is decided; see the handover notes.
     ══════════════════════════════════════════════════════════════════════ */

  /* ─── Colour: six values, nothing else ─── */
  --ink:    #0F1419;  /* headings, primary text */
  --slate:  #4A5568;  /* secondary text, spec-row values */
  --paper:  #F7F8F7;  /* page background */
  --rule:   #C2C9C7;  /* hairlines, card borders */
  --signal: #0B6E5F;  /* buttons, links, focus rings */
  --contra: #A63A22;  /* contradicting-evidence marker ONLY — never decorative */

  /* ─── Type ───
     One token per role. Responsive roles are re-declared in the 600px block
     below rather than exposed as separate *-mobile tokens, so a consumer
     writes font-size: var(--type-display-size) once and gets both sizes. */
  --type-display-size: 56px;
  --type-display-line: 60px;
  --type-display-weight: 600;
  --type-display-track: -0.02em;

  --type-h2-size: 32px;
  --type-h2-line: 38px;
  --type-h2-weight: 600;
  --type-h2-track: -0.01em;

  --type-h3-size: 21px;
  --type-h3-line: 28px;
  --type-h3-weight: 600;

  --type-body-size: 17px;
  --type-body-line: 28px;
  --type-body-weight: 400;

  --type-small-size: 15px;
  --type-small-line: 24px;
  --type-small-weight: 400;

  /* Label asks for weight 500. Only the 400 and 700 Mono faces are loaded, so
     the CSS font-matching algorithm resolves 500 to the 400 face. It renders,
     but it is not the specified weight — see handover notes. */
  --type-label-size: 12px;
  --type-label-line: 16px;
  --type-label-weight: 500;
  --type-label-track: 0.08em;

  --type-data-size: 14px;
  --type-data-line: 22px;
  --type-data-weight: 400;

  --measure: 68ch;  /* body copy maximum */

  /* ─── Layout: base unit 8px, every spacing value a multiple ─── */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-7: 56px;
  --space-12: 96px;

  --container: 1120px;
  --gutter: 24px;          /* 20px under 600, below */
  --section-rhythm: 96px;  /* 56px under 600, below */
  --card-padding: 32px;    /* 24px under 600, below */
  --card-radius: 4px;      /* document, not pill */
  --card-border: 1px;

  /* Breakpoints are documented here for reference; media queries cannot read
     custom properties, so the literal values are used at each query site. */
  --bp-wide: 1120px;
  --bp-mid: 840px;
  --bp-narrow: 600px;

  /* ─── Control bindings ───
     Semantic aliases, not palette additions: each resolves to one of the
     colours already declared. Repointed here for the theme conversion -
     these four lines were the only ones written when the button primitive
     first shipped, specifically so this is all that would need to change. */
  --btn-bg: var(--signal);
  --btn-fg: var(--paper);
  --btn-bg-hover: #095A4E;
  --focus-ring: var(--signal);
}

/* Responsive type and spacing for the design-spec tokens. Mirrors the §9
   mobile column; consumers need no media queries of their own. */
@media (max-width: 600px) {
  :root {
    --type-display-size: 34px;
    --type-display-line: 38px;
    --gutter: 20px;
    --section-rhythm: 56px;
    --card-padding: 24px;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
/* Mono is reserved for labels/eyebrows, spec-row data, and anything literally
   code or a dollar figure (design-spec.md §9) - not a general chrome font.
   Removed from this pass since the theme conversion: .work-notes (only its
   dt labels stay mono, scoped below - dd content is prose), .contact-block
   (plain contact-info prose), .article-list/.index-list (listing prose reads
   better in the body face). .sparkline stays mono for a functional reason,
   not a stylistic one: it renders ASCII/unicode bar glyphs that a
   proportional font would visually distort. */
.skip-link,
.mf-nav, .mf-footer,
.prompt, .document-meta,
.panel,
.cli-tag,
.sparkline, .breadcrumb,
.panel-footer, .pipe,
.diagram-quad .quad-tag, .diagram-quad .dt-label, .diagram-quad .dt-value,
.inline-links,
.terminal {
  font-family: var(--mono);
}
a { color: var(--signal); text-decoration: none; }
a:hover { color: #095A4E; text-decoration: underline; }
img, svg { max-width: 100%; display: block; }
::selection { background: rgba(11, 110, 95, 0.18); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* ═══════ SKIP LINK ═══════ */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--signal); color: var(--paper); padding: 8px 14px;
  font-size: 12px; font-weight: 700;
}
.skip-link:focus { left: 0; top: 0; }

/* ═══════ NAV ═══════
   The single nav implementation. Originated in blog/thinking.css as .mf-nav,
   moved to this file, then made universal: it replaced .site-header/.site-nav
   (which had no mobile menu at all - the nav just wrapped to a second line on
   narrow viewports, unacceptable on a phone) and the older, less complete
   .site-head-wrapped variant blog posts carried. One nav, one feature set
   (sticky, hamburger, mobile menu), applied to every page via apply-nav.mjs.
   Breakpoints below (860, 760) are carried over verbatim from the original
   blog implementation. */
.mf-nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 248, 247, 0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.mf-nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
/* Wordmark, not a link and doesn't act as one - --signal is reserved for
   buttons/links/focus rings (§9), so it can't carry that colour. --ink,
   same as any other primary text. Stays mono: a logotype is closer to the
   eyebrow/label register mono is for than it is to body prose. */
.mf-brand { color: var(--ink); font: 700 13px var(--mono); text-decoration: none; white-space: nowrap; }
.mf-brand b { font-weight: 700; }
.mf-nav-links { display: flex; gap: 16px; align-items: center; }
.mf-nav-links a { color: var(--slate); font-size: 12px; text-decoration: none; }
.mf-nav-links a:hover { color: var(--ink); }
.mf-nav-links a[aria-current="page"] { color: var(--signal); }
.mf-nav-links a.btn-primary,
.mf-nav-links a.btn-primary:hover { color: var(--btn-fg); }
.mf-menu-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 4px; width: 32px; height: 32px; padding: 6px;
  cursor: pointer; border: none; background: none;
}
.mf-menu-toggle span { display: block; height: 2px; background: var(--ink); }
.mf-mobile-menu {
  display: none; flex-direction: column; gap: 8px;
  padding: 12px 24px 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.mf-mobile-menu.open { display: flex; }
.mf-mobile-menu a { color: var(--slate); font-size: 13px; text-decoration: none; padding: 6px 0; }
.mf-mobile-menu a:hover { color: var(--signal); }

/* ------- NAV SERVICES DROPDOWN -------
   Added for the services dropdown (desktop panel and mobile expandable
   section). All new classes, nothing above is modified. Colours and type
   reuse the existing nav tokens (--slate/--ink/--signal/--rule/--paper) so
   the dropdown matches the flat nav links it sits among. */
.mf-nav-dd { position: relative; display: inline-flex; align-items: center; }
.mf-nav-dd-trigger {
  font-family: var(--mono); font-size: 12px; color: var(--slate);
  background: none; border: none; padding: 0; cursor: pointer; line-height: 1;
}
.mf-nav-dd-trigger:hover, .mf-nav-dd.is-open .mf-nav-dd-trigger { color: var(--ink); }
.mf-nav-dd-trigger[aria-current="page"] { color: var(--signal); }
.mf-nav-dd-trigger:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.mf-nav-dd-panel {
  position: absolute; top: 100%; left: 0; z-index: 30;
  display: flex; flex-direction: column; min-width: 240px;
  margin-top: 8px; padding: 8px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--card-radius);
  box-shadow: 0 6px 24px rgba(15, 20, 25, 0.10);
}
.mf-nav-dd-panel[hidden] { display: none; }
.mf-nav-dd-panel a {
  display: block; padding: 8px 10px; font-size: 13px; color: var(--slate);
  text-decoration: none; border-radius: var(--card-radius);
}
.mf-nav-dd-panel a:hover, .mf-nav-dd-panel a:focus-visible { color: var(--ink); background: rgba(11, 110, 95, 0.06); }
.mf-nav-dd-panel a:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.mf-nav-dd-all { margin-top: 4px; border-top: 1px solid var(--rule); border-radius: 0; color: var(--signal); font-weight: 600; }

/* Mobile expandable services section inside the hamburger menu. */
.mf-mobile-svc { display: flex; flex-direction: column; }
.mf-mobile-svc-toggle {
  font-family: var(--mono); font-size: 13px; color: var(--slate);
  background: none; border: none; padding: 6px 0; text-align: left; cursor: pointer;
}
.mf-mobile-svc-toggle:hover { color: var(--signal); }
.mf-mobile-svc-toggle[aria-current="page"] { color: var(--signal); }
.mf-mobile-svc-toggle::after { content: " +"; }
.mf-mobile-svc-toggle.is-open::after { content: " \2212"; }
.mf-mobile-svc-list { display: flex; flex-direction: column; padding: 2px 0 4px 12px; }
.mf-mobile-svc-list[hidden] { display: none; }
/* The panel opens by toggling the hidden attribute with no transition, so
   there is no motion to suppress under prefers-reduced-motion. The global
   prefers-reduced-motion rule later in this file already neutralizes any
   transition or animation site-wide as a backstop. */

.mf-footer { border-top: 1px solid var(--rule); }
.mf-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 24px 40px;
}
.mf-footer-links { display: flex; flex-wrap: wrap; gap: 20px 32px; margin-bottom: 16px; }
.mf-footer-group { min-width: 140px; }
.mf-footer-group-label { color: var(--ink); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 8px; }
.mf-footer-group-links { display: flex; flex-direction: column; gap: 6px; }
.mf-footer-group-links a { color: var(--slate); font-size: 12px; text-decoration: none; }
.mf-footer-group-links a:hover { color: var(--signal); }
.mf-footer-meta { color: var(--slate); font-size: 11px; line-height: 1.6; }
.mf-footer-meta a { color: var(--slate); }

@media (max-width: 860px) {
  .mf-nav-links { display: none; }
  .mf-menu-toggle { display: flex; }
}
@media (max-width: 760px) {
  .mf-nav-inner { padding: 0 16px; }
  .mf-footer-inner { padding: 20px 16px 32px; }
}

/* ═══════ MAIN ═══════ */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════ DOCUMENT LAYOUTS ═══════ */
.document { padding: 48px 0 72px; }
.document-wide { padding: 48px 0 72px; }

/* ═══════ PROMPT — mono eyebrow label ═══════
   Was styled as a shell prompt ($ prefix, blinking cursor after). Both
   removed: no counterpart in §9, and it was the clearest "personal terminal
   blog" tell on the site. Survives as what §9 actually allows mono for - an
   eyebrow label - not as CLI-shell decoration. Colour moves off --signal:
   an eyebrow label isn't a button, link, or focus ring, so per §9's own
   rule it can't keep the colour reserved for those. */
.prompt {
  font-size: var(--fs-2xs);
  color: var(--slate);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

/* ═══════ DOCUMENT META (compat with existing pages) ═══════ */
.document-meta {
  font-size: var(--fs-2xs);
  color: var(--slate);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ═══════ TYPOGRAPHY ═══════
   §9: "Mono used for body copy is what the site did before and it was
   wrong." Headings move to the Display/H2/H3 sans roles from the token
   system - the first thing added to this file, specifically for this. */
h1, h2, h3 {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.2;
}
h1 {
  font-size: var(--type-display-size);
  line-height: var(--type-display-line);
  font-weight: var(--type-display-weight);
  letter-spacing: var(--type-display-track);
  margin-bottom: 20px;
}
h2 {
  font-size: var(--type-h2-size);
  line-height: var(--type-h2-line);
  font-weight: var(--type-h2-weight);
  letter-spacing: var(--type-h2-track);
  margin-bottom: 14px;
}
h3 {
  font-size: var(--type-h3-size);
  line-height: var(--type-h3-line);
  font-weight: var(--type-h3-weight);
  margin-bottom: 8px;
}
p { margin: 0 0 16px; max-width: var(--measure); }
.intro {
  font-size: var(--fs-md);
  color: var(--ink);
  line-height: 1.6;
  max-width: 64ch;
}

/* ═══════ PANEL — control-boundary / report-demo card ═══════
   Real informational content (actual CLI output, actual status data), not
   decoration - kept mono per §9's "literally code" allowance, restyled to
   the card system (--rule border, no separate panel background - hierarchy
   comes from the border, not a shade change, matching the Evidence
   Contract's own card treatment) rather than removed. */
.panel {
  margin: 24px 0;
  border: 1px solid var(--rule);
  background: var(--paper);
}
.panel-header {
  padding: 8px 16px;
  border-bottom: 1px solid var(--rule);
  font-size: 11px;
  color: var(--slate);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel-body {
  padding: 20px;
}

/* ═══════ PLAIN ENGLISH ═══════ */
.plain-english {
  margin: 24px 0;
  padding: 20px;
  border-left: 3px solid var(--ink);
  background: var(--paper);
}
.plain-english p { color: var(--ink); margin-bottom: 10px; }
.plain-english p:last-child { margin-bottom: 0; }

/* ═══════ INLINE LINKS ═══════ */
.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 20px 0;
  font-size: 13px;
}

/* ═══════ SECTIONS ═══════ */
.rule-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}

/* ═══════ MARGIN NOTE ═══════ */
.margin-note {
  margin: 24px 0;
  padding: 16px 20px;
  border: 1px dashed var(--rule);
  background: var(--paper);
  font-size: 14px;
  color: var(--ink);
}
.margin-note strong { color: var(--ink); }

/* ═══════ WORK NOTES (grid) ═══════
   dt stays mono (a label - §9's own allowance); dd is prose and reads in
   the body face now, not inherited chrome mono. */
.work-notes {
  margin: 20px 0 0;
}
.work-note {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: var(--fs-sm);
}
.work-note:first-child { border-top: 1px solid var(--rule); }
.work-note dt {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  font-weight: 700;
  color: var(--slate);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-top: 2px;
}
.work-note dd { margin: 0; color: var(--ink); }
.work-note dd p { margin-bottom: 0; font-size: var(--fs-sm); }

/* ═══════ TERMINAL BLOCK ═══════
   Literally code - a real `$ kulshan report...` command and its real
   output. §9's "anything that is literally code" allowance, kept mono and
   kept dark: this is a demonstration of a CLI, so it reads as one. */
.terminal {
  margin: 24px 0;
  border: 1px solid var(--rule);
  background: #0a0a0a;
  overflow-x: auto;
}
.terminal pre {
  margin: 0;
  padding: 20px;
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: #33ff00;
  white-space: pre;
}

/* ═══════ CONTACT BLOCK ═══════ */
.contact-block {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--rule);
  background: var(--paper);
}
.contact-block p { margin-bottom: 6px; font-size: var(--fs-sm); color: var(--ink); }
.contact-block a { font-weight: 600; }

/* ═══════ INDEX LIST ═══════ */
.index-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.index-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink);
}
.index-list li:first-child { border-top: 1px solid var(--rule); }

/* ═══════ ARTICLE LIST ═══════ */
.article-list { margin: 24px 0 0; }
.article-item {
  display: block;
  padding: 14px 16px;
  margin-bottom: 4px;
  border: 1px solid var(--rule);
  background: var(--paper);
  text-decoration: none;
  transition: border-color 0.1s;
}
.article-item:hover { border-color: var(--signal); text-decoration: none; }
.article-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.article-date {
  font-size: 11px;
  color: var(--slate);
}

/* ═══════ SMALL ═══════ */
.small { font-size: var(--fs-2xs); color: var(--slate); }

/* ═══════ FOOTER ═══════ */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 24px 40px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 12px;
  color: var(--slate);
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--slate); }
.site-footer a:hover { color: var(--signal); }
.footer-line {
  display: flex;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer-line p { margin: 0; }

/* ═══════ CONTROLS ═══════
   The primary button. Geometry, type and state logic are declared once and
   are theme-independent; colour resolves through the --btn-* aliases above.

   Deliberately outside the monospace selector group near the top of this file:
   design-spec.md §9 reserves mono for Evidence Contract labels, service-card
   eyebrows and spec rows, and anything that is literally code or a dollar
   figure. A control is none of those. */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;                        /* touch target */
  padding: var(--space-2) var(--space-3);
  border: 1px solid transparent;           /* reserved, so focus never shifts layout */
  border-radius: var(--card-radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: var(--type-body-size);
  line-height: 1.2;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.btn-primary:hover {
  background: var(--btn-bg-hover);
  color: var(--btn-fg);
  text-decoration: none;
}
/* 2px ring at 2px offset. The offset puts page background on both sides of the
   ring, which is what keeps it legible after the palette flips. */
.btn-primary:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.btn-primary:active { transform: translateY(1px); }

/* Nav-scale modifier. Same colour, hover, focus and disabled rules as the
   base control - only size changes, to fit the 48px .mf-nav-inner bar.
   Replaces .mf-nav-cta, which duplicated button styling with its own
   `!important` colour overrides instead of sharing this primitive. */
.btn-primary--nav {
  min-height: auto;
  padding: 6px 14px;
  font-size: 12px;
}

/* aria-disabled is advisory on an anchor and does not block navigation. Use
   <button disabled> where the control must actually be inert. */
.btn-primary:disabled,
.btn-primary[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.btn-primary:disabled:hover,
.btn-primary[aria-disabled="true"]:hover {
  background: var(--btn-bg);
  color: var(--btn-fg);
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary { transition: none; }
  .btn-primary:active { transform: none; }
}

/* Pairs the primary control with the secondary text link. Wraps to two rows
   on narrow viewports rather than compressing the button. */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin: var(--space-3) 0;
}

/* ═══════ SEMANTIC STATUS ═══════
   Traffic-light convention for real data (control-boundary rows, the
   Control Tower assessment tool's confidence and ownership-override
   states). Kept as a functional three-state signal rather than removed,
   same reasoning as keeping .terminal/.panel/.cli-tag (design-spec.md §9
   stage-1 decision 5): this is content, not decoration. None of these
   three are §9 tokens, though, and none COULD be: §9 defines exactly one
   semantic marker beyond ink/slate (--contra, reserved for the Evidence
   Contract's contradicting row only). These three values are new, not in
   design-spec.md - they exist because the old dark-theme green (#33ff00)
   measured 1.28:1 against --paper, essentially invisible, so leaving them
   unchanged was not an option once the background changed under them.
   Measured against --paper: ok 4.99:1, warn 5.44:1, err 6.14:1 - flagged
   as an addition beyond the approved six items, not decided by default.
   A prior pass removed .status-warn/.status-err as apparently unused -
   both are set dynamically by tools/aws-governance-fit/app.js
   (confidenceClass() and the ownership-override paragraph), which a
   static-HTML grep for class="..." doesn't see. Restored; check app.js
   and other .js files, not just .html, before calling a class orphaned. */
.status-ok { color: #1F7A4D; }
.status-ok::before { content: "✓ "; }
.status-warn { color: #8b5c00; }
.status-warn::before { content: "⚠ "; }
.status-err { color: #B3261E; }
.status-err::before { content: "✗ "; }

/* Tag/badge — like [NEW] or [LIVE] in a CLI. Same reasoning as .panel: real
   status content (v0.6.1, APACHE-2.0, ACTIVE, COMPLETE), kept mono, restyled
   to the card border system instead of the dark-theme glow border. */
.cli-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border: 1px solid var(--rule);
  color: var(--slate);
  vertical-align: middle;
  margin-left: 8px;
}
/* Pipe separator for inline items */
.pipe { color: var(--rule); margin: 0 8px; }
.pipe::before { content: "|"; }

/* Panel grid: 5-panel cross layout — 3-column, center spans rows */
.diagram-quad {
  padding: 22px 18px;
  background: var(--paper);
  border: 1px solid var(--rule);
}
.diagram-quad h3 { font-size: 14px; margin-bottom: 6px; }
.offer-stack .diagram-quad h2 { font-size: 14px; margin-bottom: 6px; }
/* Primary offer: more weight, same border-darkens-to-signal-emphasis
   convention as .panel-active, not a new visual treatment. */
.diagram-quad--primary {
  padding: 28px 22px;
  border-color: var(--ink);
}
.offer-stack .diagram-quad--primary h2 { font-size: 20px; }
.diagram-quad p { font-size: 12px; color: var(--slate); margin-bottom: 6px; }
.diagram-quad .dt-label {
  font-size: 10px;
  color: var(--slate);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 10px;
  margin-bottom: 2px;
}
.diagram-quad .dt-value {
  font-size: 12px;
  color: var(--ink);
}
.diagram-quad .quad-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 5px;
  border: 1px solid var(--rule);
  color: var(--slate);
  margin-bottom: 8px;
}

/* Offer stack: single-column vertical layout for sequential offer blocks */
.offer-stack {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  gap: 1px;
  margin: 32px 0;
  border: 1px solid var(--rule);
  background: var(--rule);
}

/* ═══════ TUI ELEMENTS ═══════ */

/* "Active" panel state. Previously a green glow box-shadow - dropped
   entirely, not just recoloured: a neon glow is a CRT/terminal effect
   regardless of hue, and doesn't fit the editorial register any colour
   would be applied in. A slightly bolder border is the whole treatment now. */
.panel-active {
  border-color: var(--ink);
}
.panel-active .panel-header {
  border-bottom-color: var(--rule);
  background: var(--paper);
}

/* Sparkline. Stays green deliberately: seven-day-trend glyphs read as a
   tiny chart, and the status checkmark elsewhere on the page already
   carries the same semantic colour - a sparkline in --ink would look
   uncoloured next to a mark that is colour by design, not decoration. */
.sparkline {
  font-size: 14px;
  letter-spacing: 1px;
  color: #1F7A4D;
}

/* Breadcrumb path (yazi-inspired) */
.breadcrumb {
  font-size: 12px;
  color: var(--slate);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--slate); text-decoration: none; }
.breadcrumb a:hover { color: var(--signal); }
.breadcrumb .sep { margin: 0 6px; opacity: 0.5; }
.breadcrumb .current { color: var(--ink); font-weight: 600; }

/* Panel footer stats row (lazygit status bar) */
.panel-footer {
  padding: 6px 16px;
  border-top: 1px solid var(--rule);
  font-size: 11px;
  color: var(--slate);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.panel-footer .val { color: var(--ink); font-weight: 700; }

/* ═══════ IS THIS YOU ═══════ */
.situation-list {
  list-style: none;
  margin: 20px 0;
  padding: 0;
  max-width: 64ch;
}
.situation-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: var(--fs-base);
  line-height: 1.6;
}
.situation-list li:first-child { border-top: 1px solid var(--rule); }

/* ═══════ PRICE / GUARANTEE ═══════
   Not the pricing figures or guarantee wording (untouched) - only the
   visual treatment. Bordered card instead of a colour-tinted callout;
   emphasis comes from the ink accent border, not from decorative colour. */
.price-block {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--rule);
  background: var(--paper);
}
.price-block__amount {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.price-block__terms {
  font-size: var(--fs-xs);
  color: var(--slate);
  margin-bottom: 0;
}
.guarantee-line {
  margin-top: 12px;
  padding: 14px 16px;
  border-left: 3px solid var(--ink);
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--ink);
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 640px) {
  main { padding: 0 16px; }
  .site-footer { padding: 20px 16px 32px; }
  .work-note { grid-template-columns: 1fr; gap: 4px; }
}

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

/* ═══════ HOMEPAGE HERO — Mt Baker (Kulshan), full-bleed ═══════
   Deliberate departure from the paper theme for one band only: the light
   theme and a dark mountain photo don't mix as one flat page, so this is
   a hero/body split (Stripe, Linear, Vercel all do this) rather than a
   fight between two themes. Dark, image-anchored hero at the top; the page
   drops into the paper theme at .home-section below. Homepage only - every
   other page's hero, if it gets one later, is a separate decision. */
.mf-hero {
  position: relative;
  min-height: 74vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Horizontal padding mirrors main's centered 960px column (max-width: var(--max)
     + 0 24px padding) so the headline lines up with the sections below it once
     the hero itself is full-bleed. Below 960px viewport, main has no auto-margin
     to replicate, so this collapses to the same flat 24px main uses there. */
  padding: 96px max(24px, calc((100% - 960px) / 2 + 24px)) 64px;
  background:
    linear-gradient(180deg, rgba(8,11,10,0.42) 0%, rgba(8,11,10,0.62) 55%, rgba(6,9,8,0.88) 100%),
    url('./kulshan-hero.jpg') center 38% / cover no-repeat;
}
.mf-hero .prompt { color: rgba(255,255,255,0.72); }
.mf-hero h1 {
  color: #FFFFFF;
  font-size: clamp(32px, 5.4vw, 62px);
  line-height: 1.08;
  max-width: 18ch;
  margin-bottom: 20px;
}
.mf-hero .intro {
  color: rgba(255,255,255,0.92);
  max-width: 56ch;
  margin-bottom: 20px;
}
.mf-hero .hero-proof {
  color: rgba(255,255,255,0.82);
  font-size: 16px;
  line-height: 1.6;
  max-width: 56ch;
  margin-top: 0;
  margin-bottom: 28px;
}
.mf-hero .hero-proof a { color: #FFFFFF; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.6); }
.mf-hero .hero-proof a:hover, .mf-hero .hero-proof a:focus-visible { text-decoration-color: #FFFFFF; }
.mf-hero .cta-sub {
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  margin-top: 12px;
  margin-bottom: 0;
}
.mf-hero .cta-row a:not(.btn-primary) {
  color: #FFFFFF;
  text-decoration-color: rgba(255,255,255,0.5);
}
.mf-hero .cta-row a:not(.btn-primary):hover,
.mf-hero .cta-row a:not(.btn-primary):focus-visible {
  text-decoration-color: #FFFFFF;
}
.mf-hero a:focus-visible { outline-color: #FFFFFF; }

@media (max-width: 600px) {
  .mf-hero { min-height: auto; padding: 40px 20px 40px; }
}

/* ═══════ HOMEPAGE SECTION RHYTHM AND SCALE ═══════
   Whitespace does the separating - no hairline border, no fixed 48px.
   Scoped to .home-section so every other page's .rule-section (still a
   hairline + 48px) is untouched. At most two prose sizes below the h1:
   this h2 size, and this body/list size. Small mono chrome (dt labels,
   cli-tags, panel internals, contact-block) is left at its existing sizes
   deliberately - that's UI labeling, not prose, and inflating it would
   fight the panels' own compact, data-like identity. */
.home-section {
  margin-top: 112px;
}
.home-section:first-of-type { margin-top: 80px; }
.home-section h2 {
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.home-section + .home-section h2:not(:first-child) {
  margin-top: 56px;
}
.home-section p,
.home-section li,
.home-section dd p {
  font-size: 18px;
  line-height: 1.6;
}
.home-section .situation-list li { border-bottom: none; padding: 6px 0; }

@media (max-width: 600px) {
  .home-section { margin-top: 72px; }
  .home-section h2 { font-size: 28px; }
  .home-section p, .home-section li, .home-section dd p { font-size: 16px; }
}

/* ═══════ PLATFORM REVAMP (2026-09) ═══════
   Product/service status badges, card grids, evidence fragments and a
   couple of layout primitives introduced for the products/agent/partners/
   trust expansion. Built from the existing tokens only - no new colours
   beyond --ink/--slate/--rule/--signal/--contra and the three status-*
   values already in the file. */

/* Status badge. Never colour-only: each status is a distinct word, and
   EARLY ACCESS additionally gets a dashed border so it reads as
   provisional even to a reader who cannot distinguish colour or weight. */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--ink);
  color: var(--ink);
  white-space: nowrap;
}
.status-badge--early-access {
  border-style: dashed;
  border-color: #8b5c00;
  color: #8b5c00;
}
.status-badge--open-source {
  border-color: var(--signal);
  color: var(--signal);
}
.status-badge--free-tool,
.status-badge--past-clients,
.status-badge--custom {
  border-color: var(--slate);
  color: var(--slate);
}
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

/* Card grid: responsive product/service cards. 2-up desktop, 1-up under
   840, matching design-spec.md's stated breakpoint even though the grid
   itself is new. */
.mf-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 32px 0;
}
.mf-cards--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 840px) {
  .mf-cards, .mf-cards--three { grid-template-columns: 1fr; }
}
.mf-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  background: var(--paper);
}
.mf-card h3 { margin-bottom: 10px; }
.mf-card p:last-of-type { margin-bottom: 0; }
.mf-card-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 10px;
}
.mf-card-cta {
  margin-top: auto;
  padding-top: 16px;
  font-size: 14px;
  font-weight: 600;
}
/* Flagship: visually dominant, spans both columns at desktop width so it
   reads as the lead offer rather than one tile among equals. */
.mf-card--flagship {
  grid-column: 1 / -1;
  border-color: var(--ink);
  padding: calc(var(--card-padding) + 8px);
}
.mf-card--flagship h3 { font-size: 26px; }

/* Evidence fragment: the supporting/contradicting/missing/ownership report
   shape, reused wherever the site shows an excerpt of the evidence
   contract outside the full /sample/ report. Contradicting/missing text
   itself always says so in words; colour is a reinforcement, never the
   only signal. */
.evidence-fragments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin: 24px 0;
}
.evidence-fragment { background: var(--paper); padding: 20px 22px; }
.evidence-fragment-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
}
.evidence-fragment-label--contra { color: var(--contra); }
.evidence-fragment p { font-size: 15px; line-height: 1.55; margin-bottom: 0; }

/* Early-access callout: dashed border matches the badge, marks a block of
   copy as describing a planned/early capability rather than a shipped one. */
.early-access-block {
  margin: 24px 0;
  padding: 20px 22px;
  border: 1px dashed #8b5c00;
  background: var(--paper);
}
.early-access-block p:last-child { margin-bottom: 0; }

/* Relationship flow: semantic HTML/CSS pipeline diagram (Products page),
   no generated image. Stacks vertically under 700px with a rotated arrow
   glyph rather than a horizontal one. */
.mf-flow {
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin: 28px 0;
  flex-wrap: wrap;
}
.mf-flow-step {
  flex: 1 1 160px;
  border: 1px solid var(--rule);
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}
.mf-flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  font-size: 18px;
  padding: 0 2px;
}
@media (max-width: 700px) {
  .mf-flow { flex-direction: column; }
  .mf-flow-arrow { transform: rotate(90deg); padding: 4px 0; }
}

/* Four-path chooser (homepage section 2) */
.mf-paths {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 28px 0;
}
@media (max-width: 960px) {
  .mf-paths { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .mf-paths { grid-template-columns: 1fr; }
}
.mf-path {
  border: 1px solid var(--rule);
  border-radius: var(--card-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.mf-path h3 { font-size: 18px; margin-bottom: 8px; }
.mf-path p { font-size: 15px; line-height: 1.5; margin-bottom: 12px; }
.mf-path a.mf-card-cta { margin-top: auto; padding-top: 0; }

/* Tool index cards */
.tool-card {
  border: 1px solid var(--rule);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  margin-bottom: 20px;
}
.tool-card h3 { margin-bottom: 6px; }
.tool-card-meta { font-size: 13px; color: var(--slate); margin-bottom: 10px; }

@media (max-width: 600px) {
  .mf-card--flagship { padding: var(--card-padding); }
  .mf-card--flagship h3 { font-size: 22px; }
}
