/* Survey page. Editorial long-form: white paper, one ink, hairlines, mono labels. */
:root {
  --paper: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --cream: #f5f5f7;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --accent: #0071e3;
  --virtual: #4f6bed;
  --real: #e8833a;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --top: 60px;
  --side: 190px;
  --colgap: clamp(28px, 3.4vw, 56px);
  --edge: 22px;
  --r: 10px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 24px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p { margin-top: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; }

/* ---------- top band ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--top); z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
}
.mark { font-family: var(--serif); font-size: 19px; letter-spacing: -.005em; text-decoration: none; white-space: nowrap; }
.topbar nav { display: flex; gap: clamp(14px, 2.2vw, 30px); }
.topbar nav a {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-2);
}
.topbar nav a:hover, .topbar nav a[aria-current] { color: var(--ink); }
.topbar nav a.cta { color: var(--ink); font-weight: 700; }
.progress { position: fixed; top: var(--top); left: 0; right: 0; height: 1px; background: transparent; z-index: 21; }
.progress i { display: block; height: 1px; width: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- head ---------- */
.wrap { width: min(1320px, calc(100% - 2 * var(--edge))); margin: 0 auto; }
.post-head { padding: calc(var(--top) + clamp(64px, 11vh, 124px)) 0 clamp(56px, 9vh, 96px); text-align: center; }
.eyebrow, .kicker {
  font-family: var(--mono); font-size: 10px; line-height: 1.5; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow span { margin: 0 .7em; color: var(--ink-3); }
.post-head h1 {
  max-width: 16ch; margin: 26px auto 24px;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(40px, 5vw, 80px); line-height: 1.04; letter-spacing: -.028em; text-wrap: balance;
}
.post-deck { max-width: 36em; margin: 0 auto; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.42; color: var(--ink-2); text-wrap: balance; }

/* ---------- three columns ---------- */
.article-layout {
  display: grid; grid-template-columns: var(--side) minmax(0, 1fr) var(--side);
  gap: 0 var(--colgap); align-items: start;
  max-width: calc(46rem + 2 * (var(--side) + var(--colgap)));
  margin: 0 auto;
}
.toc, .post-info { position: sticky; top: calc(var(--top) + 36px); }
.toc-label { margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { border-top: 1px solid var(--line-soft); }
.toc li:last-child { border-bottom: 1px solid var(--line-soft); }
.toc a {
  position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 0 4px; padding: 9px 0 10px;
  font-size: 12px; line-height: 1.35; color: var(--ink-3); text-decoration: none;
}
.toc a b { font-family: var(--mono); font-weight: 400; font-size: 9px; letter-spacing: .1em; padding-top: 2px; }
.toc a::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 2px; background: var(--ink); transition: width .35s var(--ease); }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); font-weight: 600; }
.toc a.on::before { width: 44px; }
.toc-bottom { margin-top: 18px; font-size: 11px; line-height: 1.5; color: var(--ink-3); }

.post-info { display: grid; gap: 18px; font-size: 12px; line-height: 1.4; }
.info-row { display: grid; grid-template-columns: 18px 1fr; gap: 0 10px; }
.info-row svg { width: 14px; height: 14px; margin-top: 2px; stroke: var(--ink-2); fill: none; stroke-width: 1.4; }
.info-row .kicker { font-size: 9px; margin-bottom: 3px; }
.info-row strong { font-weight: 600; }
.info-row span { display: block; color: var(--ink-2); }

/* ---------- article ---------- */
.article-body { min-width: 0; padding-bottom: 120px; }
.section { padding-top: clamp(72px, 12vh, 136px); }
.section:first-child { padding-top: 0; }
.article-body h2 {
  margin: 14px 0 22px; font-family: var(--display); font-weight: 600;
  font-size: clamp(32px, 3.4vw, 48px); line-height: 1.07; letter-spacing: -.024em; text-wrap: balance;
}
.article-body h3 {
  margin: 64px 0 14px; font-family: var(--display); font-weight: 600;
  font-size: clamp(22px, 2vw, 27px); line-height: 1.16; letter-spacing: -.016em; text-wrap: balance;
}
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.4; letter-spacing: -.008em; margin-bottom: 26px; text-wrap: pretty; }
.prose p { margin-bottom: 20px; text-wrap: pretty; }
.prose strong { font-weight: 600; }
.small { font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.small a, .prose a { text-decoration: underline; text-decoration-color: var(--line); }

.summary-list, .request-grid, .stats, .pair { display: grid; margin: 34px 0; }
.summary-list, .request-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.summary-list > div, .request-grid > div { border-top: 1px solid var(--ink); padding-top: 12px; }
.summary-list h4, .request-grid h4, .pair h4 { margin: 0 0 6px; font-size: 14px; font-weight: 600; letter-spacing: -.005em; }
.summary-list p, .request-grid p, .pair p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.request-grid .kicker { display: block; margin-bottom: 8px; }
.pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.pair > div { border-top: 1px solid var(--ink); padding-top: 12px; }

.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.stat { padding: 22px 22px 22px 0; }
.stat + .stat { padding-left: 22px; border-left: 1px solid var(--line); }
.stat .number { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(44px, 5vw, 68px); line-height: 1; letter-spacing: -.035em; }
.stat .number small { font-size: .46em; letter-spacing: -.01em; margin-left: .08em; color: var(--ink-2); font-weight: 500; }
.stat p { margin: 14px 0 0; font-size: 12px; line-height: 1.45; color: var(--ink-2); }

.request { margin: 44px 0; padding: 26px 0 0; border-top: 1px solid var(--ink); }
.request .order { margin: 8px 0 26px; font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.14; letter-spacing: -.02em; }
.request .request-grid { margin: 0; }
.request .request-grid > div { border-top-color: var(--line); }

.pullquote {
  margin: 48px 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--ink);
  font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.15vw, 30px); line-height: 1.2; letter-spacing: -.02em; text-wrap: balance;
}
.note { margin: 34px 0; padding: 20px 22px; background: var(--cream); border-radius: var(--r); font-size: 14px; line-height: 1.6; }
.note .kicker { display: block; margin-bottom: 8px; }
.note p:last-child { margin-bottom: 0; }

/* ---------- figures ---------- */
figure { margin: 40px 0; }
.image-box { border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; background: #fff; }
.image-box.pad { padding: clamp(10px, 2vw, 22px); }
.image-box.tint { background: var(--cream); border-color: transparent; }
.wide { margin-left: calc(var(--colgap) * -.72); margin-right: calc(var(--colgap) * -.72); }
figcaption, .caption { margin-top: 12px; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
figcaption b, .caption b { color: var(--ink); font-weight: 600; }

/* ---------- tabs ---------- */
.figure-label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.figure-label strong { font-size: 14px; font-weight: 600; }
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0 10px; margin-top: 14px; }
.tab {
  position: relative; text-align: left; padding: 11px 10px 12px 0; border-top: 1px solid var(--line);
  font-size: 13px; line-height: 1.25; font-weight: 600; color: var(--ink-3); transition: color .25s;
}
.tab b { display: block; margin-bottom: 5px; font-family: var(--mono); font-weight: 400; font-size: 9px; letter-spacing: .12em; }
.tab::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--ink); transition: width .4s var(--ease); }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::before { width: 100%; }
.panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 0 34px; padding: 26px 0 0; animation: rise .5s var(--ease); }
.panel[hidden] { display: none; }
.panel .media { grid-column: 1 / -1; margin-bottom: 24px; }
.panel h4 { margin: 8px 0 0; font-family: var(--display); font-weight: 600; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.18; letter-spacing: -.016em; text-wrap: balance; }
.panel p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.panel .detail-rule { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; }
.panel .detail-rule b { color: var(--ink); font-weight: 600; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* EVA pathway: the figure stays, the reading light moves */
.spot { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-soft); background: #fff; }
.spot img { width: 100%; }
.spot .shade { position: absolute; top: 0; bottom: 0; background: rgba(255, 255, 255, .82); transition: width .7s var(--ease), left .7s var(--ease), right .7s var(--ease); pointer-events: none; }
.spot .shade.l { left: 0; width: var(--a, 0%); }
.spot .shade.r { right: 0; width: calc(100% - var(--b, 100%)); }
.badge { display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; vertical-align: 2px; }

/* ---------- steps / questions ---------- */
.steps, .questions { margin: 34px 0; border-bottom: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 34px minmax(0, 1.5fr) minmax(0, 1fr); gap: 0 22px; padding: 22px 0 24px; border-top: 1px solid var(--line); }
.step .num, .question .num { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--ink-3); padding-top: 6px; }
.step h4, .question h4 { margin: 0 0 8px; font-family: var(--display); font-size: 19px; line-height: 1.2; font-weight: 600; letter-spacing: -.014em; }
.step p, .question p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.step .output { padding-left: 20px; border-left: 1px solid var(--line); }
.step .output .kicker { display: block; margin-bottom: 8px; font-size: 9px; }
.step .output p { font-size: 12.5px; }
.question { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0 22px; padding: 22px 0 24px; border-top: 1px solid var(--line); }
.question .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin-top: 16px; }
.fact b { display: block; font-family: var(--display); font-size: 24px; line-height: 1.1; font-weight: 600; letter-spacing: -.025em; color: var(--ink); }
.fact span { font-size: 12px; line-height: 1.45; color: var(--ink-2); }

/* ---------- accordion ---------- */
details { margin: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; font-size: 18px; line-height: 1; color: var(--ink-2); }
details[open] summary::after { content: "–"; }
details .inner { padding: 4px 0 22px; font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }
details .inner p { margin-bottom: 12px; }
.eq { margin: 14px 0; padding: 14px 18px; background: var(--cream); border-radius: 8px; font-family: var(--serif); font-size: 16px; color: var(--ink); overflow-x: auto; white-space: nowrap; }
.eq i { font-style: italic; }

/* ---------- bar chart ---------- */
.chart { margin: 40px 0; }
.chart-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.chart-top strong { font-size: 14px; font-weight: 600; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg button { padding: 6px 10px; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.seg button[aria-selected="true"] { background: var(--ink); color: #fff; }
.legend { display: flex; gap: 18px; padding: 12px 0 4px; font-size: 11px; color: var(--ink-2); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.bars { padding: 4px 0 10px; }
.bars[hidden] { display: none; }
.bar { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr) 62px; gap: 0 16px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.bar .name { font-weight: 600; line-height: 1.25; }
.bar .name span { display: block; font-weight: 400; font-size: 11px; color: var(--ink-3); }
.bar .track { position: relative; height: 8px; background: var(--cream); border-radius: 2px; }
.bar .fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 2px; background: var(--ink); transition: width 1s var(--ease); }
.bar .fill.alt { background: #8e8e93; }
.bar .fill.v { background: var(--virtual); }
.bar .fill.o { background: var(--real); }
.bar.two .track { height: 20px; background: none; }
.bar.two .fill { height: 8px; bottom: auto; }
.bar.two .fill + .fill { top: 12px; }
.bar .val { font-family: var(--mono); font-size: 11px; text-align: right; color: var(--ink); line-height: 1.5; }

/* ---------- closing ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid var(--ink); }
.btn.solid { background: var(--ink); color: #fff; }
.btn.solid:hover { background: #000; color: #fff; }
.btn:hover { color: var(--ink); background: var(--cream); }
footer { border-top: 1px solid var(--line); padding: 40px 0 64px; font-size: 12px; line-height: 1.6; color: var(--ink-2); }
footer .cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
footer h5 { margin: 0 0 8px; font-family: var(--mono); font-weight: 400; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
footer p { margin: 0; }
.totop { position: fixed; right: 22px; bottom: 22px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .9); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 15; }
.totop.show { opacity: 1; pointer-events: auto; }
.totop svg { width: 14px; height: 14px; stroke: var(--ink); fill: none; stroke-width: 1.6; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- narrower windows ---------- */
@media (max-width: 1180px) {
  .article-layout { grid-template-columns: var(--side) minmax(0, 1fr); max-width: calc(46rem + var(--side) + var(--colgap)); }
  .post-info { position: static; grid-column: 2; grid-row: 1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding-bottom: 34px; margin-bottom: 40px; border-bottom: 1px solid var(--line-soft); }
  .toc { grid-row: 1 / span 2; }
  .wide { margin-left: 0; margin-right: 0; }
}
@media (max-width: 820px) {
  :root { --top: 54px; }
  .topbar { padding: 0 16px; }
  .mark { font-size: 16px; }
  .topbar nav a:not(.cta) { display: none; }
  .article-layout { display: block; }
  .toc { position: static; margin-bottom: 40px; }
  .toc-bottom { display: none; }
  .post-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-list, .request-grid, .pair, .stats, footer .cols { grid-template-columns: 1fr; }
  .summary-list > div, .request-grid > div, .pair > div { margin-bottom: 20px; }
  .stat, .stat + .stat { padding: 18px 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
  .panel { grid-template-columns: 1fr; }
  .panel h4 { margin-bottom: 12px; }
  .tabs { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { grid-template-columns: 28px minmax(0, 1fr); }
  .step .output { grid-column: 2; margin-top: 14px; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  .question .facts { grid-template-columns: 1fr; }
  .bar { grid-template-columns: minmax(0, 1fr) 62px; gap: 6px 12px; }
  .bar .track { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .panel { animation: none; }
  .bar .fill, .spot .shade { transition: none; }
}

/* ---------- native diagrams ----------
   Built from the page's own parts so they reflow on a phone and can respond to the tabs beside them. */
.dg { margin: 18px 0 0; padding: clamp(16px, 2.6vw, 28px); border: 1px solid var(--line-soft); border-radius: var(--r); background: #fafafb; --dgbg: #fafafb; }
.dg.mini { padding: clamp(14px, 2vw, 20px); margin: 0 0 24px; }
.flow { display: flex; align-items: center; min-width: 0; }
.n {
  flex: 0 1 auto; min-width: 0; padding: 9px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-size: 12.5px; line-height: 1.3; font-weight: 500; text-align: center; color: var(--ink);
  transition: opacity .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.n small { display: block; margin-bottom: 4px; font: 400 8.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.n .sub { display: block; margin-top: 3px; font-size: 11px; font-weight: 400; color: var(--ink-2); }
.n b { margin-right: 6px; font: 400 9px/1 var(--mono); color: var(--ink-3); }
.n i { font-family: var(--serif); font-size: 1.08em; }
.n.k { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.n.k small, .n.k .sub { color: #a1a1a6; }
.n.out { border-color: var(--ink); font-weight: 600; }
.n.acc { border-color: var(--real); color: #a8520f; background: #fff8f2; }
.grow { flex: 1 1 0; }
.a { flex: 1 1 18px; min-width: 18px; height: 1px; margin: 0 6px 0 4px; background: var(--ink-3); position: relative; }
.a::after { content: ""; position: absolute; right: -2px; top: -3.5px; border: 3.5px solid transparent; border-left: 6px solid var(--ink-3); border-right: 0; }
.a.both { margin-left: 6px; }
.a.both::before { content: ""; position: absolute; left: -2px; top: -3.5px; border: 3.5px solid transparent; border-right: 6px solid var(--ink-3); border-left: 0; }
.a span { position: absolute; left: 50%; bottom: 7px; transform: translateX(-50%); font: 400 8.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.a.v { flex: 0 0 auto; display: block; width: 1px; min-width: 0; height: 16px; margin: 4px auto; }
.a.v::after { right: auto; left: -3px; top: auto; bottom: -2px; border: 3.5px solid transparent; border-top: 6px solid var(--ink-3); border-bottom: 0; }
.stack { display: grid; gap: 6px; min-width: 0; }
.stack .lab, .group > small { font: 400 8.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.stack .lab { margin-top: 4px; }
.stack .lab:first-child { margin-top: 0; }
.group { flex: 1 1 auto; min-width: 0; padding: 10px 12px 12px; border: 1px dashed var(--line); border-radius: 10px; }
.group > small { display: block; margin-bottom: 9px; }
.group.acc { border-color: var(--real); }
.group.acc > small { color: #a8520f; }
.gnote { margin: 9px 0 0; font-size: 11px; line-height: 1.4; color: #a8520f; text-align: center; }
.loop { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.rail { position: relative; height: 22px; margin: 7px 38px 8px; border: 1px solid var(--ink-3); border-top: 0; border-radius: 0 0 7px 7px; }
.rail::before { content: ""; position: absolute; left: -4px; top: -3px; border: 3.5px solid transparent; border-bottom: 6px solid var(--ink-3); border-top: 0; }
.rail span { position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); max-width: 92%; padding: 0 9px; background: var(--dgbg); font: 400 9px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail.acc { border-color: var(--real); border-style: dashed; }
.rail.acc::before { border-bottom-color: var(--real); }
.rail.acc span { color: #a8520f; }
.dg-note { margin: 16px 0 0; font-size: 12px; line-height: 1.5; color: var(--ink-2); text-align: center; }
.dg-note i { font-family: var(--serif); font-size: 1.08em; }

/* three columns between two bars: the deployment levels */
.levels .bar-n { display: block; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
.col { display: flex; flex-direction: column; transition: opacity .45s var(--ease); }
.col .n { flex: 0 0 auto; }
.ticks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 4px; }
.ticks span { position: relative; padding: 12px 0 6px; font: 400 8.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); text-align: center; }
.ticks span::before { content: "↑"; display: block; margin-bottom: 5px; font-family: var(--sans); font-size: 12px; color: var(--ink-3); }
.parts { display: grid; grid-template-columns: 1fr 3fr; gap: 0 12px; margin-top: 22px; }
.parts > div { border-top: 1px solid var(--line); padding-top: 8px; }
.parts small { display: block; margin-bottom: 8px; font: 400 8.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.parts .row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }

/* a tab can point at part of a diagram */
.dg.hl [data-hl]:not(.on) { opacity: .3; }
.dg.hl .n.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.dg.hl .n.k.on { box-shadow: none; }

@media (max-width: 820px) {
  .flow { flex-direction: column; align-items: stretch; }
  .flow > .a:not(.v) { flex: 0 0 auto; width: 1px; min-width: 0; height: 16px; margin: 4px auto; }
  .flow > .a:not(.v)::after { right: auto; left: -3px; top: auto; bottom: -2px; border: 3.5px solid transparent; border-top: 6px solid var(--ink-3); border-bottom: 0; }
  .flow > .a.both::before { left: -3px; top: -2px; border: 3.5px solid transparent; border-bottom: 6px solid var(--ink-3); border-top: 0; }
  .flow > .a span { left: 12px; bottom: 3px; transform: none; }
  .rail { height: auto; margin: 8px 0 0; border: 0; text-align: center; }
  .rail::before { display: none; }
  .rail span { position: static; display: inline; transform: none; background: none; white-space: normal; }
  .rail span::before { content: "↺  "; }
  .cols3 { grid-template-columns: 1fr; gap: 10px; }
  .parts { grid-template-columns: 1fr; gap: 12px; }
  .parts .row { grid-auto-flow: row; }
}
@media (prefers-reduced-motion: reduce) { .n, .col { transition: none; } }

/* ---------- house style for every drawn thing: one ink, hairlines, paper ---------- */
.dg { background: none; border: 0; padding: 6px 0 2px; --dgbg: #fff; }
.dg.mini { padding: 0; }
.flow { justify-content: space-between; }
.n { border-color: #48484a; }
.n.out { background: #ececee; border-color: #c7c7cc; color: #3a3a3c; }
.n.acc { border-style: dashed; border-color: #8e8e93; color: var(--ink); background: #fff; }
.a { flex: 0 1 34px; }
.group { border-color: #c7c7cc; }
.group.acc { border-color: #8e8e93; }
.group.acc > small, .gnote, .rail.acc span { color: var(--ink-2); }
.rail.acc { border-color: #8e8e93; }
.rail.acc::before { border-bottom-color: #8e8e93; }
.dg-h { margin: 22px 0 14px; padding-bottom: 9px; border-bottom: 1px solid var(--ink); font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; }
.dg-h:first-child { margin-top: 0; }
.dg-h b { margin-right: 8px; font: 400 11px/1 var(--mono); color: var(--ink-2); }
.n.ic svg { display: block; width: 28px; height: 28px; margin: 2px auto 8px; fill: none; stroke: #2c2c2e; stroke-width: 1.25; stroke-linejoin: round; stroke-linecap: round; }
.n.pic { padding: 4px 6px 10px; font-weight: 600; }
.n.pic svg { display: block; width: 100%; height: auto; margin-bottom: 2px; }
.a.q { background: none; border-top: 1px dashed #8e8e93; }
.a.q span { left: 50%; bottom: -10px; width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; background: #fff; font: 600 11px/1 var(--sans); letter-spacing: 0; color: var(--ink); }

/* isometric line drawings */
.iso polygon, .iso path, .iso ellipse, .iso polyline { stroke: #2c2c2e; stroke-width: 1; stroke-linejoin: round; stroke-linecap: round; }
.iso polyline { fill: none; }
.iso .iso-ground { stroke: none; }
.iso .iso-soft { stroke: #9a9a9e; }
.iso-grid polyline { stroke: #c9c8c2; stroke-width: .8; stroke-dasharray: 1.5 3.5; }
.iso.wire polygon, .iso.wire path, .iso.wire ellipse { fill: none; }
.iso.wire polygon, .iso.wire path, .iso.wire ellipse, .iso.wire > polyline { stroke-dasharray: 3 2.4; stroke-width: .9; }
.iso .iso-hid { opacity: .4; }
.pics { margin: 30px 0 34px; }
.pics > div { border-top: 0; padding-top: 0; }
.pic { margin-bottom: 14px; padding: 4px 8px; border: 1px solid var(--line-soft); border-radius: var(--r); }
.pic svg { display: block; width: 100%; height: auto; }
.pics .kicker { display: block; margin-bottom: 6px; }

/* the pathway */
.eva-grid { display: grid; grid-template-columns: 1.38fr 1fr; gap: 10px 26px; align-items: start; margin-top: 18px; padding: 8px 0; }
.eva-svg { display: block; width: 100%; height: auto; overflow: visible; }
.eva-svg .st { stroke: #2c2c2e; stroke-width: 1.2; }
.eva-svg .thin { fill: none; stroke: #8e8e93; stroke-width: .8; }
.svg-k { font: 400 9px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; fill: var(--ink-3); }
.svg-l { font: 600 12px/1 var(--sans); fill: var(--ink); }
.svg-n { font: 400 11px/1 var(--sans); fill: var(--ink-2); }
.eva-svg .notes [data-s] { opacity: 0; transition: opacity .45s var(--ease); }
.eva-svg .notes [data-s].on { opacity: 1; }
.eva-note { margin: 4px 0 0; min-height: 1.5em; font-size: 12.5px; color: var(--ink-2); text-align: center; }

/* the trend chart */
.chart-svg { display: block; width: 100%; height: auto; margin-top: 12px; overflow: visible; }
.chart-svg .grid { stroke: var(--line-soft); }
.chart-svg .grid.v { stroke: var(--line); }
.chart-svg .tick { font: 400 9px/1 var(--mono); fill: var(--ink-3); }
.chart-svg polyline { fill: none; stroke-linejoin: round; }
.chart-svg .l-agentic { stroke: var(--ink); stroke-width: 2; }
.chart-svg .l-vla { stroke: #8e8e93; stroke-width: 1.4; }
.chart-svg .l-wam { stroke: #8e8e93; stroke-width: 1.4; stroke-dasharray: 4 3; }
.chart-svg .dot { fill: #fff; stroke-dasharray: none; }
.chart-svg text.end { stroke: none; font: 400 11px/1 var(--sans); fill: var(--ink-2); }
.chart-svg text.end .num { font-weight: 600; font-size: 13px; fill: var(--ink); }

/* the literature */
.tax { animation: rise .5s var(--ease); }
.tax[hidden] { display: none; }
.tax-head, .tax-row { display: grid; grid-template-columns: 148px 1fr .9fr 1fr 2.1fr; gap: 0 14px; }
.tax-head { padding: 22px 0 9px; font: 400 9px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--ink); }
.tax-row { padding: 13px 0 14px; border-bottom: 1px solid var(--line); }
.tax-branch { font-size: 13px; font-weight: 600; line-height: 1.3; }
.tax-branch b { display: block; margin-bottom: 4px; font: 400 9px/1 var(--mono); letter-spacing: .1em; color: var(--ink-3); }
.tax-cell { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px 5px; min-width: 0; }
.tax-cell span { padding: 2px 7px 3px; border: 1px solid var(--line); border-radius: 999px; font-size: 11.5px; line-height: 1.3; white-space: nowrap; }
@media (max-width: 820px) {
  .eva-grid { grid-template-columns: 1fr; }
  .a.q { border-top: 0; border-left: 1px dashed #8e8e93; }
  .a.q span { left: -10px; bottom: -2px; transform: none; }
  .tax-head { display: none; }
  .tax-row { grid-template-columns: 1fr; gap: 8px; }
  .tax-cell:empty { display: none; }
  .tax-cell::before { content: attr(data-y); flex: 0 0 100%; font: 400 9px/1.4 var(--mono); letter-spacing: .12em; color: var(--ink-3); }
}

.chart-svg .lead { stroke: #c7c7cc; }

/* stat rows that hold a before-and-after or a price rather than one bare number */
.stats.tight .number { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.03em; white-space: nowrap; }
.stats.tight .number small { font-size: .6em; margin: 0 .04em; }
