/* ModernCI: one design system for the site and the product UI.
   No build step. No external hosts. Works without JavaScript.
   Spec: docs/SITE-DESIGN.md */

@font-face {
  font-family: "Atkinson Next";
  src: url("fonts/atkinson-next.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Mono";
  src: url("fonts/atkinson-mono.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  color-scheme: light dark;

  /* paper (light) */
  --paper: #F4F1E8;      /* page */
  --sheet: #FBF9F3;      /* raised: ledgers, files, cards */
  --sunk: #EBE6D8;       /* header bands, wells */
  --ink: #16150F;        /* text, 16:1 */
  --ink-2: #57534A;      /* secondary text, 6.8:1 */
  --ink-3: #65615A;      /* labels, 5.0:1 on sunk */
  --rule: #D9D3C2;       /* hairlines (decorative) */
  --rule-2: #B9B19C;     /* stronger hairlines (decorative) */
  --control: #8A836F;    /* form/control borders, 3.3:1 */
  --copper: #A3441A;     /* the one brand accent: links, the double rule, focus */
  --green: #17693A;  --green-bg: #DDEBDD;
  --red: #B0182F;    --red-bg: #F7DEDC;
  --amber: #8A5800;  --amber-bg: #F3E5C2;

  --sans: "Atkinson Next", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Atkinson Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* 4 px spacing scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  /* type scale */
  --t-xs: 12px; --t-sm: 14px; --t-md: 17px; --t-lg: 20px; --t-xl: 25px; --t-2xl: 32px;
  --t-3xl: clamp(32px, 3.6vw, 44px);
  --t-4xl: clamp(36px, 5vw, 64px);

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 6px;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* carbon (dark): warm, not the category's blue-black */
    --paper: #15140F;
    --sheet: #1C1B15;
    --sunk: #232119;
    --ink: #EDE7D7;
    --ink-2: #B3AC99;
    --ink-3: #9A9483;
    --rule: #2E2C24;
    --rule-2: #45423A;
    --control: #7A7462;
    --copper: #E8915F;
    --green: #6FCB8E;  --green-bg: #1D2A20;
    --red: #FF8089;    --red-bg: #33191C;
    --amber: #E5B550;  --amber-bg: #2E2614;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-md)/1.55 var(--sans);
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--copper); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; border-radius: 2px; }
code, kbd, pre, .mono { font-family: var(--mono); font-feature-settings: "zero"; }
code { font-size: 0.92em; }
img, svg { display: block; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--s4); top: -100px; background: var(--ink); color: var(--paper); padding: var(--s2) var(--s4); z-index: 10; }
.skip:focus { top: var(--s2); }

.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- the move glyph: branch -> branch ---------- */
/* The real "→" stays in the text for copy and screen readers; the drawn arrow is ours. */
.to {
  display: inline-block; position: relative; width: 1.3em; color: transparent;
  vertical-align: baseline; user-select: all;
}
.to::before {
  content: ""; position: absolute; left: 0.15em; right: 0.15em; top: 0.18em; bottom: 0.12em;
  background: var(--copper);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M1 6h15M11 1.5 16.5 6 11 10.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M1 6h15M11 1.5 16.5 6 11 10.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat;
}
.move { font-family: var(--mono); white-space: nowrap; }

/* ---------- verdict chips: colour + shape + word ---------- */
.v {
  display: inline-flex; align-items: center; gap: 6px;
  font: 700 var(--t-xs)/1 var(--mono); text-transform: lowercase;
  padding: 4px 8px 4px 6px; border-radius: 3px; white-space: nowrap;
}
.v::before { content: ""; width: 8px; height: 8px; flex: none; }
.v-merged { color: var(--green); background: var(--green-bg); }
.v-merged::before { border-radius: 50%; background: var(--green); }
.v-green { color: var(--green); background: var(--green-bg); }
.v-green::before { border-radius: 50%; border: 2px solid var(--green); }
.v-red { color: var(--red); background: var(--red-bg); }
.v-red::before { background: var(--red); transform: rotate(45deg) scale(0.85); }
.v-wait { color: var(--amber); background: var(--amber-bg); }
.v-wait::before { border-radius: 50%; border: 2px dashed var(--amber); }
.v-run { color: var(--ink-2); background: var(--sunk); }
.v-run::before { border-radius: 50%; background: conic-gradient(var(--ink-2) 0 50%, transparent 0); border: 1.5px solid var(--ink-2); }
@media (prefers-reduced-motion: no-preference) {
  .v-run::before { animation: spin 1.6s linear infinite; }
  @keyframes spin { to { transform: rotate(1turn); } }
}

/* tags and small labels */
.tag {
  display: inline-block; font: 700 11px/1 var(--mono);
  color: var(--ink-3); border: 1px solid var(--rule-2); border-radius: 3px; padding: 4px 6px;
}
.tag-ex { color: var(--amber); border-color: currentColor; }
.label { font: 700 var(--t-xs)/1.3 var(--mono); color: var(--ink-3); }

/* ---------- shell: one bar for signed-out and signed-in ---------- */
.bar { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.bar-in { display: flex; align-items: center; gap: var(--s5); height: 60px; }
.wm { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.wm .mark { width: 24px; height: 24px; flex: none; }
.wm-name { font: 700 19px/1 var(--mono); letter-spacing: -0.02em; }
.tagline { font: 400 var(--t-sm)/1 var(--sans); color: var(--ink-2); padding-left: var(--s4); border-left: 1px solid var(--rule-2); white-space: nowrap; }
.nav { display: flex; gap: var(--s1); margin-left: auto; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: var(--t-sm); padding: 8px 10px; border-radius: 4px; }
.nav a:hover { color: var(--ink); background: var(--sunk); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--copper); border-radius: 0; }
.bar-end { display: flex; gap: var(--s2); align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font: 700 var(--t-sm)/1 var(--sans);
  padding: 10px 14px; border-radius: 4px; text-decoration: none; border: 1px solid var(--control); color: var(--ink); background: transparent; white-space: nowrap;
}
.btn:hover { background: var(--sunk); }
.btn-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-ink:hover { background: var(--ink); opacity: 0.88; }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; font: 700 var(--t-sm)/1 var(--mono); padding: 10px 12px; border: 1px solid var(--control); border-radius: 4px; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-list { display: grid; }
.menu-list { display: none; position: absolute; right: var(--gutter); left: var(--gutter); top: 60px; background: var(--sheet); border: 1px solid var(--rule-2); border-radius: var(--radius); padding: var(--s2); gap: 2px; box-shadow: 0 12px 24px -12px rgb(0 0 0 / 0.25); }
.menu-list a { color: var(--ink); text-decoration: none; padding: 12px; border-radius: 4px; }
.menu-list a:hover { background: var(--sunk); }

@media (max-width: 1020px) { .tagline { display: none; } }
@media (max-width: 860px) {
  .nav, .bar-end .btn:not(.btn-ink) { display: none; }
  .menu { display: block; margin-left: auto; }
  .bar-end { gap: var(--s2); }
}
@media (max-width: 420px) { .bar-end .btn-ink { display: none; } }

/* ---------- sections ---------- */
.sec { padding: var(--s9) 0; border-top: 1px solid var(--rule); }
.sec-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5) var(--s7); margin-bottom: var(--s7); align-items: end; }
.sec-head h2 { font-size: var(--t-3xl); }
.sec-head p { color: var(--ink-2); font-size: var(--t-lg); max-width: 60ch; }
.sec-num { font: 700 var(--t-xs)/1 var(--mono); color: var(--copper); display: block; margin-bottom: var(--s4); }
@media (max-width: 860px) {
  .sec { padding: var(--s8) 0; }
  .sec-head { grid-template-columns: 1fr; margin-bottom: var(--s6); }
  .sec-head p { font-size: var(--t-md); }
}

/* ---------- hero ---------- */
.hero { padding: var(--s7) 0 var(--s7); }
.hero-cta { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; margin-top: var(--s5); }
.hero-cta .cmd { flex: 0 1 auto; max-width: 100%; min-width: 0; }
.hero-top > * { min-width: 0; }
@media (max-width: 520px) { .hero-cta .cmd { flex: 1 1 100%; } }
.bottom-card { border-top: 1px solid var(--ink); padding-top: var(--s4); display: grid; gap: var(--s3); justify-items: start; }
.bottom-card p { color: var(--ink-2); font-size: var(--t-sm); }
.hero-top { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--s7); align-items: end; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 var(--t-sm)/1 var(--mono); color: var(--ink); margin-bottom: var(--s5); }
.kicker::before { content: ""; width: 18px; height: 6px; border-top: 1.5px solid var(--copper); border-bottom: 1.5px solid var(--copper); }
.hero h1 { font-size: var(--t-4xl); line-height: 1.04; letter-spacing: -0.025em; max-width: 17ch; }
.hero h1 { font-size: clamp(48px, 6.4vw, 92px); line-height: 0.95; letter-spacing: -0.035em; }
.hero-line { font: 700 clamp(22px, 2.3vw, 31px)/1.22 var(--sans); letter-spacing: -0.015em; max-width: 32ch; margin-top: var(--s4); text-wrap: balance; }
.hero-line em { font-style: normal; text-decoration: underline double var(--copper); text-decoration-thickness: 2px; text-underline-offset: 0.18em; text-decoration-skip-ink: none; }
.hero-sub { color: var(--ink-2); font-size: var(--t-lg); max-width: 50ch; margin-top: var(--s4); }
.hero-side { display: grid; gap: var(--s4); padding-bottom: 6px; }
.hero-side .cmd { width: 100%; }
.hero-ledger { margin-top: var(--s6); }
@media (max-width: 960px) { .hero-top { grid-template-columns: 1fr; gap: var(--s6); } }
@media (max-width: 860px) { .hero { padding-top: var(--s7); } .hero-sub { font-size: var(--t-md); } }

/* a command you can select with one click, no JS */
.cmd {
  display: flex; align-items: center; gap: 10px; font: 400 var(--t-sm)/1.4 var(--mono);
  background: var(--sheet); border: 1px solid var(--rule-2); border-radius: 4px; padding: 12px 14px; overflow-x: auto; white-space: nowrap;
}
.cmd::before { content: "$"; color: var(--ink-3); user-select: none; }
.cmd code { user-select: all; font-size: inherit; }
.cmds { display: grid; gap: var(--s2); }

/* ---------- THE LEDGER: the signature element ---------- */
.ledger { background: var(--sheet); border: 1px solid var(--rule-2); border-radius: var(--radius); overflow: hidden; }
.ledger-head { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--rule-2); background: var(--sunk); }
.ledger-title { font: 700 var(--t-sm)/1.2 var(--mono); }
.ledger-title span { color: var(--ink-3); font-weight: 400; }
.ledger-head .tag { margin-left: auto; }
.live { display: inline-flex; align-items: center; gap: 6px; font: 400 var(--t-xs)/1 var(--mono); color: var(--ink-3); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
@media (prefers-reduced-motion: no-preference) {
  .live::before { animation: pulse 2s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: 0.25; } }
}

.lt { width: 100%; border-collapse: collapse; font: 400 var(--t-sm)/1.35 var(--mono); font-variant-numeric: tabular-nums; }
.lt th { text-align: left; font: 700 11px/1.2 var(--mono); color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--rule-2); white-space: nowrap; }
.lt td { white-space: nowrap; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.lt th:first-child, .lt td:first-child { padding-left: 16px; }
.lt th:last-child, .lt td:last-child { padding-right: 16px; }
.lt .r { text-align: right; }
.lt .dim { color: var(--ink-3); }
.lt .memo td { white-space: normal; padding-top: 0; color: var(--ink-2); font: 400 13px/1.45 var(--sans); padding-left: calc(16px + 6ch); }
.lt tr:has(+ .memo) td { border-bottom: 0; }
.lt .memo code { font-size: 12.5px; }
.lt .why { display: block; max-width: 62ch; font-family: var(--sans); font-size: 13px !important; line-height: 1.4; color: var(--ink-2); font-size: var(--t-xs); margin-top: 4px; white-space: normal; }
.lt tbody tr:hover td { background: color-mix(in srgb, var(--sunk) 55%, transparent); }
.lt .pr { color: var(--ink-3); }
.lt .zero { color: var(--green); }

/* new rows ink in on load; static and complete without motion or JS */
@media (prefers-reduced-motion: no-preference) {
  .lt.ink tbody tr { animation: inkin 0.5s ease-out both; }
  .lt.ink tbody tr:nth-child(n+3) { animation-delay: 0.12s; }
  .lt.ink tbody tr:nth-child(n+5) { animation-delay: 0.24s; }
  .lt.ink tbody tr:nth-child(n+7) { animation-delay: 0.36s; }
  .lt.ink tbody tr:nth-child(n+9) { animation-delay: 0.48s; }
  @keyframes inkin { from { opacity: 0; transform: translateY(-4px); } }
}

/* the bottom line: single rule above, double rule below (the accountant's total) */
.bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; padding: 16px 16px 18px; border-top: 1px solid var(--ink); background: var(--sheet); }
.bottom-label { font: 700 var(--t-sm)/1.3 var(--sans); }
.bottom-label small { display: block; font: 400 var(--t-xs)/1.4 var(--mono); color: var(--ink-3); margin-top: 2px; }
.fig { font: 700 var(--t-2xl)/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; padding-bottom: 7px; border-bottom: 4px double var(--copper); }
.fig-xl { font-size: clamp(44px, 6vw, 80px); border-bottom-width: 6px; padding-bottom: 10px; }
.fig .unit { font-size: 0.45em; color: var(--ink-3); font-weight: 400; letter-spacing: 0; margin-left: 6px; }
.ledger-foot { padding: 10px 16px; font: 400 var(--t-xs)/1.5 var(--mono); color: var(--ink-3); border-top: 1px solid var(--rule); background: var(--sunk); }

/* narrow screens: each ledger row becomes a two-line entry */
@media (max-width: 760px) {
  .lt.stack thead { display: none; }
  .lt.stack tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
  .lt.stack td { padding: 0 !important; border: 0; }
  .lt.stack td[data-k]::before { content: attr(data-k) " "; color: var(--ink-3); font-size: 11px; }
  .lt.stack .c-move { grid-column: 1; }
  .lt.stack .c-v { grid-column: 2; grid-row: 1; justify-self: end; }
  .lt.stack .c-cost { grid-column: 2; text-align: right; font-weight: 700; }
  .lt.stack .hide-s { display: none; }
  .lt.stack .r { text-align: left; }
  .lt.stack tbody tr:hover td { background: none; }
  .lt.stack tr:has(+ .memo) { border-bottom: 0; padding-bottom: 4px; }
  .lt.stack .memo { display: block; padding-top: 0; }
  .lt.stack .memo td { display: block; padding-left: 0 !important; }
}

/* ---------- files: real artifacts on paper, not a black terminal ---------- */
.file { background: var(--sheet); border: 1px solid var(--rule-2); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.file-tab { display: flex; justify-content: space-between; gap: var(--s3); padding: 10px 14px; background: var(--sunk); border-bottom: 1px solid var(--rule-2); font: 700 var(--t-xs)/1.3 var(--mono); }
.file-tab span { color: var(--ink-3); font-weight: 400; }
.file pre { margin: 0; padding: 14px 16px 16px; overflow-x: auto; font: 400 13.5px/1.65 var(--mono); tab-size: 2; }
.file pre .k { color: var(--ink); font-weight: 700; }
.file pre .s { color: var(--ink-2); }
.file pre .c { color: var(--ink-3); }
.file pre .a { color: var(--copper); }
.file pre .g { color: var(--green); }
.file pre .x { color: var(--red); }

/* ---------- the work item an agent receives ---------- */
.wi { background: var(--sheet); border: 1px solid var(--rule-2); border-left: 4px solid var(--red); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.wi-head { padding: 14px 16px; border-bottom: 1px solid var(--rule); display: grid; gap: 8px; }
.wi-id { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font: 400 var(--t-xs)/1.3 var(--mono); color: var(--ink-3); }
.wi-title { font: 700 var(--t-md)/1.35 var(--mono); }
.wi dl { margin: 0; display: grid; grid-template-columns: 9.5em minmax(0, 1fr); font: 400 13px/1.55 var(--mono); }
.wi dt, .wi dd { margin: 0; padding: 9px 16px; border-bottom: 1px solid var(--rule); }
.wi dt { color: var(--ink-3); padding-right: 0; }
.wi dd { padding-left: 8px; min-width: 0; overflow-wrap: anywhere; }
.wi dd pre { margin: 0; white-space: pre-wrap; font: inherit; }
.wi .hl { background: var(--red-bg); color: var(--red); padding: 0 3px; border-radius: 2px; }
@media (max-width: 520px) {
  .wi dl { grid-template-columns: 1fr; }
  .wi dt { padding-bottom: 0; border-bottom: 0; }
  .wi dd { padding-left: 16px; }
}

/* ---------- grids and cards ---------- */
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card { background: var(--sheet); border: 1px solid var(--rule-2); border-radius: var(--radius); padding: var(--s5); min-width: 0; }
.card h3 { font-size: var(--t-lg); margin-bottom: var(--s2); }
.card p { color: var(--ink-2); font-size: var(--t-md); }
.card .label { display: block; margin-bottom: var(--s3); }

/* the problem: lived numbers, as an incident log */
.log { border-top: 1px solid var(--ink); }
.log-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s5); padding: var(--s5) 0; border-bottom: 1px solid var(--rule-2); align-items: baseline; }
.log-fig { font: 700 clamp(28px, 3.2vw, 40px)/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.log-fig small { font-size: 0.45em; color: var(--ink-3); font-weight: 400; letter-spacing: 0; }
.log-row p { font-size: var(--t-lg); }
.log-row p span { color: var(--ink-2); }
@media (max-width: 760px) { .log-row { grid-template-columns: 1fr; gap: var(--s2); } .log-row p { font-size: var(--t-md); } }

/* the chain: quality -> speed -> cost */
.chain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--rule-2); border-radius: var(--radius); background: var(--sheet); }
.link { padding: var(--s5); position: relative; min-width: 0; }
.link + .link { border-left: 1px solid var(--rule-2); }
.link + .link::before {
  content: ""; position: absolute; left: -13px; top: 30px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12h11M13 7.5 17.5 12 13 16.5' fill='none' stroke='%23A3441A' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E") center / 18px no-repeat;
  border: 1px solid var(--rule-2);
}
.link .label { display: block; margin-bottom: var(--s3); }
.link h3 { font-size: var(--t-lg); margin-bottom: var(--s2); }
.link p { color: var(--ink-2); font-size: var(--t-sm); }
.link:last-child h3 { display: inline-block; padding-bottom: 5px; border-bottom: 4px double var(--copper); }
@media (prefers-color-scheme: dark) {
  .link + .link::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12h11M13 7.5 17.5 12 13 16.5' fill='none' stroke='%23E8915F' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E"); }
}
@media (max-width: 860px) {
  .chain { grid-template-columns: 1fr; }
  .link + .link { border-left: 0; border-top: 1px solid var(--rule-2); }
  .link + .link::before { left: var(--s5); top: -13px; transform: rotate(90deg); }
}
.rule-note { margin-top: var(--s5); display: flex; gap: var(--s5); flex-wrap: wrap; color: var(--ink-2); font-size: var(--t-sm); }
.rule-note b { color: var(--ink); }

/* the loop */
.loop { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); counter-reset: st; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 2.4em minmax(0, 1fr); gap: var(--s3); padding: var(--s4) 0; border-bottom: 1px solid var(--rule-2); }
.steps li::before { content: counter(st, decimal-leading-zero); font: 700 var(--t-sm)/1.6 var(--mono); color: var(--copper); }
.steps b { display: block; font-size: var(--t-md); }
.steps span { color: var(--ink-2); font-size: var(--t-sm); }
.steps li.redstep::before { color: var(--red); }
.stack-artifacts { display: grid; gap: var(--s4); min-width: 0; }
@media (max-width: 960px) { .loop { grid-template-columns: 1fr; } }

/* honest agents */
.proof { display: grid; gap: var(--s3); }
.proof .mini { font: 400 13px/1.55 var(--mono); border-top: 1px solid var(--rule); padding-top: var(--s3); margin-top: var(--s4); color: var(--ink-2); }
.mini .row { display: flex; justify-content: space-between; gap: var(--s3); }
.mini .row b { color: var(--ink); font-weight: 700; }
.mini .bad { color: var(--red); font-weight: 700; }
.mini .ok { color: var(--green); font-weight: 700; }

/* before / after */
.ba { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); background: var(--sheet); border: 1px solid var(--rule-2); border-radius: var(--radius); overflow: hidden; font-variant-numeric: tabular-nums; }
.ba > div { padding: 12px 16px; border-bottom: 1px solid var(--rule); min-width: 0; }
.ba .h { background: var(--sunk); border-bottom-color: var(--rule-2); font: 700 var(--t-xs)/1.4 var(--mono); color: var(--ink-3); }
.ba .h b { display: block; color: var(--ink); text-transform: none; letter-spacing: 0; font-size: var(--t-sm); }
.ba .k { font-size: var(--t-sm); font-weight: 700; }
.ba .k small { display: block; font-weight: 400; color: var(--ink-3); font-size: var(--t-xs); }
.ba .m { font: 400 var(--t-sm)/1.45 var(--mono); color: var(--ink-2); }
.ba .tot { border-top: 1px solid var(--ink); border-bottom: 0; padding-top: 16px; padding-bottom: 16px; }
.pending { display: inline-block; font: 700 11px/1 var(--mono); color: var(--amber); border: 1px dashed currentColor; border-radius: 3px; padding: 4px 6px; }
@media (max-width: 760px) {
  .ba { grid-template-columns: 1fr 1fr; }
  .ba .k, .ba .h:first-child { grid-column: 1 / -1; background: var(--sunk); }
  .ba .h:first-child { display: none; }
}

/* topology: your daemon, hosts connect out */
.topo { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr) auto minmax(0, 1fr); align-items: center; gap: var(--s3); }
.node { border: 1px solid var(--rule-2); background: var(--sheet); border-radius: var(--radius); padding: var(--s4); font: 400 13px/1.55 var(--mono); }
.node .label { display: block; margin-bottom: var(--s2); }
.node.core { border: 1.5px solid var(--ink); }
.node.opt { border-style: dashed; background: transparent; }
.node ul { margin: 0; padding: 0; list-style: none; color: var(--ink-2); }
.wire { font: 400 var(--t-xs)/1.3 var(--mono); color: var(--ink-3); text-align: center; }
.wire::before { content: ""; display: block; width: 56px; height: 12px; margin: 0 auto 6px; background: var(--copper);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 12'%3E%3Cpath d='M1 6h52M47 1.5 52.5 6 47 10.5' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 12'%3E%3Cpath d='M1 6h52M47 1.5 52.5 6 47 10.5' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat; }
.wire.back::before { transform: scaleX(-1); }
@media (max-width: 860px) {
  .topo { grid-template-columns: 1fr; }
  .wire { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 4px 0; }
  .wire::before { width: 12px; height: 32px; margin: 0;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 32'%3E%3Cpath d='M6 1v28M1.5 24 6 29.5 10.5 24' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 32'%3E%3Cpath d='M6 1v28M1.5 24 6 29.5 10.5 24' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E"); }
  .wire.back::before { transform: scaleY(-1); }
}

/* ---------- page heads (inner pages) ---------- */
.phead { padding: var(--s8) 0 var(--s7); }
.phead h1 { font-size: var(--t-4xl); line-height: 1.05; letter-spacing: -0.025em; max-width: 20ch; }
.phead p { color: var(--ink-2); font-size: var(--t-lg); max-width: 58ch; margin-top: var(--s5); }
@media (max-width: 860px) { .phead { padding: var(--s7) 0 var(--s6); } .phead p { font-size: var(--t-md); } }

/* how it works: sticky index + chapters, no JS */
.chapters { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s8); align-items: start; }
.toc { position: sticky; top: 84px; font: 400 var(--t-sm)/1.4 var(--mono); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule-2); }
.toc a { display: block; padding: 7px 0 7px 14px; color: var(--ink-2); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); border-left-color: var(--copper); }
.toc .label { display: block; margin-bottom: var(--s3); }
.chapter { padding: 0 0 var(--s8); scroll-margin-top: 84px; }
.chapter + .chapter { border-top: 1px solid var(--rule); padding-top: var(--s7); }
.chapter-h { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: var(--s2); margin-bottom: var(--s5); }
.chapter-h .n { font: 700 var(--t-xl)/1.2 var(--mono); color: var(--copper); }
.chapter-h h2 { font-size: var(--t-2xl); }
.chapter-h p { grid-column: 2; color: var(--ink-2); font-size: var(--t-lg); max-width: 60ch; margin-top: var(--s2); }
.chapter-body { display: grid; gap: var(--s4); margin-left: calc(3.2em + var(--s2)); }
@media (max-width: 960px) {
  .chapters { grid-template-columns: 1fr; gap: var(--s5); }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; border-left: 0; gap: 4px; }
  .toc a { border: 1px solid var(--rule-2); border-radius: 3px; padding: 6px 10px; margin: 0; }
  .chapter-body { margin-left: 0; }
  .chapter-h { grid-template-columns: 2.6em minmax(0, 1fr); }
  .chapter-h p { grid-column: 1 / -1; font-size: var(--t-md); }
}

/* failure ladder */
.ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--rule-2); border-radius: var(--radius); overflow: hidden; background: var(--sheet); }
.rung { padding: var(--s4); border-right: 1px solid var(--rule); font-size: var(--t-sm); position: relative; min-width: 0; }
.rung:last-child { border-right: 0; background: var(--sunk); }
.rung .label { display: block; margin-bottom: var(--s2); }
.rung b { display: block; font-family: var(--mono); margin-bottom: 4px; }
.rung span { color: var(--ink-2); }
.rung.now { box-shadow: inset 0 3px 0 var(--red); }
@media (max-width: 760px) { .ladder { grid-template-columns: 1fr 1fr; } .rung:nth-child(2) { border-right: 0; } .rung:nth-child(-n+2) { border-bottom: 1px solid var(--rule); } }

/* question card */
.q { background: var(--sheet); border: 1px solid var(--rule-2); border-left: 4px solid var(--amber); border-radius: var(--radius); padding: var(--s4) var(--s5); display: grid; gap: var(--s3); }
.q .wi-id { color: var(--ink-3); }
.q h4 { font-size: var(--t-md); }
.q ol { margin: 0; padding-left: 1.4em; color: var(--ink-2); font-size: var(--t-sm); display: grid; gap: 4px; }
.q .rec { font: 400 13px/1.5 var(--mono); color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: var(--s3); }
.q .acts { display: flex; gap: var(--s2); flex-wrap: wrap; }

/* desired-state loop */
.dsl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule-2); border-radius: var(--radius); overflow: hidden; }
.dsl div { padding: var(--s4); border-right: 1px solid var(--rule); background: var(--sheet); }
.dsl div:last-child { border-right: 0; }
.dsl b { font-family: var(--mono); display: block; margin-bottom: 4px; }
.dsl span { color: var(--ink-2); font-size: var(--t-sm); }
@media (max-width: 760px) { .dsl { grid-template-columns: 1fr 1fr; } .dsl div:nth-child(2) { border-right: 0; } .dsl div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); } }

/* prose lists */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.ticks li { padding-left: 22px; position: relative; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 5px; border-top: 1.5px solid var(--copper); border-bottom: 1.5px solid var(--copper); }
.ticks b { color: var(--ink); }

/* plain data table (compare, cost) */
.dt-wrap { overflow-x: auto; border: 1px solid var(--rule-2); border-radius: var(--radius); background: var(--sheet); }
.dt { width: 100%; border-collapse: collapse; font-size: var(--t-sm); min-width: 720px; }
.dt th { text-align: left; font: 700 11px/1.3 var(--mono); color: var(--ink-3); background: var(--sunk); padding: 10px 14px; border-bottom: 1px solid var(--rule-2); }
.dt td { padding: 14px; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink-2); }
.dt td:first-child { color: var(--ink); font-weight: 700; }
.dt tr:last-child td { border-bottom: 0; }
.dt .mono { font-size: 13px; }

/* pricing */
.price { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rule-2); border-radius: var(--radius); overflow: hidden; background: var(--sheet); }
.plan { padding: var(--s5); border-right: 1px solid var(--rule-2); display: grid; gap: var(--s3); align-content: start; }
.plan:last-child { border-right: 0; }
.plan h3 { font-size: var(--t-xl); }
.plan .fig { font-size: var(--t-2xl); justify-self: start; }
.plan p { color: var(--ink-2); font-size: var(--t-sm); }
@media (max-width: 860px) { .price { grid-template-columns: 1fr; } .plan { border-right: 0; border-bottom: 1px solid var(--rule-2); } .plan:last-child { border-bottom: 0; } }

.eq { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); font: 400 var(--t-lg)/1.3 var(--mono); padding: var(--s6) var(--s5); background: var(--sheet); border: 1px solid var(--rule-2); border-radius: var(--radius); }
.eq .term { display: grid; gap: 4px; }
.eq .term small { font: 400 var(--t-xs)/1.3 var(--sans); color: var(--ink-3); }
.eq .op { color: var(--copper); font-weight: 700; font-size: var(--t-xl); }
.eq .frac { display: grid; text-align: center; }
.eq .frac > span:first-child { border-bottom: 1.5px solid var(--ink); padding: 0 6px 6px; }
.eq .frac > span:last-child { padding: 6px 6px 0; }
.eq .res { padding-bottom: 6px; border-bottom: 4px double var(--copper); font-weight: 700; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--ink); padding: var(--s7) 0 var(--s8); margin-top: var(--s8); font-size: var(--t-sm); }
.foot-in { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: var(--s5); }
.foot p { color: var(--ink-2); max-width: 36ch; margin-top: var(--s3); }
.foot h4 { font: 700 11px/1.3 var(--mono); color: var(--ink-3); margin-bottom: var(--s3); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot ul a { color: var(--ink-2); text-decoration: none; }
.foot ul a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-in > div:first-child { grid-column: 1 / -1; } }

/* ---------- the app (signed in): same tokens, same components ---------- */
.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: calc(100vh - 61px); }
.rail { border-right: 1px solid var(--rule); padding: var(--s5) var(--s4); font-size: var(--t-sm); background: var(--paper); }
.rail .label { display: block; margin: var(--s5) 0 var(--s2) 10px; }
.rail .label:first-child { margin-top: 0; }
.rail a { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: 4px; color: var(--ink-2); text-decoration: none; }
.rail a:hover { background: var(--sunk); color: var(--ink); }
.rail a[aria-current="page"] { background: var(--sheet); color: var(--ink); font-weight: 700; box-shadow: inset 2px 0 0 var(--copper), 0 0 0 1px var(--rule-2); }
.count { font: 700 11px/1 var(--mono); padding: 3px 6px; border-radius: 3px; background: var(--sunk); color: var(--ink-2); }
.count.red { background: var(--red-bg); color: var(--red); }
.count.amb { background: var(--amber-bg); color: var(--amber); }
.main { padding: var(--s6) var(--gutter) var(--s8); max-width: 1240px; min-width: 0; }
.main-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s5); }
.main-head h1 { font-size: var(--t-2xl); }
.main-head p { color: var(--ink-2); font-size: var(--t-sm); margin-top: 6px; }
.panel-h { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); margin: var(--s7) 0 var(--s3); }
.panel-h h2 { font-size: var(--t-lg); }
.panel-h a { font-size: var(--t-sm); }
.switch { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font: 400 var(--t-sm)/1 var(--mono); border: 1px solid var(--control); border-radius: 4px; padding: 8px 10px; color: var(--ink); text-decoration: none; }
.switch::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(45deg) translate(-2px, -2px); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--sunk); border: 1px solid var(--rule-2); display: grid; place-items: center; font: 700 12px/1 var(--mono); color: var(--ink-2); }

.kpis { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); border: 1px solid var(--rule-2); border-radius: var(--radius); background: var(--sheet); }
.kpi { padding: var(--s5); border-right: 1px solid var(--rule); display: grid; gap: var(--s2); align-content: space-between; min-width: 0; }
.kpi:last-child { border-right: 0; }
.kpi .val { font: 700 var(--t-2xl)/1 var(--mono); font-variant-numeric: tabular-nums; }
.kpi .val small { font-size: 0.5em; color: var(--ink-3); font-weight: 400; }
.kpi .delta { font: 400 var(--t-xs)/1.4 var(--mono); color: var(--ink-3); }
.kpi .delta .good { color: var(--green); font-weight: 700; }
.kpi .fig { justify-self: start; }
@media (max-width: 1100px) { .kpis { grid-template-columns: 1fr 1fr; } .kpi:nth-child(2) { border-right: 0; } .kpi:nth-child(-n+2) { border-bottom: 1px solid var(--rule); } }
@media (max-width: 520px) { .kpis { grid-template-columns: 1fr; } .kpi { border-right: 0; border-bottom: 1px solid var(--rule); } }

.alarm { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s3); align-items: start; padding: 12px 16px; border-bottom: 1px solid var(--rule); font-size: var(--t-sm); }
.alarm:last-child { border-bottom: 0; }
.alarm code { font-weight: 700; }
.alarm p { color: var(--ink-2); }
.alarm .when { font: 400 var(--t-xs)/1.6 var(--mono); color: var(--ink-3); white-space: nowrap; }
.spark { display: block; width: 100%; height: 28px; }
.bar-meter { height: 6px; background: var(--sunk); border-radius: 3px; overflow: hidden; min-width: 60px; }
.bar-meter i { display: block; height: 100%; background: var(--ink-2); }
.bar-meter i.w { background: var(--amber); }

@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .rail { border-right: 0; border-bottom: 1px solid var(--rule); padding: var(--s3) var(--gutter); display: flex; gap: 4px; overflow-x: auto; }
  .rail .label { display: none; }
  .rail a { white-space: nowrap; gap: 8px; }
  .main { padding-top: var(--s5); }
}

/* an inverted band: one dark moment on a paper page (and one paper moment in dark mode) */
.inv {
  --paper: #1A1914; --sheet: #211F19; --sunk: #29271F; --ink: #EDE7D7; --ink-2: #B3AC99; --ink-3: #9A9483;
  --rule: #34312A; --rule-2: #4A463C; --copper: #E8915F; --amber: #E5B550; --amber-bg: #2E2614;
  --green: #6FCB8E; --green-bg: #1D2A20; --red: #FF8089; --red-bg: #33191C;
  background: var(--paper); color: var(--ink); border-top: 0;
}
@media (prefers-color-scheme: dark) {
  .inv {
    --paper: #F4F1E8; --sheet: #FBF9F3; --sunk: #EBE6D8; --ink: #16150F; --ink-2: #57534A; --ink-3: #65615A;
    --rule: #D9D3C2; --rule-2: #B9B19C; --copper: #A3441A; --amber: #8A5800; --amber-bg: #F3E5C2;
    --green: #17693A; --green-bg: #DDEBDD; --red: #B0182F; --red-bg: #F7DEDC;
  }
}
.inv + .sec { border-top: 0; }
.inv .sec-head h2 { font-size: clamp(36px, 4.4vw, 60px); }
.inv .sec-head h2 span { text-decoration: underline double var(--copper); text-decoration-thickness: 3px; text-underline-offset: 0.16em; text-decoration-skip-ink: none; }

/* signed-in bar on small screens: keep the daemon switcher, drop the tenant one */
@media (max-width: 860px) {
  .nav.ctx { display: flex; margin-left: auto; }
  .nav.ctx .switch:first-child { display: none; }
  .bar-in:has(.ctx) .bar-end .btn { display: none; }
}
@media (max-width: 520px) {
  .alarm { grid-template-columns: auto minmax(0, 1fr); }
  .alarm .when { grid-column: 2; }
}
.hero-note { color: var(--ink-2); font-size: var(--t-sm); margin: 0; }

/* ---------- the flow line: committed -> judged -> merged, with the appeal loop ---------- */
.flow { margin: var(--s5) 0 0; font: 700 var(--t-md)/1.2 var(--mono); color: var(--ink); width: fit-content; max-width: 100%; }
.flow-main { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.flow-main .to { width: 1.6em; }
.flow-appeal { display: flex; align-items: flex-start; gap: var(--s2); margin-top: 2px; padding-left: calc(9ch + 1.6em + 2px); }
.flow-appeal svg { width: 44px; height: 34px; flex: none; color: var(--copper); }
.flow-appeal span { font-weight: 400; font-size: var(--t-sm); color: var(--red); padding-top: 14px; }
.flow-gloss { color: var(--ink-2); font-size: var(--t-sm); margin-top: var(--s2); max-width: 52ch; }
.flow.big { font-size: var(--t-lg); }
@media (max-width: 420px) { .flow-appeal { padding-left: 0; } }

/* ---------- copy box for the agent-led path ---------- */
.agentbox { display: grid; gap: var(--s2); max-width: 720px; }
.agentbox .ab-label { font: 700 var(--t-sm)/1.3 var(--sans); color: var(--ink); }
.ab-row { display: flex; align-items: stretch; gap: var(--s2); }
.ab-box { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; font: 400 var(--t-sm)/1.45 var(--mono); background: var(--sheet); border: 1px solid var(--rule-2); border-radius: 4px; padding: 12px 14px; overflow-x: auto; }
.ab-box code { user-select: all; font-size: inherit; white-space: normal; }
.ab-row .btn { cursor: pointer; font-family: var(--sans); }
.ab-note { color: var(--ink-3); font-size: var(--t-sm); margin: 0; }
@media (max-width: 520px) { .ab-row { flex-direction: column; } .ab-row .btn { justify-content: center; } }

/* ---------- the one-line heading on the cost page ---------- */
.phead h1.one-line { max-width: none; }
.phead h1.one-line .m { display: none; }
@media (min-width: 1024px) { .phead h1.one-line { font-size: clamp(44px, 4.3vw, 60px); white-space: nowrap; } }
@media (max-width: 600px) { .phead h1.one-line .m { display: inline; } }

/* ---------- used-by band: quiet, one flat colour, slow marquee ---------- */
.usedby { padding: var(--s7) 0; border-top: 1px solid var(--rule); }
.ub-head { font: 700 var(--t-xs)/1 var(--mono); color: var(--ink-3); margin: 0 0 var(--s5); }
.ub { overflow: hidden; color: var(--ink-3);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ub-track { display: flex; width: max-content; animation: ub-slide 60s linear infinite; }
.ub:hover .ub-track { animation-play-state: paused; }
.ub-set { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; flex: none; }
.ub-set li { display: flex; align-items: center; }
.ub-set li::after { content: "\00b7"; margin: 0 var(--s7); font: 700 var(--t-lg)/1 var(--mono); }
.ub-set a { display: inline-flex; align-items: center; gap: 10px; height: 20px; color: inherit; text-decoration: none; font: 700 var(--t-md)/1 var(--sans); }
.ub-set a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.ub-mark { width: 20px; height: 20px; flex: none; background: currentColor;
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
@keyframes ub-slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ub { -webkit-mask-image: none; mask-image: none; }
  .ub-track { animation: none; width: auto; }
  .ub-set[aria-hidden="true"] { display: none; }
  .ub-set { flex-wrap: wrap; row-gap: var(--s3); }
}
@media (max-width: 600px) { .phead h1.one-line { font-size: min(7.2vw, 36px); } .phead h1.one-line .m + * { } }
.flow { width: auto; }
.flow-main { gap: 8px; }
.flow-appeal { padding-left: calc(9ch + 1.6em + 12px); }
.flow-gloss { font: 400 var(--t-sm)/1.4 var(--sans); max-width: none; }
/* the one-number heading sits on one line at 1024px and up; the lead moves under it */
.sec-head.wide h2.one-line .m { display: none; }
@media (min-width: 1024px) { .sec-head.wide { grid-template-columns: 1fr; } .inv .sec-head.wide h2.one-line { white-space: nowrap; font-size: clamp(40px, 4.2vw, 56px); } }
@media (max-width: 600px) { .sec-head.wide h2.one-line .m { display: inline; } .inv .sec-head.wide h2.one-line { font-size: min(7.2vw, 36px); } }
