/* Dozer Sandbox v3: black on white, plus ONE accent colour (--accent) and tints of it.
   The accent is set here and can be changed live by site.js (the colour picker). */
:root {
  --accent: #ffd60a;
  --tint: color-mix(in oklch, var(--accent) 55%, white);       /* section bands */
  --tint-soft: color-mix(in oklch, var(--accent) 24%, white);  /* quiet fills */
  --ink: #000;
  --ink-2: #2b2b2d;               /* secondary text */
  --hair: rgb(0 0 0 / .22);       /* hairlines inside bands */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --navh: 48px;
}
@supports not (color: color-mix(in oklch, red 50%, white)) { :root { --tint: #fff3b0; --tint-soft: #fff9dc; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--navh); }
body { margin: 0; background: #fff; color: #000; font: 400 17px/1.47 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #000; outline-offset: 3px; border-radius: 4px; }
code { font-family: var(--mono); font-size: 0.9em; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 16px; top: 8px; }

/* ---------- local nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--navh); background: rgb(255 255 255 / .82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid #000; color: #000; }
.nav-in { max-width: 1080px; height: 100%; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 24px; }
.nav-name { font-weight: 700; text-decoration: none; letter-spacing: -.01em; margin-right: auto; font-size: 17px; }
.nav nav { display: flex; gap: 22px; font-size: 13px; }
.nav nav a { color: var(--ink-2); text-decoration: none; }
.nav nav a:hover, .nav nav a[aria-current] { color: #000; text-decoration: underline; }
.pill { display: inline-block; background: var(--accent); color: #000; border: 1px solid #000; border-radius: 980px; padding: 3px 12px; font-size: 12px; font-weight: 600; text-decoration: none; line-height: 1.5; }
.pill:hover { background: #000; color: #fff; }
.nav-gh { display: inline-flex; align-items: center; color: #000; margin-right: -8px; }
.nav-gh:hover { opacity: .6; }
.nav-gh:focus-visible { outline: 2px solid #000; outline-offset: 3px; border-radius: 4px; }
.pill.big { font-size: 17px; padding: 9px 22px; }
.ulink { font-size: 17px; text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 860px) { .nav nav { display: none; } }

/* ---------- bands: white, or a tint of the accent ---------- */
.sec { padding: 96px 0; text-align: center; color: #000; }
.tone { background: var(--tint); }
.light { background: #fff; }
.home .wrap { max-width: 1080px; padding: 0 24px; }
.eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--ink-2); }
.sec h1, .sec h2 { font-weight: 700; letter-spacing: -.035em; line-height: 1.04; margin: 0 0 20px; text-wrap: balance; }
.sec h1 { font-size: clamp(44px, 9vw, 104px); }
.sec h2 { font-size: clamp(34px, 6vw, 68px); }
.sub, .lede { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.3; color: var(--ink-2); max-width: 36em; margin: 0 auto 24px; letter-spacing: -.01em; }
.intro { padding-top: 44px; padding-bottom: 0; overflow: hidden; }
.intro h1 { font-size: clamp(40px, 6.4vw, 84px); margin-bottom: 14px; }
.intro .lede { margin-bottom: 20px; }
.oneline { display: flex; align-items: stretch; max-width: 880px; margin: 0 auto; background: #fff; border: 1px solid #000; border-radius: 14px; overflow: hidden; text-align: left; }
.oneline pre { flex: 1; min-width: 0; margin: 0; border: 0; border-radius: 0; max-width: none; padding: 14px 18px; font-size: 15px; line-height: 1.5; white-space: nowrap; }
.oneline .copy { flex: none; border: 0; border-left: 1px solid #000; background: var(--accent); color: #000; font: 600 14px var(--font); padding: 0 18px; cursor: pointer; }
.oneline .copy:hover { background: #000; color: #fff; }
.alpha { display: inline-flex; flex-wrap: wrap; align-items: stretch; justify-content: center; margin: 0 auto 14px; border: 1px solid #000; border-radius: 980px; overflow: hidden; background: #fff; font-size: 13px; line-height: 1.4; }
.alpha > * { padding: 3px 12px; }
.alpha-tag { background: var(--accent); font-weight: 700; border-right: 1px solid #000; }
.alpha-ver { font-variant-numeric: tabular-nums; }
.alpha-link { font-weight: 600; border-left: 1px solid #000; text-decoration: none; }
.alpha-link:hover { background: #000; color: #fff; }
.req { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
@media (max-width: 700px) { .intro { padding-top: 28px; } .oneline pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; padding: 11px 12px; } .oneline .copy { padding: 0 12px; font-size: 13px; } }
.cta { display: flex; gap: 28px; align-items: center; justify-content: center; margin: 8px 0 0; }
.dozer { display: block; width: min(520px, 82vw); height: auto; margin: 20px auto 0; }
.fine { font-size: 13px; color: var(--ink-2); margin: 28px 0 0; }

/* ---------- big numbers ---------- */
.nums h2 { max-width: 20em; margin-left: auto; margin-right: auto; }
.bignums { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid #000; }
.bignums li { padding: 40px 16px 16px; border-right: 1px solid var(--hair); }
.bignums li:last-child { border-right: 0; }
.bignums b { display: block; white-space: nowrap; font-size: clamp(40px, 5.2vw, 76px); font-weight: 700; letter-spacing: -.04em; line-height: 1; background: linear-gradient(transparent 62%, var(--accent) 62% 94%, transparent 94%); display: inline-block; padding: 0 .06em; }
.bignums small { font-size: .42em; font-weight: 700; letter-spacing: -.01em; }
.bignums span { display: block; margin-top: 14px; font-size: 15px; color: var(--ink-2); line-height: 1.35; }
.bignums .verb { display: block; font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; color: #000; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 4px; }
@media (max-width: 860px) { .bignums { grid-template-columns: repeat(2, 1fr); } .bignums li { border-bottom: 1px solid var(--hair); } .bignums li:nth-child(2n) { border-right: 0; } }

 /* ---------- comparison ---------- */
.compare .sub { margin-bottom: 40px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cmpwrap { overflow-x: auto; border: 1px solid #000; border-radius: 18px; background: #fff; text-align: left; margin: 0 auto 8px; max-width: 1000px; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.35; min-width: 640px; }
.cmp th, .cmp td { padding: 13px 16px; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th { font-size: 14px; font-weight: 700; letter-spacing: -.01em; border-bottom: 1px solid #000; background: #fff; }
.cmp tbody th { font-weight: 600; width: 28%; background: #fff; position: sticky; left: 0; z-index: 1; border-right: 1px solid var(--hair); }
.cmp { table-layout: fixed; }
.cmp thead th:first-child { position: sticky; left: 0; z-index: 2; width: 30%; }
.cmp .us { background: var(--tint); font-weight: 700; }
.cmp thead th.us { border-top: 3px solid #000; }
.cmp .note { font-weight: 400; color: var(--ink-2); font-size: 13px; }
.matrix td { text-align: center; font-size: 17px; }
.matrix thead th:not(:first-child) { text-align: center; }
.cmpwrap:focus-visible { outline: 3px solid #000; outline-offset: 3px; }
.compare .honest { max-width: 1000px; margin: 14px auto 44px; font-size: 15px; color: #000; text-align: left; }
.compare .foot-note { max-width: 1000px; margin: 14px auto 0; text-align: left; }
@media (max-width: 700px) { .cmp { font-size: 14px; } .cmp th, .cmp td { padding: 11px 12px; } .cmp thead th:first-child, .cmp tbody th { width: 124px; } .compare .honest { margin-bottom: 32px; } }

/* ---------- feature splits ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; text-align: left; }
.split.flip .copy { order: 2; }
.split h2 { font-size: clamp(34px, 5vw, 56px); }
.split .sub { margin-left: 0; font-size: clamp(18px, 2vw, 21px); }
.illo { width: 100%; height: auto; display: block; fill: none; stroke: #000; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: #000; }
.illo .t { fill: #000; stroke: none; font-family: var(--font); }
.illo .fa { fill: var(--accent); }
.illo .ft { fill: var(--tint-soft); }
.tone .illo .ft { fill: #fff; }
@media (max-width: 860px) { .sec { padding: 72px 0; } .split { grid-template-columns: 1fr; gap: 32px; text-align: center; } .split.flip .copy { order: 0; } .split .sub { margin-left: auto; } }

/* ---------- icons ---------- */
.ic { width: 24px; height: 24px; fill: none; stroke: #000; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.big { width: 44px; height: 44px; stroke-width: 1.5; }

/* ---------- use cases ---------- */
.cases { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.cases li { background: var(--tint); color: #000; border: 1px solid #000; border-radius: 28px; padding: 36px 32px 40px; min-height: 340px; }
.cases li:nth-child(2) { background: var(--accent); }
.cases h3 { font-size: 28px; line-height: 1.1; letter-spacing: -.025em; margin: 48px 0 12px; }
.cases p { margin: 0; color: #000; font-size: 17px; }
@media (max-width: 860px) { .cases { grid-template-columns: 1fr; } .cases li { min-height: 0; } .cases h3 { margin-top: 28px; } }

/* ---------- install ---------- */
.install h2.big { font-size: clamp(15px, 4.6vw, 54px); font-family: var(--mono); letter-spacing: -.03em; font-weight: 700; white-space: nowrap; }
pre { text-align: left; background: #fff; border: 1px solid #000; border-radius: 18px; padding: 22px 24px; overflow-x: auto; font: 15px/1.7 var(--mono); max-width: 720px; margin: 32px auto; color: #000; }
pre code { font-size: inherit; }
.cmt { color: #555; }
.facts { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.facts li { background: #fff; border: 1px solid #000; border-radius: 22px; padding: 24px; }
.facts h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.02em; }
.facts p { margin: 0; color: var(--ink-2); font-size: 16px; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr; } }

/* ---------- the all-features slide ---------- */
.all { padding: 0; height: clamp(700px, calc(100svh - var(--navh)), 1000px); min-height: 700px; scroll-margin-top: var(--navh); display: flex; border-top: 1px solid #000; }
.all-in { width: 100%; max-width: 1400px; margin: 0 auto; padding: 18px 24px 64px; display: flex; flex-direction: column; min-height: 0; }
.all-title { font-size: clamp(26px, 3.4vw, 40px); margin: 0 0 14px; text-align: left; letter-spacing: -.03em; }
.bento { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(5, minmax(0, 1fr)); gap: 10px; text-align: left; }
.tile { border-radius: 18px; padding: 14px 14px 12px; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; color: #000; border: 1px solid #000; }
.tile.w { background: #fff; }
.tile .ic { width: 22px; height: 22px; margin-bottom: auto; }
.tile b { font-size: 13px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; margin-top: 8px; }
.tile span { font-size: 11.5px; line-height: 1.25; color: var(--ink-2); margin-top: 3px; }
.tile.big { padding: 22px; }
.tile.big .ic { width: 44px; height: 44px; stroke-width: 1.5; }
.tile.big b { font-size: 26px; letter-spacing: -.03em; line-height: 1.08; }
.tile.big span { font-size: 15px; line-height: 1.3; margin-top: 8px; }
@media (min-width: 1001px) {
  .p1{grid-area:1/1/3/3} .p2{grid-area:1/3/3/5} .p3{grid-area:1/5/3/7} .p4{grid-area:1/7/2/9} .p5{grid-area:2/7/3/9}
  .p6{grid-area:3/1/4/3} .p7{grid-area:3/3/4/5} .p8{grid-area:3/5/4/7} .p9{grid-area:3/7/4/8} .p10{grid-area:3/8/4/9}
  .p11{grid-area:4/1/5/2} .p12{grid-area:4/2/5/3} .p13{grid-area:4/3/5/4} .p14{grid-area:4/4/5/5} .p15{grid-area:4/5/5/7} .p16{grid-area:4/7/5/9}
  .p17{grid-area:5/1/6/3} .p18{grid-area:5/3/6/4} .p19{grid-area:5/4/6/5} .p20{grid-area:5/5/6/6} .p21{grid-area:5/6/6/7} .p22{grid-area:5/7/6/8} .p23{grid-area:5/8/6/9}
}
@media (max-width: 1000px) {
  .all { height: auto; min-height: 0; }
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: minmax(132px, auto); }
  .tile.big { grid-column: span 2; grid-row: span 2; }
  .p4, .p5, .p6, .p7, .p8, .p15, .p16, .p17 { grid-column: span 2; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile.big { grid-row: span 2; }
  .tile b { font-size: 15px; } .tile span { font-size: 13px; }
  .tile.big b { font-size: 22px; }
}
@media (min-width: 1001px) and (max-height: 760px) { .tile span { font-size: 11px; } .tile.big { padding: 16px; } .tile.big b { font-size: 22px; } }

/* ---------- footer ---------- */
.foot { background: #fff; color: #000; margin-top: 0; padding: 32px 0 56px; font-size: 13px; border-top: 1px solid #000; }
.foot .wrap { max-width: 1080px; padding: 0 24px; }
.foot ul { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { color: #000; }
.foot p { margin: 0 0 6px; color: var(--ink-2); }

/* ---------- motion: CSS only, degrades to static. Shown to everyone, whatever the system's reduced-motion
   setting (owner, 2026-10-09: "ignore the setting (for all)"). ---------- */
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  @keyframes rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
}
html { scroll-behavior: smooth; }

/* ---------- colour picker (site.js). Remove with site.js: delete this block. ---------- */
.accent-picker { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #000; border-radius: 980px; padding: 6px 8px; box-shadow: 0 2px 0 #000; max-width: calc(100vw - 32px); }
.accent-picker button, .accent-picker input[type=color] { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #000; padding: 0; margin: 0; cursor: pointer; flex: none; background: none; }
.accent-picker button[aria-pressed="true"] { outline: 2px solid #000; outline-offset: 2px; }
.accent-picker input[type=color] { -webkit-appearance: none; appearance: none; overflow: hidden; background: #fff; border-style: dashed; width: 26px; height: 26px; }
.accent-picker input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.accent-picker input[type=color]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.accent-picker .lbl { font-size: 11px; font-weight: 700; margin: 0 4px 0 2px; }
@media (max-width: 480px) { .accent-picker { gap: 4px; padding: 5px 6px; right: 8px; bottom: 8px; } .accent-picker .lbl { display: none; } }

/* ---------- timeline page ---------- */
.tl {
  --bg: #fff; --surface: #fff; --surface-2: var(--tint-soft); --ink: #000; --ink-2: #2b2b2d;
  --line: rgb(0 0 0 / .2); --line-strong: #000; --accent-tint: var(--tint-soft);
  --e1: #000; --e2: #000; --e3: #000; --e4: #000; --e5: #000; --e6: #000;
  --e1-tint: var(--tint); --e2-tint: var(--tint); --e3-tint: var(--tint); --e4-tint: var(--tint); --e5-tint: var(--tint); --e6-tint: var(--tint);
  --shadow: none;
  --date-w: 7.5rem; --rail: 2.75rem; --dot: 0.875rem;
  background: #fff;
}
.tl .hero { background: var(--tint); padding-bottom: 40px; margin-bottom: 8px; border-bottom: 1px solid #000; }
.tl .hero h1 span { color: #000; opacity: .62; }
.tl .stats li, .tl .card, .tl .era-nav a { border-color: #000; }
.tl .stats li { background: #fff; }
.tl .era-nav a { background: #fff; }
.tl .era-nav a::before { background: #000; }
.tl .card .ver { color: #000; }
.tl .event.key .dot { background: var(--accent); border-color: #000; box-shadow: 0 0 0 4px var(--tint); }
.tl .event.next .card { border: 2px dashed #000; }
.tl code { background: var(--tint-soft); padding: .05em .35em; border-radius: 4px; }
}

/* ---------- hero ---------- */
.tl .hero { padding: 64px 0 40px; }
.brand { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.brand svg { width: 64px; height: 64px; flex: none; }
.brand p { margin: 0; font-size: 14px; color: var(--ink-2); font-weight: 500; letter-spacing: 0.02em; }
.tl .hero h1 { text-wrap: balance; font-size: clamp(32px, 6vw, 52px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 16px; font-weight: 700; }
.tl .hero h1 span { color: var(--ink-2); font-weight: 600; }
.tl .lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-2); max-width: 40rem; margin: 0 0 32px; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stats li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stats b { display: block; font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.stats span { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.35; margin-top: 2px; }

.era-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; padding: 0; list-style: none; }
.era-nav a {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-size: 13px; font-weight: 500; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 10px;
}
.era-nav a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.era-nav a:hover { border-color: var(--line-strong); }

/* ---------- timeline ---------- */
.timeline { position: relative; padding: 16px 0 24px; }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0;
  left: calc(var(--date-w) + var(--rail) / 2 - 1px); width: 2px;
  background: linear-gradient(to bottom, transparent, var(--line-strong) 40px, var(--line-strong) calc(100% - 40px), transparent);
}
.era { --c: var(--e1); --t: var(--e1-tint); scroll-margin-top: 16px; }
.era + .era { margin-top: 24px; }
.era.e2 { --c: var(--e2); --t: var(--e2-tint); }
.era.e3 { --c: var(--e3); --t: var(--e3-tint); }
.era.e4 { --c: var(--e4); --t: var(--e4-tint); }
.era.e5 { --c: var(--e5); --t: var(--e5-tint); }
.era.e6 { --c: var(--e6); --t: var(--e6-tint); }

.era-head {
  position: relative;
  display: grid; grid-template-columns: var(--date-w) var(--rail) minmax(0, 1fr);
  align-items: start; padding: 24px 0 12px;
}
.era-mark {
  grid-column: 2; justify-self: center; position: relative; z-index: 1;
  width: 1.75rem; height: 1.75rem; border-radius: 8px; margin-top: 2px;
  background: var(--t); border: 2px solid var(--c);
  display: grid; place-items: center; font: 700 11px/1 var(--font); color: var(--c);
}
.era-text { grid-column: 3; padding-left: 4px; }
.era-kicker { margin: 0 0 2px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--c); }
.era-head h2 { margin: 0 0 4px; font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; }
.era-head p.blurb { margin: 0; color: var(--ink-2); max-width: 38rem; }

.events { list-style: none; margin: 0; padding: 0; }
.event {
  display: grid; grid-template-columns: var(--date-w) var(--rail) minmax(0, 1fr);
  grid-template-areas: "when dot card";
  align-items: start; padding: 8px 0;
}
.when {
  grid-area: when; justify-self: end; text-align: right; padding: 14px 12px 0 0;
  font-size: 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.dot {
  grid-area: dot; justify-self: center; position: relative; z-index: 1; margin-top: 18px;
  width: var(--dot); height: var(--dot); border-radius: 50%;
  background: var(--surface); border: 3px solid var(--c);
}
.event.key .dot { background: var(--c); box-shadow: 0 0 0 4px var(--t); }
.card {
  grid-area: card; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px 16px; box-shadow: var(--shadow);
}
.card .ver {
  display: inline-block; margin: 0 0 6px; font: 600 12px/1 var(--mono); letter-spacing: 0.02em;
  color: var(--c); background: var(--t); border-radius: 999px; padding: 4px 8px;
}
.card h3 code { background: none; padding: 0; font-size: 0.95em; }
.card h3 { margin: 0 0 4px; font-size: 18px; line-height: 1.3; letter-spacing: -0.005em; }
.card p { margin: 0; color: var(--ink-2); }
.card p + p { margin-top: 6px; }
.stat {
  display: block; margin-top: 10px !important; overflow-wrap: anywhere;
  font-size: 13px; color: var(--ink) !important; font-weight: 500;
  border-top: 1px dashed var(--line-strong); padding-top: 8px; width: 100%;
}
.stat b { color: var(--c); font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; margin-right: 4px; }

.event.next .card { border: 2px dashed var(--c); box-shadow: none; }

/* ---------- footer ---------- */

/* ---------- small screens: one column, the line on the left ---------- */
@media (max-width: 720px) {
  :root { --rail: 1.75rem; --date-w: 0px; }
  .hero { padding: 40px 0 24px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats b { font-size: 22px; }
  .timeline::before { left: calc(var(--rail) / 2 - 1px); }
  .era-head { grid-template-columns: var(--rail) minmax(0, 1fr); }
  .era-mark { grid-column: 1; width: 1.5rem; height: 1.5rem; border-radius: 7px; font-size: 10px; }
  .era-text { grid-column: 2; padding-left: 8px; }
  .era-head h2 { font-size: 22px; }
  .event {
    grid-template-columns: var(--rail) minmax(0, 1fr);
    grid-template-areas: "dot when" "dot card";
  }
  .when { justify-self: start; text-align: left; padding: 0 0 6px 8px; font-size: 13px; color: var(--ink-2); }
  .dot { margin-top: 3px; }
  .card { margin-left: 8px; padding: 12px 14px 14px; }
  .card h3 { font-size: 17px; }
}


/* timeline hero band (after the structural rules so it wins) */
.tl .hero { padding-top: 56px; padding-bottom: 40px; }
@media (max-width: 720px) { .tl .hero { padding-top: 32px; padding-bottom: 28px; } }

/* Cycling hero headlines (headlines.js): crash down from the top, stay, wind up to the right, fling off to the left. */
.intro { overflow-x: clip; }
#headline { min-height: 2.08em; transform-origin: 50% 100%; }
#headline.hl-in  { animation: hl-crash 760ms both; }
#headline.hl-out { animation: hl-fling 640ms both; }
@keyframes hl-crash {
  0%   { transform: translateY(-110vh); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  60%  { transform: translateY(0) scale(1, 1); animation-timing-function: ease-out; }
  70%  { transform: translateY(0) scale(1.07, .84); animation-timing-function: ease-out; }
  84%  { transform: translateY(-12px) scale(.98, 1.04); animation-timing-function: ease-in-out; }
  100% { transform: translateY(0) scale(1, 1); }
}
@keyframes hl-fling {
  0%   { transform: translateX(0); animation-timing-function: ease-out; }
  38%  { transform: translateX(40px) scaleX(.95); animation-timing-function: cubic-bezier(.6, 0, 1, .4); }
  100% { transform: translateX(-130vw) skewX(14deg) scaleX(1.25); }
}

/* CLI section: every doz command rolling fast in a stylised terminal (the lines come from cli-commands.txt). */
.cli .sub code, .cli-points code { font: 600 .9em ui-monospace, "SF Mono", Menlo, monospace; }
.cli-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 40px; text-align: left; }
.term { background: #fff; border: 1px solid #000; border-radius: 14px; box-shadow: 0 6px 0 #000; overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid #000; font: 600 12px ui-monospace, "SF Mono", Menlo, monospace; }
.term-bar i { width: 11px; height: 11px; border: 1px solid #000; border-radius: 50%; }
.term-bar i:first-child { background: var(--accent); }
.term-bar span { margin-left: auto; margin-right: auto; padding-right: 50px; }
.term-screen { height: 340px; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.term-roll { font: 500 15px/1.75 ui-monospace, "SF Mono", Menlo, monospace; padding: 0 20px; animation: term-roll 9s linear infinite; }


@keyframes term-roll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.cli-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.cli-points li { font-size: 17px; line-height: 1.4; color: var(--ink-2); }
.cli-points strong { display: block; color: #000; font-size: clamp(20px, 2vw, 24px); letter-spacing: -.02em; margin-bottom: 4px; }
@media (max-width: 860px) { .cli-grid { grid-template-columns: 1fr; gap: 28px; } .term-screen { height: 260px; } .term-roll { font-size: 13.5px; } }
.term-roll .cmd, .term-roll p { display: block; margin: 0; white-space: nowrap; color: #000; text-decoration: none; border-radius: 4px; padding: 0 6px; margin-left: -6px; width: max-content; }
.term-roll .cmd::before, .term-roll p::before { content: "$ "; font-weight: 700; }
.term-roll .cmd:hover, .term-roll .cmd:focus-visible, .term-roll .cmd.on { background: var(--accent); outline: none; }
.term-screen { position: relative; }
.term-tip { display: block; margin: 4px 0 10px; max-width: 34em; background: #fff; border: 1px solid #000; border-radius: 10px; box-shadow: 0 3px 0 #000; padding: 10px 12px; font: 14px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif; color: #000; white-space: normal; }
.term-tip span { display: block; margin-bottom: 6px; }
.term-tip a { font-weight: 700; color: #000; }
.cli-points .more { display: inline-block; margin-top: 6px; font-weight: 600; color: #000; }
/* Docs in the header on phones (the text links are hidden below 860 px). */
.nav-docs { display: none; color: #000; font-size: 14px; font-weight: 600; text-decoration: none; }
@media (max-width: 860px) { .nav-docs { display: inline; } }
