/* ══════════════════════════════════════════════════════════════
   Atlas Capital Infrastructure — Website stylesheet
   Editorial, structural, typographic-first. Restraint is the design.

   Component catalog (search for the heading to jump):
     01 Tokens            08 Section structure     15 Diagrams
     02 Reset & base      09 Grids & cards         16 Team
     03 Typography        10 Lists                 17 Perspectives
     04 Buttons           11 Stats                 18 Forms / CTA
     05 Announcement bar  12 Feature rows          19 Footer
     06 Header & nav      13 Sub-navigation        20 Prose (legal)
     07 Hero              14 Dark sections         21 Motion, a11y, print, responsive
   ══════════════════════════════════════════════════════════════ */

@import url("fonts/fonts.css");

/* ─────────────────────────────────────────
   01 Tokens
   ───────────────────────────────────────── */
:root {
  /* Brand */
  --primary: #0f1e2e;          /* navy anchor: hero, dark sections, footer */
  --primary-900: #13243a;      /* dark card hover */
  --primary-800: #1c3650;
  --accent-mint: #b9dfd2;
  --accent-teal: #4fd1b5;      /* interactive accent: hover, eyebrows, active nav */
  --globe-tint: 185, 223, 210; /* the hero globe's wire colour, as an r, g, b triple read by globe.js */
  --accent-blue: #547fc9;      /* icons, rules, focus (3:1 on white: UI only) */
  --accent-blue-text: #3d63a8; /* small blue text: counters, labels (4.5:1+ on white) */
  --accent-red: #c65e5e;
  --gold: #b8923a;             /* signal only (favicon peak, single highlights) */

  /* Neutrals (warm, website track) */
  --neutral-50: #f8f8f8;
  --neutral-100: #f1f2f4;
  --neutral-200: #e5e7eb;
  --neutral-300: #d1d5db;
  --neutral-400: #9ca3af;      /* decorative only (never for text under 18px) */
  --neutral-500: #6b7280;      /* captions and small labels on light surfaces */
  --neutral-600: #5a6577;
  --neutral-800: #1a202c;
  --white: #ffffff;
  --text-inverse: #f8fafc;

  /* On dark */
  --on-dark-body: rgba(255, 255, 255, 0.55);
  --on-dark-strong: rgba(255, 255, 255, 0.9);
  --on-dark-muted: rgba(255, 255, 255, 0.5);
  --on-dark-rule: rgba(255, 255, 255, 0.08);

  /* Eyebrows / counters */
  --eyebrow: var(--accent-blue-text);
  --eyebrow-dark: var(--accent-teal);

  /* Type */
  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --font-logo: 'League Spartan', 'Inter', system-ui, sans-serif;
  --font-tagline: 'Lato', 'Inter', system-ui, sans-serif;
  --display-weight: 400;

  /* Layout */
  --container: 1200px;
  --container-narrow: 780px;
  --gutter: 32px;
  --header-h: 64px;
  --announce-h: 40px;

  /* Motion */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ─────────────────────────────────────────
   02 Reset & base
   ───────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--neutral-600);
  background: var(--white);
  line-height: 1.7;
  font-size: 0.9375rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}

a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

img, svg { max-width: 100%; display: block; }
svg { height: auto; }

button {
  font-family: inherit;
  cursor: pointer;
}

hr {
  border: 0;
  border-top: 1px solid var(--neutral-200);
  margin: 48px 0;
}

::selection {
  background: var(--accent-mint);
  color: var(--primary);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
}

.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─────────────────────────────────────────
   03 Typography
   ───────────────────────────────────────── */
h1, h2, .display {
  font-family: var(--font-display);
  color: var(--neutral-800);
  font-weight: var(--display-weight);
  font-optical-sizing: auto;
}

h3, h4, h5 {
  color: var(--neutral-800);
  font-weight: 600;
}

h1 {
  font-size: clamp(3rem, 5vw, 4.75rem);
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0 0 28px;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.25rem, 3.75vw, 3.25rem);
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0 0 20px;
  text-wrap: balance;
}

h3 {
  font-size: 1.0625rem;
  line-height: 1.35;
  margin: 0 0 10px;
}

h4 {
  font-size: 1rem;
  line-height: 1.35;
  margin: 0 0 8px;
}

p { margin: 0 0 16px; }

strong { font-weight: 600; color: var(--neutral-800); }

em { font-style: italic; }

.lede {
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--neutral-600);
  max-width: 44em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--eyebrow);
  margin-bottom: 24px;
}

.eyebrow::after {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
  flex-shrink: 0;
}

.eyebrow.no-rule::after { display: none; }

.caption {
  font-size: 0.75rem;
  color: var(--neutral-500);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neutral-600);
  padding: 4px 8px;
  border: 1px solid var(--neutral-200);
  line-height: 1.3;
}

.num,
.tabular {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.text-link {
  position: relative;
  color: var(--neutral-800);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--neutral-300);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.text-link:hover {
  color: var(--accent-blue-text);
  border-color: var(--accent-blue);
}

.text-link .arrow { margin-left: 6px; }

/* ─────────────────────────────────────────
   04 Buttons
   ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 36px;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 0;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--accent-teal);
  border-color: var(--accent-teal);
  color: var(--primary);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--neutral-300);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary-light {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn-primary-light:hover {
  background: var(--accent-teal);
  border-color: var(--accent-teal);
  color: var(--primary);
}

.btn-outline-light {
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
  color: var(--accent-teal);
  border-color: var(--accent-teal);
}

/* Buttons set side by side share one width, the widest of them. They stack full width on phones (section 22). */
.btn-group {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 16px;
  width: max-content;
  max-width: 100%;
}

/* ─────────────────────────────────────────
   05 Announcement bar
   ───────────────────────────────────────── */
.announce {
  background: var(--primary);
  color: var(--on-dark-body);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--on-dark-rule);
}

.announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: var(--announce-h);
  padding: 8px 0;
}

.announce .announce-tag {
  color: var(--accent-teal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.6875rem;
}

.announce a.announce-link {
  color: var(--on-dark-strong);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.announce a.announce-link:hover {
  color: var(--accent-teal);
  border-color: var(--accent-teal);
}

@media (max-width: 640px) {
  .announce-detail { display: none; }
  .announce-inner { gap: 10px; }
}

.announce-close {
  margin-left: 8px;
  background: transparent;
  border: 0;
  color: var(--on-dark-muted);
  font-size: 1rem;
  line-height: 1;
  padding: 4px 6px;
  transition: color 0.2s;
}

.announce-close:hover { color: var(--white); }

.announce.is-hidden,
html.announce-dismissed .announce { display: none; }

/* ─────────────────────────────────────────
   06 Header & nav
   ───────────────────────────────────────── */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--neutral-200);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

header.site-header.scrolled {
  border-bottom-color: transparent;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

/* Wordmark — approved font-only execution (League Spartan 200).
   The tagline is dropped at header size per the small-size lockup rule;
   the full stacked lockup (.logo-lockup) is used in the footer. */
.wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-logo);
  font-weight: 200;
  font-size: 1.75rem;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--primary);
  padding-top: 0.12em; /* optical: League Spartan sits high */
  transition: opacity 0.2s var(--ease);
}

.wordmark:hover { opacity: 0.7; }

.logo-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.logo-lockup .wm {
  font-family: var(--font-logo);
  font-weight: 200;
  letter-spacing: 0.06em;
  line-height: 0.9;
  font-size: 52px;
  color: var(--primary);
}

.logo-lockup .tag {
  font-family: var(--font-tagline);
  font-weight: 300;
  text-transform: uppercase;
  white-space: nowrap;
  color: #5b7088;
  font-size: 10.7px;
  letter-spacing: 0.566em;
  padding-left: 0.566em;
  margin-top: 9px;
}

.logo-lockup.on-dark .wm { color: var(--text-inverse); }
.logo-lockup.on-dark .tag { color: rgba(255, 255, 255, 0.6); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--neutral-600);
  letter-spacing: 0.01em;
}

.nav-links > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  transition: color 0.25s var(--ease);
  white-space: nowrap;
}

.nav-links > a:hover { color: var(--accent-teal); }

.nav-links > a.active { color: var(--neutral-800); }

.nav-links > a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--accent-teal);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--primary);
  color: var(--white);
  border: 1px solid var(--primary);
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn-nav:hover {
  background: var(--accent-teal);
  border-color: var(--accent-teal);
  color: var(--primary);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--neutral-200);
  background: var(--white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.15s;
}

.menu-toggle:hover { background: var(--neutral-50); }

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--neutral-800);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 190;
  background: var(--primary);
  padding: 32px var(--gutter) 48px;
  overflow-y: auto;
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--on-dark-rule);
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-inverse);
  letter-spacing: -0.01em;
}

.mobile-nav a.active { color: var(--accent-teal); }

.mobile-nav .mobile-nav-foot {
  margin-top: 32px;
  display: grid;
  gap: 12px;
}

.mobile-nav .mobile-nav-foot a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  padding: 6px 0;
  border: 0;
  color: var(--on-dark-body);
}

.mobile-nav .btn { margin-top: 24px; width: 100%; }

body.nav-open { overflow: hidden; }

/* ─────────────────────────────────────────
   07 Hero
   ───────────────────────────────────────── */
.hero {
  background: var(--primary);
  padding: 160px 0 140px;
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.hero.hero-compact { padding: 120px 0 104px; }

.hero .container { position: relative; }

/* Hero eyebrow: the label is a <p>, so these declarations must outrank `.hero p` (which would otherwise set it to 17px).
   Treatment follows the first build: 11px, 0.15em tracking, a 2px teal rule above the label rather than beside it. */
.hero .eyebrow {
  display: block;
  color: var(--eyebrow-dark);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1.5;
  max-width: none;
  margin: 0 0 32px;
}

.hero .eyebrow::before {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--accent-teal);
  margin-bottom: 24px;
}

.hero .eyebrow::after { display: none; }

.hero h1 {
  color: var(--text-inverse);
  margin-bottom: 32px;
  max-width: 800px;
}

.hero p {
  color: var(--on-dark-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  max-width: 720px;
  margin: 0 0 48px;
}

.hero p:last-child { margin-bottom: 0; }

.hero-cta {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 16px;
  width: max-content;
  max-width: 100%;
}

.hero-content { position: relative; z-index: 1; max-width: 760px; }

.hero-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  pointer-events: none;
}

#atlas-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.hero-meta {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--on-dark-rule);
}

.hero-meta div {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.hero-meta strong {
  display: block;
  color: var(--on-dark-strong);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.875rem;
  margin-top: 4px;
}

/* ─────────────────────────────────────────
   08 Section structure
   ───────────────────────────────────────── */
main { counter-reset: section; }

section { padding: 144px 0; }

section.section-sm { padding: 96px 0; }

section.section-xs { padding: 64px 0; }

/* Anchored sections clear the sticky header when reached from a link. Pages with a sub-nav add its height in page-scoped CSS. */
section[id] { scroll-margin-top: var(--header-h); }

.bg-neutral { background: var(--neutral-50); }

.section-header { margin-bottom: 80px; }

.section-header.tight { margin-bottom: 48px; }

.section-header h2 { margin-bottom: 20px; }

.section-header h2::before {
  counter-increment: section;
  content: counter(section, decimal-leading-zero);
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--accent-blue-text);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.section-header.no-counter h2::before { display: none; }

.section-header p {
  color: var(--neutral-600);
  font-size: 1.0625rem;
  line-height: 1.75;
  max-width: 680px;
}

.section-header p:last-child { margin-bottom: 0; }

.section-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 96px;
  align-items: start;
}

.section-split .section-header { margin-bottom: 0; }

.section-split.sticky > :first-child {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.editorial-body {
  max-width: 780px;
  font-size: 1.0625rem;
  line-height: 1.85;
}

.editorial-body p {
  margin-bottom: 24px;
  color: var(--neutral-600);
}

.editorial-body p:last-child { margin-bottom: 0; }

.editorial-body p.close {
  color: var(--neutral-800);
  font-weight: 500;
}

.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--neutral-800);
  max-width: 880px;
  margin: 0;
  padding-left: 32px;
  border-left: 2px solid var(--accent-blue);
}

.pull-quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neutral-500);
  margin-top: 24px;
}

.section-foot {
  margin-top: 64px;
}

/* ─────────────────────────────────────────
   09 Grids & cards (1px structural grids)
   ───────────────────────────────────────── */
.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 1px;
  background: var(--neutral-200);
  border: 1px solid var(--neutral-200);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.grid-2 > *, .grid-3 > *, .grid-4 > * { background: var(--white); }

.bg-neutral .grid-2 > *,
.bg-neutral .grid-3 > *,
.bg-neutral .grid-4 > * { background: var(--neutral-50); }

.card {
  padding: 40px;
  transition: background 0.3s var(--ease);
  position: relative;
}

.card:hover,
.bg-neutral .card:hover { background: var(--white); }

.card h3 { color: var(--neutral-800); }

.card p {
  color: var(--neutral-600);
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.card-icon {
  display: block;
  width: 24px;
  height: 24px;
  color: var(--accent-blue-text);
  margin-bottom: 24px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-index {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent-blue-text);
  margin-bottom: 24px;
}

.card-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neutral-800);
  transition: color 0.2s var(--ease);
}

.card-link:hover { color: var(--accent-blue); }

a.card { display: block; color: inherit; }

a.card:hover h3 { color: var(--accent-blue); }

.card ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.card ul li {
  position: relative;
  padding-left: 18px;
  font-size: 0.8125rem;
  line-height: 1.55;
  margin-bottom: 8px;
  color: var(--neutral-600);
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 1px;
  background: var(--accent-blue);
}

/* Open grid (no card boxes) */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--neutral-200);
}

.benefit-item {
  padding: 48px 48px 48px 0;
  border-top: 1px solid var(--neutral-200);
}

.benefit-item:nth-child(even) {
  padding: 48px 0 48px 48px;
  border-left: 1px solid var(--neutral-200);
}

.benefit-item h3 { color: var(--neutral-800); margin-bottom: 12px; }

.benefit-item p {
  color: var(--neutral-600);
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.benefit-index {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent-blue-text);
  margin-bottom: 16px;
}

/* Workflow steps */
.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px 0;
}

.workflow.cols-3 { grid-template-columns: repeat(3, 1fr); }
.workflow.cols-6 { grid-template-columns: repeat(6, 1fr); }

.step {
  padding: 0 32px;
  border-left: 1px solid var(--neutral-200);
}

.step:first-child,
.workflow .step:nth-child(4n+1),
.workflow.cols-3 .step:nth-child(3n+1) { padding-left: 0; border-left: none; }

.workflow.cols-3 .step:nth-child(4n+1):not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid var(--neutral-200); }

.step-num {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--accent-blue-text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.step h4 { color: var(--neutral-800); margin-bottom: 12px; }

.step p {
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 0;
}

/* ─────────────────────────────────────────
   10 Lists
   ───────────────────────────────────────── */
.kv-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--neutral-200);
}

.kv-list > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--neutral-200);
}

.kv-list dt {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neutral-500);
  padding-top: 4px;
}

.kv-list dd {
  margin: 0;
  color: var(--neutral-800);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.kv-list dd small {
  display: block;
  color: var(--neutral-600);
  font-size: 0.8125rem;
  margin-top: 4px;
}

.rule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--neutral-200);
}

.rule-list li {
  position: relative;
  padding: 16px 0 16px 64px;
  border-bottom: 1px solid var(--neutral-200);
  font-size: 0.9375rem;
  color: var(--neutral-600);
  line-height: 1.6;
}

.rule-list li::before {
  content: "0" counter(item);
  counter-increment: item;
  position: absolute;
  left: 0;
  top: 21px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent-blue-text);
}

.rule-list { counter-reset: item; }

.rule-list li strong { color: var(--neutral-800); }

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--neutral-600);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 12px;
  height: 1px;
  background: var(--accent-blue);
}

.check-list.on-dark li { color: var(--on-dark-body); }
.check-list.on-dark li::before { background: var(--accent-teal); }

/* Two-column "does / does not" */
.does-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--neutral-200);
  border: 1px solid var(--neutral-200);
}

.does-grid > div {
  background: var(--white);
  padding: 40px;
}

.does-grid h3 {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neutral-500);
  margin-bottom: 20px;
}

.does-grid h3.yes { color: var(--accent-blue); }
.does-grid h3.no { color: var(--accent-red); }

.does-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.does-grid li {
  padding: 12px 0;
  border-top: 1px solid var(--neutral-200);
  font-size: 0.9375rem;
  color: var(--neutral-800);
  line-height: 1.5;
}

.does-grid li small {
  display: block;
  color: var(--neutral-600);
  font-size: 0.8125rem;
  margin-top: 2px;
}

/* ─────────────────────────────────────────
   11 Stats
   ───────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 32px;
}

.stats-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.stat-item {
  padding: 48px 0;
  border-top: 1px solid var(--neutral-200);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 4.5vw, 4rem);
  color: var(--neutral-800);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--neutral-600);
  line-height: 1.55;
}

.stats-asof {
  margin-top: 24px;
  font-size: 0.75rem;
  color: var(--neutral-500);
  letter-spacing: 0.02em;
}

.section-dark .stats-asof { color: var(--on-dark-muted); }

/* ─────────────────────────────────────────
   12 Feature rows (text + visual)
   ───────────────────────────────────────── */
.feature-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 96px;
  align-items: start;
  padding: 96px 0;
  border-top: 1px solid var(--neutral-200);
}

.feature-row:first-of-type { border-top: 0; padding-top: 0; }

.feature-row.reverse { grid-template-columns: 7fr 5fr; }

.feature-row.reverse .feature-copy { order: 2; }

.feature-copy h2 { font-size: clamp(1.9rem, 2.8vw, 2.5rem); }

.feature-copy .eyebrow { margin-bottom: 20px; }

.feature-copy p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--neutral-600);
}

.feature-copy .check-list { margin-top: 24px; }

.feature-copy .check-list li { font-size: 0.875rem; padding: 8px 0 8px 24px; }

.feature-copy .kv-list > div { grid-template-columns: 112px 1fr; gap: 20px; }

.feature-copy .kv-list dd { font-size: 0.875rem; }

.feature-visual { position: sticky; top: calc(var(--header-h) + 40px); }

/* On pages with a sub-nav, sticky elements clear it as well (the sub-nav is 52px and sits under the header). */
.subnav ~ section .feature-visual,
.subnav ~ section .section-split.sticky > :first-child { top: calc(var(--header-h) + 52px + 40px); }

/* ─────────────────────────────────────────
   13 Sub-navigation (in-page, sticky)
   ───────────────────────────────────────── */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 150;
  background: var(--white);
  border-bottom: 1px solid var(--neutral-200);
}

.subnav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 52px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.subnav-inner::-webkit-scrollbar { display: none; }

.subnav-title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neutral-500);
  padding-right: 24px;
  margin-right: 8px;
  border-right: 1px solid var(--neutral-200);
  white-space: nowrap;
}

.subnav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 14px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--neutral-600);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.subnav a:hover { color: var(--neutral-800); }

.subnav a.active { color: var(--neutral-800); }

.subnav a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: -1px;
  height: 2px;
  background: var(--accent-teal);
}

/* ─────────────────────────────────────────
   14 Dark sections
   ───────────────────────────────────────── */
.section-dark {
  background: var(--primary);
  color: var(--white);
}

.section-dark h1, .section-dark h2,
.section-dark .section-header h2,
.section-dark h3, .section-dark h4 { color: var(--text-inverse); }

.section-dark .section-header h2::before { color: var(--eyebrow-dark); }

.section-dark .eyebrow { color: var(--eyebrow-dark); }

.section-dark p,
.section-dark .section-header p,
.section-dark .lede,
.section-dark .editorial-body p { color: var(--on-dark-body); }

.section-dark .editorial-body p.close { color: var(--on-dark-strong); }

.section-dark strong { color: var(--on-dark-strong); }

.section-dark .grid-2, .section-dark .grid-3, .section-dark .grid-4 {
  background: var(--on-dark-rule);
  border-color: var(--on-dark-rule);
}

.section-dark .grid-2 > *, .section-dark .grid-3 > *, .section-dark .grid-4 > * {
  background: var(--primary);
}

.section-dark .card { padding: 44px; }

.section-dark .card:hover { background: rgba(255, 255, 255, 0.03); }

.section-dark .card h3 { color: var(--text-inverse); }

.section-dark .card p { color: var(--on-dark-body); }

.section-dark .card ul li { color: var(--on-dark-body); }

.section-dark .card ul li::before { background: var(--accent-teal); }

.section-dark .card-icon,
.section-dark .card-index,
.section-dark .benefit-index,
.section-dark .step-num { color: var(--accent-teal); }

.section-dark .card-link { color: var(--on-dark-strong); }

.section-dark .card-link:hover { color: var(--accent-teal); }

.section-dark .benefits-grid { border-color: var(--on-dark-rule); }

.section-dark .benefit-item { border-color: var(--on-dark-rule); }

.section-dark .benefit-item p { color: var(--on-dark-body); }

.section-dark .stat-item { border-color: var(--on-dark-rule); }

.section-dark .stat-number { color: var(--text-inverse); }

.section-dark .stat-label { color: var(--on-dark-body); }

.section-dark .kv-list,
.section-dark .kv-list > div,
.section-dark .rule-list,
.section-dark .rule-list li { border-color: var(--on-dark-rule); }

.section-dark .kv-list dd,
.section-dark .rule-list li strong { color: var(--on-dark-strong); }

.section-dark .kv-list dt { color: var(--on-dark-muted); }

.section-dark .rule-list li { color: var(--on-dark-body); }

.section-dark .rule-list li::before { color: var(--accent-teal); }

.section-dark .pull-quote { color: var(--text-inverse); border-color: var(--accent-teal); }

.section-dark .pull-quote cite { color: var(--on-dark-muted); }

.section-dark .text-link { color: var(--on-dark-strong); border-color: rgba(255, 255, 255, 0.25); }

.section-dark .text-link:hover { color: var(--accent-teal); border-color: var(--accent-teal); }

.section-dark .label { color: var(--on-dark-body); border-color: rgba(255, 255, 255, 0.18); }

.section-dark hr { border-color: var(--on-dark-rule); }

/* Statement block (dark sub-hero) */
.statement h2 { max-width: 880px; }

.statement .statement-body {
  color: var(--on-dark-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  max-width: 700px;
  margin: 0 0 48px;
}

/* ─────────────────────────────────────────
   15 Diagrams (HTML/CSS, brand palette)
   ───────────────────────────────────────── */
.diagram {
  border: 1px solid var(--neutral-200);
  background: var(--white);
  padding: 40px;
}

.bg-neutral .diagram { background: var(--white); }

.diagram-caption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--neutral-500);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.diagram-caption .label { color: var(--neutral-400); border-color: var(--neutral-200); }

.diagram-title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neutral-500);
  margin: 0 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.diagram-title span:last-child { font-weight: 400; letter-spacing: 0.06em; }

/* Lifecycle flow — nodes in a row with connectors, layers beneath */
.flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  counter-reset: flow;
}

.flow.cols-4 { grid-template-columns: repeat(4, 1fr); }
.flow.cols-5 { grid-template-columns: repeat(5, 1fr); }

.flow-node {
  position: relative;
  padding: 0 20px 0 0;
}

.flow-node + .flow-node { padding-left: 20px; }

.flow-node::before {
  content: "0" counter(flow);
  counter-increment: flow;
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent-blue-text);
  margin-bottom: 14px;
  padding-left: 18px;
}

.flow-node::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--neutral-200);
  z-index: -1;
}

.flow-node:first-child::after { left: 0; }

.flow-node .dot {
  position: absolute;
  top: 2px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--white);
  border: 1.5px solid var(--accent-blue);
  border-radius: 50%;
}

.flow-node + .flow-node .dot { left: 20px; }

.flow-node h4 {
  font-size: 0.9375rem;
  margin: 0 0 6px;
  padding-top: 18px;
}

.flow-node p {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--neutral-600);
  margin: 0;
}

.flow-layers {
  margin-top: 40px;
  display: grid;
  gap: 1px;
  background: var(--neutral-200);
  border: 1px solid var(--neutral-200);
}

.flow-layer {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
  padding: 18px 24px;
  background: var(--neutral-50);
}

.flow-layer.deep { background: var(--primary); color: var(--white); }

.flow-layer strong {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neutral-800);
}

.flow-layer.deep strong { color: var(--accent-teal); }

.flow-layer span {
  font-size: 0.8125rem;
  color: var(--neutral-600);
  line-height: 1.5;
}

.flow-layer.deep span { color: var(--on-dark-body); }

/* State machine — horizontal nodes with arrows */
.states {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.state {
  flex: 1 1 0;
  position: relative;
  padding: 18px 16px;
  border: 1px solid var(--neutral-200);
  background: var(--white);
  min-width: 0;
}

.state + .state { margin-left: 28px; }

.state + .state::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -29px;
  width: 28px;
  height: 1px;
  background: var(--neutral-300);
}

.state + .state::after {
  content: "";
  position: absolute;
  top: calc(50% - 3px);
  left: -8px;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--neutral-400);
  border-right: 1px solid var(--neutral-400);
  transform: rotate(45deg);
}

.state .state-index {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent-blue-text);
  margin-bottom: 10px;
}

.state h4 {
  font-size: 0.875rem;
  margin: 0 0 6px;
}

.state p {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--neutral-600);
  margin: 0;
}

.state.terminal {
  background: var(--primary);
  border-color: var(--primary);
}

.state.terminal h4 { color: var(--text-inverse); }
.state.terminal p { color: var(--on-dark-body); }
.state.terminal .state-index { color: var(--accent-teal); }

.state.alert { border-color: var(--accent-red); }
.state.alert .state-index { color: var(--accent-red); }

.states-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--neutral-200);
  font-size: 0.75rem;
  color: var(--neutral-600);
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.states-note strong {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neutral-500);
  font-weight: 600;
}

/* Priority tower — capital structure */
.tower {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.tower-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
}

.tower-stack {
  display: grid;
  gap: 6px;
}

.tranche {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--primary);
  color: var(--white);
  position: relative;
}

.tranche.a { width: 100%; }
.tranche.b { width: 88%; background: var(--primary-800); }
.tranche.c { width: 76%; background: #2e5270; }
.tranche.d { width: 64%; background: #416f93; }
.tranche.residual { width: 56%; background: var(--white); color: var(--neutral-800); border: 1px dashed var(--neutral-400); }

.tranche .t-name {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .tranche { grid-template-columns: 1fr; gap: 6px; }
  .tranche .t-fig { text-align: left; }
}

.tranche .t-name small {
  display: block;
  font-weight: 400;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 2px;
}

.tranche .t-fig {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
  opacity: 0.85;
  line-height: 1.5;
}

.tranche.residual .t-fig { opacity: 1; color: var(--neutral-600); }

.sub-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neutral-500);
  padding: 2px 0 2px 20px;
}

.sub-rule::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--neutral-300);
}

.tower-legend {
  border-top: 1px solid var(--neutral-200);
}

.tower-legend div {
  padding: 14px 0;
  border-bottom: 1px solid var(--neutral-200);
}

.tower-legend strong {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neutral-500);
  font-weight: 600;
  margin-bottom: 4px;
}

.tower-legend span {
  font-size: 0.8125rem;
  color: var(--neutral-800);
  line-height: 1.5;
}

/* Waterfall steps (ordered) */
.waterfall {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: wf;
  border-top: 1px solid var(--neutral-200);
}

.waterfall li {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--neutral-200);
  font-size: 0.875rem;
  color: var(--neutral-800);
}

.waterfall li::before {
  content: counter(wf, decimal-leading-zero);
  counter-increment: wf;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent-blue-text);
}

.waterfall li span.wf-type {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neutral-500);
  white-space: nowrap;
}

.waterfall li.conditional { color: var(--neutral-600); }

.waterfall li.conditional::before { color: var(--accent-red); }

/* Stacked layers (verification) */
.layers { display: grid; gap: 1px; background: var(--neutral-200); border: 1px solid var(--neutral-200); }

.layer {
  display: grid;
  grid-template-columns: 56px 200px 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px;
  background: var(--white);
}

.layer .layer-index {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--neutral-800);
}

.layer h4 { margin: 0; font-size: 0.9375rem; }

.layer h4 small {
  display: block;
  font-weight: 400;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neutral-500);
  margin-top: 4px;
}

.layer p { margin: 0; font-size: 0.8125rem; line-height: 1.55; }

/* Party map (SVG wrapper) */
.party-map svg { width: 100%; height: auto; display: block; }

.party-map text { font-family: var(--font-body); }

@media (max-width: 768px) {
  .party-map .table-scroll svg { min-width: 860px; }
  .party-map .diagram-caption { margin-top: 12px; }
}

/* Abstract report / statement figure */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.figure-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  white-space: nowrap;
}

.figure-table th + th, .figure-table td + td { padding-left: 16px; }

.figure-table caption {
  text-align: left;
  white-space: normal;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neutral-500);
  font-weight: 600;
  padding-bottom: 16px;
}

.figure-table th {
  text-align: left;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neutral-500);
  font-weight: 600;
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--neutral-800);
}

.figure-table td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--neutral-200);
  color: var(--neutral-800);
  font-variant-numeric: tabular-nums;
}

.figure-table th.r, .figure-table td.r { text-align: right; padding-right: 0; }

.figure-table tr.total td { font-weight: 600; border-bottom: 2px solid var(--neutral-800); }

.figure-table td.muted { color: var(--neutral-400); }

/* ─────────────────────────────────────────
   16 Team
   ───────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--neutral-200);
  border: 1px solid var(--neutral-200);
}

.team-card {
  background: var(--white);
  padding: 48px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  align-items: start;
}

.team-photo {
  width: 120px;
  height: 150px;
  background: var(--primary);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 12px;
  overflow: hidden;
}

.team-photo img { width: 100%; height: 100%; object-fit: cover; }

.team-photo .monogram {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-inverse);
  line-height: 1;
}

.team-card h3 { font-size: 1.25rem; margin-bottom: 4px; font-weight: 600; }

.team-role {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue-text);
  font-weight: 500;
  margin-bottom: 20px;
}

.team-card p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--neutral-600);
}

.team-card p:last-child { margin-bottom: 0; }

.team-links {
  margin-top: 16px;
  display: flex;
  gap: 20px;
}

.team-links a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neutral-800);
  border-bottom: 1px solid var(--neutral-300);
  transition: color 0.2s, border-color 0.2s;
}

.team-links a:hover { color: var(--accent-blue); border-color: var(--accent-blue); }

/* ─────────────────────────────────────────
   17 Perspectives (articles)
   ───────────────────────────────────────── */
.article-list {
  border-top: 1px solid var(--neutral-200);
}

.article-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid var(--neutral-200);
}

.article-meta {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neutral-500);
  line-height: 1.8;
}

.article-meta strong {
  display: block;
  color: var(--accent-blue-text);
  font-weight: 500;
}

.article-item h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.article-item h3 a { transition: color 0.2s var(--ease); }

.article-item h3 a:hover { color: var(--accent-blue); }

.article-item p {
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 680px;
}

.article-body {
  max-width: 720px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--neutral-200);
}

.article-body p { font-size: 1rem; line-height: 1.8; }

.article-body details summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neutral-800);
  display: inline-block;
  border-bottom: 1px solid var(--neutral-300);
  padding-bottom: 2px;
  margin-bottom: 20px;
}

.article-body details summary::-webkit-details-marker { display: none; }

.article-body details[open] summary { color: var(--accent-blue); border-color: var(--accent-blue); }

/* ─────────────────────────────────────────
   18 Forms / CTA
   ───────────────────────────────────────── */
.cta-section {
  background: var(--primary);
  color: var(--white);
  padding: 144px 0;
}

.cta-split {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 96px;
  align-items: start;
}

.cta-copy h2 { color: var(--text-inverse); margin-bottom: 24px; }

.cta-copy p {
  color: var(--on-dark-body);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 40px;
}

.cta-copy .cta-meta {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--on-dark-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0;
}

.cta-copy .cta-meta a {
  color: var(--accent-mint);
  transition: color 0.2s;
}

.cta-copy .cta-meta a:hover { color: var(--accent-teal); }

.cta-points {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  border-top: 1px solid var(--on-dark-rule);
}

.cta-points li {
  position: relative;
  padding: 14px 0 14px 32px;
  border-bottom: 1px solid var(--on-dark-rule);
  font-size: 0.875rem;
  color: var(--on-dark-body);
  line-height: 1.6;
}

.cta-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(14px + 0.8em);
  width: 12px;
  height: 1px;
  background: var(--accent-teal);
}

.cta-points li strong { color: var(--on-dark-strong); font-weight: 500; }

.cta-centered {
  text-align: center;
  max-width: 740px;
  margin: 0 auto;
}

.cta-centered h2 { color: var(--text-inverse); margin-bottom: 24px; }

.cta-centered p {
  color: var(--on-dark-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 48px;
}

.cta-centered .btn-group { justify-content: center; }

.contact-form { text-align: left; }

.form-grid {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr 1fr;
}

.form-field {
  padding: 24px 0;
  border-bottom: 1px solid var(--on-dark-rule);
}

.form-field.full { grid-column: span 2; }

.form-field:nth-child(odd):not(.full) { padding-right: 24px; }

.form-field:nth-child(even):not(.full) { padding-left: 24px; }

.form-grid label {
  font-size: 0.6875rem;
  color: var(--on-dark-muted);
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--white);
  outline: none;
  border-radius: 0;
}

.form-grid select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 20 20' fill='rgba(255,255,255,0.4)'><path d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 24px;
}

.form-grid select option { color: var(--neutral-800); }

.form-grid input::placeholder,
.form-grid textarea::placeholder { color: rgba(255, 255, 255, 0.22); }

.form-grid input:focus-visible,
.form-grid textarea:focus-visible,
.form-grid select:focus-visible {
  outline: none;
  box-shadow: 0 1px 0 0 var(--accent-teal);
}

.form-grid textarea {
  min-height: 72px;
  resize: vertical;
  line-height: 1.6;
}

/* Cloudflare Turnstile check, between the fields and the submit row */
.cf-turnstile { margin-top: 24px; }

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
}

.form-actions .btn { padding: 16px 40px; }

.form-note {
  font-size: 0.75rem;
  color: var(--on-dark-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

.form-status {
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--accent-mint);
  min-height: 1.4em;
}

/* Light form variant (contact page) */
.contact-form.light .form-field { border-color: var(--neutral-200); }
.contact-form.light .form-grid label { color: var(--neutral-400); }
.contact-form.light .form-grid input,
.contact-form.light .form-grid textarea,
.contact-form.light .form-grid select { color: var(--neutral-800); }
.contact-form.light .form-grid input::placeholder,
.contact-form.light .form-grid textarea::placeholder { color: var(--neutral-400); }
.contact-form.light .form-note { color: var(--neutral-400); }
.contact-form.light .form-status { color: var(--accent-blue); }
.contact-form.light .form-grid select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 20 20' fill='%239ca3af'><path d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z'/></svg>");
}

/* Contact details block */
.contact-details {
  display: grid;
  gap: 32px;
}

.contact-details h3 {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neutral-500);
  margin-bottom: 8px;
}

.contact-details p { margin: 0; color: var(--neutral-800); font-size: 1rem; }

.contact-details a { border-bottom: 1px solid var(--neutral-300); transition: color 0.2s, border-color 0.2s; }

.contact-details a:hover { color: var(--accent-blue); border-color: var(--accent-blue); }

/* Event block */
.event-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--on-dark-rule);
  border: 1px solid var(--on-dark-rule);
}

.event-block > div {
  background: var(--primary);
  padding: 48px;
}

.event-block h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 12px;
}

.event-block .kv-list { border-color: var(--on-dark-rule); }

.event-block .kv-list > div { grid-template-columns: 120px 1fr; border-color: var(--on-dark-rule); padding: 14px 0; }

/* ─────────────────────────────────────────
   19 Footer
   ───────────────────────────────────────── */
footer.site-footer {
  background: var(--primary);
  border-top: 1px solid var(--on-dark-rule);
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 48px;
  padding: 80px 0 64px;
}

/* Five link columns: the brand takes its own row above them at every width, as it already did below 1100px, so no link label wraps. */
.footer-brand { grid-column: 1 / -1; }

.footer-brand .logo-lockup { align-items: flex-start; }

/* 56/11.5 is the smallest locked lockup tier whose tagline clears the 11px text floor. */
.footer-brand .logo-lockup .wm { font-size: 56px; }

.footer-brand .logo-lockup .tag { font-size: 11.5px; margin-top: 10px; letter-spacing: 0.566em; padding-left: 0; }

.footer-brand p {
  margin: 28px 0 0;
  max-width: 300px;
  color: var(--on-dark-body);
  line-height: 1.65;
}

.footer-col h4 {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin: 0 0 20px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: var(--on-dark-body);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px 32px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--on-dark-rule);
  font-size: 0.75rem;
}

/* Row one: copyright and links. Row two: the fraud notice on its own line, so the full firm name never forces a wrap. */
.footer-bottom > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--on-dark-body); }

@media (max-width: 640px) {
  .footer-bottom { grid-template-columns: 1fr; }
  .footer-bottom > div:nth-child(2) { grid-column: 1; grid-row: auto; }
}

.footer-bottom a {
  color: var(--on-dark-body);
  transition: color 0.2s;
}

.footer-bottom a:hover { color: var(--white); }

.footer-bottom .legal-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* ─────────────────────────────────────────
   20 Prose (legal pages, long-form)
   ───────────────────────────────────────── */
.prose {
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.8;
}

.prose h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  margin: 64px 0 20px;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 { font-size: 1.0625rem; margin: 40px 0 12px; }

.prose p { margin-bottom: 20px; }

.prose ul, .prose ol { padding-left: 20px; margin: 0 0 20px; }

.prose li { margin-bottom: 8px; }

.prose .meta {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neutral-500);
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--neutral-200);
}

.prose a { color: var(--neutral-800); border-bottom: 1px solid var(--neutral-300); }

.prose a:hover { color: var(--accent-blue); border-color: var(--accent-blue); }

.prose-toc {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  font-size: 0.8125rem;
}

.prose-toc h4 {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neutral-500);
  margin-bottom: 16px;
}

.prose-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--neutral-200);
}

.prose-toc li { border-bottom: 1px solid var(--neutral-200); }

.prose-toc a {
  display: block;
  padding: 10px 0;
  color: var(--neutral-600);
  transition: color 0.2s;
}

.prose-toc a:hover { color: var(--neutral-800); }

.prose-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 96px;
  align-items: start;
}

.draft-notice {
  border: 1px solid var(--neutral-200);
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  font-size: 0.8125rem;
  color: var(--neutral-600);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* 404 */
.error-page {
  /* --vh-fill lets review.ps1 pin the viewport height; browsers use 100vh. */
  min-height: calc(var(--vh-fill, 100vh) - var(--header-h));
  display: flex;
  align-items: center;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 14vw, 11rem);
  line-height: 0.9;
  color: var(--neutral-200);
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

/* ─────────────────────────────────────────
   21 Motion, accessibility, print, responsive
   ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.06s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.12s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.18s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.24s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.30s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-visual { display: none; }
}

@media print {
  .announce, header.site-header, .mobile-nav, .subnav, .hero-visual, .skip-link, .btn-nav { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .hero, .section-dark, .cta-section, footer.site-footer { background: #fff !important; color: #000 !important; }
  .hero h1, .section-dark h2, .section-dark h3, .cta-copy h2 { color: #000 !important; }
  .hero p, .section-dark p, .cta-copy p { color: #333 !important; }
  section { padding: 32pt 0; }
  .reveal { opacity: 1; transform: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #666; }
}

@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: span 3; }
}

@media (max-width: 1024px) {
  h1 { font-size: 3rem; }

  section { padding: 96px 0; }
  section.section-sm { padding: 72px 0; }

  .hero { padding: 120px 0 100px; }
  .hero.hero-compact { padding: 96px 0 80px; }

  .hero-visual { display: none; }

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

  .section-split, .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 48px; }
  .feature-row.reverse .feature-copy { order: 0; }
  .feature-visual, .section-split.sticky > :first-child { position: static; }

  .workflow, .workflow.cols-6 { grid-template-columns: 1fr 1fr; gap: 48px 0; }
  .workflow.cols-3 { grid-template-columns: 1fr 1fr; }

  .step { padding: 0 32px 0 0; }
  .step:nth-child(odd) { border-left: none; padding-left: 0; }
  .step:nth-child(even) { border-left: 1px solid var(--neutral-200); padding-left: 32px; padding-right: 0; }

  .cta-split { grid-template-columns: 1fr; gap: 64px; }

  .benefits-grid { grid-template-columns: 1fr; }
  .benefit-item, .benefit-item:nth-child(even) { padding: 36px 0; border-left: none; }

  .section-header { margin-bottom: 56px; }

  .stats-grid, .stats-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }

  .editorial-body { font-size: 1rem; }

  .flow, .flow.cols-4, .flow.cols-5 { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .flow-node:nth-child(3n+1) { padding-left: 0; }
  .flow-node:nth-child(3n+1) .dot { left: 0; }

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

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

  .prose-layout { grid-template-columns: 1fr; gap: 48px; }
  .prose-toc { position: static; }

  .event-block { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-right .btn-nav { display: none; }
  .menu-toggle { display: flex; }

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

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

  .states { flex-direction: column; }
  .state + .state { margin-left: 0; margin-top: 28px; }
  .state + .state::before { top: -29px; left: 24px; width: 1px; height: 28px; }
  .state + .state::after { top: -10px; left: 21px; transform: rotate(135deg); }

  .flow, .flow.cols-4, .flow.cols-5 { grid-template-columns: 1fr 1fr; }
  .flow-node:nth-child(3n+1) { padding-left: 20px; }
  .flow-node:nth-child(3n+1) .dot { left: 20px; }
  .flow-node:nth-child(2n+1) { padding-left: 0; }
  .flow-node:nth-child(2n+1) .dot { left: 0; }

  .flow-layer { grid-template-columns: 1fr; gap: 8px; }

  .layer { grid-template-columns: 48px 1fr; }
  .layer p { grid-column: 2; }

  .kv-list > div { grid-template-columns: 1fr; gap: 6px; }

  .article-item { grid-template-columns: 1fr; gap: 16px; }

  .team-card { grid-template-columns: 1fr; padding: 32px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px 24px; padding: 56px 0 40px; }
  .footer-brand { grid-column: span 2; }

  .hero-meta { gap: 24px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }

  section { padding: 72px 0; }
  section.section-sm { padding: 56px 0; }

  .hero { padding: 96px 0 72px; }
  .hero.hero-compact { padding: 72px 0 56px; }

  h1 { font-size: 2.5rem; }

  .workflow, .workflow.cols-3, .workflow.cols-6 { grid-template-columns: 1fr; gap: 36px; }

  .step, .step:nth-child(odd), .step:nth-child(even), .step:first-child,
  .workflow .step:nth-child(4n+1), .workflow.cols-3 .step:nth-child(3n+1) {
    border-left: 2px solid var(--accent-blue);
    padding: 0 0 0 24px;
  }

  .card { padding: 28px; }
  .section-dark .card { padding: 32px; }
  .does-grid > div { padding: 28px; }
  .diagram { padding: 24px; }

  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: span 1; }
  .form-field:nth-child(odd):not(.full) { padding-right: 0; }
  .form-field:nth-child(even):not(.full) { padding-left: 0; }

  .form-actions {
    flex-direction: column-reverse;
    gap: 20px;
    align-items: stretch;
    text-align: center;
  }

  .section-header { margin-bottom: 48px; }

  .stats-grid, .stats-grid.cols-3 { grid-template-columns: 1fr; }
  .stat-item { padding: 32px 0; }

  .flow, .flow.cols-4, .flow.cols-5 { grid-template-columns: 1fr; }
  .flow-node, .flow-node + .flow-node, .flow-node:nth-child(3n+1) { padding-left: 24px; padding-right: 0; }
  .flow-node .dot, .flow-node + .flow-node .dot, .flow-node:nth-child(3n+1) .dot { left: 0; top: 2px; }
  .flow-node::after { top: 2px; bottom: -40px; left: 4px; right: auto; width: 1px; height: auto; }
  .flow-node:last-child::after { display: none; }

  .tranche.b, .tranche.c, .tranche.d, .tranche.residual { width: 100%; }

  .layer { grid-template-columns: 1fr; gap: 8px; }
  .layer p { grid-column: 1; }

  .waterfall li { grid-template-columns: 36px 1fr; }
  .waterfall li span.wf-type { grid-column: 2; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }

  .event-block > div { padding: 32px 24px; }

  .pull-quote { padding-left: 20px; }

  .mobile-nav a { font-size: 1.75rem; padding: 14px 0; }
}

/* ─────────────────────────────────────────
   22 Template-system additions
   Generic rules every version needs. Version-specific rules go in
   versions/<name>/overrides.css, never here.
   ───────────────────────────────────────── */

/* Eyebrow inside a section header keeps its own size and colour. */
.section-header .eyebrow {
  font-size: 0.6875rem;
  line-height: 1.5;
  max-width: none;
  color: var(--eyebrow);
}

.section-dark .section-header .eyebrow { color: var(--eyebrow-dark); }

/* Editorial splits: room between a pull quote and the prose, and before a rule list. */
.pull-quote + .editorial-body { margin-top: 48px; }
.editorial-body + .rule-list { margin-top: 48px; }

/* A layer bar with a link is a link across its whole row, so hovering anywhere on the row shows it:
   the label takes the link colour and the bar shifts one step in tone. */
a.flow-layer { color: inherit; text-decoration: none; transition: background 0.2s var(--ease); }
a.flow-layer strong { transition: color 0.2s var(--ease); }
a.flow-layer:hover { background: var(--neutral-100); }
a.flow-layer:hover strong { color: var(--accent-blue-text); }
a.flow-layer.deep:hover { background: var(--primary-800); }
a.flow-layer.deep:hover strong { color: var(--white); }

/* Lifecycle flow with three nodes (four and five are set above; all of them stack on phones). */
.flow.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) { .flow.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .flow.cols-3 { grid-template-columns: 1fr; } }

/* The caption link under a figure stays on one line; on phones the caption and its link stack. */
.diagram-caption .text-link { white-space: nowrap; }
@media (max-width: 640px) {
  .diagram-caption { flex-direction: column; gap: 10px; }
  .diagram-caption .text-link { white-space: normal; }
}

/* Link cards: the link line sits at the foot of every card, level across a row. */
a.card { display: flex; flex-direction: column; }
a.card .card-link { margin-top: auto; padding-top: 20px; align-self: flex-start; }

/* Text links set side by side under prose. */
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  margin-top: 40px;
}

/* Stacked meta lines in a closing band. */
.cta-copy .cta-meta + .cta-meta { margin-top: 14px; }

/* A feature row that is the only row in its section: the section supplies the padding. */
.feature-row.first { padding: 0; border-top: 0; }

/* A section that continues the one above it (same background, no gap). */
section.stacked { padding-top: 0; }

/* A bare stats strip stacked under a hero keeps a little room above its figures, so the rules on
   the figures do not sit on the hero's edge. */
section.stacked .stats-grid { margin-top: 40px; }

/* Anchored sections clear the sticky header; more when the page has a sub-nav. */
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
body.has-subnav section[id] { scroll-margin-top: calc(var(--header-h) + 52px); }

/* Buttons set side by side stack on phones, each the full width. */
@media (max-width: 640px) {
  .hero-cta, .btn-group { grid-auto-flow: row; grid-auto-columns: auto; width: 100%; }
}

/* A hero without the globe lets its headline run the full width of the page; the statement, buttons
   and meta row keep their measure. With the globe, the content stays in the left 760px. */
.hero .hero-content:last-child { max-width: none; }
.hero .hero-content:last-child h1 { max-width: none; }
.hero .hero-content:last-child .hero-meta { max-width: 760px; }

/* Figures built from deck keys (system/parts/figure-*.html). */

/* A figure without the bordered box: a title line, then the figure itself. */
.figure-plain .diagram-title { margin-bottom: 20px; }

/* Layer stack: the decisive tier is navy. */
.layer.deep { background: var(--primary); }
.layer.deep .layer-index, .layer.deep h4 { color: var(--white); }
.layer.deep h4 small { color: var(--accent-teal); }
.layer.deep p { color: var(--on-dark-body); }

/* Priority tower: tranche widths by position, senior first; the residual piece is drawn as equity. */
.tranche.n1 { width: 100%; }
.tranche.n2 { width: 88%; background: var(--primary-800); }
.tranche.n3 { width: 76%; background: #2e5270; }
.tranche.n4 { width: 64%; background: #416f93; }
.tranche.n5 { width: 56%; background: #5a89ad; }
.tranche.residual { width: 56%; background: var(--white); color: var(--neutral-800); border: 1px dashed var(--neutral-400); }
.tower-legend { margin-top: 8px; }
@media (max-width: 640px) { .tower-legend { grid-template-columns: 1fr; } }

/* Fact lists inside a feature row's copy column and inside cards. */
.feature-copy .check-list + .kv-list, .feature-copy p + .kv-list { margin-top: 32px; }
.card .kv-list { margin-top: 16px; }
.card .kv-list > div { grid-template-columns: 1fr; gap: 3px; padding: 10px 0; }
.card .kv-list dd { font-size: 0.8125rem; }

/* Party map: parties, connectors, the band, the funds rail. The column counts are set inline from the deck. */
.party-map { font-size: 0.8125rem; }
.pm-parties { display: grid; gap: 16px; }
.pm-party { border: 1px solid var(--neutral-300); background: var(--white); padding: 16px 18px; min-height: 88px; }
.pm-party strong { display: block; font-size: 0.875rem; font-weight: 600; color: var(--neutral-800); margin-bottom: 6px; }
.pm-party span { display: block; font-size: 0.75rem; line-height: 1.5; color: var(--neutral-600); }
.pm-party.primary { border: 2px solid var(--primary); }
.pm-party.dashed { border-style: dashed; }
.pm-connectors { display: grid; gap: 16px; height: 44px; }
.pm-connectors span { position: relative; display: block; height: 100%; }
.pm-connectors span::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 9px; width: 1px; background: var(--neutral-400); }
.pm-connectors span::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 9px; height: 9px; margin-left: -5px; border-radius: 50%; background: var(--white); border: 1px solid var(--neutral-400); box-sizing: border-box; }
.pm-connectors span.primary::before { background: var(--primary); width: 2px; margin-left: -1px; }
.pm-connectors span.primary::after { border-color: var(--primary); }
.pm-connectors span.dashed::before { background: repeating-linear-gradient(to bottom, var(--neutral-400) 0 4px, transparent 4px 7px); }
.pm-label { margin: 12px 0 10px; font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--neutral-500); }
.pm-label-rail { margin-top: 28px; }
.pm-band { background: var(--primary); color: var(--white); padding: 24px 28px; }
.pm-band-head { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; margin: 0 0 18px; }
.pm-band-head strong { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); }
.pm-band-head span { font-size: 0.8125rem; color: var(--on-dark-body); }
.pm-modules { display: flex; flex-wrap: wrap; gap: 10px; }
.pm-modules span { flex: 1 1 150px; border: 1px solid rgba(255, 255, 255, 0.18); padding: 12px 16px; font-size: 0.75rem; color: rgba(255, 255, 255, 0.85); }
.pm-boundary { margin: 18px 0 0; font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-teal); }
.pm-rail { display: flex; align-items: stretch; }
.pm-stop { flex: 1 1 0; position: relative; background: var(--neutral-50); border: 1px solid var(--neutral-300); padding: 14px 16px; }
.pm-stop + .pm-stop { margin-left: 40px; }
.pm-stop + .pm-stop::before { content: "\2192"; position: absolute; left: -32px; top: 50%; width: 24px; transform: translateY(-50%); text-align: center; color: var(--neutral-400); font-size: 1rem; }
.pm-stop strong { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--neutral-800); }
.pm-stop span { display: block; margin-top: 2px; font-size: 0.6875rem; color: var(--neutral-600); }
.pm-foot { margin: 20px 0 0; font-size: 0.75rem; line-height: 1.5; color: var(--neutral-600); }

@media (max-width: 1024px) {
  .pm-parties { grid-template-columns: repeat(3, 1fr) !important; }
  .pm-connectors { display: none; }
  .pm-label { margin-top: 20px; }
}

@media (max-width: 640px) {
  .pm-parties { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .pm-party { min-height: 0; padding: 12px 14px; }
  .pm-band { padding: 20px; }
  .pm-rail { flex-direction: column; }
  .pm-stop + .pm-stop { margin-left: 0; margin-top: 30px; }
  .pm-stop + .pm-stop::before { content: "\2193"; left: 50%; top: -26px; transform: translateX(-50%); }
}

/* Footer: with three or four link columns the brand lockup takes the first column and the link columns
   sit beside it in one row (the footer part counts the columns into a cols-N class). With five, the
   brand keeps its own row above them, as the rules earlier in this file set. The brand column never
   drops below the width of the tagline. */
.footer-top.cols-3, .footer-top.cols-4 { grid-template-columns: minmax(290px, 1.5fr) repeat(4, 1fr); gap: 48px 32px; }
.footer-top.cols-3 { grid-template-columns: minmax(290px, 1.5fr) repeat(3, 1fr); }
.footer-top.cols-3 .footer-brand, .footer-top.cols-4 .footer-brand { grid-column: auto; }
.footer-top.cols-3 .footer-brand p, .footer-top.cols-4 .footer-brand p { max-width: 280px; }

@media (max-width: 1200px) {
  .footer-top.cols-3, .footer-top.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 48px; }
  .footer-top.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .footer-top.cols-3 .footer-brand, .footer-top.cols-4 .footer-brand { grid-column: 1 / -1; }
  .footer-top.cols-3 .footer-brand p, .footer-top.cols-4 .footer-brand p { max-width: 460px; }
}

@media (max-width: 768px) {
  .footer-top.cols-3, .footer-top.cols-4 { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .footer-top.cols-3 .footer-brand, .footer-top.cols-4 .footer-brand { grid-column: span 2; }
}

@media (max-width: 640px) {
  .footer-top.cols-3, .footer-top.cols-4 { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
  .footer-top.cols-3 .footer-brand, .footer-top.cols-4 .footer-brand { grid-column: span 2; }
}

/* Text table (023-table): wrapping text, the first column emphasised; scrolls sideways on phones. */
.text-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.875rem; line-height: 1.55; }
.text-table th, .text-table td { text-align: left; vertical-align: top; padding: 14px 24px 14px 0; border-bottom: 1px solid var(--neutral-200); }
.text-table thead th { padding-top: 0; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--neutral-500); border-bottom: 1px solid var(--neutral-800); }
.text-table tbody th { font-weight: 600; color: var(--neutral-800); white-space: nowrap; }
.text-table td { color: var(--neutral-600); }
.text-table.cols-2 tbody th { width: 28%; }
.text-table.cols-3 tbody th { width: 20%; }
.text-table.cols-4 tbody th { width: 18%; }
.section-dark .text-table th, .section-dark .text-table td { border-color: var(--on-dark-rule); color: var(--on-dark-body); }
.section-dark .text-table tbody th, .section-dark .text-table thead th { color: var(--white); border-color: var(--on-dark-rule); }
/* On phones each row stacks: the first cell as a heading, the other cells beneath it; the column labels are dropped. */
@media (max-width: 640px) {
  .text-table { min-width: 0; }
  .text-table thead { display: none; }
  .text-table tr { display: block; padding: 18px 0; border-bottom: 1px solid var(--neutral-200); }
  .text-table th, .text-table td { display: block; padding: 0; border: 0; width: auto; }
  .text-table tbody th, .text-table.cols-2 tbody th, .text-table.cols-3 tbody th, .text-table.cols-4 tbody th { width: auto; white-space: normal; margin-bottom: 6px; }
  .text-table td + td { margin-top: 8px; }
  .section-dark .text-table tr { border-color: var(--on-dark-rule); }
}

/* Questions (024-faq): the browser's own details element, a plus that becomes a minus. */
.faq-list { max-width: 880px; border-top: 1px solid var(--neutral-200); }
.faq { border-bottom: 1px solid var(--neutral-200); }
.faq summary { display: grid; grid-template-columns: 44px 1fr 20px; gap: 16px; align-items: center; padding: 20px 0; cursor: pointer; list-style: none; font-size: 1.0625rem; font-weight: 500; color: var(--neutral-800); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover .faq-q { color: var(--accent-blue-text); }
.faq-index { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.1em; color: var(--accent-blue-text); }
.faq-mark { position: relative; width: 14px; height: 14px; justify-self: end; }
.faq-mark::before, .faq-mark::after { content: ""; position: absolute; background: var(--neutral-500); transition: transform 0.2s var(--ease); }
.faq-mark::before { left: 0; top: 6px; width: 14px; height: 1px; }
.faq-mark::after { left: 6px; top: 0; width: 1px; height: 14px; }
.faq[open] .faq-mark::after { transform: scaleY(0); }
.faq-a { padding: 0 0 24px 60px; }
.faq-a p { max-width: 720px; margin: 0 0 12px; font-size: 0.9375rem; line-height: 1.7; color: var(--neutral-600); }
.faq-a p:last-child { margin-bottom: 0; }
.section-dark .faq-list, .section-dark .faq { border-color: var(--on-dark-rule); }
.section-dark .faq summary { color: var(--white); }
.section-dark .faq-a p { color: var(--on-dark-body); }
@media (max-width: 640px) {
  .faq summary { grid-template-columns: 1fr 20px; }
  .faq-index { display: none; }
  .faq-a { padding-left: 0; }
}

/* Card tags: small chips under a card's line. */
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.card-tags span { padding: 3px 8px; font-size: 0.6875rem; letter-spacing: 0.04em; color: var(--neutral-600); border: 1px solid var(--neutral-300); }
.section-dark .card-tags span { color: var(--on-dark-body); border-color: var(--on-dark-rule); }

/* A plain link beside the header button (a sign-in link). Below tablet width it lives in the menu. */
.nav-secondary { margin-right: 12px; font-size: 0.875rem; color: var(--neutral-600); transition: color 0.2s var(--ease); }
.nav-secondary:hover { color: var(--neutral-800); }
@media (max-width: 768px) { .nav-right .nav-secondary { display: none; } }

/* Form honeypot: off screen for people, present for bots. */
.form-field.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; padding: 0; border: 0; }

/* A section header with an eyebrow carries its counter on the eyebrow line, not on a line of its own. */
.section-header .eyebrow::before {
  counter-increment: section;
  content: counter(section, decimal-leading-zero);
  font-weight: 500;
  letter-spacing: 0.1em;
}
.section-header.no-counter .eyebrow::before { display: none; counter-increment: none; }
.section-header .eyebrow ~ h2::before { display: none; counter-increment: none; }

/* Inline links inside running copy. */
.section-header p a,
.editorial-body a,
.card p a,
.benefit-item p a,
.kv-list dd a,
.contact-details p a,
.hero-meta a,
.lede a {
  border-bottom: 1px solid var(--neutral-300);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.section-header p a:hover,
.editorial-body a:hover,
.card p a:hover,
.benefit-item p a:hover,
.kv-list dd a:hover,
.contact-details p a:hover,
.lede a:hover { color: var(--accent-blue-text); border-color: var(--accent-blue); }

.section-dark .section-header p a,
.section-dark .editorial-body a,
.section-dark .kv-list dd a,
.hero-meta a,
.cta-copy p a { border-color: rgba(255, 255, 255, 0.25); }

.section-dark .section-header p a:hover,
.section-dark .editorial-body a:hover,
.section-dark .kv-list dd a:hover,
.hero-meta a:hover { color: var(--accent-teal); border-color: var(--accent-teal); }

/* Open items. A gap in the copy is outlined in gold until it is filled;
   a filled gap loses the attribute, so there is nothing to strip at launch. */
[data-placeholder] {
  outline: 1px dashed var(--gold);
  outline-offset: 4px;
}

.gap { color: var(--gold); }

.section-dark .gap,
.hero .gap,
.cta-section .gap,
.team-photo .gap { color: #e0c27a; }

/* Team card portrait as an image. */
.team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* One-per-row team grid. */
.team-grid.one-per-row { grid-template-columns: 1fr; }
.team-grid.one-per-row .team-card > div:last-child { max-width: 720px; }
