/* ============================================================
   BDI Source Contacts · Braddock Group × SoluteLabs
   Proposal site — dark theme, single-file CSS, no build step.
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* Primitives */
  --fresh-purple: #6622CB;
  --bright-orange: #FF4D00;
  --charcoal: #171717;
  --elevated: #1F1F1F;

  /* Surfaces */
  --surface: #171717;
  --surface-raised: #1F1F1F;
  --surface-accent: #6622CB;

  /* Foreground */
  --foreground: #FFFFFF;
  --foreground-muted: rgba(255,255,255,0.80);
  --foreground-faint: rgba(255,255,255,0.50);
  --foreground-accent: #C2A7EA;

  /* Edges */
  --edge: rgba(255,255,255,0.12);
  --edge-subtle: rgba(255,255,255,0.07);
  --edge-strong: rgba(255,255,255,0.25);
  --edge-accent: #6622CB;
  --edge-highlight: #FF4D00;

  /* Accents */
  --accent-primary: #6622CB;
  --accent-secondary: #FF4D00;
  --accent-ok: #3DD68C;

  /* Shadows */
  --shadow-glow: 0 0 120px rgba(102,34,203,0.35);
  --shadow-soft: 0 2px 24px rgba(0,0,0,0.45);
  --shadow-elevate: 0 8px 40px rgba(0,0,0,0.55);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;

  /* Motion */
  --easing: cubic-bezier(0.4, 0, 0.2, 1);
  --easing-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --sidebar-w: 240px;
  --content-w: 800px;
  --content-pad: 52px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
:focus { outline: 0; }
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- BASE ---------- */
html, body {
  background: var(--surface);
  color: var(--foreground);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

::selection {
  background: rgba(102,34,203,0.45);
  color: #fff;
}

/* ---------- SKIP LINK ---------- */
.skip-link {
  position: absolute;
  top: -200px;
  left: 12px;
  z-index: 1000;
  background: var(--accent-primary);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 13px;
  transition: top 200ms var(--easing);
}
.skip-link:focus-visible { top: 12px; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--surface-raised);
  border-right: 1px solid var(--edge-subtle);
  z-index: 50;
  display: flex;
  flex-direction: column;
}
.sidebar__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 0 22px;
}

.sidebar__brand { padding: 0 22px 22px; border-bottom: 1px solid var(--edge-subtle); }
.sidebar__brand-mark {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: -0.005em;
  color: var(--foreground);
  line-height: 1.4;
}
.sidebar__brand-x {
  color: var(--accent-primary);
  font-weight: 500;
  font-style: italic;
  margin: 0 1px;
}
.sidebar__brand-sub {
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: var(--foreground-muted);
  margin-top: 4px;
  letter-spacing: 0.005em;
}
.sidebar__brand-meta {
  font-family: 'Manrope', sans-serif;
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--foreground-faint);
  margin-top: 14px;
  letter-spacing: 0.015em;
}

.sidebar__nav {
  flex: 1;
  overflow-y: auto;
  padding: 18px 0 22px;
  scrollbar-width: thin;
  scrollbar-color: var(--edge) transparent;
}
.sidebar__nav::-webkit-scrollbar { width: 4px; }
.sidebar__nav::-webkit-scrollbar-thumb { background: var(--edge); border-radius: 2px; }

.sidebar__nav ol { display: flex; flex-direction: column; }
.sidebar__nav a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 22px 9px 20px;
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.005em;
  color: var(--foreground-faint);
  border-left: 2px solid transparent;
  transition: color 220ms var(--easing), background-color 220ms var(--easing), border-color 220ms var(--easing);
}
.sidebar__nav a:hover { color: var(--foreground-muted); }
.sidebar__num {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--foreground-faint);
  min-width: 22px;
  font-variant-numeric: tabular-nums;
  transition: color 220ms var(--easing);
}
.sidebar__label { line-height: 1.35; }

.sidebar__nav a.is-active {
  color: var(--foreground-accent);
  background: rgba(102,34,203,0.08);
  border-left-color: var(--accent-primary);
}
.sidebar__nav a.is-active .sidebar__num { color: var(--foreground-accent); }

.sidebar__cta {
  padding: 18px 18px 4px;
  border-top: 1px solid var(--edge-subtle);
}
.sidebar__cta-meta {
  font-family: 'Manrope', sans-serif;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--foreground-faint);
  text-align: center;
  margin-top: 10px;
  letter-spacing: 0.01em;
}

/* Prototype link — ghost variant with live-status pulse */
.btn-proto {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.005em;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--foreground-muted);
  border: 1px solid var(--edge);
  transition: background-color 200ms var(--easing),
              border-color 200ms var(--easing),
              color 200ms var(--easing),
              transform 180ms var(--easing-out);
  margin-bottom: 8px;
  text-decoration: none;
}
.btn-proto:hover {
  background: rgba(102,34,203,0.05);
  border-color: rgba(102,34,203,0.35);
  color: var(--foreground);
  transform: translateY(-1px);
}
.btn-proto__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-ok);
  box-shadow: 0 0 0 3px rgba(61,214,140,0.18);
  flex-shrink: 0;
  animation: protoPulseDot 2.4s ease-in-out infinite;
}
@keyframes protoPulseDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(61,214,140,0.18); }
  50%      { box-shadow: 0 0 0 4px rgba(61,214,140,0.32); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-proto__dot { animation: none; }
}

/* ============================================================
   HAMBURGER + DRAWER BACKDROP (mobile)
   ============================================================ */
.hamburger {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  border: 1px solid var(--edge-subtle);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: background-color 200ms var(--easing);
}
.hamburger:hover { background: rgba(102,34,203,0.08); }
.hamburger__bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--foreground);
  border-radius: 1px;
  transition: transform 240ms var(--easing), opacity 200ms var(--easing);
}
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms var(--easing);
}
.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   MAIN
   ============================================================ */
.main {
  margin-left: var(--sidebar-w);
  max-width: calc(var(--sidebar-w) + var(--content-w) + var(--content-pad) * 2);
  padding: 0 var(--content-pad);
}

.section {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 72px 0;
  border-bottom: 1px solid var(--edge-subtle);
  position: relative;
}
.section:last-of-type { border-bottom: 0; }
.section--cover {
  padding-top: 92px;
  border-bottom: 1px solid var(--edge-subtle);
}

/* Fade-in (JS toggles .is-revealed) */
.section {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 480ms var(--easing-out), transform 480ms var(--easing-out);
}
.section.is-revealed,
.section.section--cover {
  opacity: 1;
  transform: none;
}
.section.section--cover { transition: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.eyebrow {
  display: inline-block;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--foreground-faint);
}
.eyebrow a { color: inherit; }

h1, h2, h3, h4 {
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

h2 {
  font-size: clamp(26px, 2.3vw + 12px, 34px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin-top: 14px;
  max-width: 18ch;
}
h2 em {
  font-style: italic;
  color: var(--accent-primary);
  font-weight: 500;
}

h3.sub {
  font-family: 'Archivo', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--foreground);
}

p {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  color: var(--foreground-muted);
  margin-top: 14px;
  max-width: 70ch;
}
p.lede {
  font-size: 16px;
  color: var(--foreground-muted);
  margin-top: 18px;
  max-width: 62ch;
}
strong { color: var(--foreground); font-weight: 600; }
em { font-style: italic; }
code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  background: rgba(102,34,203,0.10);
  border: 1px solid rgba(102,34,203,0.20);
  color: var(--foreground-accent);
  padding: 1.5px 6px;
  border-radius: 5px;
  letter-spacing: 0.005em;
}
.code-pill {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(102,34,203,0.10);
  border: 1px solid rgba(102,34,203,0.2);
  color: var(--foreground-accent);
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 13px;
}

/* ============================================================
   EXTERNAL LINK STYLE
   ============================================================ */
a.ext {
  color: var(--foreground-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--easing), color 200ms var(--easing);
  white-space: nowrap;
}
a.ext:hover {
  color: #D6BFF3;
  border-bottom-color: rgba(194,167,234,0.5);
}
.ext__icon {
  display: inline-block;
  vertical-align: -1px;
  margin-left: 2px;
  opacity: 0.62;
  transition: opacity 200ms var(--easing), transform 200ms var(--easing);
}
a.ext:hover .ext__icon { opacity: 1; transform: translate(1px, -1px); }
.eyebrow a.ext { color: var(--foreground-faint); }
.eyebrow a.ext:hover { color: var(--foreground-muted); border-bottom-color: rgba(255,255,255,0.25); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.005em;
  padding: 11px 18px;
  border-radius: var(--radius-md);
  transition: background-color 200ms var(--easing), border-color 200ms var(--easing),
              transform 180ms var(--easing-out), box-shadow 220ms var(--easing);
  border: 1px solid transparent;
  white-space: nowrap;
  user-select: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: 0 4px 18px rgba(102,34,203,0.28);
}
.btn--primary:hover {
  background: #7530DC;
  box-shadow: 0 6px 24px rgba(102,34,203,0.42);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(102,34,203,0.42);
  color: var(--foreground-accent);
}
.btn--ghost:hover {
  background: rgba(102,34,203,0.10);
  border-color: rgba(102,34,203,0.62);
  color: #D6BFF3;
}

.btn--small {
  font-size: 12px;
  padding: 8px 13px;
  gap: 6px;
}
.btn--block {
  width: 100%;
  display: flex;
}

/* ============================================================
   COVER
   ============================================================ */
.section--cover {
  padding-top: 92px;
  padding-bottom: 80px;
}

.cover__glow {
  position: absolute;
  top: -60px;
  left: -40px;
  width: 480px;
  height: 480px;
  background: radial-gradient(ellipse, rgba(102,34,203,0.22) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
  filter: blur(10px);
}

.section--cover > *:not(.cover__glow) {
  position: relative;
  z-index: 1;
}

.cover__topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.cover__h1 {
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  font-size: clamp(32px, 4vw + 8px, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--foreground);
  margin-top: 4px;
  max-width: 15ch;
}
.cover__h1 em {
  color: var(--accent-primary);
  font-style: italic;
  font-weight: 500;
}

.cover__lede {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--foreground-muted);
  margin-top: 26px;
  max-width: 560px;
  letter-spacing: 0.01em;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  margin-top: 42px;
}
.stat__num {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--accent-primary);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-family: 'Manrope', sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--foreground-faint);
  margin-top: 8px;
  line-height: 1.5;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}
.badge {
  font-family: 'Archivo', sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--edge);
  color: var(--foreground-muted);
}

/* ============================================================
   PROTOTYPE STRIP (cover)
   ============================================================ */
.proto-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  padding: 14px 18px;
  background:
    linear-gradient(135deg, rgba(102,34,203,0.10), rgba(255,77,0,0.04));
  border: 1px solid rgba(102,34,203,0.32);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color 220ms var(--easing), background 220ms var(--easing), transform 200ms var(--easing-out);
  flex-wrap: wrap;
}
.proto-strip:hover {
  border-color: rgba(102,34,203,0.55);
  background: linear-gradient(135deg, rgba(102,34,203,0.16), rgba(255,77,0,0.06));
  transform: translateY(-1px);
}
.proto-strip__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-ok);
  box-shadow: 0 0 0 4px rgba(61,214,140,0.18);
  flex-shrink: 0;
  animation: protoPulse 2.4s ease-in-out infinite;
}
@keyframes protoPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(61,214,140,0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(61,214,140,0.28); }
}
.proto-strip__lbl {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-ok);
  flex-shrink: 0;
}
.proto-strip__txt {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: var(--foreground-muted);
  flex: 1;
  min-width: 200px;
  line-height: 1.5;
}
.proto-strip__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--foreground-accent);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(102,34,203,0.3);
  background: rgba(102,34,203,0.10);
  flex-shrink: 0;
  transition: background-color 200ms var(--easing), color 200ms var(--easing);
}
.proto-strip:hover .proto-strip__cta {
  background: rgba(102,34,203,0.2);
  color: #D6BFF3;
}
@media (prefers-reduced-motion: reduce) {
  .proto-strip__dot { animation: none; }
}

/* ============================================================
   DATES BLOCK (Section 09)
   ============================================================ */
.dates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
  padding: 18px;
  background: rgba(255,255,255,0.018);
  border: 1px solid var(--edge-subtle);
  border-radius: var(--radius-lg);
}
.dates__item { display: flex; flex-direction: column; }
.dates__lbl {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--foreground-faint);
}
.dates__val {
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.015em;
  color: var(--foreground);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.dates__sub {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  color: var(--foreground-faint);
  margin-top: 2px;
  letter-spacing: 0.01em;
}
@media (max-width: 640px) {
  .dates { grid-template-columns: 1fr; }
}

/* ============================================================
   CALLOUTS
   ============================================================ */
.callout {
  border-left: 3px solid var(--accent-primary);
  background: var(--surface-raised);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 16px 22px;
  margin-top: 28px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  line-height: 1.75;
  color: var(--foreground-muted);
  max-width: 70ch;
}
.callout strong { color: var(--foreground); font-weight: 600; }
.callout--orange { border-left-color: var(--accent-secondary); }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap {
  margin-top: 26px;
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--surface);
}
.table-wrap::after {
  /* edge fade indicator on mobile horizontal scroll */
  content: "";
  position: absolute;
  inset: 1px 1px 1px auto;
  width: 24px;
  background: linear-gradient(90deg, transparent, var(--surface));
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms var(--easing);
}
.table-wrap.is-overflow::after { opacity: 1; }

.table-wrap > div.scroller {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--edge) transparent;
}
.table-wrap > div.scroller::-webkit-scrollbar { height: 6px; }
.table-wrap > div.scroller::-webkit-scrollbar-thumb { background: var(--edge); border-radius: 3px; }

.t { font-family: 'Manrope', sans-serif; min-width: 100%; }
.t thead {
  background: var(--surface-raised);
  border-bottom: 1px solid var(--edge-strong);
}
.t thead th {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--foreground-faint);
  text-align: left;
  padding: 13px 16px;
  vertical-align: bottom;
}
.t tbody td {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: var(--foreground-muted);
  padding: 14px 16px;
  border-bottom: 1px solid var(--edge-subtle);
  vertical-align: top;
  letter-spacing: 0.005em;
}
.t tbody tr:last-child td { border-bottom: 0; }
.t tbody tr:nth-child(2n) td { background: rgba(255,255,255,0.012); }
.t tbody tr:hover td { background: rgba(102,34,203,0.055); }
.t tbody td:first-child {
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--foreground);
}

/* Filter table & milestone tweaks */
.t--filters tbody td:nth-child(2) { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11.5px; color: var(--foreground-accent); }
.t--filters tbody td:nth-child(4) { text-align: center; }
.t--milestones tbody td:first-child { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--foreground); }
.t--milestones tbody td:nth-child(4),
.t--milestones tbody td:last-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.t--why tbody td:first-child {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--foreground);
  width: 32%;
  min-width: 200px;
}
.t--why tbody td:last-child {
  font-family: 'Manrope', sans-serif;
  font-size: 13.5px;
  color: var(--foreground-muted);
  line-height: 1.7;
}

.ok { color: var(--accent-ok); font-weight: 600; font-size: 14px; }
.warn { color: var(--accent-secondary); font-weight: 600; font-size: 14px; }

/* Total row in milestones table */
.t__total td {
  border-top: 1px solid var(--edge-strong);
  background: rgba(102,34,203,0.07) !important;
  padding-top: 18px;
  padding-bottom: 18px;
  vertical-align: middle;
}
.t__total-sub {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  color: var(--foreground-faint);
  font-weight: 400;
}
.t__total-amt {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--accent-primary);
  letter-spacing: -0.02em;
}

/* ============================================================
   OUT-OF-SCOPE LIST
   ============================================================ */
.oos {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.oos li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.018);
  border: 1px solid var(--edge-subtle);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--foreground-muted);
}
.oos__icon {
  display: inline-block;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}
.oos__icon--warn { color: var(--accent-secondary); }
.oos__icon--def { color: var(--accent-primary); }

/* ============================================================
   CARD GRID (2-col)
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.card {
  background: var(--surface-raised);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: border-color 240ms var(--easing), transform 240ms var(--easing-out);
}
.card:hover {
  border-color: rgba(102,34,203,0.38);
  transform: translateY(-1px);
}
.card__title {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: -0.005em;
  color: var(--foreground);
  margin-bottom: 8px;
}
.card p {
  font-size: 13.5px;
  line-height: 1.7;
  margin-top: 0;
  color: var(--foreground-muted);
}

/* ============================================================
   FLOW DIAGRAM (Section 04.1)
   ============================================================ */
.flow {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 560px;
}
.flow__step {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: center;
  background: var(--surface-raised);
  border: 1px solid var(--edge);
  border-radius: var(--radius-md);
  padding: 13px 18px 13px 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--foreground-muted);
}
.flow__step + .flow__step { margin-top: 30px; }
.flow__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 32px;
  bottom: -26px;
  width: 2px;
  height: 22px;
  background: var(--edge-strong);
  border-radius: 1px;
}
.flow__step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -28px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--edge-strong);
  z-index: 1;
}
.flow__num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--edge);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 11px;
  color: var(--foreground-faint);
  font-variant-numeric: tabular-nums;
}
.flow__body { padding-right: 4px; }
.flow__hint {
  display: block;
  font-size: 12px;
  color: var(--foreground-faint);
  margin-top: 2px;
}
.flow__step--accent {
  border-color: rgba(102,34,203,0.42);
  background: rgba(102,34,203,0.06);
  box-shadow: 0 0 0 1px rgba(102,34,203,0.08);
}
.flow__step--accent .flow__num {
  background: rgba(102,34,203,0.18);
  border-color: rgba(102,34,203,0.55);
  color: var(--foreground-accent);
}
.flow__step--accent + .flow__step::before,
.flow__step--accent + .flow__step::after { /* leave default */ }

/* ============================================================
   MID-PAGE CTA
   ============================================================ */
.midcta {
  margin-top: 32px;
  padding: 16px 20px;
  background: rgba(102,34,203,0.06);
  border: 1px solid rgba(102,34,203,0.24);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.midcta__text {
  font-family: 'Manrope', sans-serif;
  font-size: 13.5px;
  color: var(--foreground-muted);
  line-height: 1.55;
}

/* ============================================================
   PAYMENT BLOCK (Section 09)
   ============================================================ */
.payblock {
  margin-top: 36px;
  background:
    linear-gradient(135deg, rgba(102,34,203,0.11), rgba(255,77,0,0.05));
  border: 1px solid rgba(102,34,203,0.32);
  border-radius: var(--radius-xl);
  padding: 36px;
}
.payblock__head h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--foreground);
  letter-spacing: -0.01em;
}
.payblock__head p {
  font-size: 13.5px;
  color: var(--foreground-muted);
  margin-top: 6px;
  max-width: 56ch;
}
.payblock__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 26px;
}
.payblock__col {
  background: rgba(0,0,0,0.18);
  border: 1px solid var(--edge-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: left;
}
.payblock__amt {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -0.025em;
  color: var(--accent-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}
.payblock__lbl {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--foreground-faint);
  margin-top: 8px;
}

/* ============================================================
   WALKAWAY LIST
   ============================================================ */
.walkaway {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.walkaway li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--foreground-muted);
}
.walkaway__arrow {
  color: var(--accent-primary);
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.6;
}
.walkaway--compact li { font-size: 13px; }

/* ============================================================
   CASE STUDIES
   ============================================================ */
.cs { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--edge-subtle); }
.cs:first-of-type { margin-top: 32px; }
.cs__label {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 6px;
}
.cs__title {
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--foreground);
  margin-top: 4px;
}
.cs__title a.ext { color: var(--foreground); }
.cs__title a.ext:hover { color: var(--foreground-accent); }

.cs__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 22px;
  padding: 18px;
  background: var(--surface-raised);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
}
.cs__metric-num {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--accent-primary);
  letter-spacing: -0.025em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.cs__metric-lbl {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  color: var(--foreground-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 6px;
  line-height: 1.4;
}

/* ============================================================
   QUOTE BLOCKS
   ============================================================ */
.quote {
  border-left: 3px solid var(--accent-primary);
  background: var(--surface-raised);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 18px 24px;
  margin-top: 24px;
}
.quote p {
  font-family: 'Manrope', sans-serif;
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--foreground);
  margin: 0;
  max-width: none;
}
.quote__by {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--foreground-faint);
  margin-top: 10px;
}

/* ============================================================
   TAG PILLS
   ============================================================ */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}
.tag {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  letter-spacing: 0.015em;
  color: var(--foreground-accent);
  background: rgba(102,34,203,0.09);
  border: 1px solid rgba(102,34,203,0.23);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  line-height: 1.5;
}

/* ============================================================
   CTA BLOCK (Section 11)
   ============================================================ */
.cta {
  margin-top: 40px;
  background:
    linear-gradient(135deg, rgba(102,34,203,0.13), rgba(255,77,0,0.06));
  border: 1px solid rgba(102,34,203,0.32);
  border-radius: var(--radius-xl);
  padding: 40px;
}
.cta__h {
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.025em;
  color: var(--foreground);
  line-height: 1.2;
}
.cta__p {
  font-family: 'Manrope', sans-serif;
  font-size: 14.5px;
  color: var(--foreground-muted);
  line-height: 1.7;
  margin-top: 14px;
  max-width: 60ch;
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.cta__alt {
  font-family: 'Manrope', sans-serif;
  font-size: 12.5px;
  color: var(--foreground-faint);
  margin-top: 16px;
}
.cta__alt a {
  color: var(--foreground-accent);
  border-bottom: 1px solid rgba(194,167,234,0.3);
  transition: border-color 200ms var(--easing);
}
.cta__alt a:hover { border-bottom-color: rgba(194,167,234,0.7); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 40px 0;
  border-top: 1px solid var(--edge-subtle);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__left {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--foreground-muted);
  letter-spacing: -0.005em;
}
.footer__x { color: var(--accent-primary); font-style: italic; font-weight: 500; }
.footer__right {
  font-family: 'Manrope', sans-serif;
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--foreground-faint);
  text-align: right;
  letter-spacing: 0.005em;
}
.footer__right a {
  color: var(--foreground-muted);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--easing), color 200ms var(--easing);
}
.footer__right a:hover { border-bottom-color: var(--edge-strong); color: var(--foreground); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  :root { --content-pad: 40px; }
}

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .cs__metrics { grid-template-columns: repeat(2, 1fr); }
  .payblock__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root {
    --content-pad: 20px;
  }
  .main {
    margin-left: 0;
    max-width: 100%;
    padding: 0 var(--content-pad);
  }
  .section {
    padding: 56px 0;
  }
  .section--cover { padding-top: 76px; padding-bottom: 60px; }

  .hamburger { display: flex; }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 300ms var(--easing);
    box-shadow: var(--shadow-elevate);
    width: 280px;
  }
  .sidebar.is-open {
    transform: translateX(0);
  }

  .cover__h1 { font-size: clamp(32px, 8vw, 44px); max-width: 100%; }
  .cover__lede { max-width: 100%; }
  .stats { gap: 28px; }
  .stat__num { font-size: 36px; }

  h2 { font-size: clamp(24px, 6vw, 30px); max-width: 100%; }

  .payblock, .cta { padding: 26px 22px; }
  .cta__h { font-size: 22px; }

  .midcta { padding: 14px 16px; }
  .midcta__text { font-size: 13px; }

  .footer { flex-direction: column; align-items: flex-start; }
  .footer__right { text-align: left; }

  /* Allow horizontal scroll on tables */
  .t { min-width: 580px; }
}

@media (max-width: 480px) {
  .cs__metrics { grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; }
  .cs__metric-num { font-size: 19px; }
  .stat { min-width: 90px; }
}

/* ============================================================
   ACCESSIBILITY — REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .section { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   PRINT (minimal — accidental cmd+P should still be readable)
   ============================================================ */
@media print {
  :root {
    --surface: #fff;
    --surface-raised: #fafafa;
    --foreground: #111;
    --foreground-muted: #333;
    --foreground-faint: #666;
    --edge: #ddd;
    --edge-subtle: #eee;
    --edge-strong: #ccc;
    --foreground-accent: #6622CB;
  }
  body { background: #fff; color: #111; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sidebar, .hamburger, .drawer-backdrop,
  .skip-link, .midcta, .cta__actions, .cover__topbar button { display: none !important; }
  .main { margin-left: 0; padding: 0 24px; max-width: 100%; }
  .section { opacity: 1; transform: none; padding: 32px 0; break-inside: avoid; }
  .section--cover { padding-top: 24px; }
  a, .ext { color: #6622CB !important; }
  .callout, .card, .quote, .payblock, .cta, .flow__step { background: #fafafa; color: #111; }
  .cover__glow { display: none; }
  h2 em, .cover__h1 em { color: #6622CB !important; }
}
