/* Frame Gauge website: the design system shared by every page.
 *
 * Sleek and quiet. A near-black page, the system typeface, one centred column and a great deal
 * of space. One accent colour, used for the main button and the status dots and nowhere else.
 * No ornament: no rules, frames, labels or glows that do not carry information. The only
 * instrument on the page is the live scopes demonstration, which keeps the application's own
 * colours.
 *
 * Every colour is a token.
 */

/* ------------------------------------------------------------------
   Tokens
------------------------------------------------------------------ */
:root {
  color-scheme: dark;

  /* The live scopes: the application's own surfaces and traces. */
  --scope-surface: #090a0b;
  --scope-line: rgba(255, 255, 255, .10);
  --scope-line-strong: rgba(255, 255, 255, .30);
  --scope-label: rgba(255, 255, 255, .62);
  --scope-probe: #ffd60a;
  --trace-luma: #d8f6e6;
  --trace-red: #ff453a;
  --trace-green: #32d74b;
  --trace-blue: #4f7dff;
  --signal-black: #000;
  --signal-white: #fff;
  --limit: #ff5a4f;
  --plate: #090a0b;
  --plate-edge: #1f2123;
  --plate-rule: #17191a;
  --plate-fg: #f3f5f4;
  --plate-fg-2: #a3a8a6;
  --plate-on: #08090a;
  --plate-hatch: #66706b;
  --plate-focus: #7dffb0;

  /* The page. */
  --bg: #08090a;
  --bg-2: #101213;
  --fg: #f3f5f4;
  --fg-2: #a3a8a6;
  --fg-3: #7e8482;
  --accent: #7dffb0;
  --accent-fg: #04110a;
  --line: #4a4f4c;
  --rule: #1a1c1c;
  --rule-2: #26292a;
  --tick: #343836;
  --bar: #7dffb0;
  --ok: #7dffb0;
  --warn: #ffb224;
  --info: #5cc8ff;
  --muted: #7e8482;
  --header-bg: rgba(8, 9, 10, .72);
  --window-edge: rgba(255, 255, 255, .14);
  --shadow: rgba(0, 0, 0, .7);
  --focus: #7dffb0;
}

/* ------------------------------------------------------------------
   Base
------------------------------------------------------------------ */
:root {
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --font-mono: var(--mono);
  --hdr: 56px;
  --gutter: clamp(20px, 4vw, 32px);
  --radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + env(safe-area-inset-top, 0px) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h1, h2, h3, h4, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { color: var(--fg); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 7.4vw, 5.25rem); line-height: 1.02; letter-spacing: -.04em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.08; letter-spacing: -.032em; }
h3 { font-size: 1.1875rem; line-height: 1.25; letter-spacing: -.012em; }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; text-decoration-color: var(--line); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.mono, code, kbd { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.mono { font-size: .92em; }
dd .mono, p .mono, th .mono { word-spacing: -.28em; }
kbd { font-size: .75rem; line-height: 1; color: var(--fg-2); border: 1px solid var(--rule-2); border-radius: 5px; padding: 2px 5px; white-space: nowrap; }
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 20;
  padding: 8px 16px; border-radius: 999px;
  background: var(--accent); color: var(--accent-fg); font: 600 .875rem var(--sans); text-decoration: none;
}
.skip:focus { top: calc(8px + env(safe-area-inset-top, 0px)); }

.wrap {
  max-width: calc(1080px + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ------------------------------------------------------------------
   Header and footer
------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 10;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header { background: var(--bg); }
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--hdr); }
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .9375rem; letter-spacing: -.01em;
  color: var(--fg); text-decoration: none; white-space: nowrap;
}
.brand img { width: 26px; height: 26px; }
.site-nav ul { display: flex; align-items: center; gap: clamp(16px, 3vw, 30px); }
.site-nav a { display: block; padding-block: 10px; font-size: .875rem; color: var(--fg-2); text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--fg); }

.site-footer { margin-top: clamp(24px, 4vw, 48px); padding-block: 32px 48px; border-top: 1px solid var(--rule); }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.foot-nav ul { display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot-nav a { display: block; padding-block: 8px; font-size: .875rem; color: var(--fg-2); text-decoration: none; }
.foot-nav a:hover { color: var(--fg); }
.legal { margin-top: 20px; max-width: 62em; font-size: .75rem; line-height: 1.6; color: var(--fg-3); }
.foot-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; margin-top: 16px; font-size: .75rem; line-height: 1.6; color: var(--fg-3); }

/* ------------------------------------------------------------------
   Buttons, links, status words
------------------------------------------------------------------ */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px;
  font: 600 1rem/1 var(--sans); letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  color: var(--accent-fg); background: var(--accent); border: 1px solid var(--accent); border-radius: 999px;
}
.button:hover { filter: brightness(1.08); }
.button--quiet { color: var(--fg); background: transparent; border-color: var(--rule-2); font-weight: 500; }
.button--quiet:hover { filter: none; border-color: var(--line); }
.link, .more { font-size: 1rem; font-weight: 500; color: var(--fg); text-decoration: none; }
.link::after, .more::after { content: " →"; }
.link:hover, .more:hover { text-decoration: underline; }
.more { display: inline-block; margin-top: 22px; padding-block: 4px; font-size: .9375rem; }

/* The word carries the status; the dot only repeats it. */
.chip { display: inline-flex; align-items: center; gap: 7px; font: 500 .8125rem/1.4 var(--sans); color: var(--fg); white-space: nowrap; }
.st { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.st--v { background: var(--ok); }
.st--b { background: var(--warn); }
.st--d { background: var(--info); }
.st--p { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.chip--p { color: var(--fg-2); }

.lead { font-size: clamp(1.125rem, 1.9vw, 1.375rem); line-height: 1.45; color: var(--fg-2); max-width: 31em; }
.prose { color: var(--fg-2); max-width: 36em; }
.prose + .prose { margin-top: .8em; }
.note { font-size: .8125rem; line-height: 1.5; color: var(--fg-3); }
.req { font-size: .8125rem; line-height: 1.5; color: var(--fg-3); }
.caveat { font-size: .875rem; line-height: 1.5; color: var(--fg-3); max-width: 46em; }
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 18px; } .mt-3 { margin-top: 28px; } .mt-4 { margin-top: 44px; }
.scroll-x { overflow-x: auto; }

/* pictures of the application */
.window { filter: drop-shadow(0 0 .5px var(--window-edge)) drop-shadow(0 40px 80px var(--shadow)); }
.plate { width: 100%; border: 1px solid var(--plate-edge); border-radius: var(--radius); background: var(--plate); }
figcaption { margin-top: 10px; font-size: .8125rem; line-height: 1.5; color: var(--fg-3); }
figcaption b { font-weight: 500; color: var(--fg-2); }

/* ------------------------------------------------------------------
   Landing page: a headline, one picture, the live scopes, three points, a closing line
------------------------------------------------------------------ */
.section { padding-block: clamp(72px, 11vw, 144px); }
.section + .section { padding-top: 0; }      /* one gap between sections, not two */
.head { display: grid; gap: 14px; justify-items: center; max-width: 40rem; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.head p { font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); line-height: 1.5; color: var(--fg-2); }

.hero { padding-block: clamp(64px, 11vw, 136px) 0; }
.hero-copy { display: grid; gap: 24px; justify-items: center; text-align: center; }
.hero-copy h1 { max-width: 11em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; margin-top: 8px; }
.hero-note { font-size: .8125rem; line-height: 1.5; color: var(--fg-3); }

/* one picture of the application; the names beneath it choose another layout, without script */
.showcase { position: relative; margin-top: clamp(48px, 8vw, 96px); }
/* The radio buttons sit behind the row of names, so focusing one never scrolls the page. */
.showcase-radio { position: absolute; left: 50%; bottom: 12px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.showcase-stage { aspect-ratio: 1600 / 954; }
.showcase-stage img { display: none; width: 100%; }
#lay-grading:checked ~ .showcase-stage [data-shot="grading"],
#lay-shading:checked ~ .showcase-stage [data-shot="shading"],
#lay-exposure:checked ~ .showcase-stage [data-shot="exposure"],
#lay-quad:checked ~ .showcase-stage [data-shot="quad"],
#lay-live:checked ~ .showcase-stage [data-shot="live"] { display: block; }
.showcase-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 clamp(16px, 3vw, 30px); margin-top: clamp(20px, 3vw, 32px); }
.showcase-tabs label { padding: 8px 0; font-size: .8125rem; line-height: 1.4; color: var(--fg-3); cursor: pointer; white-space: nowrap; }
.showcase-tabs label:hover { color: var(--fg-2); }
.showcase-tabs .wide { display: none; }
#lay-grading:checked ~ .showcase-tabs [for="lay-grading"],
#lay-shading:checked ~ .showcase-tabs [for="lay-shading"],
#lay-exposure:checked ~ .showcase-tabs [for="lay-exposure"],
#lay-quad:checked ~ .showcase-tabs [for="lay-quad"],
#lay-live:checked ~ .showcase-tabs [for="lay-live"] { color: var(--fg); }
#lay-grading:focus-visible ~ .showcase-tabs [for="lay-grading"],
#lay-shading:focus-visible ~ .showcase-tabs [for="lay-shading"],
#lay-exposure:focus-visible ~ .showcase-tabs [for="lay-exposure"],
#lay-quad:focus-visible ~ .showcase-tabs [for="lay-quad"],
#lay-live:focus-visible ~ .showcase-tabs [for="lay-live"] { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }

/* the live scopes: the one instrument on the page */
.demo { border-radius: 16px; overflow: hidden; background: var(--plate); color: var(--plate-fg); box-shadow: inset 0 0 0 1px var(--plate-edge); }
.demo-live { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--plate-rule); }
.demo:not(.is-live) .demo-live, .demo:not(.is-live) .demo-bar, .demo:not(.is-live) .demo-status { display: none; }
.demo.is-live .demo-stills, .demo.is-live .demo-nojs { display: none; }
.demo-stills { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; }
.demo-stills > * { flex: var(--ar) 1 0; min-width: 0; }
.demo-stills > :first-child { flex-basis: 100%; }
.demo-stills img { border-radius: 8px; }
.demo-nojs { padding: 12px 16px; font-size: .8125rem; line-height: 1.5; color: var(--plate-fg-2); }
.scope { min-width: 0; background: var(--scope-surface); }
.scope figcaption { display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 12px 14px 6px; font: 500 .75rem/1.3 var(--sans); color: var(--plate-fg); }
.scope figcaption span { font-weight: 400; color: var(--plate-fg-2); }
.scope canvas { display: block; width: 100%; aspect-ratio: 16 / 9; }
.scope--viewer canvas { cursor: crosshair; touch-action: none; }
.scope--viewer canvas:focus-visible { outline: 2px solid var(--plate-focus); outline-offset: -2px; border-radius: 0; }
.scope--viewer:has(canvas:focus-visible) { position: relative; z-index: 1; outline: 2px solid var(--plate-focus); outline-offset: -2px; }
.scope--viewer:has(canvas:focus-visible) canvas { outline: 0; }
.scope--vector canvas { aspect-ratio: 1 / 1; }
.scope.is-drop-target { outline: 2px dashed var(--plate-fg); outline-offset: -4px; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 12px; border-top: 1px solid var(--plate-rule); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; }
.demo-end { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-left: auto; }
.seg button, .demo-toggle {
  min-height: 34px; padding: 0 13px;
  font: 500 .8125rem/1 var(--sans); font-variant-numeric: tabular-nums;
  color: var(--plate-fg-2); background: transparent; border: 0; border-radius: 999px; cursor: pointer;
}
.seg button:hover, .demo-toggle:hover { color: var(--plate-fg); }
.seg button[aria-pressed="true"] { color: var(--plate-on); background: var(--plate-fg); }
.demo button:focus-visible { outline: 2px solid var(--plate-focus); outline-offset: 2px; }
.demo-status {
  display: flex; flex-wrap: wrap; gap: 2px 24px; padding: 0 14px 12px;
  font: 400 .75rem/1.5 var(--mono); font-variant-numeric: tabular-nums; color: var(--fg-3);
}
.demo-status > span { min-width: 0; }
.demo-status [data-demo-probe] { color: var(--plate-fg); }
.demo-status [data-demo-probe]:empty { display: none; }
.demo-status [data-demo-status]:empty { position: absolute; }
.fineprint { max-width: 44em; margin: 20px auto 0; text-align: center; font-size: .8125rem; line-height: 1.55; color: var(--fg-3); }

/* three points, in words */
.points { display: grid; gap: 40px 56px; }
.points h3 { margin-bottom: 10px; }
.points p { font-size: 1rem; line-height: 1.6; color: var(--fg-2); }
.points .link { display: inline-block; margin-top: 14px; font-size: .9375rem; }

/* the closing line */
.closing { display: grid; gap: 20px; justify-items: center; max-width: 38rem; margin-inline: auto; text-align: center; }
.closing > p:not(.actions) { font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); line-height: 1.5; color: var(--fg-2); }

@media (max-width: 419.98px) {
  /* On a narrow phone the header keeps the name and one link; the others are in the footer. */
  .site-nav li:not(:last-child) { display: none; }
}
@media (max-width: 639.98px) {
  .scope--vector canvas { aspect-ratio: 4 / 3; }
}
@media (min-width: 640px) {
  .demo-stills > :first-child { flex-basis: 0; }
  /* Viewer, waveform and vectorscope share one row and one height. */
  .demo-live { grid-template-columns: minmax(0, 16fr) minmax(0, 16fr) minmax(0, 9.6fr); }
  .demo-live .scope { display: flex; flex-direction: column; }
  .demo-live .scope canvas { flex: 1 1 auto; height: auto; min-height: 0; }
  /* The vectorscope takes its height from the row, never from its own bitmap. */
  .demo-live .scope--vector canvas { aspect-ratio: auto; flex: 1 1 0; height: 0; }
}
@media (min-width: 720px) {
  .showcase-tabs .wide { display: inline; }
}
@media (min-width: 800px) {
  .points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------
   Inner pages: a reading layout
------------------------------------------------------------------ */
.band + .band { border-top: 1px solid var(--rule); }
.band-body { min-width: 0; padding-block: clamp(40px, 6vw, 72px); }
.band h2 { font-size: clamp(1.6rem, 3.2vw, 2.125rem); line-height: 1.12; letter-spacing: -.024em; }
.section-head { display: grid; gap: 12px; margin-bottom: 32px; }
.page-head { display: grid; gap: 16px; max-width: 46rem; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.05; letter-spacing: -.032em; }
.page-head .lead { max-width: 36em; }
.crumb { font-size: .8125rem; line-height: 1.5; color: var(--fg-3); }
.crumb a { color: var(--fg-2); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.hero-top { display: grid; gap: 32px 56px; }
.hero-top > * { min-width: 0; }
.sub { margin-top: 56px; padding-top: 44px; border-top: 1px solid var(--rule); }
.sub-h { font-size: clamp(1.35rem, 2.3vw, 1.75rem); line-height: 1.15; letter-spacing: -.02em; }
.cols { display: grid; gap: 40px 56px; }
.cols > * { min-width: 0; }

/* label and exact value, ruled */
.facts { border-top: 1px solid var(--rule); }
.facts > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); column-gap: 16px; padding-block: 11px; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: .8125rem; line-height: 1.75; color: var(--fg-3); }
.facts dd { min-width: 0; font-size: .9375rem; line-height: 1.5; color: var(--fg); }
.facts--wide > div { grid-template-columns: 8rem minmax(0, 1fr); }
.readout { align-self: end; }
.readout .facts > div { grid-template-columns: auto minmax(0, 1fr); }
.readout .facts dt { white-space: nowrap; }
.readout .facts dd { text-align: right; font-variant-numeric: tabular-nums; }
.readout .facts dd small { display: block; font-size: .75rem; line-height: 1.5; color: var(--fg-3); }

/* running text */
.text { display: grid; gap: .9em; max-width: 40em; color: var(--fg-2); }
.text strong { color: var(--fg); font-weight: 600; }
.text code, .facts code, td code, .formula { font: 400 .875em/1.5 var(--mono); font-variant-numeric: tabular-nums; color: var(--fg); }
.formula { display: block; padding: 14px 16px; border-radius: var(--radius); background: var(--bg-2); overflow-x: auto; white-space: pre; font-size: .8125rem; line-height: 1.6; }

/* data tables */
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; }
.table caption { text-align: left; padding-bottom: 12px; font-size: 1rem; font-weight: 600; letter-spacing: -.01em; color: var(--fg); }
.table th, .table td { padding: 11px 16px 11px 0; border-bottom: 1px solid var(--rule); text-align: left; font-weight: 400; vertical-align: top; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table thead th { font-size: .8125rem; font-weight: 500; color: var(--fg-3); border-bottom-color: var(--rule-2); vertical-align: bottom; white-space: nowrap; }
.table tbody th { color: var(--fg); font-weight: 500; }
.table td { color: var(--fg-2); }
.table .num { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--fg); white-space: nowrap; text-align: right; }
.table .id { font-size: .75rem; line-height: 1.9; font-variant-numeric: tabular-nums; color: var(--fg-3); white-space: nowrap; }
.table .nowrap { white-space: nowrap; }

.bands { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.bands caption { text-align: left; padding-bottom: 8px; font-size: .8125rem; color: var(--fg-3); }
.bands th, .bands td { padding: 9px 0; border-bottom: 1px solid var(--rule); text-align: left; font-weight: 400; vertical-align: baseline; }
.bands thead th { font-size: .8125rem; font-weight: 500; color: var(--fg-3); border-bottom-color: var(--rule-2); }
.bands tbody th { width: 8.5rem; padding-right: 20px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--fg); white-space: nowrap; }
.bands td { color: var(--fg-2); }

/* a quiet notice */
.notice { display: grid; gap: 6px; max-width: 46em; padding: 16px 18px; border-radius: var(--radius); background: var(--bg-2); font-size: .9375rem; line-height: 1.5; color: var(--fg-2); }
.notice b { color: var(--fg); font-weight: 600; }

/* download */
.dl { display: grid; gap: 16px; justify-items: start; max-width: 40em; padding: clamp(22px, 3vw, 32px); border-radius: 16px; background: var(--bg-2); }
.dl-title { font-size: 1.375rem; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; color: var(--fg); }
.steps { border-top: 1px solid var(--rule); counter-reset: step; }
.steps li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0 12px; padding-block: 14px; border-bottom: 1px solid var(--rule); font-size: .9375rem; line-height: 1.5; color: var(--fg-2); counter-increment: step; }
.steps li::before { content: counter(step); font-size: .9375rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--fg-3); }
.steps b { display: block; color: var(--fg); font-weight: 600; }
.release-notes { display: grid; gap: 6px; font-size: .9375rem; line-height: 1.5; color: var(--fg-2); }
.release-notes li { position: relative; padding-left: 16px; }
.release-notes li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 4px; height: 4px; border-radius: 50%; background: var(--line); }

/* the level scale drawn to scale: one unit of width is one 10-bit code */
.range { padding: 20px 18px 18px; border-radius: var(--radius); background: var(--plate); color: var(--plate-fg-2); box-shadow: inset 0 0 0 1px var(--plate-edge); }
.range-row { display: flex; justify-content: space-between; gap: 12px; font-size: .75rem; line-height: 1.4; font-variant-numeric: tabular-nums; }
.range-row b { font-weight: 500; color: var(--plate-fg); }
.range-row--in { padding-left: 6.256%; padding-right: 8.113%; }
.range-bar { position: relative; display: flex; height: 34px; margin-block: 8px; border: 1px solid var(--plate-hatch); }
.range-bar > i { display: block; height: 100%; }
.range-bar .under { width: 6.256%; }
.range-bar .ramp { width: 85.631%; background: linear-gradient(to right, var(--signal-black), var(--signal-white)); }
.range-bar .over { width: 8.113%; }
.range-bar .under, .range-bar .over { background: repeating-linear-gradient(135deg, var(--plate-hatch) 0 1px, transparent 1px 5px); }
.range-bar::before, .range-bar::after { content: ""; position: absolute; top: -7px; bottom: -7px; border-left: 1px dashed var(--limit); }
.range-bar::before { left: .391%; }
.range-bar::after { left: 99.609%; }
.range-key { margin-top: 12px; font-size: .75rem; line-height: 1.5; color: var(--plate-fg-2); }
.range-key i { display: inline-block; width: 0; height: 10px; margin-right: 8px; border-left: 1px dashed var(--limit); vertical-align: -1px; }

/* the comparison matrix and the timing table */
.acc-grid { display: grid; gap: 44px 56px; }
.acc-grid > * { min-width: 0; }
.matrix-fig { display: grid; gap: 14px; justify-items: start; align-content: start; }   /* beside a taller table its parts stay together */
.matrix {
  /* one square per comparison; the page gives the numbers of columns and rows */
  width: calc(var(--cols) * 20px); height: calc(var(--rows) * 20px);
  background: conic-gradient(from 90deg at 10px 10px, var(--bar) 90deg, transparent 0) -10px -10px / 20px 20px;
  background-clip: content-box;
}
.matrix-wrap { display: grid; grid-template-columns: auto auto; gap: 6px 10px; align-items: start; justify-content: start; }
.matrix-wrap .ax-x { grid-column: 1; font-size: .75rem; line-height: 1.4; color: var(--fg-3); }
.matrix-wrap .ax-y { grid-column: 2; grid-row: 2; font-size: .75rem; line-height: 1.4; color: var(--fg-3); writing-mode: vertical-rl; }
.matrix-wrap .matrix { grid-column: 1; grid-row: 2; overflow: hidden; }
.big { font-size: clamp(2.6rem, 5vw, 3.5rem); font-weight: 600; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; color: var(--fg); }
.big small { margin-left: 10px; font-size: .875rem; font-weight: 400; letter-spacing: 0; color: var(--fg-3); }
.timing { width: 100%; border-collapse: collapse; }
.timing caption { text-align: left; padding-bottom: 12px; font-size: 1rem; font-weight: 600; letter-spacing: -.01em; color: var(--fg); }
.timing th, .timing td { padding: 11px 0; border-bottom: 1px solid var(--rule); text-align: left; font-weight: 400; vertical-align: middle; }
.timing thead th { font-size: .8125rem; font-weight: 500; color: var(--fg-3); border-bottom-color: var(--rule-2); vertical-align: bottom; }
.timing tbody th { padding-right: 16px; font-size: .9375rem; line-height: 1.35; color: var(--fg); }
.timing .ms { width: 5.5rem; padding-left: 16px; font-size: .9375rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--fg); text-align: right; white-space: nowrap; }
.timing thead .ms { font-size: .8125rem; color: var(--fg-3); }
.timing .plot { width: 30%; }
.axis { display: flex; justify-content: space-between; font-size: .75rem; line-height: 1.5; font-weight: 400; font-variant-numeric: tabular-nums; color: var(--fg-3); }
.track {
  height: 14px;
  background:
    linear-gradient(var(--rule-2), var(--rule-2)) right / 1px 100% no-repeat,
    repeating-linear-gradient(to right, var(--rule-2) 0 1px, transparent 1px calc(100% / 3));
}
.track i { display: block; height: 4px; border-radius: 2px; background: var(--bar); width: calc(var(--v) / 3 * 100%); transform: translateY(5px); }

@media (min-width: 640px) {
  .facts--wide > div { grid-template-columns: 10.5rem minmax(0, 1fr); }
  .timing tbody th { white-space: nowrap; }
  .timing .plot { width: 42%; }
}
@media (min-width: 900px) {
  .hero-top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cols--wide-left { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .acc-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* ------------------------------------------------------------------
   Motion
------------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
