/* Keystone — design system
 * Static, no build step, no framework.
 * Inter for body / UI · Source Serif 4 for editorial typography.
 * Off-white background, navy accent, considered editorial layout.
 */

/* ------------------------------------------------------------------
 * Editorial design pass (1 May 2026)
 * Lifts the system away from developer-default toward editorial.
 * Reference points: Stripe Atlas, Basecamp Shape Up, Collison.
 * ------------------------------------------------------------------ */
:root {
  --c-bg:        #fcfbf8;     /* warm off-white, paper-like */
  --c-bg-alt:    #f5f3ec;     /* slightly deeper warm tone */
  --c-text:      #1c1c1c;
  --c-text-soft: #54595f;
  --c-text-quiet:#6b7280;
  --c-rule:      #d8d4c7;     /* warm rule colour, not cool grey */
  --c-accent-amber: #b87333;  /* sparingly-used editorial accent */
  --ff-serif: 'Source Serif 4', 'Source Serif Pro', 'Charter', 'Iowan Old Style', Georgia, serif;
}

body { background: var(--c-bg); color: var(--c-text); }

/* Editorial typography — serif for headings */
h1, h2, h3 {
  font-family: var(--ff-serif);
  font-weight: 600;
  letter-spacing: -0.005em;
}
h1 { font-weight: 600; letter-spacing: -0.015em; line-height: 1.1; }
h2 { font-weight: 600; letter-spacing: -0.005em; }

/* Lead paragraph treatment for hero subtitles / opening paragraphs */
.lead-para,
.hero__subtitle,
.section--lead .container > p:first-of-type {
  font-family: var(--ff-serif);
  font-size: clamp(1.15rem, 0.6vw + 1rem, 1.35rem);
  line-height: 1.5;
  color: var(--c-text);
  font-weight: 400;
  font-style: normal;
}

/* Refined link treatment — no default underline, dotted on hover.
 * Scoped tightly to prose containers so it doesn't catch nav links or buttons.
 */
.prose a:not(.button):not(.nav-cta),
.prose-centre a:not(.button):not(.nav-cta),
article.prose a:not(.button):not(.nav-cta) {
  color: var(--c-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.12s, color 0.12s;
}
.prose a:not(.button):not(.nav-cta):hover,
.prose-centre a:not(.button):not(.nav-cta):hover,
article.prose a:not(.button):not(.nav-cta):hover {
  color: var(--c-accent-soft);
  border-bottom-color: var(--c-accent);
}

/* Page eyebrow — for method/ page titles, no § and no rule */
.page-eyebrow {
  font-family: var(--ff-mono, ui-monospace, Menlo, monospace);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--c-accent-amber);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
}

/* Numbered section marker — anchored to a horizontal rule for structural feel */
  font-family: var(--ff-mono, ui-monospace, Menlo, monospace);
  font-feature-settings: 'tnum' 1;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--c-accent-amber);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--c-border);
  width: 100%;
}
.section-num::before {
  content: "§";
  font-size: 0.95rem;
  color: var(--c-text-quiet);
  font-weight: 400;
}
.section-num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

/* Editorial section heading: small number above, serif heading below */
.editorial-section { margin-top: 4rem; margin-bottom: 4rem; }
.editorial-section__head { margin-bottom: 1.5rem; }
.editorial-section__title {
  font-family: var(--ff-serif);
  font-size: clamp(1.5rem, 1.6vw + 1rem, 2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0;
}

/* Ornament divider — small centred mark instead of full line */
.divider-ornament {
  border: 0;
  text-align: center;
  margin: 4rem 0;
  font-size: 0.9rem;
  color: var(--c-rule);
  letter-spacing: 0.5em;
  line-height: 1;
}
.divider-ornament::before { content: "·  ·  ·"; }

/* Override the plain hr to feel less mechanical when used */
hr.divider {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--c-rule), transparent);
  margin: 1.75rem auto;
  max-width: 240px;
}

/* Refined section background tint */
.section--alt { background: var(--c-bg-alt); }

/* Hero refinements */
.hero { padding: 4rem 0 1.75rem; }
.hero__title {
  font-family: var(--ff-serif);
  font-size: clamp(2.4rem, 5vw + 1rem, 4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 18ch;
  margin-bottom: 1.75rem;
}
.hero__title-em {
  font-style: italic;
  color: var(--c-accent-amber);
  font-weight: 600;
}
.hero__subtitle {
  font-family: var(--ff-serif);
  font-size: clamp(1.1rem, 0.5vw + 1rem, 1.3rem);
  color: var(--c-text);
  font-weight: 400;
  line-height: 1.55;
  max-width: 60ch;
  margin-bottom: 2rem;
}

/* Phase block refinement */
.phase-blocks {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.phase-blocks__block {
  position: relative;
  border-radius: 0;
  overflow: hidden;
}
.phase-blocks__block::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.0);
  transition: background 0.16s;
}
.phase-blocks__block:hover::before { background: rgba(255,255,255,0.6); }
.phase-blocks__name {
  font-family: var(--ff-base);
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 0.95rem;
}
.phase-blocks__caption {
  font-family: var(--ff-serif);
  font-style: italic;
  color: var(--c-text-soft);
  font-size: 1.05rem;
  text-align: center;
  max-width: 56ch;
  margin: 1.75rem auto 3rem;
  line-height: 1.5;
}

/* Cards — slightly more editorial */
.card {
  background: var(--c-bg);
  border: 1px solid var(--c-rule);
  border-radius: 6px;
  padding: 1.75rem 1.5rem;
}
.card__title {
  font-family: var(--ff-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.card__body { color: var(--c-text-soft); font-size: 1rem; line-height: 1.55; margin-bottom: 1rem; }
.card__link {
  color: var(--c-accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.12s;
}
.card__link:hover { border-bottom-color: var(--c-accent); }

/* Section eyebrow refinement (used above section titles) */
.section-eyebrow {
  font-family: var(--ff-base);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent-amber);
  margin-bottom: 0.85rem;
}

/* Site header on warm background */
.site-header {
  background: rgba(252,251,248,0.92);
  border-bottom: 1px solid var(--c-rule);
}

/* Footer on warm background */
.site-footer {
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-rule);
}
.site-footer__line { border-top-color: var(--c-rule); }

/* ------------------------------------------------------------------
 * Lifecycle diagram (homepage Section 01 — the conceptual overlay
 * showing the four business case checkpoints, eight testing levels
 * and the adoption workstream layered on the phase bar)
 * ------------------------------------------------------------------ */
.lifecycle-diagram {
  margin: 2.5rem 0;
  padding: 1.5rem 1rem;
  background: var(--c-bg);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-md);
}
.lifecycle-diagram svg { width: 100%; height: auto; display: block; max-width: 1000px; margin: 0 auto; font-family: var(--ff-base); }

/* Diagram breaks out of the prose-centre column on wider viewports so it
 * has room to breathe. On narrower screens it stays inside the column. */
@media (min-width: 900px) {
  .prose-centre .lifecycle-diagram {
    width: 100%;
    max-width: 980px;
    margin-left: calc((720px - 980px) / 2);
    margin-right: calc((720px - 980px) / 2);
  }
}

/* Business case checkpoint markers (top of diagram) */
.lifecycle-diagram .bc-checkpoints text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--c-accent-amber);
}
.lifecycle-diagram .bc-stage {
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  fill: var(--c-text) !important;
}
.lifecycle-diagram .bc-marker { fill: var(--c-accent-amber); stroke: var(--c-bg); stroke-width: 1.5; }

/* Phase band labels — sized so the longest labels (Pre-Programme, Post-Programme) fit cleanly inside their blocks */
.lifecycle-diagram .phase-name {
  font-size: 15px;
  font-weight: 600;
  fill: #fff;
  text-anchor: middle;
  letter-spacing: -0.005em;
}

/* Stage axis */
.lifecycle-diagram .axis-line { stroke: var(--c-rule); stroke-width: 1; }
.lifecycle-diagram .stage-label {
  font-size: 13px;
  fill: var(--c-text-quiet);
  font-weight: 500;
}

/* Adoption workstream band */
.lifecycle-diagram .adoption-band {
  fill: rgba(184, 115, 51, 0.10);
  stroke: var(--c-accent-amber);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
}
.lifecycle-diagram .adoption-label {
  font-size: 13px;
  font-weight: 500;
  fill: var(--c-text-soft);
}

/* Testing levels bracket */
.lifecycle-diagram .test-band {
  fill: rgba(10, 37, 64, 0.06);
  stroke: var(--c-accent);
  stroke-width: 1.5;
}
.lifecycle-diagram .test-label {
  font-size: 15px;
  font-weight: 600;
  fill: var(--c-accent);
}
.lifecycle-diagram .test-sublabel {
  font-size: 12px;
  fill: var(--c-text-soft);
}

/* Footnote */
.lifecycle-diagram .footnote {
  font-size: 12px;
  fill: var(--c-text-quiet);
  font-style: italic;
}

@media (max-width: 720px) {
  .lifecycle-diagram { padding: 1rem 0.5rem; }
}

/* Sub-aside for the practitioner credibility line */
.practitioner-line {
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--c-text-soft);
  text-align: center;
  max-width: 56ch;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

/* ------------------------------------------------------------------
 * Dual-path hero block — "Read the methodology" + "Try the dashboard"
 * Two stylised preview mockups give the visitor a visceral sense of
 * what each side actually is, before any prose.
 * ------------------------------------------------------------------ */
.dual-path {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
  margin: 3rem 0 1rem;
}
.dual-path__card {
  background: var(--c-bg);
  border: 1px solid var(--c-rule);
  border-radius: 6px;
  padding: 0 1.75rem 1.75rem;
  display: flex; flex-direction: column; gap: 0.85rem;
  display: flex; flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.dual-path__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28,28,28,0.06);
  border-color: var(--c-accent);
}
/* ------------------------------------------------------------------
 * Dual-path — horizontal stacked panels (V3-style layout, V1 palette)
 * Each panel is a full-width row: text on the left, preview on the right,
 * CTA at the far right. No card chrome — just hairlines.
 * ------------------------------------------------------------------ */
.dual-path {
  display: flex; flex-direction: column;
  gap: 0;
  margin: 3rem 0 1rem;
  border-top: 1px solid var(--c-rule);
}
.dual-path__card {
  position: relative;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--c-rule);
  border-radius: 0;
  padding: 2.25rem 0.5rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: 2.5rem;
  align-items: start;
  transition: background 0.15s, padding 0.15s;
}
.dual-path__card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--c-rule);
  background: var(--c-bg-alt);
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.dual-path__card::before,
.dual-path__card::after { content: none; display: none; }

.dual-path__eyebrow {
  position: static;
  transform: none;
  grid-column: 1;
  display: block;
  font-family: var(--ff-base);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent-amber);
  margin: 0 0 0.6rem;
}
.dual-path__title {
  grid-column: 1;
  font-family: var(--ff-serif);
  font-size: clamp(1.3rem, 1.2vw + 1rem, 1.6rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}
.dual-path__body {
  grid-column: 1;
  color: var(--c-text-soft);
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 52ch;
}
.dual-path__preview {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: stretch;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-rule);
  border-left: 2px solid var(--c-accent-amber);
  border-radius: 2px;
  padding: 1rem 1.1rem;
  margin: 0;
  display: flex; flex-direction: column; gap: 0.55rem;
  min-height: 0;
}
.dual-path__cta {
  grid-column: 3;
  grid-row: 1 / span 3;
  align-self: center;
  justify-self: end;
  white-space: nowrap;
  font-family: var(--ff-mono, ui-monospace, Menlo, monospace);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-align: center;
  border-radius: 2px;
  padding: 0.7rem 1.1rem;
  width: auto;
  height: auto;
  display: inline-block;
  min-height: 0;
}
@media (max-width: 1000px) {
  .dual-path__card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.75rem 0.5rem;
  }
  .dual-path__preview { grid-column: 1; grid-row: auto; }
  .dual-path__cta { grid-column: 1; grid-row: auto; align-self: stretch; }
}
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent-amber);
  margin-bottom: 0.6rem;
}
.dual-path__title {
  font-family: var(--ff-serif);
  font-size: clamp(1.3rem, 1.2vw + 1rem, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
.dual-path__body {
  color: var(--c-text-soft);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.55;
}
.dual-path__preview {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-rule);
  border-left: 2px solid var(--c-accent-amber);
  border-radius: 2px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.5rem;
  flex: 1;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow: hidden;
  position: relative;
}
.dual-path__preview::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 32px;
  background: linear-gradient(to bottom, transparent, var(--c-bg-alt));
  pointer-events: none;
}
.dual-path__cta {
  align-self: center;
  justify-self: end;
  text-align: center;
  font-family: var(--ff-mono, ui-monospace, Menlo, monospace);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  background: var(--c-accent);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.12s;
  border: none;
  display: inline-block;
  width: auto;
  height: auto;
  white-space: nowrap;
}
.dual-path__cta:hover { background: var(--c-accent-soft); color: #fff; }

/* Mock document (Methodology preview) */
.mock-doc__eyebrow {
  font-family: var(--ff-base);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--c-accent-amber);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.mock-doc__heading {
  font-family: var(--ff-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.25;
  margin: 0 0 0.55rem;
}
.mock-doc__line {
  height: 7px;
  background: #d8d4c7;
  border-radius: 2px;
  width: 100%;
}
.mock-doc__line--short  { width: 60%; }
.mock-doc__line--medium { width: 82%; }
.mock-doc__rule { height: 1px; background: var(--c-rule); margin: 0.35rem 0; }

/* Mock dashboard (Command Centre preview) */
.mock-dash__bar {
  display: flex; gap: 2px; height: 16px; border-radius: 3px; overflow: hidden;
  margin-bottom: 0.4rem;
}
.mock-dash__bar > span { flex: 1; }
.mock-dash__bar > span:nth-child(1) { background: #3a87c6; }
.mock-dash__bar > span:nth-child(2) { background: #e89a35; }
.mock-dash__bar > span:nth-child(3) { background: #9c4fb6; }
.mock-dash__bar > span:nth-child(4) { background: #dd594d; }
.mock-dash__bar > span:nth-child(5) { background: #2ba89d; }
.mock-dash__bar > span:nth-child(6) { background: #42a55f; }
.mock-dash__row {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--ff-base);
  font-size: 0.78rem;
  color: var(--c-text-soft);
  line-height: 1.2;
}
.mock-dash__check {
  width: 13px; height: 13px;
  border: 1.5px solid #9ca3af;
  border-radius: 2px;
  flex-shrink: 0;
  position: relative;
  background: #fff;
}
.mock-dash__check--done {
  background: #2ba89d;
  border-color: #2ba89d;
}
.mock-dash__check--done::after {
  content: "✓";
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  line-height: 1;
}
.mock-dash__progress {
  margin-left: auto;
  font-family: var(--ff-base);
  font-size: 0.72rem;
  color: var(--c-text-quiet);
  font-feature-settings: 'tnum' 1;
}

@media (max-width: 1000px) {
  .dual-path { grid-template-columns: 1fr; gap: 1.25rem; margin: 2rem 0; }
  .dual-path__card { padding: 1.5rem; }
}

/* Document stack mockup — Use it card preview */
.mock-docs { display: flex; flex-direction: column; gap: 6px; }
.mock-docs__row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; background: #fff;
  border: 1px solid var(--c-rule); border-radius: 4px;
  font-family: var(--ff-base); font-size: 12px; color: var(--c-text);
}
.mock-docs__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 26px; border-radius: 2px;
  font-size: 9px; font-weight: 700; color: #fff;
  letter-spacing: 0.02em;
}
.mock-docs__icon--pptx { background: #c43e1c; }
.mock-docs__icon--docx { background: #2b579a; }
.mock-docs__icon--xlsx { background: #217346; }
.mock-docs__name { flex: 1; font-weight: 500; }
.mock-docs__meta { font-size: 10px; color: var(--c-text-quiet); }
.mock-docs__more { padding: 6px 12px 0; font-size: 11px; color: var(--c-text-quiet); font-style: italic; }

/* ------------------------------------------------------------------
 * Phase blocks (homepage hero — six-phase lifecycle visual)
 * Simple coloured row, no annotations. Gates / GLG / Go-Live are
 * deliberately omitted at launch and become a "later" overlay.
 * ------------------------------------------------------------------ */
.phase-blocks {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin: 2.5rem 0 1rem;
  border: 1px solid var(--c-border);
  border-radius: 0;
  background: var(--c-bg);
  overflow: hidden;
}
.phase-blocks__block {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  text-align: left;
  padding: 1.1rem 0.95rem 0.9rem;
  text-decoration: none; color: #fff;
  border-radius: 0;
  border-right: 1px solid rgba(255,255,255,0.18);
  transition: filter 0.16s;
  min-height: 130px;
  cursor: pointer;
}
.phase-blocks__block:last-child { border-right: 0; }
.phase-blocks__block:hover { filter: brightness(1.08); color: #fff; }

/* Phase number / stage range — top-left, mono, quiet */
.phase-blocks__block::before {
  content: attr(data-phase) " · " attr(data-stages);
  position: absolute;
  top: 0.7rem;
  left: 0.95rem;
  font-family: var(--ff-mono, ui-monospace, Menlo, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.78);
  font-weight: 500;
  text-transform: uppercase;
}

/* Affordance arrow — bottom-right */
.phase-blocks__block::after {
  content: "→";
  position: absolute;
  right: 0.7rem;
  bottom: 0.5rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  transition: color 0.16s, transform 0.16s;
  pointer-events: none;
}
.phase-blocks__block:hover::after {
  color: rgba(255,255,255,1);
  transform: translateX(2px);
}
.phase-blocks__name { font-weight: 600; font-size: 0.98rem; line-height: 1.2; margin-bottom: 0; }
.phase-blocks__meta { font-size: 0.85rem; opacity: 0.85; font-weight: 400; }
/* Phase colours — match the source decks for cross-surface consistency.
 * Matches the deck palette shown to Andy 1 May 2026.
 */
.phase-blocks__block--1 { background: #3a87c6; }   /* Pre-Programme — blue */
.phase-blocks__block--2 { background: #e89a35; }   /* Selection — orange */
.phase-blocks__block--3 { background: #9c4fb6; }   /* Setup & Design — purple */
.phase-blocks__block--4 { background: #dd594d; }   /* Build & Test — red/coral */
.phase-blocks__block--5 { background: #2ba89d; }   /* Deploy — teal */
.phase-blocks__block--6 { background: #42a55f; }   /* Post-Programme — green */
.phase-blocks__caption {
  text-align: center;
  font-size: 1.05rem;
  color: #54595f;
  max-width: 640px;
  margin: 1.25rem auto 2.5rem;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .phase-blocks { grid-template-columns: 1fr; gap: 4px; }
  .phase-blocks__block { min-height: 64px; padding: 0.85rem 1rem; flex-direction: row; justify-content: space-between; }
  .phase-blocks__name { margin-bottom: 0; }
}

/* ------------------------------------------------------------------
 * Reset & base
 * ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }

/* ------------------------------------------------------------------
 * Tokens
 * ------------------------------------------------------------------ */
:root {
  /* palette */
  --c-bg:        #ffffff;
  --c-bg-alt:    #f8f9fb;
  --c-text:      #1a1a1a;
  --c-text-soft: #54595f;
  --c-text-quiet:#6b7280;
  --c-border:    #e5e7eb;
  --c-border-soft:#eef0f3;
  --c-accent:    #0a2540;
  --c-accent-soft:#1f3a5f;

  /* type */
  --ff-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --fs-base: 17px;
  --lh-base: 1.65;
  --fs-h1: clamp(2.0rem, 4vw + 1rem, 3.0rem);
  --fs-h2: clamp(1.45rem, 1.5vw + 1rem, 1.85rem);
  --fs-h3: 1.18rem;
  --fs-small: 0.92rem;
  --fs-tiny: 0.82rem;

  /* layout */
  --container: 1080px;
  --prose:     720px;
  --gutter:    24px;
  --rhythm:    1.5rem;

  /* radii / shadows */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;

  /* misc */
  --header-h: 64px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1.5rem); }
body {
  font-family: var(--ff-base);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p  { margin-bottom: var(--rhythm); }
p:last-child { margin-bottom: 0; }

a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--c-accent-soft); }

ul, ol { margin: 0 0 var(--rhythm) 1.25em; }
ul li, ol li { margin-bottom: 0.5rem; }

em, i { font-style: italic; }
strong, b { font-weight: 600; }

/* ------------------------------------------------------------------
 * Layout primitives
 * ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.prose {
  max-width: var(--prose);
}
.prose-centre { max-width: var(--prose); margin-left: auto; margin-right: auto; }

.section { padding: 2.25rem 0; }
.section--alt { background: var(--c-bg-alt); }
.section--tight { padding: 1.5rem 0; }
.section--lead { padding: 3.25rem 0 1.75rem; }

.stack > * + * { margin-top: var(--rhythm); }
.stack-lg > * + * { margin-top: 2.5rem; }
.stack-sm > * + * { margin-top: 0.75rem; }

hr.divider {
  border: 0; border-top: 1px solid var(--c-border-soft);
  margin: 1rem 0;
}

/* ------------------------------------------------------------------
 * Header & nav
 * ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--c-border-soft);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.brand {
  font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em;
  text-decoration: none; color: var(--c-text);
}
.site-nav { display: flex; gap: 1.5rem; align-items: center; }
.site-nav a {
  text-decoration: none; color: var(--c-text-soft);
  font-size: var(--fs-small);
}
.site-nav a:hover, .site-nav a.is-current { color: var(--c-text); }

.site-nav a.nav-cta,
.site-nav a.nav-cta.is-current {
  display: inline-flex; align-items: center;
  padding: 0.45rem 0.9rem;
  background: var(--c-accent); color: #fff;
  border-radius: var(--r-sm);
  font-size: var(--fs-small); font-weight: 500;
  text-decoration: none;
}
.site-nav a.nav-cta:hover { background: var(--c-accent-soft); color: #fff; }

/* Featured nav link — sits between a plain nav item and the primary "Book a call" button.
 * Used on the Command Centre link to draw the eye to the interactive diagnostic. */
.site-nav a.nav-feature,
.site-nav a.nav-feature.is-current {
  display: inline-flex; align-items: center;
  padding: 0.4rem 0.8rem;
  background: rgba(184, 115, 51, 0.08);
  color: var(--c-accent-amber);
  border: 1px solid rgba(184, 115, 51, 0.45);
  border-radius: var(--r-sm);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.16s, border-color 0.16s, color 0.16s;
}
.site-nav a.nav-feature::after {
  content: " ↗";
  font-weight: 500;
  margin-left: 0.25rem;
  opacity: 0.85;
}
.site-nav a.nav-feature:hover {
  background: rgba(184, 115, 51, 0.16);
  border-color: var(--c-accent-amber);
  color: var(--c-accent-amber);
}

.nav-toggle { display: none; }

@media (max-width: 720px) {
  .site-nav { display: none; }
  .site-nav.is-open { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; padding: 1rem var(--gutter) 1.25rem; background: var(--c-bg); border-bottom: 1px solid var(--c-border-soft); position: absolute; left: 0; right: 0; top: var(--header-h); }
  .nav-toggle { display: inline-flex; background: transparent; border: 1px solid var(--c-border); border-radius: var(--r-sm); padding: 0.35rem 0.6rem; color: var(--c-text); }
}

/* ------------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------------ */
.hero { padding: 3.5rem 0 2rem; }
.hero__title {
  font-size: clamp(2.2rem, 4.5vw + 1rem, 3.6rem);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.1;
  max-width: 920px; margin-bottom: 1.5rem;
}
.hero__subtitle {
  font-size: clamp(1.05rem, 0.4vw + 1rem, 1.25rem);
  color: var(--c-text-soft); max-width: 720px;
  margin-bottom: 1.25rem;
}
.hero__supporting {
  font-size: var(--fs-small);
  color: var(--c-text-quiet); max-width: 720px;
  margin-bottom: 2rem;
}

/* ------------------------------------------------------------------
 * Buttons & CTA groups
 * ------------------------------------------------------------------ */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-sm);
  text-decoration: none; font-weight: 500;
  font-size: var(--fs-base);
  border: 1px solid transparent;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.button--primary {
  background: var(--c-accent); color: #fff; border-color: var(--c-accent);
}
.button--primary:hover { background: var(--c-accent-soft); color: #fff; border-color: var(--c-accent-soft); }

.button--secondary {
  background: transparent; color: var(--c-text); border-color: var(--c-border);
}
.button--secondary:hover { border-color: var(--c-text); color: var(--c-text); }

.cta-row {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-top: 2rem;
}

.cta-signpost {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: 2rem;
  border: 1px solid var(--c-border);
  background: var(--c-bg);
}
.cta-signpost__item {
  padding: 1.5rem 1.5rem; border: 0;
  border-right: 1px solid var(--c-border);
  border-radius: 0; background: transparent;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.cta-signpost__item:last-child { border-right: 0; }
.cta-signpost__lead { font-weight: 500; margin-bottom: 0; }
.cta-signpost__link { color: var(--c-accent); text-decoration: none; font-weight: 500; font-size: var(--fs-small); margin-top: auto; }
.cta-signpost__link:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .cta-signpost { grid-template-columns: 1fr; }
  .cta-signpost__item { border-right: 0; border-bottom: 1px solid var(--c-border); }
  .cta-signpost__item:last-child { border-bottom: 0; }
}

/* Figure caption — editorial */
.lifecycle-diagram__caption {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 0.6rem 0.9rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--c-border);
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--c-text-soft);
}
.figcap__num {
  font-family: var(--ff-mono, ui-monospace, Menlo, monospace);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--c-accent-amber);
  text-transform: uppercase;
  font-weight: 600;
}
.figcap__title {
  font-family: var(--ff-serif);
  font-style: italic;
  color: var(--c-text);
  flex: 1;
}
.figcap__source {
  font-family: var(--ff-mono, ui-monospace, Menlo, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--c-text-quiet);
  text-transform: uppercase;
  margin-left: auto;
}

/* Publisher's note — marginalia treatment */
.publisher-note {
  margin: 2rem 0 2rem 2.5rem;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 2px solid var(--c-accent-amber);
  font-family: var(--ff-serif);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--c-text-soft);
  max-width: 540px;
}
.publisher-note em {
  font-style: italic;
  color: var(--c-text);
}
.publisher-note__link {
  display: inline-block;
  margin-top: 0.4rem;
  font-style: normal;
  font-family: var(--ff-base);
  font-size: 0.82rem;
  color: var(--c-accent);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.publisher-note__link:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .publisher-note { margin-left: 0; }
}

/* ------------------------------------------------------------------
 * Sections
 * ------------------------------------------------------------------ */
.section-eyebrow {
  font-size: var(--fs-small); color: var(--c-text-quiet);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.section-title { margin-bottom: 1rem; }
.section-lead { font-size: 1.1rem; color: var(--c-text-soft); margin-bottom: 2rem; }

/* ------------------------------------------------------------------
 * Cards (homepage Section 2 — three differentiators)
 * ------------------------------------------------------------------ */
.cards-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: 2rem;
}
.card {
  padding: 1.5rem; border: 1px solid var(--c-border);
  border-radius: var(--r-md); background: var(--c-bg);
}
.card__title { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.card__body { color: var(--c-text-soft); font-size: var(--fs-base); margin-bottom: 1rem; }
.card__link { color: var(--c-accent); text-decoration: none; font-size: var(--fs-small); font-weight: 500; }
.card__link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .cards-3 { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------
 * TOC — horizontal table-of-contents (replaces three boxy cards)
 * ------------------------------------------------------------------ */
.toc {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--c-border);
}
.toc__row {
  border-bottom: 1px solid var(--c-border);
}
.toc__a {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 2.5rem;
  align-items: baseline;
  padding: 2rem 0.25rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s, padding 0.15s;
}
.toc__a:hover {
  background: var(--c-bg);
  padding-left: 1rem;
  padding-right: 1rem;
}
.toc__num {
  font-family: var(--ff-mono, ui-monospace, Menlo, monospace);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--c-accent);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.toc__main { min-width: 0; }
.toc__title {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
  text-wrap: balance;
}
.toc__body {
  color: var(--c-text-soft);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
  max-width: 64ch;
}
.toc__cta {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--c-accent);
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  align-self: end;
}
.toc__a:hover .toc__cta { border-bottom-color: var(--c-accent); }

@media (max-width: 900px) {
  .toc__a {
    grid-template-columns: 56px 1fr;
    gap: 1.25rem;
    padding: 1.5rem 0.25rem;
  }
  .toc__num { font-size: 1.2rem; }
  .toc__title { font-size: 1.2rem; }
  .toc__cta { grid-column: 2; padding-top: 0.5rem; }
}

/* ------------------------------------------------------------------
 * Bold-lead-in paragraph list (recurring bad habits etc.)
 * ------------------------------------------------------------------ */
.lead-list { list-style: none; margin: 0; padding: 0; }
.lead-list > li {
  margin: 0 0 1.5rem 0;
  padding-left: 0;
}
.lead-list > li:last-child { margin-bottom: 0; }
.lead-list strong, .lead-list b {
  display: inline; font-weight: 600;
}

/* ------------------------------------------------------------------
 * Tables (Phase Checkpoints, business case maturity, role catalogue)
 * ------------------------------------------------------------------ */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table {
  width: 100%; border-collapse: collapse;
  font-size: var(--fs-small);
}
th, td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
}
th {
  font-weight: 600;
  background: var(--c-bg-alt);
  border-bottom: 2px solid var(--c-border);
}

/* ------------------------------------------------------------------
 * Callouts (See it in action — Command Centre cross-link)
 * ------------------------------------------------------------------ */
.callout {
  padding: 1.5rem 1.5rem 1.4rem;
  border: 1px solid var(--c-border);
  border-left: 2px solid var(--c-accent-amber);
  background: transparent;
  border-radius: 0;
  margin-top: 2rem;
}
.callout__lead { font-weight: 600; margin-bottom: 0.75rem; font-size: 1.05rem; }
.callout__body { color: var(--c-text-soft); margin-bottom: 1.25rem; }
.callout .button { display: inline-flex; }

/* ------------------------------------------------------------------
 * Pull-quote / aside
 * ------------------------------------------------------------------ */
.aside {
  margin: 2rem 0;
  padding: 0.5rem 0 0.5rem 1.25rem;
  border-left: 3px solid var(--c-border);
  color: var(--c-text-soft);
  font-style: italic;
  font-size: 1.05rem;
}

/* ------------------------------------------------------------------
 * Phase bar (Lifecycle page)
 * ------------------------------------------------------------------ */
.phase-bar {
  display: grid;
  grid-template-columns: 12fr 20fr 15fr 19fr 11fr 19fr; /* midpoints by week */
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  overflow: hidden;
  margin: 2rem 0;
}
.phase-bar__seg {
  display: flex; flex-direction: column; justify-content: center;
  padding: 0.85rem 0.85rem;
  background: #ebedf1; color: var(--c-text);
  border-right: 1px solid var(--c-bg);
  text-align: center; text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.phase-bar__seg:last-child { border-right: 0; }
.phase-bar__seg:hover, .phase-bar__seg.is-current {
  background: var(--c-accent); color: #fff;
}
.phase-bar__seg-name { font-weight: 600; font-size: var(--fs-small); }
.phase-bar__seg-meta { font-size: var(--fs-tiny); opacity: 0.85; }
@media (max-width: 720px) {
  .phase-bar { grid-template-columns: 1fr; }
  .phase-bar__seg { border-right: 0; border-bottom: 1px solid var(--c-bg); }
  .phase-bar__seg:last-child { border-bottom: 0; }
}

/* ------------------------------------------------------------------
 * Method docs left-rail nav
 * ------------------------------------------------------------------ */
.method-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: start;
}
.method-nav {
  position: sticky; top: calc(var(--header-h) + 1rem);
  font-size: var(--fs-small);
}
.method-nav h4 {
  font-size: var(--fs-tiny); text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--c-text-quiet);
  margin: 1rem 0 0.5rem;
}
.method-nav h4:first-child { margin-top: 0; }
.method-nav ul { list-style: none; margin: 0; padding: 0; }
.method-nav li { margin: 0.25rem 0; }
.method-nav a { display: block; padding: 0.25rem 0.5rem; border-radius: var(--r-sm); text-decoration: none; color: var(--c-text-soft); }
.method-nav a:hover { background: var(--c-bg-alt); color: var(--c-text); }
.method-nav a.is-current { background: var(--c-accent); color: #fff; }

@media (max-width: 900px) {
  .method-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .method-nav { position: relative; top: 0; padding: 1rem; background: var(--c-bg-alt); border-radius: var(--r-md); }
}

/* ------------------------------------------------------------------
 * Stage / role / artefact lists
 * ------------------------------------------------------------------ */
.stage {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--c-border-soft);
}
.stage:last-child { border-bottom: 0; }
.stage__head {
  font-weight: 600; font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.stage__meta {
  font-size: var(--fs-small); color: var(--c-text-quiet);
  margin-bottom: 0.5rem;
}

.phase-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--c-border);
}
.phase-section:last-child { border-bottom: 0; }
.phase-section__intro {
  color: var(--c-text-soft);
  margin-bottom: 1rem;
}
.phase-section__question {
  font-style: italic; color: var(--c-text-soft);
  margin-bottom: 1.25rem;
}

/* ------------------------------------------------------------------
 * Sequence visual (Testing page)
 * ------------------------------------------------------------------ */
.test-sequence {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 1.5rem 0;
}
.test-sequence__step {
  padding: 0.45rem 0.85rem; background: #ebedf1;
  border-radius: var(--r-sm); font-size: var(--fs-small);
  font-weight: 500;
}
.test-sequence__nft {
  padding: 0.45rem 0.85rem; background: var(--c-accent); color: #fff;
  border-radius: var(--r-sm); font-size: var(--fs-small); font-weight: 500;
  margin-left: auto;
}

/* ------------------------------------------------------------------
 * Lifecycle SVG (homepage hero visualisation)
 * ------------------------------------------------------------------ */
.lifecycle-vis {
  margin: 2rem 0 1.5rem;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 1.5rem 1.5rem 1rem;
}
.lifecycle-vis__svg {
  width: 100%; height: auto; max-height: 240px;
  display: block;
}

.lifecycle-vis a { text-decoration: none; }

.lifecycle-vis .phase-band {
  fill: #d8dde5;
  transition: fill 0.15s;
  cursor: pointer;
}
.lifecycle-vis .phase-band:hover { fill: var(--c-accent); }
.lifecycle-vis .phase-band:hover + .phase-label { fill: #fff; }

.lifecycle-vis .phase-band--alt { fill: #c9d0db; }

.lifecycle-vis .phase-label {
  font-family: var(--ff-base);
  font-size: 13px;
  font-weight: 600;
  fill: var(--c-text);
  pointer-events: none;
}
.lifecycle-vis .phase-meta {
  font-family: var(--ff-base);
  font-size: 10.5px;
  fill: var(--c-text-soft);
  pointer-events: none;
}

.lifecycle-vis .gate-line {
  stroke: var(--c-border);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}

.lifecycle-vis .gate--board {
  fill: #c8a740;
  stroke: #a78a30;
  stroke-width: 1.5;
}
.lifecycle-vis .gate--exec {
  fill: #d97a3c;
  stroke: #b66128;
  stroke-width: 1.5;
}
.lifecycle-vis .gate--checkpoint {
  fill: #6b85a7;
  stroke: #4f6582;
  stroke-width: 1;
}
.lifecycle-vis .gate--star {
  fill: #c8a740;
  stroke: #a78a30;
  stroke-width: 1.5;
}

.lifecycle-vis .gate-label {
  font-family: var(--ff-base);
  font-size: 11px;
  font-weight: 600;
  fill: var(--c-text);
  pointer-events: none;
}
.lifecycle-vis .gate-sub {
  font-family: var(--ff-base);
  font-size: 9.5px;
  fill: var(--c-text-soft);
  pointer-events: none;
}

.lifecycle-vis .axis-line {
  stroke: var(--c-border);
  stroke-width: 1;
}
.lifecycle-vis .stage-tick {
  stroke: var(--c-border);
  stroke-width: 1;
}
.lifecycle-vis .stage-label {
  font-family: var(--ff-base);
  font-size: 9.5px;
  fill: var(--c-text-quiet);
  pointer-events: none;
}

.lifecycle-vis__legend {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  margin-top: 0.75rem;
  font-size: var(--fs-tiny);
  color: var(--c-text-soft);
}
.lifecycle-vis__legend-item { display: inline-flex; align-items: center; gap: 0.4rem; }
.lifecycle-vis__legend-marker {
  display: inline-block; width: 11px; height: 11px;
  transform: rotate(45deg);
}
.lifecycle-vis__legend-marker--board { background: #c8a740; }
.lifecycle-vis__legend-marker--exec { background: #d97a3c; }
.lifecycle-vis__legend-marker--checkpoint { background: #6b85a7; }
.lifecycle-vis__legend-marker--star {
  width: 0; height: 0;
  background: transparent;
  transform: none;
  position: relative;
}
.lifecycle-vis__legend-marker--star::before {
  content: "★";
  color: #c8a740;
  font-size: 14px;
  position: absolute;
  top: -8px;
  left: -1px;
}

@media (max-width: 720px) {
  .lifecycle-vis { padding: 1rem 0.75rem 0.75rem; }
  .lifecycle-vis__svg { min-height: 160px; }
  .lifecycle-vis .phase-label { font-size: 10px; }
  .lifecycle-vis .phase-meta { font-size: 8.5px; }
  .lifecycle-vis .gate-label { font-size: 9px; }
  .lifecycle-vis .gate-sub { display: none; }
  .lifecycle-vis .stage-label { font-size: 8px; }
}

/* ------------------------------------------------------------------
 * Stat callouts (homepage proof of practice)
 * ------------------------------------------------------------------ */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
  margin: 2rem 0;
  text-align: left;
}
.stat__number {
  font-size: clamp(2.5rem, 4vw + 1rem, 3.6rem);
  font-weight: 700; letter-spacing: -0.025em;
  color: var(--c-accent); line-height: 1;
  margin-bottom: 0.5rem;
}
.stat__label { font-size: var(--fs-small); color: var(--c-text-soft); line-height: 1.45; }
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ------------------------------------------------------------------
 * Hero phase bar (compact variant)
 * ------------------------------------------------------------------ */
.phase-bar--compact { margin: 2rem 0 1rem; }
.phase-bar--compact .phase-bar__seg { padding: 0.65rem 0.65rem; }
.phase-bar--compact .phase-bar__seg-name { font-size: var(--fs-tiny); }
.phase-bar--compact .phase-bar__seg-meta { font-size: 0.72rem; }

/* ------------------------------------------------------------------
 * Three-ways block (homepage primary CTA section)
 * ------------------------------------------------------------------ */
.three-ways {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin: 2rem 0 0;
}
.three-way {
  padding: 1.75rem;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-bg);
  display: flex; flex-direction: column;
}
.three-way__title { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.three-way__body { color: var(--c-text-soft); margin-bottom: 1.25rem; flex-grow: 1; font-size: var(--fs-small); }
.three-way .button { align-self: flex-start; }
@media (max-width: 900px) {
  .three-ways { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------
 * Soft inline link (hero gentle CTA)
 * ------------------------------------------------------------------ */
.soft-link {
  display: inline-block; margin-top: 0.5rem;
  text-decoration: none; color: var(--c-accent);
  font-weight: 500; font-size: var(--fs-base);
  border-bottom: 1px solid transparent;
  transition: border-color 0.12s;
}
.soft-link:hover { border-bottom-color: var(--c-accent); }

/* ------------------------------------------------------------------
 * Form (Notify-me on Downloads page)
 * ------------------------------------------------------------------ */
.notify-form {
  display: flex; gap: 0.5rem; margin: 1rem 0;
  flex-wrap: wrap;
}
.notify-form input[type="email"] {
  flex: 1; min-width: 220px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--c-border); border-radius: var(--r-sm);
  font: inherit;
}
.notify-form input[type="email"]:focus {
  outline: 2px solid var(--c-accent); outline-offset: 1px;
}

/* ------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------ */
.site-footer {
  padding: 3rem 0 2rem;
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-border-soft);
  font-size: var(--fs-small);
  color: var(--c-text-soft);
}
.site-footer__row {
  display: flex; flex-wrap: wrap; gap: 2rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.site-footer__col h5 {
  font-size: var(--fs-tiny); text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--c-text-quiet);
  margin-bottom: 0.75rem; font-weight: 600;
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li { margin-bottom: 0.4rem; }
.site-footer__col a { color: var(--c-text-soft); text-decoration: none; }
.site-footer__col a:hover { color: var(--c-text); }
.site-footer__line {
  border-top: 1px solid var(--c-border-soft);
  padding-top: 1.25rem;
  font-size: var(--fs-tiny); color: var(--c-text-quiet);
  display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between;
}

/* ------------------------------------------------------------------
 * Utilities
 * ------------------------------------------------------------------ */
.text-soft   { color: var(--c-text-soft); }
.text-quiet  { color: var(--c-text-quiet); }
.text-small  { font-size: var(--fs-small); }
.text-tiny   { font-size: var(--fs-tiny); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Editorial heading spacing — h1/h2/h3 get proper margin-bottom so they don't crash into the next paragraph */
.prose h1, article h1, .prose-centre h1, main header > h1 { margin-bottom: 1rem; }
.prose h2, article h2, .prose-centre h2 { margin-top: 1.25rem; margin-bottom: 0.75rem; }
.prose h3, article h3, .prose-centre h3 { margin-top: 1rem; margin-bottom: 0.4rem; }
.prose h2:first-child, article h2:first-child, .prose-centre h2:first-child { margin-top: 0; }
.section-num + h2 { margin-top: 0.5rem; }
