/* carbium.sh landing (src/views/landing.js, public/landing-body.inc) and the rules other views share from this sheet. */

.cw-land2 { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; height: 100dvh; overflow: hidden; background: var(--c-bg); scroll-behavior: smooth; }
.cw-land2-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow-y: auto; scroll-behavior: smooth; }
.cw-lnav { position: relative; z-index: 60; overflow: visible; justify-content: space-between; }
.cw-lnav-right { display: flex; align-items: center; gap: var(--c-s-9); flex-shrink: 0; }
.cw-lnav-links { display: flex; align-items: center; gap: var(--c-s-10); }
.cw-lnav-links a { padding-block: var(--c-s-6); font-family: var(--c-font-body); font-size: 13px; color: var(--c-muted); transition: color var(--c-dur-1) var(--c-ease); }
.cw-lnav-links a:hover { color: var(--c-text); }
.cw-lnav-links a:focus-visible { outline: none; box-shadow: var(--c-focus); }
.cw-lnav-theme, .cw-lnav-cta { flex-shrink: 0; }
.cw-land2 .is-dim { color: var(--c-faint); }
.c-reg--w::before, .c-reg--w::after { border-color: var(--c-ws); }
.c-reg--q::before, .c-reg--q::after { border-color: rgb(from var(--c-quote) r g b / .5); }
.cw-rl-card { background: var(--c-surface); }
.cw-rl-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--c-s-6); margin-bottom: var(--c-s-6); flex-wrap: wrap; }
.cw-rl-head h2 { margin: 0; font-family: var(--c-font-display); font-weight: 600; font-size: 17px; letter-spacing: -.01em; color: var(--c-text); }
.cw-rl-unit { color: var(--c-faint); }
.cw-rl-foot { margin-top: var(--c-s-4); color: var(--c-faint); }
.cw-rl-scroll + .cw-rl-foot { margin-top: var(--c-s-5); }
.cw-rl-scroll > .c-table { min-width: 0; }
.cw-rl-table { font-size: 12.5px; line-height: 1.5; }
.cw-rl-table th, .cw-rl-table td { padding: var(--c-s-4) var(--c-s-6); border-bottom: 1px solid var(--c-line-soft); }
.cw-rl-table thead th { background: transparent; border-bottom: 1px solid var(--c-line-2); vertical-align: middle; }
.cw-rl-table .cw-rl-th { text-align: right; }
.cw-rl-class { display: flex; align-items: center; gap: var(--c-s-3); }
.cw-rl-table .cw-rl-name { font-family: var(--c-font-mono); font-weight: 500; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--c-text); }
.cw-rl-table .cw-rl-ex { margin-top: var(--c-s-1); font-size: 11px; color: var(--c-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-rl-table td.cw-rl-n { font-size: 12.5px; color: var(--c-text); }
.cw-rl-table tbody tr:hover td { background: var(--c-row-hover); }
.cw-rl-card[data-cur-tier="free"] .c-table th:nth-child(2), .cw-rl-card[data-cur-tier="free"] .c-table td:nth-child(2),
.cw-rl-card[data-cur-tier="dev"] .c-table th:nth-child(3),  .cw-rl-card[data-cur-tier="dev"] .c-table td:nth-child(3),
.cw-rl-card[data-cur-tier="buss"] .c-table th:nth-child(4), .cw-rl-card[data-cur-tier="buss"] .c-table td:nth-child(4),
.cw-rl-card[data-cur-tier="pro"] .c-table th:nth-child(5),  .cw-rl-card[data-cur-tier="pro"] .c-table td:nth-child(5) {
  color: var(--c-brand-tint); background: var(--c-brand-wash);
}
.cw-expander:hover { color: var(--c-muted); }
.cw-expander:focus-visible { outline: none; box-shadow: var(--c-focus); }
.cw-authmodal, .cw-keyreveal-modal { display: flex; overflow-y: auto; }
.cw-authmodal-card, .cw-keyreveal { margin: auto; max-height: none; overflow: visible; }
.cw-authmodal-card { position: relative; }
.cw-auth-x {
  position: absolute; top: var(--c-s-6); right: var(--c-s-6);
  width: 26px; height: 26px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1; color: var(--c-faint);
  border: 1px solid var(--c-line); background: var(--c-surface-2); border-radius: var(--c-r-ctl);
  transition: color var(--c-dur-1) var(--c-ease), border-color var(--c-dur-1) var(--c-ease);
}
.cw-auth-x:hover { color: var(--c-text); border-color: var(--c-line-2); }
.cw-admit { display: flex; align-items: center; gap: var(--c-s-4); margin: var(--c-s-5) 0 var(--c-s-6); font-family: var(--c-font-mono); font-size: 11px; }
.cw-admit-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-faint); flex: none; transition: background var(--c-dur-3) var(--c-ease); }
.cw-admit-txt { color: var(--c-faint); transition: color var(--c-dur-3) var(--c-ease); }
.cw-admit.done .cw-admit-dot { background: var(--c-ok); box-shadow: 0 0 8px var(--c-ok); }
.cw-admit.done .cw-admit-txt { color: var(--c-ok); }
.cw-keyreveal { max-width: 420px; }
.cw-keyreveal-warn { color: var(--c-danger) !important; }
.cw-keyreveal .c-field label { color: var(--c-danger-tint); }
.cw-keyreveal .cw-idcell { width: 100%; justify-content: space-between; padding: var(--c-s-4) var(--c-s-5); border: 1px solid var(--c-line); border-radius: var(--c-r-ctl); background: var(--c-surface-2); }
.cw-sys-main { padding: var(--c-s-10) var(--c-s-10) var(--c-s-12); max-width: 1180px; margin: 0 auto; width: 100%; }
.cw-sys-h1 { font-family: var(--c-font-display); font-weight: 600; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.02em; margin: var(--c-s-4) 0 var(--c-s-4); }
.cw-sys-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--c-s-6); margin: var(--c-s-8) 0; }
.cw-sys-card { display: flex; flex-direction: column; gap: var(--c-s-3); padding: var(--c-s-7); }
.cw-sys-top { display: flex; align-items: center; justify-content: space-between; gap: var(--c-s-4); flex-wrap: wrap; }
.cw-sys-nm { font-family: var(--c-font-display); font-weight: 600; font-size: 17px; white-space: nowrap; }
.cw-proto-p { color: var(--c-brand-tint); }   /* each plane's card title in its hue (system.js); the quote lane colours itself inline */
.cw-proto-w { color: var(--c-ws); }
.cw-proto-r { color: var(--c-stream); }
.cw-sys-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--c-s-4); margin-top: var(--c-s-4); padding-top: var(--c-s-4); border-top: 1px solid var(--c-line); }
.cw-sys-status { display: inline-flex; align-items: center; gap: var(--c-s-3); }
.cw-sys-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-faint); flex-shrink: 0; }
.cw-sys-dot.is-up { background: var(--c-ok); box-shadow: 0 0 7px var(--c-ok); }
.cw-sys-dot.is-down { background: var(--c-danger); box-shadow: 0 0 7px var(--c-danger); }
.cw-sys-rttrow { display: inline-flex; align-items: center; gap: var(--c-s-3); }
.cw-sys-rtt { font-family: var(--c-font-mono); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--c-text); }
.cw-sys-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); margin: var(--c-s-8) 0; }
.cw-sys-stat { background: var(--c-surface); padding: var(--c-s-6) var(--c-s-7); }
.cw-sys-sol { display: inline-flex; align-items: center; gap: var(--c-s-4); color: var(--c-faint); margin-top: var(--c-s-6); }
.cw-sys-sol .cw-sol-mark { opacity: .7; }
@media (max-width: 820px) {
  .cw-lnav-links { display: none; }
  /* The four bar controls measure 386px inside a 390px bar, so the floor is 391.98px */
  .cw-lnav .cw-sig { display: none; }
}
@media (max-width: 760px) { .cw-rl-table .cw-rl-ex { white-space: normal; } }
@media (max-width: 900px) {
  .cw-sys-grid { grid-template-columns: 1fr; }
  .cw-sys-band { grid-template-columns: 1fr 1fr; }
}

/* ---- the landing (public/landing-body.inc, src/views/landing.js): seven chapters in one shell that never scrolls; <main>
   scrolls inside at every width. Only the rules the page uses are here; the shell's site-wide ones are kept to .lp at the
   specificity they had (:where), since this sheet loads on every route. ---- */
.cw-signed #app > .cw-pre { display: none; }   /* boot-theme.js: a signed-in visit to / renders the dashboard instead */
:where(.lp, .lp *, .lp *::before, .lp *::after) { box-sizing: border-box; }
.lp { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; height: 100dvh; overflow: hidden; background: var(--c-bg); }
:where(.lp) a { color: inherit; text-decoration: none; }
:where(.lp, .lp *) { scrollbar-width: none; }
:where(.lp) ::-webkit-scrollbar { display: none; }
.lp-main { min-width: 0; min-height: 0; overflow-y: auto; overflow-x: clip; overscroll-behavior: contain; scroll-behavior: smooth; }
.lp-main:focus { outline: none; }
:where(.lp) .nw { white-space: nowrap; }
:where(.lp) .num { font-family: var(--c-font-mono); font-variant-numeric: tabular-nums; }
:where(.lp) .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:where(.lp) :is(h1, h2, h3) { text-wrap: balance; }
:where(.lp) p { text-wrap: pretty; }
:where(.lp) .bare { list-style: none; margin: 0; padding: 0; }

/* chapters: bar, numerals, heads, ticker, facts */
.ch .lp-main { scroll-snap-type: y proximity; }
.ch-bar { display: flex; align-items: center; gap: 20px; height: 54px; padding: 0 24px; border-bottom: 1px solid var(--c-line); background: var(--c-bg); }
.ch-brand { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.ch-brand img { width: 22px; height: 22px; }
.ch-brand span { font-family: var(--c-font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--c-faint); text-box: trim-both cap alphabetic; }   /* the box is the caps, so align-items centres them on the mark */
.ch-brand:focus-visible { outline: none; box-shadow: var(--c-focus); border-radius: var(--c-r-ctl); }
.ch-idx { display: flex; gap: 2px; margin: 0 auto; }
.ch-idx a { white-space: nowrap; padding: 4px 9px; font-size: 11.5px; color: var(--c-faint); border-bottom: 2px solid transparent; transition: color var(--c-dur-1) var(--c-ease), border-color var(--c-dur-2) var(--c-ease); }
.ch-idx a:hover { color: var(--c-text); }
.ch-idx a.is-on { color: var(--c-text); border-bottom-color: var(--c-brand); }
.ch-right { display: flex; align-items: center; gap: 12px; flex: none; }
.ch-c { position: relative; min-height: calc(100dvh - 94px); padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; gap: 40px; scroll-snap-align: start; border-bottom: 1px solid var(--c-line); overflow: clip; }
.ch-num { margin: 0; font-family: var(--c-font-mono); font-weight: 600; font-size: clamp(88px, 13vw, 210px); line-height: .82; letter-spacing: -.06em; color: var(--c-text); white-space: nowrap; }
.ch-num small { font-size: .22em; letter-spacing: 0; margin-left: .15em; color: var(--c-faint); }
.ch-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 48px; align-items: end; }
.ch-k { margin: 0 0 12px; font-family: var(--c-font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-faint); }
.ch-c h2 { margin: 0; max-width: 640px; font-family: var(--c-font-display); font-weight: 700; font-size: clamp(24px, 2.8vw, 38px); line-height: 1.1; letter-spacing: -.025em; color: var(--c-text); }
.ch-lead { margin: 0; max-width: 520px; font-size: 16px; color: var(--c-muted); }
.ch-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.ch-cta .c-btn { height: 42px; padding: 0 22px; font-size: 14px; }
.ch-1 { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 56px;
  background: radial-gradient(70% 80% at 18% 50%, var(--c-brand-wash), transparent 70%);
}
.ch-1 .ch-num { font-size: clamp(200px, 30vw, 440px); color: var(--c-brand); text-shadow: 0 0 60px var(--c-brand-glow); }
.ch-1 .ch-body { display: flex; flex-direction: column; gap: 22px; }
.ch-1 h1 { margin: 0; font-family: var(--c-font-display); font-weight: 700; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -.035em; color: var(--c-text); }
.ch-1 .w { display: inline-block; }
.ch-1 .w.is-p { color: var(--c-brand-tint); }
.ch-1 .w.is-w { color: var(--c-ws); }
.ch-1 .w.is-q { color: var(--c-quote-tint); }
@media (prefers-reduced-motion: no-preference) {
  .ch-1 .w { animation: ch-rise .7s var(--c-ease-out) both; animation-delay: calc(200ms + var(--i) * 110ms); }
}
.ch-2 { --ink: #0e0e0e; background: var(--c-quote); color: var(--ink); }
.ch-2 .ch-num, .ch-2 h2 { color: var(--ink); }
.ch-2 .ch-num small, .ch-2 .ch-k { color: rgb(14 14 14 / .8); }
.ch-key { margin: 6px 0 0; display: flex; align-items: center; gap: 8px; font-size: 11px; color: rgb(14 14 14 / .7); }
.ch-key i { width: 12px; height: 12px; border: 1.5px solid var(--ink); }
.ch-key i.us { background: var(--ink); }
.ch-key i + i, .ch-key i:not(.us) { margin-left: 10px; }
.ch-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; border-top: 1.5px solid var(--ink); }
.ch-facts div { display: flex; flex-direction: column; gap: 6px; padding: 18px 16px 18px 0; border-bottom: 1px solid rgb(14 14 14 / .25); }
.ch-facts dd { margin: 0; font-size: clamp(24px, 2.4vw, 34px); font-weight: 600; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.ch-facts dt { font-size: 12.5px; line-height: 1.4; color: rgb(14 14 14 / .72); }
.ch-3 { background: var(--c-surface-2); }
.ch-3 .ch-num { color: var(--c-quote-tint); }
.ch-tick { margin: 0 -56px; overflow: clip; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ch-track { display: flex; gap: 14px; width: max-content; padding: 6px 0; }
.ch-track li { display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 22px; border: 1px solid var(--c-line-2); background: var(--c-bg); font-family: var(--c-font-mono); font-size: 16px; color: var(--c-text); white-space: nowrap; }
.ch-track li::before { content: ""; width: 8px; height: 8px; background: var(--c-quote); }
.ch-pause { align-self: flex-start; }
@media (prefers-reduced-motion: no-preference) {
  .ch-track { animation: ch-marq 46s linear infinite; }
  .ch-tick:hover .ch-track, .ch-tick:focus-within .ch-track, .ch-tick[data-paused] .ch-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .ch-tick { margin: 0; mask-image: none; }
  .ch-track { width: auto; flex-wrap: wrap; }
  .ch-track li[aria-hidden] { display: none; }
  .ch-pause { display: none; }
}
.ch-5 .ch-num { color: var(--c-text); }
.ch-6 .ch-num { color: var(--c-quote-tint); }
.cw-ch-foot { min-width: 0; }   /* footerBar() and the terms bar (landing.js); the bar rides the footer row, never over a chapter */
.cw-ch-foot > .c-card { position: static !important; transform: none !important; width: auto !important; max-width: none !important; margin: 0; border-width: 1px 0 0; border-radius: 0; }
@media (max-width: 1000px) {
  .ch-c { padding: 48px 24px; gap: 28px; }
  .ch-tick { margin: 0 -24px; }
  .ch-1 { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ch-1 .ch-num { font-size: clamp(150px, 42vw, 260px); }
  .ch-head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 620px) {
  .ch-idx { display: none; }
  .ch-right { margin-left: auto; }
  .ch-bar { padding: 0 14px; }
  .ch-c { padding: 40px 16px; min-height: 0; }
  .ch-tick { margin: 0 -16px; }
  .ch-num { font-size: clamp(64px, 22vw, 120px); }
  .ch-facts { grid-template-columns: minmax(0, 1fr); }
  .ch-track li { height: 44px; font-size: 13px; padding: 0 14px; }
}
@keyframes ch-rise { from { opacity: 0; transform: translateY(30%); } }
@keyframes ch-marq { to { transform: translateX(calc(-50% - 7px)); } }

/* instruments: dial, ring, squares, radar, board */
.dc-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 56px; align-items: center; }
.dc-row.is-3 { grid-template-columns: auto auto minmax(0, 1fr); gap: 44px; }
.dc-cap { margin: 10px 0 0; font-family: var(--c-font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; text-align: center; color: rgb(14 14 14 / .66); white-space: nowrap; }
.dc-dial { display: grid; place-items: center; width: min(100%, 250px); }
.dc-dial > * { grid-area: 1 / 1; }
.dc-dial svg { width: 100%; height: auto; }
.dc-dial circle { fill: none; }
.dc-dial .t { stroke: rgb(14 14 14 / .32); stroke-width: 6; stroke-dasharray: 1.2 7.596; }
.dc-dial .us { stroke-width: 11; transform: rotate(-90deg); transform-origin: 100px 100px; stroke-dasharray: var(--to) 1; }
.dc-dial .us { stroke: var(--ink); }
.dc-dial .r { stroke: rgb(14 14 14 / .25); stroke-width: 1; stroke-dasharray: 4 10; }
.dc-dial-v { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; line-height: 1; }
.dc-dial-v b { font-family: var(--c-font-mono); font-weight: 600; font-size: 40px; letter-spacing: -.03em; color: var(--ink); }
.dc-dial-v small { font-family: var(--c-font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgb(14 14 14 / .62); }
@media (prefers-reduced-motion: no-preference) {
  .in .dc-dial .us { animation: dc-arc .9s var(--c-ease-out) .3s both; }
  .dc-dial .r { animation: dc-radar 9s linear infinite; }
}
.dc-ring { --p: var(--pct); position: relative; width: 176px; aspect-ratio: 1; display: grid; place-items: center; }
.dc-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--ink) calc(var(--p) * 1%), rgb(14 14 14 / .16) 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 13px), #000 calc(100% - 12px));
}
.dc-ring b { font-family: var(--c-font-mono); font-weight: 600; font-size: 30px; letter-spacing: -.02em; color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .in .dc-ring { animation: dc-ring 1.6s var(--c-ease-out) both; }
}
.dc-radar { position: relative; width: 220px; aspect-ratio: 1; flex: none; }
.dc-radar .disc { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--c-line-2);
  background: radial-gradient(circle, transparent 0 32%, var(--c-line-soft) 32.5% 33%, transparent 33.5% 66%, var(--c-line-soft) 66.5% 67%, transparent 67.5%);
}
.dc-radar .arm { position: absolute; inset: 0; border-radius: 50%; mask: radial-gradient(circle, transparent 0 38%, #000 39%); background: conic-gradient(from 0deg, rgb(from var(--c-quote) r g b / .5) 0deg 46deg, transparent 46deg); }
.dc-radar .blip { position: absolute; width: 7px; height: 7px; translate: -50% -50%; background: var(--c-line-2); }
.dc-radar .core { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; font-family: var(--c-font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-faint); }
@media (prefers-reduced-motion: no-preference) {
  .dc-radar .arm { animation: dc-spin 7s linear infinite; }
  .dc-radar .blip { animation: dc-blip 7s linear infinite; animation-delay: var(--t); }
}
.ch-head.has-radar { grid-template-columns: auto minmax(0, 1fr) auto; }
.dc-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); }
.dc-tile { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 20px; background: var(--c-bg); }
.dc-tile .k { margin: 0; font-family: var(--c-font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--hue); white-space: nowrap; }
.dc-tile .v { margin: 0; font-family: var(--c-font-mono); font-weight: 600; font-size: clamp(28px, 2.8vw, 40px); line-height: 1; letter-spacing: -.03em; color: var(--c-text); white-space: nowrap; }
.dc-tile .v small { margin-left: 6px; font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--c-faint); }
.dc-tile dl { display: grid; grid-template-columns: auto auto; justify-content: space-between; gap: 4px 12px; margin: 0; padding-top: 10px; border-top: 1px dashed var(--c-line-soft); font-family: var(--c-font-mono); font-size: 11px; }
.dc-tile dt { color: var(--c-faint); white-space: nowrap; }
.dc-tile dd { margin: 0; color: var(--c-muted); text-align: right; white-space: nowrap; }
.dc-tile dd.live { color: var(--c-text); }
.dc-tile canvas { display: block; width: 100%; height: 40px; }
.dc-tile .v { min-height: 40px; display: flex; align-items: flex-end; }
@media (max-width: 1000px) {
  .dc-row, .dc-row.is-3 { grid-template-columns: minmax(0, 1fr); gap: 32px; justify-items: start; }
  .ch-head.has-radar { grid-template-columns: minmax(0, 1fr); }
  .dc-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .dc-board { grid-template-columns: minmax(0, 1fr); }
  .dc-radar { width: 180px; }
}
.dc-fig { margin: 0; display: flex; flex-direction: column; align-items: center; }
.dc-planes { display: flex; flex-direction: column; gap: 32px; }
@keyframes dc-arc { from { stroke-dasharray: 0 1; } }
@keyframes dc-radar { to { stroke-dashoffset: -140; } }
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
@keyframes dc-ring { from { --p: 0; } to { --p: var(--pct); } }
@keyframes dc-spin { to { rotate: 360deg; } }
@keyframes dc-blip { 0% { background: var(--c-quote); box-shadow: 0 0 10px var(--c-quote); scale: 1.6; } 14%, 100% { background: var(--c-line-2); box-shadow: none; scale: 1; } }

/* the routing engine, the stream client, pricing */
.e-cap { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--c-font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--c-faint); }
.e-cap b { font-weight: 500; color: var(--c-text); }
.e-cap .q { color: var(--c-quote-tint); }
.e-k { margin: 0 0 8px; font-family: var(--c-font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--hue, var(--c-faint)); white-space: nowrap; }
.e-engine { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.e-engine.is-2 { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; }
.e-canvas { display: block; width: 100%; border: 1px solid var(--c-line); background: var(--c-bg); }
.e-route { aspect-ratio: 16 / 7; }
.e-sweep { aspect-ratio: 120 / 62; image-rendering: pixelated; }
.e-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.e-steps li { padding: 4px 9px; border: 1px solid var(--c-line); font-family: var(--c-font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-faint); white-space: nowrap; transition: color var(--c-dur-2) var(--c-ease), border-color var(--c-dur-2) var(--c-ease); }
.e-steps li.is-on { color: var(--c-text); border-color: var(--c-quote); box-shadow: 0 0 10px rgb(from var(--c-quote) r g b / .25); }
.e-ch-cs { background: radial-gradient(60% 70% at 85% 30%, var(--c-stream-wash), transparent 70%), var(--c-bg); }
.e-ch-cs .ch-num { color: var(--c-stream); text-shadow: 0 0 50px rgb(from var(--c-stream) r g b / .35); }
.e-ch-cs .ch-k { color: var(--c-stream-tint); }
.e-cs-name { color: var(--c-stream); }
.e-cs-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.e-term { border: 1px solid var(--c-line); background: var(--c-surface-2); min-width: 0; }
.e-term-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--c-line); font-family: var(--c-font-mono); font-size: 11px; color: var(--c-muted); }
.e-term-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--c-line-2); }
.e-term pre { margin: 0; padding: 14px 16px; height: 238px; overflow: hidden; font-family: var(--c-font-mono); font-size: 12.5px; line-height: 1.75; color: var(--c-text); }
.e-term .c { color: var(--c-faint); }
.e-term .s { color: var(--c-stream-tint); }
.e-term .k { color: var(--c-brand-tint); }
.e-term .g { color: var(--c-go-tint); }
.e-term .row { display: block; white-space: pre; }
.e-term .br { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .e-term .row.new { animation: e-row .5s var(--c-ease-out) both; }
}
.e-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.e-filters li { padding: 4px 9px; border: 1px solid var(--c-line); font-family: var(--c-font-mono); font-size: 11px; color: var(--c-muted); white-space: nowrap; }
.e-filters li.is-on { color: var(--c-text); border-color: var(--c-stream); }
.e-compat { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; font-family: var(--c-font-mono); font-size: 12px; color: var(--c-muted); }
.e-compat b { color: var(--c-text); font-weight: 500; }
.e-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.e-plan { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--c-line); background: var(--c-surface); min-width: 0; }
.e-plan h3 { margin: 0; font-family: var(--c-font-display); font-weight: 700; font-size: 18px; color: var(--c-text); }
.e-plan .p { font-family: var(--c-font-mono); font-size: 34px; font-weight: 600; letter-spacing: -.03em; color: var(--c-text); white-space: nowrap; }
.e-plan .p small { font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--c-faint); }
.e-plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; font-family: var(--c-font-mono); font-size: 12px; color: var(--c-muted); }
.e-plan li { display: flex; justify-content: space-between; gap: 10px; white-space: nowrap; }
.e-plan li b { font-weight: 500; color: var(--c-text); }
.e-plan .c-btn { margin-top: auto; }
.e-plans.is-q .e-plan { border-color: rgb(from var(--c-quote) r g b / .35); }
.e-plans.is-q .e-plan .p { color: var(--c-quote-tint); }
.e-seg { display: inline-flex; margin-bottom: 18px; }
.e-panel[hidden] { display: none; }
.e-hl { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; padding: 16px 20px; border: 1px solid rgb(from var(--c-stream) r g b / .45); background: var(--c-stream-wash); }
.e-hl b { font-family: var(--c-font-mono); font-size: 26px; font-weight: 600; color: var(--c-stream-tint); }
.e-hl span { font-size: 13.5px; color: var(--c-muted); }
@media (max-width: 1000px) {
  .e-engine.is-2, .e-cs-grid { grid-template-columns: minmax(0, 1fr); }
  .e-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .e-plans { grid-template-columns: minmax(0, 1fr); }
  .e-route { aspect-ratio: 4 / 3; }
  .e-term pre { font-size: 11px; height: 280px; }
  .e-term .br { display: inline; }
  .e-term .dt { display: none; }
}
@keyframes e-row { from { opacity: 0; transform: translateY(8px); background: rgb(from var(--c-stream) r g b / .18); } }

/* hero waves, method check, proofs, steady pricing tabs */
.ch-1 { isolation: isolate; }
.ch-1 .w.is-cs { color: var(--c-stream); }
.hb { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
canvas.hb { width: 100%; height: 100%; }
.f-check { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.f-tick { margin: 0; display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 14px; border: 1px solid var(--c-line); background: var(--c-surface-2); font-size: 13px; color: var(--c-muted); white-space: nowrap; overflow: hidden; max-width: 560px; }
.f-tick b { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--c-text); }
.f-tick .v, .f-tick > span:first-child { flex: none; }
.f-tick .v { color: var(--c-go-tint); }
.f-chk { width: 16px; height: 16px; flex: none; }
.f-chk path { fill: none; stroke: var(--c-go-tint); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 0; }
.f-chk.draw path { animation: f-draw .25s var(--c-ease-out) both; }
.f-sq { display: grid; grid-template-columns: repeat(22, 18px); gap: 5px; }
.f-sq li { aspect-ratio: 1; background: transparent; box-shadow: inset 0 0 0 1.5px var(--c-line-2); transition: background .2s var(--c-ease), box-shadow .2s var(--c-ease); }
.f-sq li.is-ok { background: var(--c-brand); box-shadow: 0 0 8px var(--c-brand-glow); }
.f-sq li.is-now { background: var(--c-text); box-shadow: 0 0 12px var(--c-brand); }
@media (prefers-reduced-motion: no-preference) {
  .f-sq li.pulse { animation: f-pulse .9s var(--c-ease-out); }
}
.f-proof { display: grid; gap: 10px; margin-top: 18px; }
.f-proof article { padding: 14px 16px; border: 1px solid var(--c-line); background: var(--c-surface); }
.f-proof b { color: var(--c-stream); }
.f-proof canvas { display: block; width: 100%; height: 64px; margin-bottom: 8px; }
.f-proof p { margin: 0; font-size: 13.5px; color: var(--c-muted); }
.f-proof code { font-family: var(--c-font-mono); font-size: 12px; color: var(--c-stream-tint); }
.f-proof-price { display: flex; align-items: baseline; gap: 14px; height: 64px; margin-bottom: 8px !important; font-family: var(--c-font-mono); }
.f-proof-price s { font-size: 26px; color: var(--c-faint); text-decoration-color: var(--c-stream); }
.f-proof-price b { font-size: 46px; font-weight: 600; letter-spacing: -.03em; }
.f-why h2 { max-width: 760px; }
.f-words { display: flex; flex-direction: column; font-size: clamp(40px, 6.4vw, 104px); line-height: .9; letter-spacing: -.05em; }
.f-why .dr-e { color: var(--c-quote-tint); }
.f-why .dr-p { color: var(--c-brand-tint); }
.f-why .dr-s { color: var(--c-go-tint); }
.f-rail-w { position: relative; }
.f-rail { position: relative; height: 56px; margin: 0; padding: 0; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.f-rail::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--c-line-2); }
.f-rail li { position: relative; z-index: 1; width: 12px; height: 12px; background: var(--c-line-2); }
.f-rail li span { position: absolute; top: 18px; left: 50%; translate: -50% 0; font-family: var(--c-font-mono); font-size: 10.5px; color: var(--c-faint); white-space: nowrap; }
.f-rail-w .now { position: absolute; z-index: 2; left: 44%; top: 50%; width: 10px; height: 10px; translate: -50% -50%; rotate: 45deg; background: var(--c-brand); box-shadow: 0 0 10px var(--c-brand); }
@media (prefers-reduced-motion: no-preference) {
  .in .f-rail li { animation: f-tick .5s var(--c-ease-out) both; animation-delay: calc(var(--i) * 380ms); }
  .in .f-rail-w .now { animation: f-slide 1.6s var(--c-ease-out) .9s both; }
}
.f-rail li.is-past { background: var(--c-brand); }
.f-panels { display: grid; }
.f-panels > .e-panel { grid-area: 1 / 1; }
.f-panels > .e-panel[hidden] { display: block; visibility: hidden; pointer-events: none; }
.e-plan { transition: opacity .2s var(--c-ease), transform .2s var(--c-ease), border-color .2s var(--c-ease), box-shadow .2s var(--c-ease); outline: none; }
.e-plans:is(:hover, :focus-within) .e-plan:not(:hover, :focus-within) { opacity: .5; }
.e-plans .e-plan:is(:hover, :focus-within) { border-color: var(--c-brand); box-shadow: 0 0 0 1px var(--c-brand-line), 0 14px 34px rgb(from var(--c-brand) r g b / .22); transform: translateY(-3px); }
.e-plans.is-q .e-plan:is(:hover, :focus-within) { border-color: var(--c-quote); box-shadow: 0 0 0 1px rgb(from var(--c-quote) r g b / .6), 0 14px 34px rgb(from var(--c-quote) r g b / .2); }
.e-plans.is-cs .e-plan { border-color: rgb(from var(--c-stream) r g b / .3); }
.e-plans.is-cs .e-plan .p { color: var(--c-stream-tint); }
.e-plans.is-cs .e-plan:is(:hover, :focus-within) { border-color: var(--c-stream); box-shadow: 0 0 0 1px rgb(from var(--c-stream) r g b / .55), 0 14px 34px rgb(from var(--c-stream) r g b / .18); }
@media (max-width: 1000px) {
  .f-sq { grid-template-columns: repeat(11, 18px); }
}
@media (max-width: 620px) {
  .f-tick > span:first-child { display: none; }
  .f-sq { grid-template-columns: repeat(11, minmax(0, 1fr)); }
  .f-tick { font-size: 11.5px; gap: 8px; }
}
.ch-right .cw-bar-docs { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border: 1px solid var(--c-line); border-radius: var(--c-r-ctl); background: var(--c-surface-2); color: var(--c-faint); transition: color var(--c-dur-1) var(--c-ease), border-color var(--c-dur-1) var(--c-ease); }
.ch-right .cw-bar-docs:hover { color: var(--c-brand-tint); border-color: var(--c-line-2); }
@keyframes f-draw { from { stroke-dashoffset: 1; } }
@keyframes f-pulse { 30% { background: var(--c-text); box-shadow: 0 0 14px var(--c-brand); } }
@keyframes f-tick { from { background: var(--c-line-2); } }
@keyframes f-slide { from { left: 0; } }

/* versus tiles, why now, pricing colours */
.dc-dial .ms { stroke: rgb(14 14 14 / .14); stroke-width: 11; }
.fx-vs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fx-v { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border: 1px solid rgb(14 14 14 / .28); min-width: 0; }
.fx-x { margin: 0; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.fx-x b { font-family: var(--c-font-mono); font-weight: 600; font-size: 34px; line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.fx-x span, .fx-l { font-family: var(--c-font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.fx-x span { color: rgb(14 14 14 / .75); }
.fx-l { margin: 0; color: rgb(14 14 14 / .62); }
.fx-bars { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; }
.fx-bars i { display: block; height: 10px; transform-origin: left; transform: scaleX(var(--v)); }
.fx-bars i.us { background: var(--ink); }
.fx-bars i.th { background: rgb(14 14 14 / .22); }
.fx-bars b, .fx-bars span { font-family: var(--c-font-mono); font-size: 13px; line-height: 1; text-align: right; white-space: nowrap; }
.fx-bars b { font-weight: 600; color: var(--ink); }
.fx-bars span { color: rgb(14 14 14 / .62); }
.fx-vs .ch-key { grid-column: 1 / -1; }
.ch-2 .ch-key i.th { border: 0; background: rgb(14 14 14 / .22); }
@media (prefers-reduced-motion: no-preference) {
  .in .fx-bars i { animation: fx-grow 1.4s var(--c-ease-out) both; animation-delay: calc(var(--t) * 160ms + .2s); }
}
.f-why .dr-e { color: var(--c-go-tint); }
.f-why .dr-p { color: var(--c-brand-tint); }
.f-why .dr-s { color: var(--c-quote-tint); }
.g-m { --hue: var(--c-go-tint); }
.g-r { --hue: var(--c-brand-tint); }
.g-p { --hue: var(--c-quote-tint); }
.g-take p { margin: 0; }
.g-take b, .nw { white-space: nowrap; }
.g-d { margin: 0; font-family: var(--c-font-display); font-weight: 700; font-size: clamp(26px, 2.6vw, 36px); line-height: 1; letter-spacing: -.03em; color: var(--hue); }
.g-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.g-cards article { display: flex; flex-direction: column; gap: 16px; padding: 22px; border: 1px solid var(--c-line); background: var(--c-surface); min-width: 0; }
.g-cards article p:last-child { font-size: 13.5px; line-height: 1.5; color: var(--c-muted); }
.g-cards article p:last-child b { font-family: var(--c-font-mono); color: var(--hue); }
.g-viz { height: 88px; display: flex; align-items: flex-end; }
.g-bars { gap: 10px; }
.g-bars i { display: block; width: 46px; height: 100%; background: var(--c-line-2); transform-origin: bottom; transform: scaleY(var(--v)); }
.g-bars i.now { background: var(--c-go); box-shadow: 0 0 18px rgb(from var(--c-go) r g b / .35); }
.g-bars span { margin-left: 6px; font-family: var(--c-font-mono); font-size: 22px; font-weight: 600; color: var(--c-go-tint); }
.g-viz .f-rail-w { width: 100%; align-self: center; }
.g-take .f-rail li:first-child span { left: 0; translate: 0 0; }
.g-take .f-rail li:last-child span { left: auto; right: 0; translate: 0 0; }
.g-people { display: grid; grid-template-columns: repeat(20, 1fr); gap: 4px; width: 100%; align-self: center; }
.g-people i { aspect-ratio: 1; border-radius: 50%; background: var(--c-line-2); transition: background .6s var(--c-ease), box-shadow .6s var(--c-ease); }
.g-people i.on { background: var(--c-quote); box-shadow: 0 0 8px rgb(from var(--c-quote) r g b / .55); }
.g-people i.new { box-shadow: 0 0 0 2px rgb(from var(--c-quote) r g b / .3), 0 0 12px rgb(from var(--c-quote) r g b / .7); }
@media (prefers-reduced-motion: no-preference) {
  .in .g-bars i.now { animation: g-rise 2.1s var(--c-ease-out) both; }
  .in .g-people i.on { animation: c-pop .9s var(--c-ease-out) both; animation-delay: calc(var(--k, 0) * 200ms); }
  .g-take.in .f-rail li { animation-duration: .9s; animation-delay: calc(var(--i) * 650ms); }
  .g-take.in .f-rail-w .now { animation-duration: 2.8s; animation-delay: 1.4s; }
}
.g-so { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 26px; margin-top: 16px !important; padding: 14px 18px; border: 1px solid var(--c-brand-line); background: var(--c-brand-wash); font-size: 13.5px; color: var(--c-muted); }
.g-so strong { font-family: var(--c-font-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-text); white-space: nowrap; }
.g-so span { white-space: nowrap; }
.g-so b { margin-right: 6px; font-family: var(--c-font-mono); font-size: 18px; font-weight: 600; color: var(--hue); }
.g-price { --tab: var(--c-brand); }
.g-price[data-tab="quote"] { --tab: var(--c-quote); }
.g-price[data-tab="stream"] { --tab: var(--c-stream); }
.g-price .ch-num { color: var(--tab); text-shadow: 0 0 50px rgb(from var(--tab) r g b / .3); transition: color .4s var(--c-ease), text-shadow .4s var(--c-ease); }
.g-price .e-seg .is-active { box-shadow: inset 0 0 0 1px var(--c-line), inset 0 -2px 0 var(--tab); }
.g-price .e-panel { display: flex; flex-direction: column; }
.g-price .e-plans { flex: 1; }
.g-price .e-plan { justify-content: space-between; }
.g-price .e-plan ul { margin-bottom: 14px; }
.g-price .e-plan .c-btn { width: 100%; margin-top: 0; }
.g-price .e-plans.is-cs .e-plan { justify-content: flex-start; }
.g-price .e-plans.is-cs .e-plan .c-btn { margin-top: auto; }
.g-price .e-hl { padding: 8px 16px; gap: 4px 14px; }
.g-price .e-hl b { font-size: 18px; line-height: 1.3; }
.g-btn-stream { background: var(--c-raised); border-color: var(--c-stream); color: var(--c-stream-tint); }
.g-btn-stream::after { content: ""; position: absolute; top: -1px; right: -1px; width: 7px; height: 7px; border-top: 1px solid var(--c-stream); border-right: 1px solid var(--c-stream); }
.g-btn-stream:hover { background: rgb(from var(--c-stream) r g b / .08); box-shadow: 0 0 14px rgb(from var(--c-stream) r g b / .3); }
@media (max-width: 1000px) {
  .g-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .fx-vs { grid-template-columns: minmax(0, 1fr); }
  .g-price .e-plans { flex: none; }
  .g-price .e-plan, .g-price .e-plans.is-cs .e-plan { justify-content: flex-start; }
  .g-people { gap: 3px; }
  .g-so { gap: 8px 18px; }
}
@keyframes fx-grow { from { transform: scaleX(0); } }
@keyframes g-rise { from { transform: scaleY(.33); } }

/* every graphic keeps moving softly after its entrance (the numbers stay as printed): the dial's race, the ring's glint, the
   head-to-head tally, light on the bars, the hero's word glow, 06's money stack and next-date comet; a chapter off screen
   pauses (.is-off, scenes.js), and the whole landing holds behind the sign-in modal (html.cw-hold, login-panel.js); under
   reduced motion each shows its final state */
.ch-c.is-off *, .ch-c.is-off *::before, .ch-c.is-off *::after,
.cw-hold .lp *, .cw-hold .lp *::before, .cw-hold .lp *::after { animation-play-state: paused !important; }

/* 01: a soft glow walks the hero's words */
@media (prefers-reduced-motion: no-preference) {
  .ch-1 h1 .w { animation: ch-rise .7s var(--c-ease-out) both, g-glow 10s ease-in-out infinite; animation-delay: calc(200ms + var(--i) * 110ms), calc(var(--i) * 2s + 1.5s); }
}
@keyframes g-glow { 0%, 12%, 100% { text-shadow: none; } 5% { text-shadow: 0 0 22px currentColor; } }

/* 02: the dial. Outer: our median /quote as a share of others' (8.9 of 20.1 ms). Inner: two marks lap the ring, ours 2.3x as often */
.dc-dial.is-race .lap { fill: none; stroke-width: 5; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 100px 100px; stroke-dasharray: .06 .94; }
.dc-dial.is-race .lap.us { stroke: var(--ink); }
.dc-dial.is-race .lap.th { stroke: rgb(14 14 14 / .32); }
@media (prefers-reduced-motion: no-preference) {
  .in .dc-dial.is-race .lap.us { animation: dc-lap 2s linear infinite; }
  .in .dc-dial.is-race .lap.th { animation: dc-lap 4.6s linear infinite; }
}
@media (prefers-reduced-motion: reduce) { .dc-dial.is-race .lap.th { stroke-dashoffset: -.5; } }
@keyframes dc-lap { to { stroke-dashoffset: -1; } }

/* 02: a glint keeps travelling the 99.9% ring */
.dc-ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(rgb(255 255 255 / .55) 0 4%, transparent 9% 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 13px), #000 calc(100% - 12px)); mask: radial-gradient(farthest-side, transparent calc(100% - 13px), #000 calc(100% - 12px)); opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .in .dc-ring::after { opacity: 1; animation: g-spin 6s linear infinite; } }
@keyframes g-spin { to { rotate: 360deg; } }

/* 02: 35 of 36 head to head. One column per quote pair; the winner's lane gets the tick; it rises in a wave, holds, ebbs */
.dc-tally { display: grid; grid-template-columns: max-content repeat(var(--of, 36), minmax(0, 1fr)); grid-template-rows: 22px 22px; gap: 8px 3px; width: min(100%, 520px); }
.dc-tally::before, .dc-tally::after { font: 11px var(--c-font-mono); letter-spacing: .1em; text-transform: uppercase; color: rgb(14 14 14 / .66); align-self: center; padding-right: 8px; }
.dc-tally::before { content: "carbium"; grid-area: 1 / 1; }
.dc-tally::after { content: "others"; grid-area: 2 / 1; }
.dc-tally li { grid-row: 1; grid-column: calc(var(--i) + 2); background: var(--ink); transform-origin: bottom; }
.dc-tally li.th { grid-row: 2; background: rgb(14 14 14 / .45); }
@keyframes dc-tick { 0%, 4% { transform: scaleY(0); } 14%, 84% { transform: scaleY(1); } 96%, 100% { transform: scaleY(0); } }
@media (prefers-reduced-motion: no-preference) { .in .dc-tally li { animation: dc-tick 7s var(--c-ease) calc(var(--i) * 60ms) infinite both; } }
@media (max-width: 1000px) { .dc-tally { width: min(520px, calc(100vw - 48px)); } }   /* a definite width: the figure fits its content here */
@media (max-width: 760px) { .fx-vs { grid-template-columns: minmax(0, 1fr); } }   /* three tiles side by side down to 761 px */
@media (max-width: 620px) { .dc-tally { gap: 6px 2px; width: calc(100vw - 32px); } }

/* 02: a band of light runs along our bars */
.fx-bars i.us { background: linear-gradient(90deg, var(--ink) 0 42%, rgb(255 255 255 / .38) 50%, var(--ink) 58% 100%) 0 0 / 260% 100%; background-position: 100% 0; }
@media (prefers-reduced-motion: no-preference) {
  .in .fx-bars i.us { animation: fx-grow 1.4s var(--c-ease-out) both, fx-band 3.4s ease-in-out infinite; animation-delay: calc(var(--t) * 160ms + .2s), calc(var(--t) * .45s + 1.8s); }
}
@keyframes fx-band { 0% { background-position: 100% 0; } 60%, 100% { background-position: -60% 0; } }

/* 06 money: today's bar is three of 2025's; the second and third arrive, hold, then all fade back to one */
.g-bars i.now { display: flex; flex-direction: column-reverse; gap: 2px; transform: none; background: none; box-shadow: none; }
.g-bars i.now b { flex: 1; background: var(--c-go); box-shadow: 0 0 12px rgb(from var(--c-go) r g b / .3); }
.g-bars i.now b:nth-child(n+2) { outline: 1px dashed rgb(from var(--c-go) r g b / .55); outline-offset: -1px; }   /* the two slots 2025's amount fills again */
@media (prefers-reduced-motion: no-preference) {
  .in .g-bars i.now { animation: none; }
  .in .g-bars i.now b:nth-child(2) { animation: g-two 6s var(--c-ease) infinite both; }
  .in .g-bars i.now b:nth-child(3) { animation: g-three 6s var(--c-ease) infinite both; }
}
@keyframes g-two { 0%, 10%, 94%, 100% { background-color: transparent; box-shadow: none; } 20%, 82% { background-color: var(--c-go); box-shadow: 0 0 12px rgb(from var(--c-go) r g b / .3); } }
@keyframes g-three { 0%, 30%, 94%, 100% { background-color: transparent; box-shadow: none; } 40%, 82% { background-color: var(--c-go); box-shadow: 0 0 12px rgb(from var(--c-go) r g b / .3); } }

/* 06 rules: the dates where they fall in time; filled to today; a dashed comet runs to the next date, which lights as it lands */
.g-rail .f-rail li { position: absolute; left: calc(var(--x) * 1%); top: 50%; translate: -50% -50%; }
.g-rail .f-rail li:first-child { translate: 0 -50%; }
.g-rail .f-rail li:last-child { translate: -100% -50%; }
.g-rail .f-rail li:nth-child(2) span { top: auto; bottom: 18px; }   /* 2026-09 above the rail, clear of 2027-01 */
.g-rail .fill { position: absolute; left: 0; top: 50%; width: 44.4%; height: 2px; translate: 0 -50%; background: var(--c-brand); }
.g-rail .now { left: 44.4%; }
.g-rail .now::after { content: ""; position: absolute; inset: -1px; border: 1px solid var(--c-brand); opacity: 0; }
.g-rail .comet { position: absolute; top: 50%; left: 44.4%; width: 5.6%; height: 2px; translate: 0 -50%; transform-origin: left;
  background: repeating-linear-gradient(90deg, var(--c-brand-tint) 0 4px, transparent 4px 7px); }
@media (prefers-reduced-motion: no-preference) {
  .in .g-rail .comet { animation: g-comet 3.2s var(--c-ease) 2.4s infinite both; }
  .in .g-rail li.is-next { animation: f-tick .9s var(--c-ease-out) both, g-land 3.2s var(--c-ease) infinite; animation-delay: calc(var(--i) * 650ms), 2.4s; }
  .in .g-rail .now::after { animation: g-ring 3.2s ease-out 2.4s infinite; }
}
@keyframes g-comet { 0% { transform: scaleX(0); opacity: 1; } 55%, 70% { transform: scaleX(1); opacity: 1; } 90%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes g-land { 0%, 50%, 100% { background: var(--c-line-2); box-shadow: none; } 58% { background: var(--c-brand-tint); box-shadow: 0 0 12px var(--c-brand); } }
@keyframes g-ring { 0% { transform: scale(1); opacity: .9; } 60%, 100% { transform: scale(2.6); opacity: 0; } }

/* the header: latency as phone-style bars before the benchmark icon (latencyCluster, its details in the popup), reading
   "latency ~N ms" where there is room; the chapter words take their own scrolling row where the bar runs out of room */
.ch-right .cw-sig { height: 30px; flex-direction: row-reverse; }
.ch-right .cw-sig-agg { min-width: 12.5ch; text-align: right; font-variant-numeric: tabular-nums; }
.ch-right .cw-sig-agg::before { content: "latency ~"; color: var(--c-faint); }
@media (max-width: 920px) {
  .ch-bar { flex-wrap: wrap; height: auto; min-height: 54px; row-gap: 0; }
  .ch-idx { order: 3; flex: 1 0 100%; margin: 0 -24px; padding: 0 15px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--c-line); }
  .ch-right { margin-left: auto; }
}
@media (max-width: 620px) {
  .ch-right { gap: 8px; }
  .ch-right .cw-sig-agg { display: none; }
}
/* a small phone keeps the brand's word in the one 54 px row: tighter spacing, and the benchmark icon gives way (the footer links it) */
@media (max-width: 420px) {
  .ch-bar { gap: 12px; padding: 0 12px; }
  .ch-brand span { letter-spacing: .1em; }
  .ch-right .cw-bar-docs { display: none; }
}

/* the footer: the bar's items as pills in the design system's line, one quiet row; the build stamp hides on a phone */
.cw-ch-foot .cw-foot { gap: 8px; height: auto; min-height: 46px; padding: 8px 24px; }
.cw-ch-foot .cw-foot-docs { height: 28px; padding: 0 12px; display: inline-flex; align-items: center; border: 1px solid var(--c-line); border-radius: 999px;
  background: var(--c-surface); font-size: 12px; font-weight: 500; color: var(--c-muted); white-space: nowrap; }
.cw-ch-foot .cw-foot-docs:hover { color: var(--c-text); border-color: var(--c-brand-line); background: var(--c-brand-wash); }
.cw-ch-foot .cw-build { padding: 4px 10px; border: 1px dashed var(--c-line); border-radius: 999px; font-family: var(--c-font-mono); font-size: 10.5px;
  letter-spacing: .08em; color: var(--c-faint); white-space: nowrap; }
.cw-ch-foot .cw-build:empty { display: none; }
@media (max-width: 620px) {
  .cw-ch-foot .cw-foot { flex-wrap: wrap; justify-content: center; padding: 8px 12px; gap: 6px; }
  .cw-ch-foot .cw-foot > span[style] { display: none; }
  .cw-ch-foot .cw-build { display: none; }
  .cw-ch-foot .cw-foot-docs { height: 26px; padding: 0 10px; font-size: 11.5px; }
}
