/* =========================================================
   AI Execution Partners — Executive Minimalism Design System
   ========================================================= */

:root {
  /* Color — Obsidian + Platinum (dark-dominant premium) */
  --paper:         #0E1116;   /* obsidian canvas */
  --paper-soft:    #12161E;
  --paper-sunk:    #0A0D12;
  --surface:       #161A22;   /* card surface */
  --surface-hi:    #1F2430;   /* elevated surface */
  --ink:           #E8EAED;   /* platinum primary text */
  --ink-2:         #FFFFFF;
  --ink-muted:     #A8ADB8;
  --ink-subtle:    #6B7280;
  --border:        #2A3040;
  --border-soft:   #1F2430;
  --accent:        #E8EAED;   /* platinum — monochrome accent */
  --accent-deep:   #8E93A0;
  --accent-soft:   #CBD0D9;
  --success:       #166534;
  --danger:        #9B2C2C;

  /* Type — Space Grotesk display + Inter body + Space Mono labels */
  --serif: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;  /* display role */
  --sans:  "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:  "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing (4/8 rhythm) */
  --s-1: 4px;  --s-2: 8px;   --s-3: 12px;  --s-4: 16px;  --s-5: 20px;
  --s-6: 24px; --s-8: 32px;  --s-10: 40px; --s-12: 48px; --s-16: 64px;
  --s-20: 80px; --s-24: 96px; --s-32: 128px;

  --radius-sm: 4px;
  --radius:    10px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(11,15,20,.04), 0 1px 1px rgba(11,15,20,.03);
  --shadow:    0 4px 12px rgba(11,15,20,.06), 0 2px 4px rgba(11,15,20,.04);
  --shadow-lg: 0 18px 48px rgba(11,15,20,.10), 0 6px 12px rgba(11,15,20,.06);

  --content-w: 1180px;
  --prose-w:   680px;

  --ease-out: cubic-bezier(.2,.7,.2,1);
  --ease-in:  cubic-bezier(.6,.0,.8,.2);
  --t-fast: 140ms;
  --t:      220ms;
  --t-slow: 420ms;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01","cv11","cv09";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute; top: -44px; left: 12px;
  background: var(--ink); color: var(--paper);
  padding: 10px 14px; border-radius: var(--radius-sm);
  z-index: 1000; font-weight: 500;
  transition: top var(--t) var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 6.5vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 var(--s-8);
}
.display em {
  font-style: normal;
  color: var(--ink-muted);
  font-weight: 400;
}

.heading-lg {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 var(--s-6);
}
.heading-lg em { font-style: normal; color: var(--ink-muted); font-weight: 400; }

.lede {
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 640px;
  margin: 0 0 var(--s-10);
}

.prose-lg {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: var(--prose-w);
}
.prose-lg strong { color: var(--ink); font-weight: 600; }
.prose-lg em { font-style: italic; font-weight: 500; color: var(--ink); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 var(--s-5);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  line-height: 1;
  min-height: 44px;
  transition: background var(--t) var(--ease-out), color var(--t) var(--ease-out),
              transform var(--t-fast) var(--ease-out), box-shadow var(--t) var(--ease-out),
              border-color var(--t) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 10px 16px; font-size: 14px; min-height: 40px; }
.btn--lg { padding: 16px 28px; font-size: 16px; min-height: 52px; }

.btn--primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.btn--primary:hover { background: var(--ink-2); box-shadow: var(--shadow); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--surface); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t) var(--ease-out), background var(--t) var(--ease-out);
}
.nav.is-scrolled {
  border-bottom-color: var(--border-soft);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-6);
  height: 72px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 15px;
  color: var(--ink);
}
.wordmark__mark {
  color: var(--ink);
  flex-shrink: 0;
  transition: transform var(--t) var(--ease-out);
}
.wordmark:hover .wordmark__mark { transform: rotate(45deg); }
.wordmark__text { white-space: nowrap; }

.nav__links {
  display: flex; gap: var(--s-8);
  margin-left: auto;
  margin-right: var(--s-6);
}
.nav__links a {
  font-size: 14px; font-weight: 500;
  color: var(--ink-muted);
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color var(--t) var(--ease-out), border-color var(--t) var(--ease-out);
}
.nav__links a:hover { color: var(--ink); border-bottom-color: var(--accent); }

.nav__menu {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  color: var(--ink);
  border-radius: var(--radius-sm);
}

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-4) clamp(20px, 4vw, 40px) var(--s-6);
  border-top: 1px solid var(--border-soft);
  background: var(--paper);
}
.nav__mobile a {
  padding: 10px 4px;
  font-size: 17px; font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--border-soft);
}
.nav__mobile a.btn { border-bottom: 0; justify-content: center; margin-top: var(--s-2); }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__inner > .btn { display: none; }
  .nav__menu { display: inline-flex; }
  .nav__mobile { display: flex; }
  .nav__mobile[hidden] { display: none; }
}

/* ---------- Section frame ---------- */
section {
  padding: clamp(72px, 10vw, 140px) 0;
  position: relative;
}
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; gap: var(--s-10); }
}
.section-head { margin-bottom: var(--s-16); max-width: 820px; }
.section-head__lede { margin-top: var(--s-4); }

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(80px, 12vw, 160px);
  padding-bottom: clamp(40px, 6vw, 100px);
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 72%, color-mix(in srgb, var(--paper) 72%, var(--paper-soft)) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% -10% 30%;
  background: radial-gradient(ellipse at 70% 30%, color-mix(in srgb, var(--accent-soft) 12%, transparent) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}
.hero__inner { position: relative; z-index: 1; max-width: 1000px; }
.hero__cta {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  margin-bottom: var(--s-10);
}
.hero__credit {
  font-size: 14px;
  color: var(--ink-muted);
  max-width: 620px;
  padding-top: var(--s-5);
  border-top: 1px solid var(--border-soft);
}
.hero__credit strong { color: var(--ink); font-weight: 600; }

.hero__pipeline {
  margin-top: clamp(40px, 6vw, 80px);
  padding: 0 clamp(20px, 4vw, 40px);
  display: flex; justify-content: center;
  position: relative; z-index: 1;
}
.pipeline {
  display: flex; align-items: stretch; gap: 0;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  max-width: 860px; width: 100%;
}

/* Hero stepper — 4-stage maturity visualization */
.stepper {
  display: flex;
  position: relative;
  max-width: 880px;
  width: 100%;
  list-style: none;
  margin: 0; padding: 0;
}
/* Connecting line runs behind the dots — from center of first dot to center of last */
.stepper::before {
  content: "";
  position: absolute;
  top: 5px;
  left: calc(100% / 8);
  right: calc(100% / 8);
  height: 1px;
  background: linear-gradient(90deg,
    var(--border) 0%,
    var(--border) 55%,
    color-mix(in srgb, var(--accent-soft) 60%, transparent) 100%);
  z-index: 0;
}
.stepper__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
  padding: 0 4px;
}
.stepper__dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--paper);
  flex-shrink: 0;
  position: relative;
  transition: all var(--t) var(--ease-out);
}
.stepper__step.is-end .stepper__dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-soft) 18%, transparent);
}
.stepper__label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.stepper__num {
  font-size: 10px;
  color: var(--ink-subtle);
  letter-spacing: 0.1em;
}
.stepper__step.is-end .stepper__label { color: var(--ink); }
.stepper__step.is-end .stepper__num { color: var(--accent-soft); }

/* Mobile — vertical timeline */
@media (max-width: 720px) {
  .stepper {
    flex-direction: column;
    align-items: flex-start;
    max-width: 300px;
    padding-left: 18px;
    gap: 18px;
  }
  .stepper::before {
    top: 6px; bottom: 6px;
    left: 5px; right: auto;
    width: 1px; height: auto;
    background: linear-gradient(180deg,
      var(--border) 0%,
      var(--border) 55%,
      color-mix(in srgb, var(--accent-soft) 60%, transparent) 100%);
  }
  .stepper__step {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 0;
    margin-left: -18px;
  }
  .stepper__label { text-align: left; }
}
.pipeline__node {
  flex: 1;
  padding: 18px 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  position: relative;
  color: var(--ink);
}
.pipeline__node.is-pilot  { border-radius: var(--radius) 0 0 var(--radius); }
.pipeline__node.is-product{ border-radius: 0 var(--radius) var(--radius) 0; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pipeline__node.is-gap {
  background: repeating-linear-gradient(45deg, var(--paper-soft) 0 6px, transparent 6px 12px);
  color: var(--accent-deep);
  flex-direction: column; gap: 4px;
  font-size: 11px;
}
.pipeline__gap-label { text-transform: none; font-style: italic; font-family: var(--serif); font-size: 15px; font-weight: 420; letter-spacing: 0; }
.pipeline__gap-cracks {
  width: 100%; height: 1px; background: var(--accent); opacity: .4;
  box-shadow: 0 -6px 0 -4px var(--accent), 0 6px 0 -4px var(--accent);
}
.pipeline__arrow {
  width: 36px; position: relative; align-self: stretch; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.pipeline__arrow::after {
  content: ""; position: absolute; top: 50%; right: -1px; transform: translateY(-50%);
  border-left: 8px solid var(--border); border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
@media (max-width: 720px) {
  .pipeline { flex-direction: column; gap: 0; max-width: 360px; }
  .pipeline__node.is-pilot { border-radius: var(--radius) var(--radius) 0 0; }
  .pipeline__node.is-product { border-radius: 0 0 var(--radius) var(--radius); }
  .pipeline__arrow { width: 100%; height: 24px; border-left: 1px solid var(--border); border-right: 1px solid var(--border); border-top: 0; border-bottom: 0; }
  .pipeline__arrow::after { top: auto; bottom: -1px; right: 50%; transform: translateX(50%); border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid var(--border); border-bottom: 0; }
}

/* ---------- Problem section ---------- */
.problem { background: var(--paper); border-top: 1px solid var(--border-soft); }
.question-list {
  margin: var(--s-8) 0;
  border-left: 2px solid var(--accent);
  padding-left: var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-4);
}
.question-list li {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
}

/* ---------- Framework / Pillars ---------- */
.framework {
  background: var(--paper-soft);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.pillars {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-4);
}
.pillar {
  grid-column: span 12;
  padding: var(--s-8);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  position: relative;
  transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out), border-color var(--t) var(--ease-out);
}
.pillar:hover { border-color: var(--border); box-shadow: var(--shadow); transform: translateY(-2px); }
@media (min-width: 720px)  { .pillar { grid-column: span 6; } }
@media (min-width: 1100px) {
  .pillar:nth-child(1) { grid-column: span 6; }
  .pillar:nth-child(2) { grid-column: span 6; }
  .pillar:nth-child(3) { grid-column: span 4; }
  .pillar:nth-child(4) { grid-column: span 4; }
  .pillar:nth-child(5) { grid-column: span 4; }
}

/* Stack layers: 2×2 architectural grid */
.pillars.stages .pillar {
  display: flex; flex-direction: column;
  position: relative;
  padding-top: var(--s-10);
}
@media (min-width: 720px) {
  .pillars.stages .pillar,
  .pillars.stages .pillar:nth-child(1),
  .pillars.stages .pillar:nth-child(2),
  .pillars.stages .pillar:nth-child(3),
  .pillars.stages .pillar:nth-child(4) { grid-column: span 6; }
}
.pillars.stages .pillar::before {
  content: "";
  position: absolute; left: var(--s-8); right: auto; top: var(--s-6);
  width: 24px; height: 1px;
  background: var(--accent-soft);
}
.pillars.stages .pillar__num {
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--s-3);
}
.pillar__num {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-block;
  margin-bottom: var(--s-4);
}
.pillar__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.625rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-3);
  color: var(--ink);
}
.pillar__body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-muted);
  margin-bottom: var(--s-5);
}
.pillar__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin: 0;
  padding-top: var(--s-4);
  border-top: 1px dashed var(--border-soft);
}

.registry {
  margin-top: var(--s-10);
  padding: var(--s-10);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: var(--s-8);
  align-items: start;
}
@media (max-width: 760px) {
  .registry { grid-template-columns: 1fr; gap: var(--s-4); padding: var(--s-8); }
}
.registry__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 0 0 var(--s-3);
}
.registry__title {
  font-family: var(--serif);
  font-weight: 420;
  font-size: 1.75rem;
  line-height: 1.1;
  margin: 0;
  color: var(--paper);
}
.registry__body {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--paper) 78%, var(--ink-subtle));
  margin: 0;
}

/* ---------- Stalls section ---------- */
.stalls { background: var(--paper); border-top: 1px solid var(--border-soft); }
.stall-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
}
@media (max-width: 860px) { .stall-grid { grid-template-columns: 1fr; } }
.stall {
  padding: var(--s-8);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  transition: border-color var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out), transform var(--t) var(--ease-out);
  display: flex; flex-direction: column;
}
.stall:hover { border-color: var(--border); box-shadow: var(--shadow); transform: translateY(-2px); }
.stall__stage {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--s-5);
}
.stall__quote {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 var(--s-6);
  padding-left: var(--s-5);
  border-left: 2px solid var(--accent);
  letter-spacing: -0.01em;
}
.stall__unlock {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0;
  padding-top: var(--s-5);
  border-top: 1px solid var(--border-soft);
}
.stall__unlock strong { color: var(--ink); font-weight: 600; }

/* ---------- Services ---------- */
.services { background: var(--paper); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-6);
}
@media (max-width: 860px) { .services__grid { grid-template-columns: 1fr; } }
.service {
  padding: var(--s-10);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  transition: border-color var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out), transform var(--t) var(--ease-out);
}
.service:hover { border-color: var(--border); box-shadow: var(--shadow); transform: translateY(-2px); }
.service__head { display: flex; align-items: baseline; gap: var(--s-4); margin-bottom: var(--s-5); }
.service__num {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.service__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.service__lede {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-muted);
  margin-bottom: var(--s-6);
}
.service__list {
  display: flex; flex-direction: column; gap: var(--s-3);
  margin-bottom: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border-soft);
}
.service__list li {
  position: relative;
  padding-left: var(--s-6);
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--ink);
}
.service__list li::before {
  content: "";
  position: absolute; left: 0; top: 0.65em;
  width: 10px; height: 1px;
  background: var(--accent);
}
.service__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin: 0;
  padding-top: var(--s-4);
  border-top: 1px dashed var(--border-soft);
}

/* ---------- Results ---------- */
.results {
  background: var(--paper-sunk);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-6);
  margin-top: var(--s-10);
}
@media (max-width: 860px) { .stats { grid-template-columns: 1fr; } }
.stat {
  padding: var(--s-8);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.stat__tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 0 0 var(--s-5);
  display: inline-flex; align-items: center; gap: 8px;
}
.stat__tag::before {
  content: "";
  width: 18px; height: 1px; background: var(--accent-soft); opacity: .6;
}
.stat__num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0 0 var(--s-4);
  display: flex; align-items: baseline; gap: 6px;
}
.stat__num span:first-child { font-feature-settings: "tnum"; }
.stat__unit {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.45em;
  color: var(--accent-soft);
  letter-spacing: -0.01em;
}
.stat__label {
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 var(--s-3);
  font-weight: 500;
}
.stat__context {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin: 0;
}

/* ---------- About ---------- */
.about { background: var(--paper); border-top: 1px solid var(--border-soft); }
.about__role {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 380;
  font-style: italic;
  color: var(--ink-muted);
  margin: 0 0 var(--s-8);
  line-height: 1.4;
}
.pullquote {
  margin: var(--s-8) 0 0;
  padding: var(--s-6) 0 var(--s-6) var(--s-6);
  border-left: 2px solid var(--accent);
}
.pullquote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 380;
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 var(--s-3);
}
.pullquote figcaption {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-subtle);
}
.book-card {
  margin: var(--s-8) 0;
  padding: var(--s-6) var(--s-8);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 4px;
}
.book-card__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.book-card__title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 420;
  line-height: 1.2;
  color: var(--ink);
  margin: 4px 0 2px;
}
.book-card__meta { font-size: 13px; color: var(--ink-muted); margin: 0; }
.about__links { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* ---------- CTA / Form ---------- */
.cta {
  background: var(--paper-soft);
  border-top: 1px solid var(--border-soft);
}
.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 960px) { .cta__grid { grid-template-columns: 1fr; } }
.cta__list {
  margin: var(--s-3) 0 var(--s-6);
  padding: 0;
  list-style: none;
  display: flex; flex-direction: column;
  gap: var(--s-3);
  max-width: var(--prose-w);
}
.cta__list li {
  position: relative;
  padding-left: var(--s-6);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
}
.cta__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 12px; height: 1px;
  background: var(--accent-soft);
}

.cta__checks {
  margin: var(--s-6) 0 0;
  display: flex; flex-direction: column; gap: var(--s-2);
}
.cta__checks li {
  font-size: 15px; color: var(--ink-muted);
  display: flex; align-items: center; gap: var(--s-3);
}
.cta__checks span {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: var(--paper);
  font-size: 11px; font-weight: 600;
}

.form {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--s-10);
  box-shadow: var(--shadow);
}
.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
  margin-bottom: var(--s-4);
}
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s-4); }
.field__label {
  font-size: 12px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--ink-muted);
  text-transform: uppercase;
  font-family: var(--mono);
}
.field__input {
  font: inherit; font-size: 15px;
  padding: 12px 14px; min-height: 44px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color var(--t) var(--ease-out), background var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out);
  appearance: none; -webkit-appearance: none;
}
textarea.field__input { resize: vertical; min-height: 120px; line-height: 1.55; }
select.field__input {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%23A8ADB8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  padding-right: 36px;
}
.field__input::placeholder { color: var(--ink-subtle); }
.field__input:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.form__fineprint {
  margin: var(--s-4) 0 0;
  font-size: 12px; color: var(--ink-subtle); font-family: var(--mono);
  letter-spacing: 0.02em;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--paper-sunk);
  color: var(--ink-muted);
  padding: var(--s-12) 0 var(--s-10);
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: grid; gap: var(--s-6);
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "brand tag  links"
    "legal legal legal";
  align-items: center;
}
@media (max-width: 720px) {
  .footer__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "tag"
      "links"
      "legal";
    gap: var(--s-5);
    text-align: left;
  }
}
.footer__brand {
  grid-area: brand;
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 600; font-size: 15px;
}
.footer__brand .wordmark__mono { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
.footer__tag {
  grid-area: tag;
  font-family: var(--sans);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0;
  text-align: center;
}
@media (max-width: 720px) { .footer__tag { text-align: left; } }
.footer__links {
  grid-area: links;
  display: inline-flex; gap: var(--s-5);
}
.footer__links a {
  font-size: 14px;
  color: var(--ink-muted);
  border-bottom: 1px solid transparent;
  transition: color var(--t) var(--ease-out), border-color var(--t) var(--ease-out);
}
.footer__links a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.footer__legal {
  grid-area: legal;
  margin: 0;
  padding-top: var(--s-6);
  border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-subtle);
}

/* ==========================================================
   Why Now — manifesto section
   ========================================================== */
.why-now {
  background: var(--paper-sunk);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.why-now::before {
  content: "";
  position: absolute;
  inset: -20% -10% 40% 50%;
  background: radial-gradient(ellipse at 60% 40%, color-mix(in srgb, var(--accent-soft) 8%, transparent) 0%, transparent 55%);
  pointer-events: none;
  filter: blur(60px);
}
.why-now .container { position: relative; z-index: 1; }
.manifesto {
  max-width: 760px;
  margin: 0 auto;
}
.manifesto__p {
  font-family: var(--sans);
  font-size: clamp(1.1rem, 1.35vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 var(--s-6);
  letter-spacing: -0.005em;
}
.manifesto__p em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent-soft);
}
.manifesto__close {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: var(--s-10) 0 0;
  padding-top: var(--s-8);
  border-top: 1px solid var(--border);
}

/* The Three Questions — framed artifact */
.questions-block {
  position: relative;
  margin: var(--s-12) 0;
  padding: var(--s-10) var(--s-10) var(--s-8);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--accent-soft) 4%, var(--surface-hi)),
    var(--surface));
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent-soft);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.32), 0 4px 8px rgba(0,0,0,.2);
}
.questions-block::before {
  content: "";
  position: absolute;
  top: -6px; left: var(--s-10);
  padding: 0 10px;
  height: 12px;
}
.questions-block__label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 0 0 var(--s-8);
  display: inline-flex; align-items: center; gap: 10px;
}
.questions-block__label::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--accent-soft);
  display: inline-block;
}
.questions-block__list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: var(--s-6);
}
.questions-block__q {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-5);
  align-items: baseline;
  padding-bottom: var(--s-6);
  border-bottom: 1px dashed var(--border);
}
.questions-block__q:last-child { border-bottom: 0; padding-bottom: 0; }
.questions-block__num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent-soft);
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--accent-soft) 30%, var(--border));
  border-radius: 4px;
  line-height: 1;
  background: color-mix(in srgb, var(--accent-soft) 5%, transparent);
  white-space: nowrap;
}
.questions-block__text {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}

@media (max-width: 640px) {
  .questions-block { padding: var(--s-8) var(--s-6) var(--s-6); }
  .questions-block__q { grid-template-columns: 1fr; gap: var(--s-3); }
  .questions-block__num { justify-self: start; }
}

/* ==========================================================
   Hero stack diagram — 2×2 grid with pulsing nodes + connectors
   ========================================================== */
.stack-diagram {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 680px; width: 100%;
  padding: 6px;
}
.stack-diagram__lines {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.stack-line {
  stroke: var(--border);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  animation: pulse-line 3.6s linear infinite;
}
@keyframes pulse-line {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -14; }
}
.stack-node {
  position: relative;
  z-index: 1;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color var(--t) var(--ease-out), background var(--t) var(--ease-out);
}
.stack-node.is-primary {
  background: color-mix(in srgb, var(--accent-soft) 6%, var(--surface-hi));
  border-color: color-mix(in srgb, var(--accent-soft) 35%, var(--border));
}
.stack-node__tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}
.stack-node__label {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.stack-node__pulse {
  position: absolute;
  top: 14px; right: 14px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-deep);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-soft) 40%, transparent);
  animation: pulse-dot 2s ease-in-out infinite;
}
.stack-node.is-primary .stack-node__pulse {
  background: var(--accent);
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-soft) 45%, transparent); opacity: .9; }
  50%     { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent-soft) 0%, transparent); opacity: 1; }
}
/* Stagger the four pulses so they feel like a running system */
.stack-node:nth-child(1) .stack-node__pulse { animation-delay: 0s; }
.stack-node:nth-child(2) .stack-node__pulse { animation-delay: .5s; }
.stack-node:nth-child(3) .stack-node__pulse { animation-delay: 1.5s; }
.stack-node:nth-child(4) .stack-node__pulse { animation-delay: 1s; }

@media (max-width: 640px) {
  .stack-diagram { grid-template-columns: 1fr; gap: 10px; max-width: 360px; }
  .stack-diagram__lines { display: none; }
}

/* ==========================================================
   Command Center section — dashboard mock
   ========================================================== */
.command-center {
  background: var(--paper-sunk);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.dashboard {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(0,0,0,.35), 0 8px 16px rgba(0,0,0,.22);
}
.dashboard__chrome {
  display: flex; align-items: center; gap: var(--s-4);
  padding: 12px 18px;
  background: var(--surface-hi);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-muted);
}
.dashboard__dots { display: inline-flex; gap: 6px; }
.dashboard__dots i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border); display: inline-block;
}
.dashboard__title { flex: 1; text-align: center; }
.dashboard__status {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink);
  letter-spacing: 0.08em; text-transform: uppercase; font-size: 10px;
}
.dashboard__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #5BE49B;
  box-shadow: 0 0 8px #5BE49B;
  animation: pulse-dot 1.8s ease-in-out infinite;
}
.dashboard__body { padding: var(--s-6); }

.dashboard__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
@media (max-width: 860px) { .dashboard__stats { grid-template-columns: repeat(2, 1fr); } }
.kpi {
  padding: var(--s-4) var(--s-5);
  background: var(--paper-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.kpi__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin: 0 0 6px;
}
.kpi__val {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  margin: 0 0 4px;
  font-feature-settings: "tnum";
}
.kpi__unit {
  font-size: 0.6em;
  font-weight: 500;
  color: var(--accent-soft);
  margin-left: 2px;
}
.kpi__delta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  margin: 0;
}
.kpi__delta.is-up   { color: #5BE49B; }
.kpi__delta.is-down { color: #5BE49B; }
.kpi__delta.is-flat { color: var(--ink-subtle); }

.dashboard__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--s-3);
}
@media (max-width: 860px) { .dashboard__grid { grid-template-columns: 1fr; } }
.panel {
  background: var(--paper-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: var(--s-5);
}
.panel__head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--border-soft);
}
.panel__title { font-family: var(--serif); font-weight: 500; font-size: 14px; margin: 0; color: var(--ink); letter-spacing: -0.01em; }
.panel__meta {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-subtle); margin: 0;
}
.panel__footer { margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--border-soft); }

.log { display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 11.5px; }
.log__row {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  color: var(--ink-muted);
  border-bottom: 1px dashed var(--border-soft);
}
.log__row:last-child { border-bottom: 0; }
.log__time { color: var(--ink-subtle); }
.log__tier {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid var(--border);
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  min-width: 24px;
  text-align: center;
}
.log__tier.t1 { color: #A8ADB8; border-color: #2A3040; }
.log__tier.t2 { color: #F0C674; border-color: #5A4720; background: rgba(240, 198, 116, 0.08); }
.log__tier.t3 { color: #F58B7C; border-color: #5A2B25; background: rgba(245, 139, 124, 0.08); }
.log__agent { color: var(--ink); font-weight: 500; }
.log__msg { color: var(--ink-muted); }
@media (max-width: 560px) {
  .log__row { grid-template-columns: auto auto; grid-auto-rows: auto; }
  .log__msg { grid-column: 1 / -1; padding-left: 4px; }
}

.tier-bars { display: flex; flex-direction: column; gap: 12px; }
.tier {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  align-items: center;
}
.tier__label {
  grid-row: 1; grid-column: 1;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted);
}
.tier__val {
  grid-row: 1; grid-column: 2;
  font-family: var(--mono); font-size: 11px; color: var(--ink);
  font-weight: 500;
}
.tier__bar {
  grid-row: 2; grid-column: 1 / -1;
  height: 6px;
  background: var(--border-soft);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.tier__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-soft));
  border-radius: 3px;
}

/* ==========================================================
   Workflows section — deployed-pattern cards
   ========================================================== */
.workflows { background: var(--paper); }
.wf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
}
@media (max-width: 860px) { .wf-grid { grid-template-columns: 1fr; } }
.wf-card {
  padding: var(--s-8);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  transition: border-color var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out), transform var(--t) var(--ease-out);
}
.wf-card:hover { border-color: var(--border); box-shadow: var(--shadow); transform: translateY(-2px); }
.wf-card__tag {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 0 0 var(--s-4);
}
.wf-card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.375rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 var(--s-3);
}
.wf-card__body {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0 0 var(--s-5);
}
.wf-card__flow {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: var(--s-4);
  border-top: 1px solid var(--border-soft);
  list-style: none; padding-left: 0;
}
.wf-card__flow li {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--ink-muted);
  display: flex; align-items: center; gap: 10px;
}
.wf-card__step {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--ink-subtle);
  padding: 3px 6px;
  border: 1px solid var(--border);
  border-radius: 3px;
  min-width: 24px;
  text-align: center;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .pillar, .service { transition: none; }
}

/* ---------- Print niceties ---------- */
@media print {
  .nav, .hero__pipeline, .cta, .footer__links, .form { display: none; }
  body { background: #fff; color: #000; }
  section { padding: 20px 0; break-inside: avoid; }
}
