/* =============================================================================
   OrgEdge — Editorial Atlas + Console hybrid
   New design system for index, for-{boards,leaders,investors,consultants,managers}
   and the new agents page. Other pages keep using styles.css.
   ============================================================================= */

/* ---------- Tokens ---------- */
:root {
  --serif: 'IBM Plex Serif', 'Source Serif Pro', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ink:    #0a1628;
  --paper:  #fbfaf6;
  --cream:  #f3efe5;
  --rule:   #1f2a3a;
  --muted:  #5a6a82;
  --accent: #3182ce;
  --accent-deep: #1a365d;
  --signal: #d97706;
  --green:  #22c55e;
  --red:    #f87171;

  --panel-bg:   #0f1a2c;
  --panel-bg-2: #0a1019;
  --panel-bg-3: #0f1726;
  --panel-ink:  #e6ecf5;
  --panel-dim:  #94a3b8;
  --panel-dim-2:#7d8ba6;
  --panel-line: #1f2c44;

  --pad-x: 56px;
  --pad-x-mobile: 24px;
  --maxw: 1280px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
input, select { font: inherit; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: 8px 14px; z-index: 1000;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Layout ---------- */
.ed-page {
  background: var(--paper);
  color: var(--ink);
  margin: 0 auto;
  max-width: var(--maxw);
  width: 100%;
  font-family: var(--sans);
}

.ed-row {
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ---------- Mono helpers ---------- */
.ed-mono {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}
.ed-mono--xs   { font-size: 9px; }
.ed-mono--sm   { font-size: 10px; }
.ed-mono--lg   { font-size: 12px; }
.ed-mono--accent { color: var(--accent); }
.ed-mono--signal { color: var(--signal); }
.ed-mono--ink    { color: var(--ink); }
.ed-mono--dim    { color: var(--panel-dim); }
.ed-mono--bold   { font-weight: 600; }

/* Italic accent inside serif headlines */
em.em-blue  { font-style: italic; color: var(--accent); }
em.em-amber { font-style: italic; color: var(--signal); }

/* ---------- Masthead (with locale picker) ---------- */
.ed-mast {
  border-bottom: 2px solid var(--ink);
  padding: 18px var(--pad-x);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.ed-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
}
.ed-brand-mark { width: 28px; height: 28px; flex-shrink: 0; }
.ed-brand-name { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }

/* Animated logo — four boxes circle the centre dot. Plays 2 cycles on load,
   resumes on hover. Same behaviour as the original site (styles.css). */
@keyframes ed-logo-cw-tl {
  0%   { transform: translate(0, 0);       animation-timing-function: ease-in-out; }
  25%  { transform: translate(16px, 0);    animation-timing-function: ease-in-out; }
  50%  { transform: translate(16px, 16px); animation-timing-function: ease-in-out; }
  75%  { transform: translate(0, 16px);    animation-timing-function: ease-in-out; }
  100% { transform: translate(0, 0); }
}
@keyframes ed-logo-cw-tr {
  0%   { transform: translate(0, 0);        animation-timing-function: ease-in-out; }
  25%  { transform: translate(0, 16px);     animation-timing-function: ease-in-out; }
  50%  { transform: translate(-16px, 16px); animation-timing-function: ease-in-out; }
  75%  { transform: translate(-16px, 0);    animation-timing-function: ease-in-out; }
  100% { transform: translate(0, 0); }
}
@keyframes ed-logo-cw-bl {
  0%   { transform: translate(0, 0);        animation-timing-function: ease-in-out; }
  25%  { transform: translate(0, -16px);    animation-timing-function: ease-in-out; }
  50%  { transform: translate(16px, -16px); animation-timing-function: ease-in-out; }
  75%  { transform: translate(16px, 0);     animation-timing-function: ease-in-out; }
  100% { transform: translate(0, 0); }
}
@keyframes ed-logo-cw-br {
  0%   { transform: translate(0, 0);         animation-timing-function: ease-in-out; }
  25%  { transform: translate(-16px, 0);     animation-timing-function: ease-in-out; }
  50%  { transform: translate(-16px, -16px); animation-timing-function: ease-in-out; }
  75%  { transform: translate(0, -16px);     animation-timing-function: ease-in-out; }
  100% { transform: translate(0, 0); }
}
.ed-logo-intro.ed-logo-box-tl { animation: ed-logo-cw-tl 4s linear 2; }
.ed-logo-intro.ed-logo-box-tr { animation: ed-logo-cw-tr 4s linear 2; }
.ed-logo-intro.ed-logo-box-bl { animation: ed-logo-cw-bl 4s linear 2; }
.ed-logo-intro.ed-logo-box-br { animation: ed-logo-cw-br 4s linear 2; }
@media (hover: hover) {
  .ed-brand:hover .ed-logo-box-tl { animation: ed-logo-cw-tl 4s linear infinite; }
  .ed-brand:hover .ed-logo-box-tr { animation: ed-logo-cw-tr 4s linear infinite; }
  .ed-brand:hover .ed-logo-box-bl { animation: ed-logo-cw-bl 4s linear infinite; }
  .ed-brand:hover .ed-logo-box-br { animation: ed-logo-cw-br 4s linear infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .ed-logo-box { animation: none !important; }
}

.ed-nav {
  display: flex; gap: 28px; justify-content: center; flex-wrap: wrap;
}
.ed-nav-item {
  font-size: 13px; color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.ed-nav-item.is-current { color: var(--accent); font-weight: 600; }
.ed-nav-group { position: relative; }
.ed-nav-group > .ed-nav-item::after {
  content: ' ▾';
  font-size: 9px;
  color: var(--muted);
  vertical-align: middle;
}
.ed-dropdown {
  position: absolute;
  top: 100%; left: -8px;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 8px 0;
  min-width: 200px;
  display: none;
  z-index: 50;
  box-shadow: 0 8px 28px rgba(10, 22, 40, 0.12);
}
.ed-nav-group:hover .ed-dropdown,
.ed-nav-group:focus-within .ed-dropdown { display: block; }
.ed-dropdown a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--ink);
}
.ed-dropdown a:hover { background: var(--cream); color: var(--accent); }

.ed-mast-right {
  display: flex; align-items: center; gap: 16px; justify-content: flex-end;
}
.ed-lang-select {
  background: transparent;
  border: 1px solid var(--rule);
  padding: 6px 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink);
  letter-spacing: 0.06em;
  cursor: pointer;
}
.ed-cta {
  font-size: 13px;
  padding: 9px 18px;
  border: 1px solid var(--ink);
  color: var(--ink);
  display: inline-block;
  transition: background 160ms, color 160ms;
}
.ed-cta:hover { background: var(--ink); color: var(--paper); }

.ed-menu-toggle {
  display: none;
  width: 36px; height: 36px;
  border: 1px solid var(--rule);
  align-items: center; justify-content: center;
}
.ed-menu-toggle svg { width: 18px; height: 18px; stroke: var(--ink); }

/* ---------- Edition strip ---------- */
.ed-edition {
  padding: 10px var(--pad-x);
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.ed-edition-mid { text-align: center; flex: 1; }
.ed-edition .here { color: var(--ink); }

/* ---------- Section base ---------- */
.ed-section {
  padding: 72px var(--pad-x);
}
.ed-section--top    { padding-top: 88px; }
.ed-section--tight  { padding: 48px var(--pad-x); }
.ed-section--rule   { border-top: 1px solid var(--rule); }
.ed-section--rule-2 { border-top: 2px solid var(--ink); }
.ed-section--cream  { background: var(--cream); border-top: 1px solid var(--rule); }
.ed-section--ink    { background: var(--ink); color: var(--paper); }
.ed-section--ink em { color: var(--signal); }

/* ---------- Hero (split editorial + console) ---------- */
.ed-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  padding: 72px var(--pad-x) 56px;
  align-items: start;
}
.ed-hero--home { grid-template-columns: 1.1fr 0.9fr; }
.ed-hero--solo { grid-template-columns: 1fr; padding-bottom: 48px; }
.ed-hero--solo .ed-hero-copy { max-width: 900px; }
.ed-hero-kicker { display: block; margin-bottom: 18px; }
.ed-hero h1 {
  font-family: var(--serif);
  font-size: 76px;
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
}
.ed-hero--home h1 { font-size: 84px; line-height: 0.98; }
.ed-hero-lead {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.45;
  max-width: 540px;
}
.ed-hero--solo .ed-hero-lead { max-width: 720px; font-size: 21px; }

.ed-hero-cta {
  margin-top: 36px;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}

/* Buttons */
.ed-btn-solid {
  background: var(--ink);
  color: var(--paper);
  padding: 14px 28px;
  font-size: 14px;
  letter-spacing: 0.02em;
  display: inline-block;
  transition: background 160ms;
}
.ed-btn-solid:hover { background: #142239; }
.ed-section--ink .ed-btn-solid { background: var(--paper); color: var(--ink); font-weight: 600; }
.ed-section--ink .ed-btn-solid:hover { background: #ffffff; }

.ed-btn-link {
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: opacity 160ms;
}
.ed-btn-link:hover { opacity: 0.7; }
.ed-section--ink .ed-btn-link { color: var(--paper); border-color: var(--paper); }

.ed-btn-ghost {
  border: 1px solid rgba(251, 250, 246, 0.4);
  color: var(--paper);
  padding: 14px 24px;
  font-size: 14px;
  display: inline-block;
}
.ed-btn-ghost:hover { background: rgba(255,255,255,0.06); }

/* Reading footnote */
.ed-readfoot {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px dashed var(--rule);
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

/* Hero figure caption */
.ed-figcaption {
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.55;
}

/* ---------- Console panel (dark) ---------- */
.ed-console {
  background: var(--panel-bg);
  color: var(--panel-ink);
  padding: 24px 24px 22px;
  position: relative;
}
.ed-console--alt { background: var(--panel-bg-2); }
.ed-console-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.ed-console-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--panel-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ed-console-dots { display: flex; gap: 6px; }
.ed-console-dots span { width: 8px; height: 8px; border-radius: 50%; background: #475569; }
.ed-console-dots span.live { background: var(--signal); }

/* Console title (function name etc.) */
.ed-console-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--panel-ink);
  margin-bottom: 4px;
}
.ed-console-subtitle {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--panel-dim);
  margin-bottom: 16px;
}

.ed-console-body {
  background: var(--panel-bg-3);
  border: 1px solid var(--panel-line);
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.85;
}
.ed-console-body--row { padding: 10px 8px; }
.ed-console-body--rich { padding: 14px 14px; }

.ed-console-foot {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--panel-dim);
  line-height: 1.9;
}
.ed-console-foot .arr { color: var(--signal); }
.ed-console-foot .ok  { color: #22d3ee; }

.ed-console-nb {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--panel-line);
}
.ed-console-nb-title { font-family: var(--mono); font-size: 10px; color: var(--panel-dim); letter-spacing: 0.12em; text-transform: uppercase; }
.ed-console-nb-body  { margin-top: 8px; font-family: var(--serif); font-size: 15px; font-style: italic; color: var(--panel-ink); line-height: 1.5; }

/* Ontology stack rows (home hero) */
.ed-stack-row {
  display: grid;
  grid-template-columns: 36px 116px 36px 1fr;
  align-items: center;
  gap: 8px;
  padding: 3px 6px;
  border-radius: 2px;
}
.ed-stack-row.is-agent { background: rgba(217, 118, 6, 0.13); }
.ed-stack-row .lid    { color: #64748b; }
.ed-stack-row .layer  { color: var(--panel-ink); font-weight: 600; }
.ed-stack-row.is-agent .layer { color: var(--signal); }
.ed-stack-row .count  { color: var(--panel-dim); text-align: right; }
.ed-stack-row .terms  { color: var(--panel-dim); }
.ed-stack-row .terms .agent { color: var(--signal); font-weight: 600; }
.ed-stack-frame { color: #64748b; }

/* Generic console row (board pack trace, leader function rows etc.) */
.ed-trace-row {
  display: grid;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
}
.ed-trace-row.t-3col { grid-template-columns: 14px 110px 1fr; }
.ed-trace-row.t-4col { grid-template-columns: 90px 1fr 60px 80px; }
.ed-trace-row.t-5col { grid-template-columns: 1.4fr 1fr 70px 80px; }
.ed-trace-row .dot   { width: 8px; height: 8px; border-radius: 50%; }
.ed-trace-row .label { font-weight: 600; font-size: 10px; letter-spacing: 0.08em; }
.ed-trace-row .v     { color: var(--panel-ink); }
.ed-trace-row .pct   { color: var(--panel-dim); text-align: right; }
.ed-bar { height: 4px; background: var(--panel-line); overflow: hidden; }
.ed-bar > i { display: block; height: 100%; }

/* Pair box (acquirer / target) */
.ed-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px;
}
.ed-pair-card {
  padding: 10px 12px;
  background: var(--panel-bg-3);
  border: 1px solid var(--panel-line);
}
.ed-pair-card .name { font-family: var(--serif); font-size: 16px; font-weight: 500; color: var(--panel-ink); margin-top: 2px; }
.ed-pair-card .meta { font-family: var(--mono); font-size: 10px; color: var(--panel-dim); margin-top: 2px; }

/* Diff rows (investors merge.diff) */
.ed-diff-row {
  display: grid;
  grid-template-columns: 20px 1fr 80px;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  border-left: 2px solid var(--panel-line);
}
.ed-diff-row .sym { font-family: var(--mono); font-size: 11px; font-weight: 700; }
.ed-diff-row .lbl { font-family: var(--mono); font-size: 11px; color: var(--panel-ink); }
.ed-diff-row .val { font-family: var(--mono); font-size: 10px; color: var(--panel-dim); text-align: right; }
.ed-diff-row.add    { background: rgba(34,197,94,0.08);   border-left-color: var(--green); }
.ed-diff-row.add    .sym { color: var(--green); }
.ed-diff-row.remove { background: rgba(248,113,113,0.08); border-left-color: var(--red);   }
.ed-diff-row.remove .sym { color: var(--red); }

/* Multi-tenant client row (consultants) */
.ed-client-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 70px 80px;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--panel-line);
  font-family: var(--mono);
  font-size: 11px;
}
.ed-client-row:last-child { border-bottom: none; }
.ed-client-row .name { font-family: var(--serif); font-size: 13px; color: var(--panel-ink); text-transform: none; letter-spacing: 0; }
.ed-client-row .mode { color: var(--panel-dim); font-size: 10px; }
.ed-client-row .stage { font-size: 9px; letter-spacing: 0.1em; font-weight: 600; }

.ed-stat-mini-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.ed-stat-mini {
  padding: 8px 10px;
  background: var(--panel-bg-3);
  border: 1px solid var(--panel-line);
}
.ed-stat-mini .lbl { font-family: var(--mono); font-size: 9px; color: var(--panel-dim); letter-spacing: 0.12em; text-transform: uppercase; }
.ed-stat-mini .val { font-family: var(--serif); font-size: 22px; color: var(--panel-ink); margin-top: 2px; }

/* My team console (managers) */
.ed-ppl-row {
  display: grid;
  grid-template-columns: 20px 1.2fr 1fr 1.2fr;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-bottom: 1px solid var(--panel-line);
}
.ed-ppl-row:last-child { border-bottom: none; }
.ed-ppl-row .av {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--panel-line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 9px; font-style: italic;
  color: var(--panel-ink);
}
.ed-ppl-row .av.open { background: transparent; border: 1px dashed var(--panel-dim-2); }
.ed-ppl-row .name { font-family: var(--serif); font-size: 14px; color: var(--panel-ink); }
.ed-ppl-row .role { font-family: var(--mono); font-size: 10px; color: var(--panel-dim); }
.ed-ppl-row .load { font-family: var(--mono); font-size: 10px; }

.ed-deps {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--panel-bg-3);
  border: 1px solid var(--panel-line);
}
.ed-deps-list { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.ed-deps-list span {
  font-family: var(--mono);
  font-size: 10px;
  color: #22d3ee;
  padding: 3px 8px;
  border: 1px solid var(--panel-line);
}

/* ---------- Section: rotating stat band (home) ---------- */
.ed-stat-band {
  padding: 24px var(--pad-x) 80px;
  border-top: 1px solid var(--rule);
}
.ed-stat-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 24px 0 8px;
  gap: 16px; flex-wrap: wrap;
}
.ed-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.ed-stat-card {
  border-top: 2px solid var(--ink);
  padding-top: 18px;
  min-height: 230px;
  outline: none;
  cursor: default;
}
.ed-stat-card:focus-visible { box-shadow: 0 -2px 0 var(--accent) inset; }
.ed-stat-kicker {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.ed-stat-body {
  transition: opacity 420ms ease, transform 420ms ease;
  opacity: 1;
  transform: translateY(0);
}
.ed-stat-body.is-out { opacity: 0; transform: translateY(-6px); }
.ed-stat-num {
  font-family: var(--serif);
  font-size: 72px;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 14px;
}
.ed-stat-text {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 12px;
  min-height: 72px;
}
.ed-stat-source {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ed-stat-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px;
}
.ed-stat-pips { display: flex; gap: 4px; }
.ed-stat-pips span {
  width: 18px; height: 2px;
  background: #cdd5e0;
  transition: background 220ms;
}
.ed-stat-pips span.is-on { background: var(--ink); }
.ed-stat-mode {
  font-family: var(--mono);
  font-size: 9px;
  color: #cdd5e0;
  letter-spacing: 0.1em;
}
.ed-stat-card.is-paused .ed-stat-mode { color: var(--signal); }

/* ---------- Section: single big stat (sub-pages) ---------- */
.ed-bigstat {
  padding: 72px var(--pad-x);
  background: var(--ink);
  color: var(--paper);
}
.ed-bigstat-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
}
.ed-bigstat-num {
  font-family: var(--serif);
  font-size: 200px;
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.04em;
  display: block;
}
.ed-bigstat-num .unit { font-size: 90px; }
.ed-bigstat-text {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.3;
  margin: 20px 0 24px;
}
.ed-bigstat-source {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(251,250,246,0.55);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Section: 3-column case grid (use cases / problem reasons) ---------- */
.ed-cases-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 28px; gap: 24px; flex-wrap: wrap;
}
.ed-cases-head h2 {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  max-width: 720px;
}
.ed-cases-head h2.lg { font-size: 48px; }
.ed-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}
.ed-case {
  padding: 28px 24px 24px;
  border-right: 1px solid var(--rule);
}
.ed-case:last-child { border-right: none; }
.ed-case-num {
  font-family: var(--serif);
  font-size: 32px;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 12px;
}
.ed-case h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  line-height: 1.2;
}
.ed-case p {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 20px;
}
.ed-case-foot {
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}
.ed-case-quote {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  margin-bottom: 6px;
}

/* ---------- Section: capabilities (3-col tiled) ---------- */
.ed-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.ed-cap {
  background: var(--paper);
  padding: 28px 24px 26px;
}
.ed-cap-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
}
.ed-cap-fn { font-family: var(--mono); font-size: 10px; color: var(--signal); letter-spacing: 0.04em; }
.ed-cap-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 10px;
}
.ed-cap p {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

/* ---------- Wedge (dark contrast section) ---------- */
.ed-wedge {
  padding: 88px var(--pad-x);
  background: var(--ink);
  color: var(--paper);
}
.ed-wedge-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: center;
}
.ed-wedge h2 {
  font-family: var(--serif);
  font-size: 60px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 20px 0 24px;
}
.ed-wedge h2 .dim { opacity: 0.42; display: block; margin-bottom: 8px; }
.ed-wedge p {
  font-family: var(--serif);
  font-size: 19px;
  color: rgba(251,250,246,0.78);
  line-height: 1.55;
  max-width: 480px;
}

.ed-wedge-cards {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 14px;
  align-items: stretch;
}
.ed-wedge-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-line);
  padding: 20px 18px;
}
.ed-wedge-card.dim { opacity: 0.55; transform: scale(0.95); transform-origin: top right; }
.ed-wedge-card.lit {
  border: 1.5px solid var(--signal);
  padding: 32px 28px;
  box-shadow: 0 0 0 6px rgba(217,118,6,0.12), 0 24px 60px rgba(0,0,0,0.4);
}
.ed-wedge-list {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--panel-dim);
  line-height: 1.8;
  font-style: italic;
}
.ed-wedge-card.lit .ed-wedge-list { font-size: 17px; line-height: 1.85; color: var(--panel-ink); }
.ed-wedge-list .y { color: var(--signal); }

.ed-wedge-score-divider {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--panel-line);
}
.ed-wedge-card.lit .ed-wedge-score-divider { margin-top: 24px; padding-top: 16px; }
.ed-wedge-score {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
}
.ed-wedge-card.lit .ed-wedge-score { font-size: 56px; line-height: 1; letter-spacing: -0.02em; color: var(--signal); }
.ed-wedge-card.dim .ed-wedge-score { color: var(--red); }
.ed-wedge-score-label {
  font-family: var(--mono); font-size: 9px; color: var(--panel-dim);
  letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px;
}
.ed-wedge-card.lit .ed-wedge-score-label { font-size: 10px; margin-top: 6px; }

/* ---------- Compliance grid (boards) ---------- */
.ed-comp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.ed-comp {
  background: var(--paper);
  padding: 24px 20px 22px;
}
.ed-comp-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px;
}
.ed-comp-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 600;
}
.ed-comp-status .pip { width: 6px; height: 6px; border-radius: 50%; }
.ed-comp-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 10px;
}
.ed-comp-score {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px;
}
.ed-comp-score-num {
  font-family: var(--serif); font-size: 44px; font-weight: 400;
  letter-spacing: -0.02em; color: var(--ink); line-height: 1;
}
.ed-comp-score-deno {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.ed-comp-bar {
  height: 4px; background: #e8e2d2; border-radius: 2px; overflow: hidden;
}
.ed-comp-bar > i { display: block; height: 100%; }

/* ---------- Closing band (dark, with timeline) ---------- */
.ed-closing {
  background: var(--ink);
  color: var(--paper);
  padding: 64px var(--pad-x) 56px;
  border-top: 1px solid var(--rule);
}
.ed-closing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: flex-start;
}
.ed-closing-grid--center { align-items: center; }
.ed-closing h2 {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 16px 0 18px;
}
.ed-closing h2.lg { font-size: 56px; }
.ed-closing p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  color: rgba(251,250,246,0.78);
  max-width: 460px;
}
.ed-closing p.lg { font-size: 19px; line-height: 1.5; }
.ed-closing-cta { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

.ed-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--panel-line);
}
.ed-timeline-step {
  padding: 20px 18px;
  border-right: 1px solid var(--panel-line);
}
.ed-timeline-step:last-child { border-right: none; }
.ed-timeline-step .num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--signal);
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.ed-timeline-step .ttl {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 8px;
}
.ed-timeline-step .body {
  font-family: var(--serif);
  font-size: 14px;
  color: rgba(251,250,246,0.7);
  line-height: 1.5;
  margin-bottom: 14px;
}
.ed-timeline-step .when {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(251,250,246,0.5);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Lighter (paper) timeline used on home */
.ed-timeline.is-paper {
  border-top-color: var(--rule);
}
.ed-timeline.is-paper .ed-timeline-step {
  padding: 24px 24px 28px;
  border-right-color: var(--rule);
}
.ed-timeline.is-paper .ed-timeline-step .ttl { color: var(--ink); font-size: 22px; letter-spacing: -0.01em; }
.ed-timeline.is-paper .ed-timeline-step .body { color: var(--ink); font-size: 15px; line-height: 1.55; }
.ed-timeline.is-paper .ed-timeline-step .num  { color: var(--signal); }

.ed-timeline-foot {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  margin-top: 0;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Partner economics (consultants) ---------- */
.ed-pe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
}
.ed-pe {
  padding: 24px 20px;
  border-right: 1px solid var(--rule);
}
.ed-pe:last-child { border-right: none; }
.ed-pe .v {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 10px 0 12px;
  color: var(--signal);
}
.ed-pe .sub { font-family: var(--serif); font-size: 13px; color: var(--ink); line-height: 1.5; }

/* ---------- Email pack form (managers) ---------- */
.ed-form-row {
  margin-top: 16px; display: flex; gap: 8px;
}
.ed-form-row input {
  flex: 1;
  background: var(--panel-bg-3);
  border: 1px solid var(--panel-line);
  color: var(--panel-ink);
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 12px;
  outline: none;
}
.ed-form-row input:focus { border-color: var(--signal); }
.ed-form-row button {
  background: var(--signal); color: var(--ink);
  padding: 10px 18px; font-size: 12px; font-family: var(--mono);
  letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600;
}

/* ---------- Agent trace (agents page) ---------- */
.ed-agent-panel {
  background: var(--panel-bg-2);
  color: var(--panel-ink);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
}
.ed-agent-trace {
  padding: 28px;
  border-right: 1px solid var(--panel-line);
}
.ed-agent-trace-head {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; gap: 16px; flex-wrap: wrap;
}
.ed-agent-trace-title {
  font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--panel-ink); margin-top: 6px;
}

.ed-trace-step {
  display: grid;
  grid-template-columns: 70px 18px 1fr;
  gap: 14px;
  align-items: flex-start;
  position: relative;
}
.ed-trace-time { font-family: var(--mono); font-size: 10px; color: var(--panel-dim); padding-top: 4px; letter-spacing: 0.05em; }
.ed-trace-rail { display: flex; flex-direction: column; align-items: center; height: 100%; position: relative; }
.ed-trace-rail .dot {
  width: 10px; height: 10px; border-radius: 50%; margin-top: 5px;
  background: var(--green);
}
.ed-trace-step.active .ed-trace-rail .dot { background: var(--signal); box-shadow: 0 0 0 4px rgba(217,118,6,0.2); }
.ed-trace-step.wait   .ed-trace-rail .dot { background: #a78bfa; }
.ed-trace-rail .line {
  position: absolute; top: 18px; bottom: -10px;
  width: 1px; background: var(--panel-line);
}
.ed-trace-step.last .ed-trace-rail .line { display: none; }
.ed-trace-step .body { padding-bottom: 14px; }
.ed-trace-step .ttl  { font-family: var(--mono); font-size: 12px; color: var(--panel-ink); margin-bottom: 3px; }
.ed-trace-step .det  { font-family: var(--serif); font-size: 13px; color: var(--panel-dim); font-style: italic; line-height: 1.45; }
.ed-trace-node {
  margin-top: 6px; display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px;
  background: rgba(49,130,206,0.12);
  border: 1px solid rgba(49,130,206,0.3);
}
.ed-trace-node .tag { font-family: var(--mono); font-size: 9px; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; }
.ed-trace-node .ref { font-family: var(--mono); font-size: 10px; color: #9ec3e8; }

.ed-agent-context {
  padding: 28px; display: flex; flex-direction: column;
}
.ed-ctx-row {
  display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--panel-line);
}
.ed-ctx-row .k { font-family: var(--mono); font-size: 9px; color: var(--panel-dim); letter-spacing: 0.12em; text-transform: uppercase; }
.ed-ctx-row .v { font-family: var(--mono); font-size: 11px; color: var(--panel-ink); }

.ed-perf-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px;
}
.ed-perf-grid .v { font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--panel-ink); }
.ed-perf-grid .v sup { font-size: 14px; }

/* Graph slice (agents page) */
.ed-graph {
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 40px 32px;
  position: relative;
  height: 380px;
  overflow: hidden;
}
.ed-graph-svg { position: absolute; top: 40px; left: 32px; width: calc(100% - 64px); height: calc(100% - 80px); }
.ed-graph-node {
  position: absolute;
  width: 200px;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 10px 12px;
}
.ed-graph-node.primary {
  background: var(--ink); color: var(--paper);
  border-color: var(--signal);
  box-shadow: 0 0 0 4px rgba(217,118,6,0.15);
}
.ed-graph-node .typ { font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; font-weight: 600; }
.ed-graph-node .lbl { font-family: var(--serif); font-size: 15px; font-weight: 500; margin-top: 4px; line-height: 1.2; }
.ed-graph-node .sub { font-family: var(--mono); font-size: 10px; margin-top: 4px; color: var(--muted); }
.ed-graph-node.primary .sub { color: var(--panel-dim); }

/* Agent variants grid (closing band) */
.ed-variants {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--panel-line); border: 1px solid var(--panel-line);
}
.ed-variants .v {
  padding: 18px;
  background: var(--ink);
}
.ed-variants .v .t { font-family: var(--serif); font-size: 17px; font-weight: 500; margin-bottom: 6px; }

/* ---------- Footer ---------- */
.ed-foot {
  border-top: 2px solid var(--ink);
  padding: 20px var(--pad-x);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Partner tracks (partners.html) ---------- */
.ed-tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.ed-track {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
}
.ed-track.is-primary {
  border: 2px solid var(--ink);
  background: var(--cream);
}
.ed-track h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 8px 0 6px;
}
.ed-track .lead {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 20px;
}
.ed-track .rev {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--signal);
  margin: 6px 0 4px;
}
.ed-track .rev-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.ed-track ul {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: 10px;
}
.ed-track li {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  padding-left: 18px;
  position: relative;
}
.ed-track li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

/* ---------- Journey (getting-started.html) ---------- */
.ed-journey {
  border-top: 1px solid var(--rule);
}
.ed-journey-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.ed-journey-step .num {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
}
.ed-journey-step .body h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  line-height: 1.15;
}
.ed-journey-step .body p {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  max-width: 760px;
  margin: 0;
}
.ed-journey-step .meta {
  margin-top: 12px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Editorial form (contact / inline) ---------- */
.ed-form {
  display: grid;
  gap: 16px;
}
.ed-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ed-form label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ed-form input,
.ed-form select,
.ed-form textarea {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 160ms;
  border-radius: 0;
}
.ed-form input:focus,
.ed-form select:focus,
.ed-form textarea:focus { border-color: var(--accent); }
.ed-form textarea { resize: vertical; min-height: 120px; }
.ed-form button[type="submit"] {
  background: var(--ink);
  color: var(--paper);
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.02em;
  border: 0;
  cursor: pointer;
  align-self: flex-start;
  transition: background 160ms;
}
.ed-form button[type="submit"]:hover:not(:disabled) { background: #142239; }
.ed-form button[type="submit"]:disabled { opacity: 0.5; cursor: wait; }
.ed-form-status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  margin-top: 8px;
  display: none;
}
.ed-form-status.is-ok  { display: block; color: #16a34a; }
.ed-form-status.is-err { display: block; color: var(--red); }

/* ---------- Price card (pricing) ---------- */
.ed-price-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 32px 28px;
}
.ed-price-card .num {
  font-family: var(--serif);
  font-size: 88px;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.ed-price-card .num .currency { font-size: 44px; line-height: 1; }
.ed-price-card .num .unit {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-left: 4px;
}
.ed-price-card hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 22px 0;
}
.ed-price-list {
  display: grid;
  gap: 10px;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
  line-height: 1.45;
}
.ed-price-list .row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: baseline;
}
.ed-price-list .row .check {
  color: var(--accent);
  font-weight: 700;
  font-family: var(--mono);
  font-size: 13px;
}

/* ---------- Ask-the-model (boards) ---------- */
.ed-ask-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.ed-ask-input {
  margin-top: 8px;
  padding: 14px 16px;
  background: var(--panel-bg-3);
  border: 1px solid var(--panel-line);
  border-left: 3px solid var(--signal);
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--panel-ink);
  line-height: 1.5;
}
.ed-ask-input .prompt { color: var(--signal); font-weight: 700; }
.ed-ask-input .text   { flex: 1; }
.ed-ask-input .caret {
  display: inline-block;
  width: 2px; height: 14px;
  background: var(--signal);
  animation: ed-caret-blink 1s step-end infinite;
  align-self: center;
}
@keyframes ed-caret-blink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.ed-ask-answer {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--panel-bg-3);
  border: 1px solid var(--panel-line);
  font-family: var(--serif);
  font-size: 14px;
  color: var(--panel-ink);
  line-height: 1.7;
}
.ed-ask-answer .label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--panel-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ed-ask-answer .rows {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.85;
  color: var(--panel-dim);
}
.ed-ask-answer .rows .pip { color: #fbbf24; margin-right: 6px; }
.ed-ask-answer .rows .more { color: var(--panel-dim-2); }

.ed-ask-chips {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ed-ask-chip {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  background: rgba(49, 130, 206, 0.08);
  border: 1px solid rgba(49, 130, 206, 0.25);
  padding: 7px 12px;
  letter-spacing: 0.02em;
  cursor: default;
  transition: background 160ms;
}
.ed-ask-chip:hover { background: rgba(49, 130, 206, 0.18); }

/* ---------- Video embed ---------- */
.ed-video {
  position: relative;
  background: var(--panel-bg-2);
  overflow: hidden;
  margin-top: 18px;
  aspect-ratio: 16 / 9;
}
.ed-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ed-video-cover {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(10,16,25,0.55), rgba(10,22,40,0.25));
  color: var(--paper);
  cursor: pointer;
  transition: opacity 200ms;
  border: 0;
}
.ed-video-cover:hover { background: linear-gradient(135deg, rgba(10,16,25,0.4), rgba(10,22,40,0.15)); }
.ed-video.is-playing .ed-video-cover { opacity: 0; pointer-events: none; }
.ed-video-cover .play-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  background: rgba(251,250,246,0.95);
  color: var(--ink);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  border: 0;
}
.ed-video-cover .play-pill::before {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 8px solid var(--ink);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.ed-video-cap {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--panel-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 12px;
  background: var(--panel-bg-2);
  border-top: 1px solid var(--panel-line);
}

/* Hero video (agents page) — larger, bordered like a console */
.ed-video--hero { margin-top: 0; border: 1px solid var(--panel-line); }
.ed-video--inline { aspect-ratio: 16 / 10; }

/* Expand-on-play modal — clicking the cover opens the video at ~75% of the
   viewport with full controls + sound. Backdrop click or Esc closes it. */
.ed-video-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 25, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  padding: 24px;
}
.ed-video-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.ed-video-modal-inner {
  position: relative;
  width: min(75vw, 1600px);
  max-height: 85vh;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.ed-video-modal-inner video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}
.ed-video-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  background: rgba(251, 250, 246, 0.95);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms;
}
.ed-video-modal-close:hover { background: var(--paper); }
.ed-video-modal-cap {
  position: absolute;
  bottom: -32px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(251, 250, 246, 0.65);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .ed-video-modal { padding: 16px; }
  .ed-video-modal-inner { width: 92vw; }
  .ed-video-modal-close { top: -40px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  :root { --pad-x: 24px; }

  .ed-mast {
    grid-template-columns: auto auto;
    gap: 12px;
  }
  .ed-mast-right { grid-column: 1 / -1; justify-content: space-between; }
  .ed-nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--rule);
    padding-top: 12px;
  }
  .ed-nav.is-open { display: flex; }
  .ed-nav-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--cream);
    font-size: 14px;
  }
  .ed-nav-group .ed-dropdown {
    display: block;
    position: static;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 14px;
    background: transparent;
    min-width: 0;
  }
  .ed-nav-group .ed-dropdown a { padding: 6px 0; }
  .ed-menu-toggle { display: inline-flex; }

  .ed-edition { flex-wrap: wrap; gap: 8px; font-size: 9px; }
  .ed-edition-mid { display: none; }

  .ed-hero,
  .ed-hero--home,
  .ed-hero--solo {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px var(--pad-x) 32px;
  }
  .ed-hero h1 { font-size: 44px; }
  .ed-hero--home h1 { font-size: 48px; }
  .ed-hero-lead { font-size: 17px; }

  .ed-section, .ed-section--top { padding: 56px var(--pad-x); }
  .ed-stat-band { padding: 24px var(--pad-x) 56px; }

  .ed-bigstat-grid { grid-template-columns: 1fr; gap: 24px; text-align: left; }
  .ed-bigstat-num { font-size: 120px; }
  .ed-bigstat-num .unit { font-size: 56px; }
  .ed-bigstat-text { font-size: 20px; }

  .ed-stat-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .ed-stat-num { font-size: 56px; }
  .ed-stat-text { font-size: 15px; min-height: 0; }

  .ed-cases, .ed-cap-grid, .ed-comp-grid, .ed-pe-grid, .ed-timeline,
  .ed-closing-grid, .ed-wedge-grid, .ed-wedge-cards, .ed-variants {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .ed-ask-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ed-tracks { grid-template-columns: 1fr; gap: 16px; }
  .ed-track .rev { font-size: 44px; }
  .ed-journey-step {
    grid-template-columns: 60px 1fr;
    gap: 16px;
    padding: 22px 0;
  }
  .ed-journey-step .num  { font-size: 40px; }
  .ed-journey-step .body h3 { font-size: 22px; }
  .ed-journey-step .body p  { font-size: 15px; }
  .ed-cases { gap: 0; }
  .ed-case, .ed-comp, .ed-pe, .ed-timeline-step, .ed-variants .v {
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }
  .ed-comp, .ed-pe { gap: 0; }
  .ed-cases-head h2, .ed-cases-head h2.lg { font-size: 32px; }
  .ed-wedge h2 { font-size: 38px; }
  .ed-wedge-card.dim { transform: none; opacity: 0.7; }
  .ed-wedge-card.lit { padding: 24px 22px; }
  .ed-wedge-score { font-size: 28px; }
  .ed-wedge-card.lit .ed-wedge-score { font-size: 42px; }

  .ed-closing { padding: 48px var(--pad-x) 40px; }
  .ed-closing h2, .ed-closing h2.lg { font-size: 30px; }

  .ed-agent-panel { grid-template-columns: 1fr; }
  .ed-agent-trace { border-right: 0; border-bottom: 1px solid var(--panel-line); }

  .ed-graph { height: auto; padding: 24px; }
  .ed-graph-svg { display: none; }
  .ed-graph-node { position: static; width: 100%; margin-bottom: 10px; }

  .ed-foot { gap: 8px; font-size: 9px; }
  .ed-readfoot { gap: 14px; font-size: 9px; }
}

@media (max-width: 560px) {
  .ed-stat-grid { grid-template-columns: 1fr; }
  .ed-bigstat-num { font-size: 96px; }
  .ed-hero h1 { font-size: 36px; }
  .ed-hero--home h1 { font-size: 40px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ed-stat-body { transition: none; }
  .ed-cta, .ed-btn-solid, .ed-video-cover { transition: none; }
}
