/* data05 public site, in the 05 family look shared with use05.dev. Workstation: matte black, light grey plastic,
   white paper, blue links. Everything above the "data05 pass" at the bottom is use05.dev's stylesheet, unchanged, so
   the two sites stay one family; data05's own sign (a square blue cell where use05 has a round red dot) is set there.
   Red still means what needs a person. Display and body: Archivo. Code and labels: IBM Plex Mono. Self-hosted (fonts/). */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("/fonts/archivo.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("/fonts/ibm-plex-mono-600.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #ebebe7;
  --paper: #ffffff;
  --ink: #161616;
  --ink-2: #3b3b39;
  --muted: #61615d;
  --line: rgba(22, 22, 22, .14);
  --line-2: rgba(22, 22, 22, .32);
  --blue: #1f4fbf;
  --blue-hi: #4a74d8;
  --iris: #a9bdf0;
  --blue-ink: #1a43a6;
  --blue-deep: #12307a;
  --blue-soft: #e0e7f7;
  --tint: #deded9;
  --red: #e2231a;
  --orange: #e2231a;
  --orange-hi: #f04a3f;
  --orange-ink: #b3150d;
  --orange-soft: #fbe2df;
  --yellow: #e2231a;
  --night: #161616;
  --night-2: #1c1c1b;
  --font-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r-sm: 3px; --r-md: 4px; --r-lg: 6px; --r-panel: 8px; --r-closing: 10px;
  --gutter: 32px;
  --section: clamp(52px, 6.5vw, 92px);
  --container: 1200px;
}
@media (max-width: 640px) { :root { --gutter: 20px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); text-decoration-thickness: 2px; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--iris); }
h1, h2, h3, h4 { font-family: var(--font-sans); margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(36px, 5.2vw, 66px); line-height: 1.03; letter-spacing: -.03em; }
h2 { font-weight: 700; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -.028em; }
h3 { font-weight: 650; font-size: 20px; line-height: 1.3; letter-spacing: -.012em; }
p { margin: 0 0 1em; text-wrap: pretty; }
code, kbd, pre { font-family: var(--font-mono); }
code { font-size: .88em; background: rgba(22, 22, 22, .06); padding: .1em .38em; border-radius: var(--r-sm); }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-md); }
.skip:focus { top: 12px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248, 248, 246, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -.02em; min-height: 44px; }
.brand:hover { color: var(--ink); }
.brand svg { height: 36px; width: auto; }
.nav-links { display: flex; gap: 2px; margin: 0 auto 0 14px; padding: 0; list-style: none; }
.nav-links li { margin: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 520; border-radius: var(--r-md); position: relative; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after, .nav-links a:hover::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 7px; height: 2px; background: var(--orange); border-radius: 2px; }
.header-cta { margin-left: auto; }
.nav-links + .header-cta { margin-left: 0; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-md); font-weight: 560; font-size: 15px; background: var(--paper); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--ink); }
.menu ul { position: absolute; right: 0; top: 52px; width: min(280px, calc(100vw - 2 * var(--gutter))); margin: 0; padding: 8px; list-style: none; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: 0 20px 50px -16px rgba(22, 22, 22, .35); }
.menu li { margin: 0; }
.menu a { display: flex; align-items: center; min-height: 46px; padding: 0 12px; color: var(--ink); text-decoration: none; font-weight: 560; border-radius: var(--r-md); }
.menu a:hover, .menu a[aria-current="page"] { background: var(--blue-soft); }
@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu { display: block; margin-left: auto; }
  .header-cta { margin-left: 0; }
}
@media (max-width: 520px) { .header-cta .btn-label-long { display: none; } .brand span { font-size: 19px; } }

/* ---- Buttons and chips ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r-md); border: 1px solid transparent; font: 600 16px/1 var(--font-sans); text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn-primary { background: var(--orange); color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 1px 2px rgba(22, 22, 22, .25), 0 8px 16px -8px rgba(22, 22, 22, .35); }
.btn-primary:hover { background: var(--orange-hi); color: var(--ink); transform: translateY(-1px); }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.chip { display: inline-flex; align-items: center; gap: 9px; min-height: 32px; padding: 0 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line-2); font: 500 12.5px/1 var(--font-mono); letter-spacing: .02em; color: var(--ink); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 40em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---- Sections ---- */
.section { padding-block: var(--section); }
.section-head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--ink-2); font-size: 18px; margin-top: 16px; margin-bottom: 0; }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }

/* ---- Hero ---- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(40px, 6vw, 80px) clamp(40px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, rgba(226, 35, 26, .45) 62% 92%, transparent 92%); }
.hero .lede { margin-top: 22px; }
.hero-status { margin-top: 22px; font-size: 15px; color: var(--muted); max-width: 34em; }
.window { border-radius: 14px; overflow: hidden; background: #161616; box-shadow: 0 0 0 1px rgba(22, 22, 22, .55), 0 2px 6px rgba(22, 22, 22, .18), 0 28px 56px -22px rgba(22, 22, 22, .5); }
.window img { width: 100%; height: auto; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.page-hero { padding-block: clamp(40px, 6vw, 80px) clamp(24px, 3vw, 40px); position: relative; isolation: isolate; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 56px); max-width: 18em; }
.page-hero .lede { margin-top: 20px; }
.crumbs { margin-bottom: 22px; font-size: 14px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; color: var(--muted); }
.crumbs li { margin: 0; display: inline-flex; gap: 6px; }
.crumbs li + li::before { content: "/"; color: var(--line-2); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); }

/* ---- The shift ---- */
.shift { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.shift-card { border-radius: var(--r-panel); padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); background: var(--paper); }
.shift-card h3 { font-size: 17px; font-weight: 650; letter-spacing: -.01em; color: var(--ink-2); margin-bottom: 18px; }
.shift-card ul { list-style: none; padding: 0; margin: 0; }
.shift-card li { position: relative; padding-left: 30px; margin-bottom: 14px; font-size: 18px; line-height: 1.45; }
.shift-card li::before { content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 14px; border-radius: 50%; }
.shift-before li { color: var(--ink-2); }
.shift-before li::before { border: 2px solid var(--line-2); }
.shift-after { background: var(--night-2); border-color: rgba(255, 255, 255, .3); color: #fff; }
.shift-after h3 { color: #dcdcd6; }
.shift-after li::before { background: var(--orange); }
.shift-pull { margin: 28px 0 0; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.3; letter-spacing: -.018em; font-weight: 600; max-width: 34em; }
@media (max-width: 800px) { .shift { grid-template-columns: 1fr; } }

/* ---- Blue band (Cube "problem" band) ---- */
.band-blue { background: linear-gradient(135deg, #3fb4f1, #0297de 70%); color: var(--ink); padding-block: clamp(48px, 6vw, 88px); }
.band-blue .section-head p { color: #031f30; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.paper-card { background: var(--bg); border-radius: var(--r-lg); padding: 24px; border: 1px solid rgba(22, 22, 22, .1); box-shadow: 0 12px 30px -18px rgba(22, 22, 22, .5); }
.paper-card h3 { margin-bottom: 10px; }
.paper-card p { margin: 0; color: var(--ink-2); font-size: 16.5px; }
@media (max-width: 900px) { .cards3 { grid-template-columns: 1fr; } }

/* ---- Feature cards ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.card:hover { border-color: rgba(31, 79, 191, .55); box-shadow: 0 18px 40px -22px rgba(31, 79, 191, .6); transform: translateY(-2px); }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--ink-2); font-size: 16.5px; }
.card .tag { display: inline-block; font: 500 11.5px/1 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: 14px; }
.card a.more { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 15.5px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards, .cards.two { grid-template-columns: 1fr; } .card { padding: 22px; } }

/* ---- Diagrams ---- */
.diagram-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-panel); padding: clamp(14px, 2.2vw, 28px); box-shadow: 0 30px 60px -40px rgba(22, 22, 22, .35); }
.diagram { width: 100%; height: auto; }
.diagram .v { display: none; }
.diagram-v { display: none; max-width: 440px; margin-inline: auto; }
.diagram text { font-family: var(--font-sans); fill: var(--ink); }
.diagram .mono { font-family: var(--font-mono); }
.d-zone-h { fill: rgba(31, 79, 191, .07); stroke: rgba(31, 79, 191, .4); stroke-width: 1.2; }
.d-zone-a { fill: rgba(226, 35, 26, .08); stroke: rgba(226, 35, 26, .6); stroke-width: 1.2; }
.d-bar-h { fill: var(--blue); }
.d-bar-a { fill: var(--orange); }
.d-zone-label { font-family: var(--font-mono) !important; font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.d-zone-label.h { fill: var(--blue-deep); }
.d-zone-label.a { fill: var(--orange-ink); }
.d-node-human { fill: var(--paper); stroke: var(--blue-ink); stroke-width: 2; }
.d-node-agent { fill: var(--orange-soft); stroke: var(--orange); stroke-width: 2; }
.d-node-05 { fill: var(--night); stroke: var(--night); stroke-width: 2; }
.d-node-host { fill: var(--paper); stroke: var(--muted); stroke-width: 2; stroke-dasharray: 6 4; }
.d-title { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.d-sub { font-size: 12.5px; fill: var(--ink-2) !important; }
.d-role { font-family: var(--font-mono) !important; font-size: 12px; font-weight: 600; letter-spacing: .05em; fill: var(--muted) !important; }
.d-on-dark { fill: #fff !important; }
.d-sub.d-on-dark { fill: #d2d2cc !important; }
.d-role.d-on-dark { fill: #8fdc8f !important; }
.d-badge { fill: var(--ink); }
.d-badge-n { font-family: var(--font-mono) !important; font-size: 12px; font-weight: 700; fill: #fff !important; }
.d-arrow { stroke: var(--ink); stroke-width: 2; fill: none; }
.d-arrowhead { fill: var(--ink); }
.d-bypass { stroke: var(--orange); stroke-width: 2.5; stroke-dasharray: 7 5; fill: none; }
.d-bypass-head { fill: var(--orange); }
.d-pill { fill: var(--paper); stroke: var(--orange); stroke-width: 1.5; }
.d-pill-t { font-family: var(--font-mono) !important; font-size: 12px; font-weight: 600; fill: var(--orange-ink) !important; }
.d-legend-t { font-size: 12.5px; fill: var(--ink-2) !important; }
.d-s-adv { fill: var(--orange-soft); stroke: var(--orange); stroke-width: 1.5; }
.d-s-auth { fill: var(--blue-soft); stroke: var(--blue-ink); stroke-width: 1.5; }
.d-s-host { fill: #e6e6e2; stroke: var(--muted); stroke-width: 1.5; }
.d-s-later { fill: var(--paper); stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 3; }
.d-box { fill: var(--paper); stroke: var(--line-2); stroke-width: 1.5; }
.d-box-later { fill: var(--bg); stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 7 5; }
.d-box-t { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.d-li { font-size: 13.5px; fill: var(--ink-2) !important; }
.d-strength { font-family: var(--font-mono) !important; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; }
@media (max-width: 1023px) {
  .diagram-h { display: none; }
  .diagram-v { display: block; }
}
.read-as-text { margin-top: 18px; }
details.plain { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
details.plain > summary { cursor: pointer; padding: 14px 18px; font-weight: 600; min-height: 44px; list-style: none; display: flex; align-items: center; gap: 10px; }
details.plain > summary::-webkit-details-marker { display: none; }
details.plain > summary::before { content: "+"; font-family: var(--font-mono); width: 20px; color: var(--orange-ink); }
details.plain[open] > summary::before { content: "\2212"; }
details.plain > div, details.plain > ol { padding: 0 20px 14px 38px; margin: 0; }
details.plain > ol { padding-left: 42px; }

/* ---- Terminal showcase ---- */
.shots { margin-top: 8px; }
.shot-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.shot-tabs button { font: 560 15px/1 var(--font-sans); min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); cursor: pointer; }
.shot-tabs button:hover { border-color: var(--ink); }
.shot-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.shot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 32px; }
.shot { margin: 0; }
.shot figure { margin: 0; }
.shot figcaption { margin-top: 14px; color: var(--ink-2); font-size: 16px; max-width: 52em; }
.shot figcaption strong { color: var(--ink); }
.shots.is-tabbed .shot[hidden] { display: none; }

.measured { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0; max-width: 760px; border-top: 1px solid var(--line); }
.measured li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 17px; line-height: 1.5; }
.measured strong { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; margin-right: .35em; }
.stats-note { font: 500 13px/1.5 var(--font-mono); color: var(--muted); margin-top: 16px; }

/* ---- Strength table ---- */
.table-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
table.strength { width: 100%; border-collapse: collapse; font-size: 16px; }
.strength caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); text-align: left; padding: 20px 24px 0; font-size: 14.5px; color: var(--muted); }
.strength th, .strength td { text-align: left; vertical-align: top; padding: 18px 24px; border-top: 1px solid var(--line); }
.strength thead th { font: 500 12px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-top: 0; padding-top: 22px; }
.strength tbody th { font-weight: 650; width: 24%; }
.strength td:nth-child(3) { width: 24%; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font: 600 12.5px/1 var(--font-mono); letter-spacing: .02em; white-space: nowrap; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.pill-adv { background: var(--orange-soft); color: var(--orange-ink); border: 1px solid rgba(226, 35, 26, .6); }
.pill-adv::before { background: var(--orange); }
.pill-strong { background: var(--blue-soft); color: var(--blue-deep); border: 1px solid rgba(31, 79, 191, .5); }
.pill-strong::before { background: var(--blue); }
.pill-hard { background: var(--night); color: #fff; border: 1px solid var(--night); }
.pill-hard::before { background: var(--iris); }
.pill-later { background: var(--paper); color: var(--muted); border: 1px dashed var(--muted); }
.pill-later::before { background: var(--muted); }
.strength td small { display: block; color: var(--muted); font-size: 14px; margin-top: 6px; }
@media (max-width: 760px) {
  .strength thead { display: none; }
  .strength, .strength tbody, .strength tr, .strength th, .strength td { display: block; width: auto !important; }
  .strength tr { padding: 18px 20px; border-top: 1px solid var(--line); }
  .strength tbody tr:first-child { border-top: 0; }
  .strength th, .strength td { padding: 0; border: 0; }
  .strength th { margin-bottom: 10px; font-size: 18px; }
  .strength td { margin-bottom: 10px; }
  .strength td[data-label]::before { content: attr(data-label); display: block; font: 500 11.5px/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
}
.callout { margin-top: 24px; padding: 20px 24px; border-radius: var(--r-lg); background: var(--orange-soft); border: 1px solid rgba(226, 35, 26, .55); font-size: 17px; }
.callout p:last-child { margin-bottom: 0; }

/* ---- Free vs paid, works with ---- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-panel); padding: clamp(24px, 3vw, 36px); }
.plan.later { background: transparent; border-style: dashed; border-color: var(--line-2); }
.plan h3 { font-size: 24px; margin: 12px 0 14px; }
.plan ul { padding-left: 1.1em; margin: 0; }
.plan li { margin-bottom: .5em; }
@media (max-width: 800px) { .plans { grid-template-columns: 1fr; } }
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.works .card h3 { font-size: 22px; }
@media (max-width: 800px) { .works { grid-template-columns: 1fr; } }

/* ---- FAQ ---- */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; min-height: 56px; font-weight: 650; font-size: 18px; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 22px/1 var(--font-mono); color: var(--orange-ink); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] { border-color: var(--line-2); }
.faq .answer { padding: 0 22px 8px; color: var(--ink-2); }

/* ---- Prose (inner pages) ---- */
.prose { max-width: 740px; }
.prose h2 { font-size: clamp(26px, 3vw, 36px); margin: 2.2em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.8em 0 .5em; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose pre { background: var(--night-2); color: #e4e4df; padding: 18px 20px; border-radius: var(--r-lg); overflow-x: auto; font-size: 14px; line-height: 1.55; }
.prose pre code { background: none; padding: 0; font-size: inherit; }
.toc { margin: 0 0 40px; padding: 18px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); max-width: 740px; }
.toc p { margin: 0 0 8px; font-size: 15px; font-weight: 650; color: var(--ink-2); }
.toc ol { margin: 0; padding-left: 1.2em; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 820px; }
.steps li { counter-increment: s; position: relative; padding: 20px 22px 20px 72px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); margin: 0; color: var(--ink-2); }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 18px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 600 14px/1 var(--font-mono); }
.steps li strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; letter-spacing: -.01em; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; max-width: 740px; }
.kv dt { font: 500 13px/1.6 var(--font-mono); color: var(--muted); }
.kv dd { margin: 0; color: var(--ink-2); }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 14px; } }
.codeblock { background: var(--night-2); color: #e4e4df; border-radius: var(--r-lg); padding: 18px 20px; overflow-x: auto; font: 14px/1.6 var(--font-mono); margin: 0 0 1.2em; max-width: 820px; }
.codeblock .dim { color: #8d8d87; }
.codeblock .ok { color: #8fdc8f; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.related a { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.related a:hover { border-color: var(--blue); transform: translateY(-2px); color: var(--ink); }
.related b { display: block; font-size: 18px; letter-spacing: -.01em; margin-bottom: 4px; }
.related span { color: var(--ink-2); font-size: 15px; line-height: 1.45; display: block; }
@media (max-width: 800px) { .related { grid-template-columns: 1fr; } }

/* ---- Closing CTA (midnight panel with blue and cantaloupe light, as in Cube's closing block) ---- */
.cta-panel { position: relative; isolation: isolate; border-radius: var(--r-closing); padding: clamp(32px, 6vw, 80px); color: #fff; overflow: hidden;
  background: var(--night-2);
  border: 1px solid rgba(255, 255, 255, .35); }
.cta-panel h2 { color: #fff; max-width: 15em; }
.cta-panel p { color: #3b3b39; font-size: 18px; max-width: 36em; margin-top: 16px; }
.cta-panel .cta-row { margin-top: 28px; align-items: center; }
.cta-panel .addr { font: 500 16px/1 var(--font-mono); color: #fff; }
.cta-panel a:not(.btn) { color: #161616; }
.btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost-dark:hover { border-color: #fff; color: #fff; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); padding-block: 56px 40px; margin-top: var(--section); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font: 500 12px/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 2px; }
.footer-grid a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-blurb { font-size: 15px; color: var(--ink-2); max-width: 24em; margin-top: 14px; }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer-legal p { margin: 0; max-width: 60em; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

.notfound { min-height: 60vh; display: grid; place-content: center; text-align: left; padding-block: 80px; }
.notfound .big { font: 700 clamp(80px, 16vw, 180px)/1 var(--font-sans); letter-spacing: -.05em; color: var(--ink); }
.notfound .big span { color: #e2231a; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .card:hover, .btn-primary:hover, .related a:hover { transform: none; }
}
@media print { .site-header, .cta-panel, .hero::before, .page-hero::before { display: none; } }

/* ---- Late additions ---- */
.header-cta .short { display: none; }
@media (max-width: 520px) { .header-cta .long { display: none; } .header-cta .short { display: inline; } }
.d-badge-n-dark { fill: var(--ink) !important; }
figure.card { margin: 0; }
figure.card figcaption p { margin-top: 14px; }
.cards.two .window { margin-bottom: 4px; }
.nowrap { white-space: nowrap; }
.site-footer { margin-top: 0; }
.strength tbody th { width: 19%; }
.strength td:nth-child(2) { width: 19%; }
.strength td:nth-child(3) { width: 24%; }
.strength caption { display: block; }
@media (max-width: 760px) { .strength caption { padding: 18px 20px 0; } }

/* ---- Refinements: contrast on dark surfaces, measure, browser surfaces ---- */
.steps li, .section-head p, .prose p, .prose li, .answer p, .related span { max-width: 62ch; }
.table-wrap { padding: 4px; }
table, .measured strong { font-variant-numeric: tabular-nums; }


/* ---- Install commands (home hero) ---- */
.install { margin-top: 26px; max-width: 40em; background: var(--night-2); border-radius: var(--r-lg); padding: 14px 16px 12px; color: #e4e4df; }
.install-title { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #a3a39d; }
.install-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 2px; padding: 8px 0; }
.install-row .install-label { grid-column: 1 / -1; }
.install-row + .install-row { border-top: 1px solid rgba(255, 255, 255, .08); }
.install-label { font-size: 14px; color: #a3a39d; }
.install-row code { font-size: 14px; color: #fff; background: none; padding: 0; white-space: nowrap; overflow-x: auto; }
.install-copy { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.install-copy:hover, .install-copy:focus-visible { border-color: #fff; }
.install-note { margin: 8px 0 0; font-size: 14px; color: #bdbdb7; }
.install-note code { color: #fff; background: none; padding: 0; font-size: 13px; }
.install-note a { color: #fff; }

/* ---- Docs page ---- */
.doc-table { overflow-x: auto; margin: 18px 0; }
.doc-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc-table thead th { font-size: 14px; color: var(--muted); }
.doc-table tr:last-child td { border-bottom: 0; }
.docs h2 { scroll-margin-top: 90px; }

/* ---- The five principles (home) ---- */
.principles-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; text-decoration: none; }
.principles-strip span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 15px; font-weight: 600; }
.principles-strip b { font: 600 12px/1 var(--font-mono); color: var(--blue-ink); }
.principles-strip:hover span { border-color: var(--blue-ink); }
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.principle { display: flex; flex-direction: column; }
.principle .more { margin-top: auto; padding-top: 14px; }
.principle-n { font: 700 34px/1 var(--font-mono); color: var(--blue-ink); margin-bottom: 12px; }
.principle h3 { margin-top: 2px; }
@media (max-width: 1180px) { .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }
.principle .tag { min-height: 2.3em; line-height: 1.15; }
.principles-strip i { flex-basis: 100%; font-style: normal; font-size: 14px; color: var(--muted); }

/* ---- Tall screenshots: collapsed with a fade, expanded on request (app.js) ---- */
.shot-frame { position: relative; }
.shot-frame img { display: block; width: 100%; height: auto; }
.shot-frame.is-collapsed { max-height: 560px; overflow: hidden; border-radius: 14px; }
.shot-frame.is-collapsed::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(to bottom, rgba(22, 22, 22, 0), #161616 85%); pointer-events: none; }
.shot-more { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 12px; }
.shot-more[hidden] { display: none; }
.shot-more button { font: 560 15px/1 var(--font-sans); min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; }
.shot-more button:hover { background: var(--blue); border-color: var(--blue); }
.shot-more a { font-size: 15px; }

/* ---- Polish pass ---- */
/* A section whose heading is its content: heading left, text right, no empty band. */
.section-head.split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px clamp(28px, 5vw, 72px); align-items: end; }
.section-head.split p { margin-top: 0; }
@media (max-width: 860px) { .section-head.split { grid-template-columns: 1fr; } }

/* Hero: text and terminal side by side, the install commands as a strip across the bottom. */
.hero-grid { align-items: center; }
.install-strip { grid-column: 1 / -1; max-width: none; margin-top: clamp(8px, 2vw, 20px); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.15fr); column-gap: 0; padding: 16px 0 14px; }
.install-strip .install-title, .install-strip .install-note { grid-column: 1 / -1; padding-inline: 20px; }
.install-strip .install-row { padding: 10px 20px; }
.install-strip .install-row + .install-row { border-top: 0; border-left: 1px solid rgba(255, 255, 255, .1); }
@media (max-width: 900px) {
  .install-strip { grid-template-columns: 1fr; }
  .install-strip .install-row + .install-row { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
}

/* The five principles: one panel, one row each. */
.principles { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 4px clamp(20px, 3vw, 40px); box-shadow: 0 1px 2px rgba(22, 22, 22, .05), 0 18px 40px -28px rgba(22, 22, 22, .25); }
.principle { display: grid; grid-template-columns: 4.25rem minmax(10rem, 13rem) minmax(0, 1fr) 15rem; column-gap: clamp(16px, 3vw, 40px); align-items: baseline; padding: 24px 0; border-top: 1px solid var(--line); }
.principle:first-child { border-top: 0; }
.principle-n { font: 700 32px/1 var(--font-mono); color: var(--blue); letter-spacing: -.02em; margin: 0; }
.principle-name h3 { font-size: 22px; margin: 0; }
.principle-tag { display: block; margin-top: 6px; font: 500 11.5px/1.3 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--blue-ink); }
.principle p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.principle .more { padding: 0; margin: 0; white-space: nowrap; justify-self: end; font-size: 15px; }
@media (max-width: 960px) {
  .principle { grid-template-columns: 3.25rem minmax(0, 1fr); row-gap: 10px; }
  .principle-n { font-size: 26px; }
  .principle p, .principle .more { grid-column: 2; justify-self: start; }
}

/* Phones: screenshot tabs scroll sideways instead of stacking. */
@media (max-width: 640px) {
  .shot-tabs { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .shot-tabs::-webkit-scrollbar { display: none; }
  .shot-tabs button { flex: none; scroll-snap-align: start; }
}

/* Docs: contents alongside on wide screens. */
.docs-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.docs-toc { font-size: 15px; }
.docs-toc h2 { font: 600 12px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.docs-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.docs-toc a { display: block; padding: 6px 10px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink-2); }
.docs-toc a:hover { background: var(--tint); color: var(--ink); }
@media (min-width: 1100px) {
  .docs-layout { grid-template-columns: 15rem minmax(0, 1fr); }
  .docs-toc nav { position: sticky; top: 92px; max-height: calc(100vh - 120px); overflow: auto; }
}
/* Short inline code stays on one line where the measure allows it (no "--" left at a line end). */
@media (min-width: 700px) { .prose :not(pre) > code, .lede code, .section-head code { white-space: nowrap; } }
.prose code.wrap { white-space: normal; overflow-wrap: anywhere; }
/* Links on dark fills keep their light colour on hover. */
.skip:hover, .skip:focus:hover { color: #fff; }
.install-note a:hover { color: #fff; }
/* Install strip: each command gets the full width of its column; Copy sits beside the label. */
.install-strip .install-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label copy" "code code"; row-gap: 8px; align-items: center; }
.install-strip .install-row .install-label { grid-area: label; grid-column: auto; }
.install-strip .install-row code { grid-area: code; }
.install-strip .install-row .install-copy { grid-area: copy; min-height: 32px; font-size: 13px; }
@media (max-width: 1180px) {
  .install-strip { grid-template-columns: 1fr; }
  .install-strip .install-row + .install-row { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
}
@media (max-width: 640px) { .install-strip .install-row code { white-space: normal; overflow-wrap: anywhere; } }

/* ---- Console screenshots (real, from a local console) ---- */
.ui-shot { margin: 28px 0 0; }
.ui-shot img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px rgba(22, 22, 22, .25), 0 2px 4px rgba(22, 22, 22, .08), 0 28px 50px -28px rgba(0, 0, 0, .45); }
.ui-shot figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); }
.ui-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(20px, 3vw, 36px); align-items: start; }
.ui-pair .ui-shot { margin-top: 0; }
@media (max-width: 760px) { .ui-pair { grid-template-columns: 1fr; } .ui-pair .ui-shot.phone { max-width: 320px; } }
.section-head .chip { margin-bottom: 14px; }
.prose .ui-pair { width: min(1000px, 100vw - 2 * var(--gutter)); margin: 28px 0; }
.prose .ui-pair .ui-shot { width: auto; margin: 0; }

/* ---- Desktop pass (1000px and wider; phones and tablets keep the layouts above) ---- */
@media (min-width: 1000px) {
  /* The four steps read as one row, not a narrow column beside empty space. */
  #how-it-works .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: none; counter-reset: s; }
  #how-it-works .steps li { padding: 24px 22px 26px; max-width: none; display: flex; flex-direction: column; }
  #how-it-works .steps li::before { position: static; margin-bottom: 20px; width: 40px; height: 40px; font-size: 15px; }
  #how-it-works .steps li strong { font-size: 19px; line-height: 1.3; margin-bottom: 8px; min-height: 2.5em; }
  #how-it-works .steps li { font-size: 16.5px; line-height: 1.55; }

  /* Inner pages: the numbered steps use both halves of the page, two to a row. */
  section:not(#how-it-works) > .container > .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; max-width: none; }
  section:not(#how-it-works) > .container > .steps li { max-width: none; padding-right: 28px; }

  /* Terminal output: the screenshot at a reading size with its caption beside it. */
  .shots .shot figure { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); column-gap: clamp(32px, 4vw, 56px); align-items: start; }
  .shots .shot figure > :not(figcaption) { grid-column: 1; }
  .shots .shot figcaption { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; font-size: 17px; line-height: 1.55; position: sticky; top: 96px; }
  .shots .shot figcaption strong { display: block; font-size: 22px; line-height: 1.3; letter-spacing: -.015em; margin-bottom: 10px; }

  /* Proof points: five facts across the full width, three then two. */
  section[aria-labelledby="proof-h"] .measured { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 56px); max-width: none; border-top: 0; margin-top: 8px; }
  section[aria-labelledby="proof-h"] .measured li { grid-column: span 2; border-bottom: 0; border-top: 2px solid var(--ink); padding: 18px 0 8px; font-size: 17px; }
  section[aria-labelledby="proof-h"] .measured li:nth-child(n+4) { grid-column: span 3; margin-top: 20px; }
  section[aria-labelledby="proof-h"] .measured strong { display: block; font-size: 21px; letter-spacing: -.015em; margin: 0 0 6px; }

  /* Hero: a little tighter so the install commands are not pushed far below the fold. */
  .hero { padding-block: clamp(32px, 4.5vw, 64px) clamp(32px, 4vw, 52px); }
}

/* Four steps in a row need room; between 1000 and 1180px they pair up. */
@media (min-width: 1180px) {
  #how-it-works .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Large monitors: a wider page, so the terminal and screenshots are not left small in the middle. */
@media (min-width: 1500px) {
  :root { --container: 1320px; }
}

/* A call to action inside a section: the button with its reassurance beside it. */
.cta-inline { align-items: center; gap: 12px 20px; margin-top: 32px; }
.cta-inline p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* ================= Workstation pass ================= */
/* Headings set extended and heavy, like the badge on a 1990s machine; body stays at normal width. */
h1, h2 { font-stretch: 125%; font-weight: 800; letter-spacing: -.012em; }
h1 { font-size: clamp(34px, 4.3vw, 58px); line-height: 1.04; }
h2 { font-size: clamp(26px, 3vw, 40px); line-height: 1.1; }
.page-hero h1 { font-size: clamp(30px, 3.8vw, 50px); }
h3 { font-stretch: 110%; font-weight: 700; letter-spacing: -.005em; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline-color: var(--blue); border-radius: 2px; }
code { background: rgba(22, 22, 22, .07); border-radius: 2px; }

.site-header { background: rgba(248, 248, 246, .95); border-bottom: 1px solid var(--line-2); }
.brand svg { height: 30px; }
.nav-links a { font-weight: 560; }
.nav-links a[aria-current="page"]::after, .nav-links a:hover::after { background: var(--ink); height: 3px; border-radius: 0; }
.nav-links a[aria-current="page"]::before { content: ""; position: absolute; right: 4px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.menu summary, .menu ul { border-radius: var(--r-md); }
.menu a:hover, .menu a[aria-current="page"] { background: var(--tint); }

/* The five stripes: the logo's bars run off the right edge behind the hero. */
:root { --stripes: repeating-linear-gradient(to bottom, #dcdcd7 0 32px, transparent 32px 42px); }
.hero::before { content: ""; position: absolute; z-index: -1; right: 0; top: 50%; transform: translateY(-50%); width: 50vw; height: 200px; background: var(--stripes); }
.page-hero { overflow: hidden; }
.page-hero::before { content: ""; position: absolute; z-index: -1; right: 0; top: clamp(40px, 6vw, 80px); width: 30vw; height: 200px; background: var(--stripes); }
@media (max-width: 900px) { .hero::before, .page-hero::before { display: none; } }
.hero h1 em { font-style: normal; background: none; padding: 0; }
.window { background: #161616; border-radius: 6px; box-shadow: 0 0 0 1px #000, 0 2px 4px rgba(0, 0, 0, .14), 0 30px 50px -30px rgba(0, 0, 0, .55); }
.prose figure img, .ui-shot img { border-radius: 6px; }

/* Keycap buttons: a darker lip along the bottom edge, pressed in on click. The primary one carries the red dot. */
.btn { border-radius: var(--r-md); font-weight: 650; letter-spacing: .005em; transition: background-color .15s, box-shadow .15s, transform .1s; }
.btn-primary { background: var(--ink); color: #fff; border-color: #000; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -3px 0 rgba(0, 0, 0, .55); }
.btn-primary::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.btn-primary:hover { background: #2c2c2a; color: #fff; transform: none; }
.btn-primary:active, .btn-ghost:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(0, 0, 0, .2); }
.btn-ghost { background: var(--paper); border-color: var(--ink); box-shadow: inset 0 -3px 0 rgba(22, 22, 22, .14); }
.btn-ghost:hover { background: #f3f3f0; }
.chip { border-radius: var(--r-sm); }
.chip::before { background: var(--red); }

/* Blocks: matte black where the old palette had colour. */
.shift-card { border-radius: var(--r-panel); }
.shift-after { background: var(--ink); border-color: #000; color: #fff; }
.shift-after h3 { color: #c9c9c3; }
.shift-after li::before { background: var(--red); }
.shift-pull { font-size: clamp(22px, 2.6vw, 34px); font-stretch: 112%; }
.band-blue { background: var(--ink); color: #fff; }
.band-blue h2, .band-blue .section-head p { color: #fff; }
.paper-card { background: var(--paper); border: 1px solid #000; box-shadow: none; }
.card { border-radius: var(--r-lg); }
.card:hover { border-color: var(--ink); box-shadow: 0 18px 36px -26px rgba(0, 0, 0, .5); transform: translateY(-2px); }
.card .tag, .principle-tag { color: var(--muted); }
.related a { border-radius: var(--r-lg); }
.related a:hover { border-color: var(--ink); }
.section-alt { background: #f4f4f1; border-block: 1px solid var(--line); }
.steps li { border-radius: var(--r-lg); }
.steps li::before { background: var(--ink); color: #fff; border-radius: var(--r-sm); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .55); }
.shot-tabs button { border-radius: var(--r-md); }
.shot-tabs button:hover { background: #f3f3f0; border-color: var(--ink); }
.shot-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.shot-more button { border-radius: var(--r-md); }
.shot-more button:hover { background: #2c2c2a; border-color: #2c2c2a; }
.callout { background: var(--paper); border: 1px solid var(--ink); border-left: 6px solid var(--red); border-radius: var(--r-md); }
.pill { border-radius: var(--r-sm); }
.pill-adv { background: var(--orange-soft); border-color: var(--red); color: var(--orange-ink); }
.pill-strong { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-deep); }
.pill-strong::before { background: var(--blue); }
.pill-hard { background: var(--ink); border-color: var(--ink); }
.pill-hard::before { background: #fff; }
.faq details, details.plain, .toc, .table-wrap, .diagram-wrap, .plan { border-radius: var(--r-panel); }
.faq details[open] { background: #fff; }
.faq summary::after, details.plain > summary::before { color: var(--red); }
.principle-n { color: var(--ink); }
.principles { border-radius: var(--r-panel); }
.principles-strip span { border-radius: var(--r-sm); }
.principles-strip b { color: var(--red); }
.d-role.d-on-dark { fill: #ff8a80 !important; }
a { color: var(--blue-ink); }
a:hover { color: var(--blue-deep); }

/* Closing panel: black, with the stripes running in from the right. */
.cta-panel { background: var(--ink); color: #fff; border: 1px solid #000; }
.cta-panel::after { content: ""; position: absolute; z-index: -1; right: 0; top: 50%; transform: translateY(-50%); width: 38%; height: 200px; background: repeating-linear-gradient(to bottom, #262624 0 32px, transparent 32px 42px); }
.cta-panel h2, .cta-panel .addr { color: #fff; }
.cta-panel p { color: #d2d2cc; }
.cta-panel a:not(.btn) { color: #fff; text-decoration-thickness: 2px; }
.cta-panel a:not(.btn):hover { color: #d2d2cc; }
.cta-panel .btn-primary { background: #fff; color: var(--ink); border-color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .22); }
.cta-panel .btn-primary:hover { background: #e8e8e4; color: var(--ink); }
.btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); box-shadow: none; }
.btn-ghost-dark:hover { background: rgba(255, 255, 255, .08); color: #fff; border-color: #fff; }
@media (max-width: 760px) { .cta-panel::after { width: 50%; height: 116px; top: 24px; transform: none; } }
.site-footer { background: #f4f4f1; border-top: 1px solid var(--line-2); }
:root { accent-color: var(--ink); caret-color: var(--blue); scrollbar-color: #8d8d87 var(--bg); }
/* Inner pages: the reading column lines up with the headline, not the middle of the page. */
.container.prose { margin-left: calc((100% - min(100% - 2 * var(--gutter), var(--container))) / 2); margin-right: auto; }
.prose figure { margin: 28px 0; width: min(1000px, 100vw - 2 * var(--gutter)); max-width: none; }
.prose figure img { width: 100%; height: auto; box-shadow: 0 0 0 1px #000, 0 2px 4px rgba(0, 0, 0, .12), 0 28px 50px -28px rgba(0, 0, 0, .55); }
.strength caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* Diagrams: red is a person (the dot in the logo), blue is an agent, black is 05. */
.d-zone-h { fill: rgba(226, 35, 26, .05); stroke: rgba(226, 35, 26, .45); }
.d-bar-h { fill: var(--red); }
.d-zone-label.h { fill: var(--orange-ink); }
.d-node-human { stroke: var(--red); }
.d-zone-a { fill: rgba(31, 79, 191, .06); stroke: rgba(31, 79, 191, .45); }
.d-bar-a { fill: var(--blue); }
.d-zone-label.a { fill: var(--blue-deep); }
.d-node-agent { fill: var(--blue-soft); stroke: var(--blue); }
.d-role.d-on-dark { fill: #c9c9c3 !important; }

/* ================= data05 pass ================= */
/* data05's sign: a square blue cell (one value in a table) where use05 has a round red dot. Red keeps its family
   meaning: what needs a person (an approval, a reason, a refusal) and "advisory". */
.brand { gap: 8px; }
.brand-word { font: 600 22px/1 var(--font-mono); letter-spacing: -.03em; color: var(--ink); }
.btn-primary::before { border-radius: 1px; background: var(--blue-hi); }
.cta-panel .btn-primary::before { background: var(--blue); }
.nav-links a[aria-current="page"]::before { border-radius: 1px; background: var(--blue); }
.chip::before { border-radius: 1px; background: var(--blue); }
.principles-strip b { color: var(--blue); }
.shift-after li::before { background: var(--blue-hi); border-radius: 2px; }
.principle-n { color: var(--ink); }
.status-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 6px 12px; border: 1px solid var(--ink); border-radius: var(--r-sm); background: var(--paper); font: 500 12.5px/1.2 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.status-chip::before { content: ""; width: 8px; height: 8px; border-radius: 1px; background: var(--blue); flex: none; }
.callout.note { border-left-color: var(--blue); }

/* The layer stack: the five layers between apps and the database, drawn in HTML (not a screenshot). */
.stack { background: var(--ink); color: #fff; border-radius: 6px; padding: clamp(14px, 2vw, 22px); box-shadow: 0 0 0 1px #000, 0 2px 4px rgba(0, 0, 0, .14), 0 30px 50px -30px rgba(0, 0, 0, .55); }
.stack-edge { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 4px 4px; font: 500 12px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: #b9b9b3; }
.stack ol { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 6px; }
.stack li { display: grid; grid-template-columns: 2.4em 6.4em minmax(0, 1fr); align-items: baseline; gap: 12px; margin: 0; padding: 13px 14px; background: #242422; border-radius: 3px; border-left: 4px solid var(--blue-hi); }
.stack li b { font: 600 14px/1 var(--font-mono); color: #8fb0f5; }
.stack li strong { font-family: var(--font-sans); font-stretch: 118%; font-weight: 800; font-size: 18px; letter-spacing: -.005em; }
.stack li span { font: 400 13px/1.4 var(--font-mono); color: #c9c9c3; }
.stack li.decide { border-left-color: #fff; }
@media (max-width: 520px) { .stack li { grid-template-columns: 2.4em minmax(0, 1fr); row-gap: 4px; } .stack li span { grid-column: 2; } }
.header-status { margin: 0 0 0 auto; }
.footer-soon { grid-template-columns: 1.6fr 1fr 1fr; }
@media (max-width: 640px) { .footer-soon { grid-template-columns: 1fr; } }
