/* Open-Vision-Banana project page.
   The palette is taken from the encodings themselves: the ground is the shadow side of a normal map,
   --flat is the colour of a surface facing the camera, and the only warm colour is the banana. */
:root {
  --ink: #0c0d1a;                      /* page ground */
  --wall: #14152a;                     /* panels and picture mats */
  --wall-2: #1a1c36;
  --line: rgba(160, 165, 255, .16);
  --line-strong: rgba(160, 165, 255, .34);
  --paper: #efeef8;                    /* text */
  --dim: #a6a8c6;
  --faint: #8386aa;
  --banana: #f5c63a;
  --flat: #8080ff;                     /* normal (0, 0, 1) */
  --warn: #ff8a65;
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 44px);
  --r-pic: 12px;
  --r-ui: 9px;
  --ramp: linear-gradient(90deg, #000 0%, #f00 14.29%, #ff0 28.57%, #0f0 42.86%, #0ff 57.14%, #00f 71.43%, #f0f 85.71%, #fff 100%);
  --ramp-v: linear-gradient(180deg, #000 0%, #f00 14.29%, #ff0 28.57%, #0f0 42.86%, #0ff 57.14%, #00f 71.43%, #f0f 85.71%, #fff 100%);
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scrollbar-color: rgba(160, 165, 255, .34) transparent; scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--ink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; color: var(--paper); font-family: var(--font); font-size: 17px; line-height: 1.6;
  font-optical-sizing: auto; font-kerning: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; overflow-wrap: break-word;
}
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--line-strong); transition: text-decoration-color .2s, color .2s; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, p { margin: 0; }
/* Headings keep the face's own spacing: the display cut is already tight, so no negative tracking beyond a hair. */
h1, h2, h3 { font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
code, pre { font-family: var(--mono); font-size: .86em; font-variant-ligatures: none; }
sup, sub { line-height: 0; font-size: .72em; }
:focus-visible { outline: 2px solid var(--banana); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--flat); color: #fff; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--banana); color: #15130a; padding: 8px 14px; border-radius: var(--r-ui); font-weight: 600; }
.skip:focus { top: 12px; }

/* scroll depth, painted with the depth ramp */
.depthbar { position: fixed; inset: 0 0 auto; height: 3px; z-index: 20; background: var(--ramp); clip-path: inset(0 calc(100% - var(--p, 0%)) 0 0); pointer-events: none; }

/* nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 10; height: 64px; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: rgba(12, 13, 26, .82); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; text-decoration: none; white-space: nowrap; flex: none; }
.brand img { flex: none; }
.nav nav { display: flex; align-items: center; gap: clamp(12px, 1.9vw, 26px); font-size: 15px; white-space: nowrap; min-width: 0; }
.nav nav a { text-decoration: none; color: var(--dim); }
.nav nav a:hover, .nav nav a.on { color: var(--paper); }
.nav nav a.on { text-decoration: underline; text-decoration-color: var(--banana); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav .out { color: var(--paper); border: 1px solid var(--line-strong); padding: 6px 14px; border-radius: var(--r-ui); }
.nav .out:hover { border-color: var(--paper); }

/* shared text styles */
.note { font-size: 15px; color: var(--banana); font-weight: 600; }
.body { color: var(--dim); font-size: 18px; max-width: 34em; margin-top: 18px; }
.body.wide { max-width: 46em; }
.body code { color: var(--paper); }
.body a { color: var(--paper); }
.fine { color: var(--faint); font-size: 14px; line-height: 1.6; margin-top: 16px; max-width: 46em; }
.fine code { color: var(--dim); }
.fine a { color: var(--dim); }

.btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: var(--r-ui); text-decoration: none;
  font-size: 15.5px; font-weight: 600; line-height: 1.25; border: 1px solid var(--line-strong); color: var(--paper); background: transparent;
  transition: border-color .2s, background .2s, color .2s;
}
.btn:hover { border-color: var(--paper); }
.btn.primary { background: var(--banana); color: #15130a; border-color: var(--banana); }
.btn.primary:hover { background: #ffd95e; border-color: #ffd95e; }

/* segmented control (tasks, views, table tabs) */
.seg { display: inline-flex; flex-wrap: wrap; padding: 4px; gap: 2px; border: 1px solid var(--line); border-radius: calc(var(--r-ui) + 4px); background: var(--wall); max-width: 100%; }
.seg:empty { display: none; }
.seg button {
  font: inherit; font-size: 14.5px; font-weight: 600; line-height: 1.3; border: 0; background: transparent; color: var(--dim);
  padding: 8px 13px; border-radius: var(--r-ui); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s;
}
.seg button:hover:not(:disabled) { color: var(--paper); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.seg button:disabled { opacity: .45; cursor: default; }
.seg button.extra::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--banana); vertical-align: .08em; }

/* hero: the title, centred */
.hero { max-width: 1120px; margin: 0 auto; padding: clamp(118px, 17vh, 184px) var(--gutter) 0; text-align: center; }
.hero h1 {
  font-size: clamp(40px, 7.1vw, 98px); line-height: 1.04; letter-spacing: -0.012em; font-weight: 800; margin-top: 14px;
  /* room for descenders: the gradient is clipped to the glyphs, so the box must contain them */
  padding: .04em 0 .12em; margin-bottom: -.12em;
  /* lit by the same light as the relit cases: --lx / --ly are set from app.js, in px from the headline's corner */
  background: radial-gradient(circle max(900px, 88vmax) at var(--lx, 80%) var(--ly, -40%), #fffaf0 0%, #ffe7ad 20%, #e4e1f7 55%, #9a9de0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.lede { font-size: clamp(18px, 1.5vw, 21px); color: var(--dim); margin: 24px auto 0; max-width: 39em; }
.lede strong { color: var(--paper); font-weight: 650; }
.lede a { color: var(--paper); }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 30px; }
.disclaimer { margin: 24px auto 0; color: var(--faint); font-size: 13.5px; line-height: 1.6; max-width: 54em; }

/* the selected cases: one task at a time, three pictures to a row */
.block.cases { padding-top: clamp(44px, 6vw, 72px); }
.cases-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.cases-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.seg[hidden] { display: none; }
.what { margin-top: 16px; color: var(--dim); font-size: 16px; line-height: 1.5; max-width: 60em; }
.what b { color: var(--paper); font-weight: 650; }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.case { position: relative; margin: 0; aspect-ratio: 1; border-radius: var(--r-pic); overflow: hidden; background: var(--wall); box-shadow: 0 0 0 1px var(--line); }
.case > .scanner, .case > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.case > canvas { display: none; }
.case[data-view="relit"] > canvas, .case[data-view="cloud"] > canvas { display: block; }
.case[data-view="relit"] > .scanner, .case[data-view="cloud"] > .scanner { display: none; }
.case[data-view="input"] .over, .case[data-view="input"] .handle { display: none; }
.case canvas.relit { cursor: crosshair; touch-action: pan-y; }
.case canvas.cloud { cursor: grab; touch-action: pan-y; background: radial-gradient(circle at 50% 42%, #1c1e3a, var(--ink) 72%); }
.case canvas.cloud:active { cursor: grabbing; }
.scanner { user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: ew-resize; }
.scanner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.scanner .over { clip-path: inset(0 0 0 var(--x, 50%)); }
.handle { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 2px; margin-left: -1px; background: var(--banana); }
.handle span { position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: var(--banana); box-shadow: 0 4px 18px rgba(0, 0, 0, .45); }
.handle span::before, .handle span::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 5px solid transparent; margin-top: -5px; }
.handle span::before { left: 5px; border-right-color: #15130a; }
.handle span::after { right: 5px; border-left-color: #15130a; }
.tag { position: absolute; left: 12px; bottom: 12px; font-size: 13px; font-weight: 600; line-height: 1.3; padding: 4px 10px; border-radius: 6px; white-space: nowrap; pointer-events: none; color: var(--paper); background: rgba(12, 13, 26, .74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-variant-numeric: tabular-nums; }
.tag.flag { color: var(--warn); }
.cases > .fine { max-width: none; margin-top: 14px; }

/* one entrance, on load */
@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise .8s var(--ease) both; }
  .hero > :nth-child(2) { animation-delay: .06s; }
  .hero > :nth-child(3) { animation-delay: .14s; }
  .hero > :nth-child(4) { animation-delay: .2s; }
  .hero > :nth-child(5) { animation-delay: .26s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* sections */
.exhibit, .block { max-width: var(--wrap); margin: 0 auto; padding: clamp(80px, 10vw, 136px) var(--gutter) 0; }
.exhibit { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 76px); align-items: start; }
.rail { min-width: 0; }
h2 { font-size: clamp(30px, 3.5vw, 48px); line-height: 1.1; letter-spacing: -0.01em; padding-bottom: .06em; }
h3 { font-size: 21px; line-height: 1.25; }
h3.sub { margin-top: 30px; font-size: 18px; font-weight: 600; color: var(--dim); }

/* overview */
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.4vw, 48px); margin-top: 34px; }
.cols3 > div { border-top: 1px solid var(--line-strong); padding-top: 20px; }
.cols3 p { margin-top: 10px; color: var(--dim); font-size: 16px; }

/* the pipeline: five steps along the depth ramp */
.flow { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: step; position: relative; }
.flow::before, .flow::after { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 2px; border-radius: 1px; }
.flow::before { background: var(--line); }
.flow::after { background: var(--ramp); clip-path: inset(0 100% 0 0); transition: clip-path 2.2s var(--ease); }
.flow.in::after { clip-path: inset(0); }
.flow li { position: relative; padding-top: 46px; counter-increment: step; min-width: 0; }
.flow li::before {
  content: counter(step); position: absolute; top: 0; left: 0; z-index: 1; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--mono); font-size: 13px; line-height: 1; color: var(--dim);
  background: var(--ink); border: 1.5px solid var(--line-strong); transition: border-color .4s, color .4s, background .4s;
}
.flow.in li::before { border-color: var(--paper); color: var(--paper); }
.flow.in li.key::before { background: var(--banana); border-color: var(--banana); color: #15130a; }
.flow.in li:nth-child(2)::before { transition-delay: .45s; } .flow.in li:nth-child(3)::before { transition-delay: .9s; }
.flow.in li:nth-child(4)::before { transition-delay: 1.35s; } .flow.in li:nth-child(5)::before { transition-delay: 1.8s; }
.flow img, .flow .vis { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-ui); background: var(--wall); box-shadow: 0 0 0 1px var(--line); }
.flow b { display: block; margin-top: 14px; font-size: 18px; font-weight: 650; line-height: 1.3; }
.flow span { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: var(--dim); }
.flow small { display: block; margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--faint); }
.flow .vis { display: grid; place-items: center; overflow: hidden; }
.flow .core { position: relative; background: radial-gradient(circle at 50% 50%, rgba(245, 198, 58, .22), transparent 62%), var(--wall); box-shadow: 0 0 0 1px rgba(245, 198, 58, .5); }
.flow .core i { position: absolute; width: 34%; aspect-ratio: 1; border-radius: 22%; border: 1.5px solid var(--banana); opacity: .9; }
.flow .core i:nth-child(2) { width: 52%; opacity: .45; } .flow .core i:nth-child(3) { width: 70%; opacity: .2; }
.flow .ramp { background: var(--ramp); }
.flow .score code { font-size: clamp(11.5px, 1.05vw, 14.5px); line-height: 1.75; color: var(--paper); text-align: left; white-space: nowrap; }
.caption { margin-top: 28px; }

/* method */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 18px; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.panel { background: var(--wall); border: 1px solid var(--line); border-radius: var(--r-pic); padding: clamp(20px, 3vw, 34px); min-width: 0; }
.panel h3 { margin-bottom: 22px; }
.panel.slim { padding: clamp(18px, 2.2vw, 26px); }
.panel.slim h3 { margin: 18px 0 0; font-size: 19px; }
.panel.slim .fine { margin-top: 8px; }
.glyph { width: 120px; height: 72px; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
.swatch { min-height: 160px; border-radius: var(--r-ui); display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 16px 18px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.swatch b { font-size: 38px; font-weight: 750; line-height: 1.15; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .65); font-variant-numeric: tabular-nums; }
.swatch span { font-family: var(--mono); font-size: 13px; line-height: 1.45; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 18px 0 10px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--line-strong); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line-strong); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--banana); border: 3px solid var(--wall); box-shadow: 0 0 0 1px var(--banana); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--banana); border: 3px solid var(--wall); box-shadow: 0 0 0 1px var(--banana); }
.cube { position: relative; height: 14px; border-radius: 4px; background: var(--ramp); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.cube i { position: absolute; top: -5px; width: 4px; height: 24px; margin-left: -2px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 2px var(--wall); }
.ticks { display: flex; justify-content: space-between; gap: 4px; font-size: 12.5px; line-height: 1.3; color: var(--faint); margin-top: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
#sphere { width: min(100%, 250px); aspect-ratio: 1; margin: 0 auto; cursor: crosshair; touch-action: none; }
.vec { text-align: center; font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--dim); margin-top: 16px; min-height: 2.9em; }
.chip { display: inline-block; width: .8em; height: .8em; border-radius: 2px; background: var(--flat); vertical-align: -.05em; }
.recipe { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 76px); margin-top: clamp(44px, 6vw, 72px); align-items: start; }
.recipe .fine { margin-top: 10px; }
table { border-collapse: collapse; width: 100%; }
.kv td { padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15.5px; line-height: 1.5; }
.kv tr:first-child td { border-top: 1px solid var(--line); }
.kv td:first-child { color: var(--faint); width: 26%; padding-right: 16px; white-space: nowrap; }
.kv code { color: var(--banana); }

/* results: one row per benchmark, the axis runs from 0 to the paper's score */
.chart { margin-top: 40px; border-top: 1px solid var(--line); }
.chart .row { display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(0, 3fr) minmax(128px, auto); gap: clamp(14px, 3vw, 40px); align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.chart .name { min-width: 0; }
.chart .name b { display: block; font-size: 18px; font-weight: 650; line-height: 1.3; }
.chart .name span { display: block; font-size: 13.5px; line-height: 1.45; color: var(--faint); }
.chart .track { position: relative; height: 28px; }
.chart .track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line-strong); }
.chart .track::after { content: ""; position: absolute; right: 0; top: 4px; bottom: 4px; width: 2px; background: var(--flat); }           /* the paper */
.chart .gain { position: absolute; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: var(--banana); left: var(--from); width: 0; transition: width 1.2s var(--ease); }
.chart.in .gain { width: calc(var(--to) - var(--from)); }
.chart .dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; }
.chart .dot.base { left: var(--from); background: var(--ink); border: 2px solid var(--dim); }
.chart .dot.ours { left: var(--from); background: var(--banana); box-shadow: 0 0 0 3px var(--ink), 0 0 18px rgba(245, 198, 58, .55); transition: left 1.2s var(--ease); }
.chart.in .dot.ours { left: var(--to); }
.chart .val { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.3; }
.chart .val b { font-size: 26px; font-weight: 750; }
.chart .val span { font-size: 14px; color: var(--faint); }
.chart .val small { display: block; font-size: 13px; color: var(--dim); }
.chart .key { display: flex; flex-wrap: wrap; gap: 8px 26px; padding: 14px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--dim); }
.chart .key span { display: inline-flex; align-items: center; gap: 8px; }
.chart .key i { display: inline-block; flex: none; }
.k-base { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--dim); }
.k-ours { width: 26px; height: 6px; border-radius: 3px; background: var(--banana); }
.k-paper { width: 2px; height: 16px; background: var(--flat); }

.tables { margin-top: clamp(44px, 6vw, 72px); }
.tables-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.table-wrap { margin-top: 18px; overflow-x: auto; scrollbar-width: thin; border: 1px solid var(--line); border-radius: var(--r-pic); background: var(--wall); -webkit-overflow-scrolling: touch; }
.data { font-size: 15px; line-height: 1.4; }
.data th, .data td { padding: 11px 16px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.data th { font-size: 13px; font-weight: 600; color: var(--faint); background: var(--wall-2); }
.data th:first-child, .data td:first-child { text-align: left; }
.data td:first-child { white-space: normal; min-width: 220px; }
.data tbody tr:last-child td { border-bottom: 0; }
.data td:first-child span { display: flex; align-items: center; gap: 10px; }
.data td:first-child i { flex: none; display: inline-block; }
.data td:first-child em { font-style: normal; font-size: 12.5px; color: var(--banana); }
.data tr.base td, .data tr.paper td { color: var(--dim); }
.data tr.ours td:first-child { color: var(--paper); font-weight: 600; }
.data tr.ours i { width: 10px; height: 10px; border-radius: 50%; background: var(--banana); }
.data tr.base i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--dim); }
.data tr.paper i { width: 2px; height: 14px; margin: 0 4px; background: var(--flat); }
.data td.best { color: var(--banana); font-weight: 700; }
.data td.na { color: var(--faint); }

/* code */
.codebox { position: relative; min-width: 0; }
pre { margin: 0; padding: 48px 24px 22px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; scrollbar-width: thin; border: 1px solid var(--line); border-radius: var(--r-pic); background: var(--wall); color: var(--paper); font-size: 13.5px; line-height: 1.7; tab-size: 2; }
pre code { font-size: inherit; }
pre .c { color: var(--faint); }
.copy {
  position: absolute; top: 10px; right: 10px; z-index: 1; font: inherit; font-size: 13px; font-weight: 600; line-height: 1.3; cursor: pointer;
  padding: 5px 12px; border-radius: 7px; border: 1px solid var(--line-strong); background: var(--ink); color: var(--dim); transition: color .2s, border-color .2s;
}
.copy:hover { color: var(--paper); border-color: var(--paper); }
.copy.done { color: var(--banana); border-color: var(--banana); }

#cite { padding-bottom: clamp(64px, 8vw, 110px); }

.foot { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) 56px; color: var(--faint); font-size: 13.5px; }
.foot::before { content: ""; display: block; border-top: 1px solid var(--line); margin-bottom: 28px; }
.foot .foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.foot-links { display: inline-flex; flex-wrap: wrap; gap: 6px 22px; color: var(--dim); }

@media (max-width: 1000px) {
  .nav nav a:not(.out) { display: none; }
}
@media (max-width: 960px) {
  .exhibit, .duo, .recipe { grid-template-columns: minmax(0, 1fr); }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cols3, .trio { grid-template-columns: minmax(0, 1fr); }
  .panel.slim { display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 20px; align-items: start; }
  .panel.slim .glyph { grid-row: 1 / 3; }
  .panel.slim h3 { margin-top: 0; }
  .chart .row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 10px; }
  .chart .track { grid-column: 1 / -1; grid-row: 2; }
  /* the five steps turn into a vertical run */
  .flow { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .flow::before, .flow::after { left: 13px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .flow::after { background: var(--ramp-v); clip-path: inset(0 0 100% 0); }
  .flow li { padding: 0 0 0 48px; display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .flow img, .flow .vis { grid-row: 1 / 4; }
  .flow b { margin-top: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .seg button { padding: 8px 10px; font-size: 14px; }
  .brand { font-size: 16px; }
  .nav .out { padding: 6px 10px; font-size: 14px; }
  .panel.slim { grid-template-columns: 84px minmax(0, 1fr); column-gap: 14px; }
  .panel.slim .glyph { width: 84px; height: auto; }
  .flow li { grid-template-columns: 76px minmax(0, 1fr); column-gap: 12px; }
  .kv td:first-child { white-space: normal; width: 34%; }
  pre { padding: 46px 16px 18px; font-size: 12.5px; }
  .data th, .data td { padding: 10px 12px; }
  .data td:first-child { min-width: 150px; }
  .case-grid { gap: 10px; }
  .handle span { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
  .tag { left: 8px; bottom: 8px; font-size: 12px; padding: 3px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chart .gain, .chart .dot.ours, .flow::after, .flow li::before { transition: none; }
}
