/* FlowRDM project page. The look follows the paper's figures: white ground, hairline rules,
   coral for FlowRDM, a deep-teal ramp for the baselines. One typeface, self-hosted. */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url(../fonts/instrument-sans-latin-standard-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url(../fonts/instrument-sans-latin-ext-standard-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #ffffff;
  --ink: #141414;
  --graphite: #6b6b6b;
  --rule: #c4c4c4;
  --hair: #e6e6e6;
  --plate: #f2f2f2;
  --ours: #e76f51;       /* FlowRDM: rules, lines, large numerals */
  --ours-ink: #bf4a2c;   /* FlowRDM in small text, 4.9:1 on white */
  --art: #00545d;
  --fpo: #1c767f;
  --grpo: #4f969e;
  --nft: #7cb6bd;
  --ppo: #8a6fbf;
  --font: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 4.4vw, 64px);
  --gap: clamp(14px, 1.9vw, 28px);
  --max: 1320px;
  --mast: 56px;
  --line: 1.5px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--mast) + 20px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font);
  font-synthesis: none;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: #f7d9cf; color: var(--ink); }
h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, canvas, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
b { font-weight: 600; }
.nb { white-space: nowrap; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
sup { font-size: 0.7em; line-height: 0; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; font-weight: 500; text-decoration: none; }
.skip:focus { top: 8px; }

/* ---------------------------------------------------------------- running head */
.mast { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: var(--line) solid var(--rule); }
.mast__in { display: flex; align-items: stretch; gap: clamp(16px, 3vw, 40px); height: var(--mast); }
.mast__name { display: flex; align-items: center; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; flex: none; }
.mast__nav { position: relative; display: flex; align-items: stretch; gap: clamp(14px, 2vw, 28px); margin-left: auto; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mast__nav::-webkit-scrollbar { display: none; }
.mast__nav a { display: flex; align-items: center; flex: none; font-size: 14.5px; font-weight: 500; color: var(--graphite); text-decoration: none; white-space: nowrap; transition: color 0.2s; }
.mast__nav a:hover, .mast__nav a[aria-current] { color: var(--ink); }
/* the row scrolls sideways and would cut a ring, so its links show focus with a line */
.mast__nav a:focus-visible { outline: 0; color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.4em; }
.mast__mark { position: absolute; left: 0; bottom: 0; height: 2.5px; width: 0; background: var(--ours); opacity: 0; transition: transform 0.45s var(--ease), width 0.45s var(--ease), opacity 0.25s; pointer-events: none; }
.mast__motion { display: flex; align-items: center; gap: 8px; flex: none; font-size: 14.5px; font-weight: 500; color: var(--graphite); padding-left: clamp(14px, 2vw, 28px); border-left: 1px solid var(--hair); margin-block: 14px; }
.mast__motion:hover { color: var(--ink); }
.mast__motion .i-play, .is-paused .mast__motion .i-pause { display: none; }
.is-paused .mast__motion .i-play { display: block; }

.noscript { padding-block: 12px; font-size: 14.5px; color: var(--graphite); border-bottom: 1px solid var(--hair); }

/* ---------------------------------------------------------------- first screen */
.hero { padding-top: clamp(28px, 5.5vh, 64px); }
.hero h1 { font-weight: 700; font-size: clamp(2.05rem, 4.4vw, 4.05rem); line-height: 1.03; letter-spacing: -0.03em; text-wrap: balance; }
.hero__by, .hero__authors { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: clamp(14px, 2.2vh, 24px); font-size: 15.5px; color: var(--graphite); }
.hero__by span + span { padding-left: 22px; border-left: 1px solid var(--rule); }
.hero__authors { color: var(--ink); font-weight: 500; font-size: 17px; }
.hero__authors a { text-decoration: none; }
.hero__authors a:hover { text-decoration: underline; }
.hero__lead { margin-top: clamp(16px, 2.6vh, 28px); max-width: 37em; font-weight: 500; font-size: clamp(1.12rem, 1.62vw, 1.45rem); line-height: 1.32; letter-spacing: -0.012em; text-wrap: pretty; }
.hero__links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: clamp(16px, 2.4vh, 26px); }
.link { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; text-decoration: none; padding-bottom: 5px; border-bottom: var(--line) solid var(--ink); transition: border-color 0.2s, color 0.2s; }
.link:hover { border-color: var(--ours); }
.link__meta { font-weight: 400; color: var(--graphite); font-variant-numeric: tabular-nums; }

.slats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 0; margin-top: clamp(22px, 3.6vh, 40px); }
.slat { display: flex; flex-direction: column; text-decoration: none; min-width: 0; }
/* the four parts of the six strips share their rows, so every picture starts on one line whatever the length of the captions */
@supports (grid-template-rows: subgrid) { .slat { display: grid; grid-template-rows: subgrid; grid-row: span 4; } }
.slat__label { font-size: 14.5px; font-weight: 500; line-height: 1.25; padding-bottom: 9px; border-bottom: var(--line) solid var(--rule); transition: border-color 0.25s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slat:hover .slat__label, .slat:focus-visible .slat__label { border-color: var(--ink); }
.slat__media { display: block; margin-top: 14px; background: var(--plate); overflow: hidden; }
.slat__media video, .slat__blank { display: block; width: 100%; height: clamp(180px, 31vh, 420px); object-fit: cover; object-position: var(--pos, 50% 50%); }
.slat--blank .slat__media { display: none; }
.slat__num { margin-top: 12px; font-weight: 700; font-size: clamp(1.45rem, 2.55vw, 2.3rem); line-height: 1; letter-spacing: -0.045em; color: var(--ours); font-variant-numeric: tabular-nums; }
.slat__cap { margin-top: 6px; font-size: 13.5px; line-height: 1.32; color: var(--graphite); text-wrap: balance; }

/* the one authored moment: the numbers settle, then the strips unroll from under them */
@media (prefers-reduced-motion: no-preference) {
  .js .slat__media { animation: unroll 0.9s var(--ease) both; animation-delay: calc(0.3s + var(--i) * 0.07s); }
  .js .slat__num, .js .slat__cap { animation: settle 0.6s var(--ease) both; animation-delay: calc(0.1s + var(--i) * 0.07s); }
}
@keyframes unroll { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: blur(0); } }

/* ---------------------------------------------------------------- the film */
.filmband { padding-top: clamp(56px, 9vh, 104px); }
.film { position: relative; background: var(--plate); box-shadow: 0 0 0 1px var(--hair); transition: box-shadow 0.2s; }
.film:not(.is-playing) { cursor: pointer; }
.film:not(.is-playing):hover { box-shadow: 0 0 0 1px var(--ink); }
.film video { width: 100%; aspect-ratio: 16 / 9; background: #fff; }
.film__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; display: flex; align-items: center; gap: 12px; padding: 13px 18px 13px 14px; background: var(--ink); color: #fff; font-weight: 600; font-size: 16px; transition: background 0.2s; }
.film__icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ours); color: #fff; }
.film__icon svg { margin-left: 2px; }
.film__meta { font-weight: 400; color: rgba(255, 255, 255, 0.72); font-variant-numeric: tabular-nums; }
.film.is-playing .film__play { display: none; }

/* ---------------------------------------------------------------- chapters */
.chapter { padding-top: clamp(64px, 11vh, 128px); }
.chapter__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; padding-top: 16px; border-top: var(--line) solid var(--rule); }
.chapter__head h2 { font-weight: 700; font-size: clamp(1.75rem, 3.3vw, 2.7rem); line-height: 1.05; letter-spacing: -0.03em; }
.chapter__meta { font-size: 15.5px; color: var(--graphite); }
.claim { margin-top: clamp(20px, 3vh, 32px); max-width: 31em; font-weight: 500; font-size: clamp(1.22rem, 2.05vw, 1.72rem); line-height: 1.24; letter-spacing: -0.018em; text-wrap: pretty; }
.text { margin-top: 16px; max-width: 34em; text-wrap: pretty; }
.chapter__head + .text { margin-top: clamp(20px, 3vh, 32px); }
.abs { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px var(--gap); padding-top: 16px; border-top: var(--line) solid var(--rule); }
.abs h2 { font-weight: 700; font-size: clamp(1.75rem, 3.3vw, 2.7rem); line-height: 1.05; letter-spacing: -0.03em; }
.abstract { max-width: 38em; padding-top: 0.5em; font-size: clamp(1.06rem, 1.3vw, 1.2rem); line-height: 1.56; text-wrap: pretty; }

.block { margin-top: clamp(40px, 6.5vh, 72px); }
.block__title { font-weight: 500; font-size: clamp(1.05rem, 1.45vw, 1.25rem); line-height: 1.3; letter-spacing: -0.012em; margin-bottom: clamp(16px, 2.4vh, 24px); max-width: 44em; text-wrap: balance; }
.block__note, .plate__note { margin-top: 12px; font-size: 14px; line-height: 1.42; color: var(--graphite); max-width: 36em; text-wrap: pretty; }
.block__note--keys { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.block__note + .block__note { margin-top: 6px; }
.block--scenes > .block__note--keys { margin-top: 0; margin-bottom: 20px; max-width: none; }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--7 { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 18px); align-items: end; }

/* a plate: its name on a rule, the picture below */
.plate { min-width: 0; }
.plate__label { font-size: 14.5px; font-weight: 500; line-height: 1.25; padding-bottom: 9px; margin-bottom: 10px; border-bottom: var(--line) solid var(--rule); }
.plate--base .plate__label { color: var(--graphite); }
.plate--ours .plate__label, .plate__label--ours { color: var(--ours-ink); font-weight: 700; border-color: var(--ours); }
.plate__media { position: relative; background: var(--plate); overflow: hidden; }
.plate__media video, .plate__media img { width: 100%; }
.plate--hair .plate__media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(20, 20, 20, 0.1); pointer-events: none; }
.plate__tag { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 6px 9px 7px; background: rgba(255, 255, 255, 0.94); font-size: 13.5px; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; }
.plate__tag > span { font-weight: 400; color: var(--graphite); }
.plate__media [data-at] { transition: opacity 0.2s; }
.plate__media .is-wait { opacity: 0; }
/* the ring and the two names of the paper's first figure, on the frame at which the first driving clip stands still */
.mark { position: absolute; z-index: 2; padding: 4px 8px 5px; background: rgba(255, 255, 255, 0.96); font-size: 13.5px; font-weight: 700; line-height: 1.15; white-space: nowrap; }
.mark--ours { color: var(--ours-ink); }
.mark--ring { width: 3.1%; aspect-ratio: 1; padding: 0; background: none; border-radius: 50%; box-shadow: inset 0 0 0 2.5px #fff, 0 0 0 1.5px rgba(20, 20, 20, 0.55); transform: translate(-50%, -50%); }
.mark--mid { transform: translateY(-50%); }
@media (max-width: 1040px) { .mark { display: none; } }
.plate--ours .plate__tag { color: var(--ours-ink); }
.plate__note { font-variant-numeric: tabular-nums; }
.plate figure, .plate .plate__note { margin-top: 10px; }

/* ---------------------------------------------------------------- background */
.path { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.path__num { font-weight: 700; font-size: clamp(2.4rem, 4.8vw, 4rem); line-height: 0.9; letter-spacing: -0.055em; font-variant-numeric: tabular-nums; margin-left: -0.04em; padding-top: 6px; }
.approaches + .text { margin-top: clamp(20px, 3vh, 32px); }
.sk { position: relative; aspect-ratio: 816 / 440; }
.sk svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sk__v { position: absolute; transform: translateY(-50%); font-weight: 700; font-size: 15px; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sk__v.up { color: var(--ours-ink); }
.sk__v.down { color: var(--fpo); }
.approaches .plate__media { background: none; overflow: visible; }

/* ---------------------------------------------------------------- method */
.panels { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.98fr) minmax(0, 1.12fr); gap: clamp(20px, 3vw, 44px); margin-top: clamp(32px, 5vh, 56px); }
.panel { min-width: 0; display: flex; flex-direction: column; }
.panel__title { font-size: 14.5px; font-weight: 500; line-height: 1.25; padding-bottom: 9px; border-bottom: var(--line) solid var(--rule); }
.panel__title b { font-weight: 700; color: var(--ours-ink); margin-right: 0.6em; }
.panel__prompt { margin-top: 12px; font-size: 14px; }
.panel__prompt > span { color: var(--graphite); margin-left: 1em; }
.panel__text { margin-top: 16px; font-size: 15.5px; line-height: 1.5; text-wrap: pretty; }
.panel .panel__text + .panel__text { margin-top: 0.7em; }
.group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; margin-top: 10px; }
.group__s img { width: 100%; box-shadow: inset 0 0 0 1px rgba(20, 20, 20, 0.1); }
.group__s figcaption { margin-top: 6px; font-weight: 700; font-size: 1.32rem; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.group__s .up { color: var(--ours-ink); }
.group__s .down { color: var(--fpo); }
.group__mean { margin-top: 10px; font-size: 14px; color: var(--graphite); }

.match { margin-top: 12px; }
.match__plot { position: relative; aspect-ratio: 5 / 4; border-left: var(--line) solid var(--rule); border-bottom: var(--line) solid var(--rule); touch-action: pan-y; user-select: none; -webkit-user-select: none; overflow: hidden; }
.match__field, .match__arrows { position: absolute; inset: 0; width: 100%; height: 100%; }
.match__s { position: absolute; border-radius: 50%; background-size: cover; background-position: center; box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px rgba(20, 20, 20, 0.28); transform: translate(-50%, -50%); cursor: grab; touch-action: none; }
.match__s:active { cursor: grabbing; }
.match__s:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.match__axis { position: absolute; left: 8px; bottom: 6px; font-size: 12.5px; color: var(--ink); pointer-events: none; }
.match__hint { position: absolute; left: 8px; top: 6px; font-size: 12.5px; color: var(--ink); pointer-events: none; }
.match__hint[hidden] { display: none; }
.match__ctl { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.seg { display: inline-flex; box-shadow: inset 0 0 0 1px var(--rule); }
.seg button { padding: 7px 12px 8px; font-size: 13.5px; font-weight: 500; color: var(--graphite); line-height: 1.2; }
.seg button.is-on { background: var(--ink); color: #fff; }
.match__reset { font-size: 13.5px; font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
.match__reset:disabled { color: var(--rule); text-decoration: none; cursor: default; }

/* the frozen transformer of panel b: the pass runs through the slabs, the two blocks that are read stay filled */
.feat { margin-top: 14px; }
.feat svg { width: 100%; height: auto; overflow: visible; }
.feat text { font-family: var(--font); }
.feat__b { fill: #fff; }
.feat__b.is-tap { fill: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .js .feat__b { animation: pass 5.2s linear infinite; animation-delay: calc(var(--k) * 0.085s); }
  .js .feat__b.is-tap { animation-name: pass-tap; }
  .js.is-paused .feat__b { animation: none; }
}
@keyframes pass { 0%, 3% { fill: #141414; } 9%, 100% { fill: #fff; } }
@keyframes pass-tap { 0%, 86% { fill: #141414; } 94%, 100% { fill: #fff; } }

.formulas { margin-top: clamp(32px, 5vh, 56px); border-top: var(--line) solid var(--rule); border-bottom: 1px solid var(--hair); }
.formulas summary { padding-block: 14px; font-weight: 500; font-size: 15.5px; cursor: pointer; list-style-position: inside; }
.formulas summary:hover { color: var(--ours-ink); }
.formulas[open] { border-bottom: 0; }
.symbols { border-top: 1px solid var(--hair); }
.symbols > div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) minmax(0, 1.25fr); gap: 8px clamp(20px, 3vw, 44px); align-items: center; padding-block: 20px; border-bottom: 1px solid var(--hair); }
.symbols dt { font-weight: 600; font-size: 15.5px; }
.symbols__say { font-size: 15.5px; line-height: 1.48; color: var(--graphite); text-wrap: pretty; }
.symbols__eq { overflow-x: auto; }
.eq { width: calc(var(--w) * 1.72px); max-width: 100%; height: auto; }

.tablewrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.35; font-variant-numeric: tabular-nums; }
.table th, .table td { text-align: left; padding: 10px 20px 10px 0; vertical-align: top; }
.table thead th { font-weight: 500; color: var(--graphite); border-bottom: var(--line) solid var(--rule); padding-top: 0; white-space: nowrap; }
.table tbody th { font-weight: 500; white-space: nowrap; }
.table tbody tr > * { border-bottom: 1px solid var(--hair); }
.table--terms { min-width: 0; max-width: 900px; }
.table--terms tbody th { color: var(--graphite); }
.table--num { max-width: 820px; min-width: 520px; }
.table .se { white-space: nowrap; }
.table .is-ours { color: var(--ours-ink); font-weight: 700; }
.table thead .is-ours { border-color: var(--ours); }

/* ---------------------------------------------------------------- results */
.cmp + .cmp, .pair + .pair, .trio + .trio, .scene + .scene { margin-top: clamp(28px, 4.5vh, 48px); }
.cmp__prompt, .pair__prompt { font-size: 15.5px; line-height: 1.4; }
.cmp__prompt { margin-bottom: 14px; }
.cmp__prompt > span { color: var(--graphite); margin-left: 1.1em; }
.pair__prompt { margin-bottom: 12px; max-width: 44em; text-wrap: pretty; }
.block--cmp .plate__note { margin-top: 8px; font-weight: 600; color: var(--ink); font-size: 14.5px; }
.block--cmp .plate__note > span { font-weight: 400; color: var(--graphite); }
.block--cmp .plate--ours .plate__note { color: var(--ours-ink); }

.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.split--even { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split__side { display: flex; flex-direction: column; gap: clamp(20px, 3.4vh, 36px); }
.split__note { font-size: 15.5px; line-height: 1.45; color: var(--graphite); max-width: 30em; text-wrap: pretty; }
.figure__num { font-weight: 700; font-size: clamp(2.6rem, 5.4vw, 4.5rem); line-height: 0.9; letter-spacing: -0.055em; color: var(--ours); font-variant-numeric: tabular-nums; margin-left: -0.04em; }
.figure__cap { margin-top: 12px; font-size: 16px; line-height: 1.38; color: var(--graphite); max-width: 24em; text-wrap: pretty; }
.figure__cap b { font-weight: 500; color: var(--ink); }
.ba { display: grid; grid-template-columns: repeat(3, max-content); align-items: center; column-gap: clamp(8px, 1.2vw, 16px); row-gap: 10px; }
.ba__a, .ba__b { font-weight: 700; font-size: clamp(2.6rem, 5.4vw, 4.5rem); line-height: 0.9; letter-spacing: -0.055em; font-variant-numeric: tabular-nums; }
.ba__a { grid-column: 1; grid-row: 1; margin-left: -0.04em; }
.ba__b { grid-column: 3; grid-row: 1; color: var(--ours); }
.ba__to { grid-column: 2; grid-row: 1; font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1; color: #9a9a9a; }
.ba__ca, .ba__cb { grid-row: 2; font-size: 14.5px; line-height: 1.3; color: var(--graphite); }
.ba__ca { grid-column: 1; }
.ba__cb { grid-column: 3; color: var(--ours-ink); font-weight: 700; }
.numbox .plate__label { margin-bottom: 22px; }

.chart__plot { position: relative; }
.chart__plot svg { overflow: visible; width: 100%; height: auto; }
.chart text { font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart__key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 2px 0 12px; font-size: 13.5px; font-weight: 500; }
.chart__key span { display: inline-flex; align-items: center; gap: 7px; }
.chart__key i { width: 16px; height: 3px; flex: none; }
.key { display: inline-flex; align-items: center; gap: 8px; }
.key i { width: 14px; height: 14px; flex: none; }

/* one picture per driving scenario: the base policy's camera with both paths, and the top view as a small map inside it */
.drive__map { position: absolute; right: 1.4%; top: 4%; width: 23.15%; background: #0e1114; box-shadow: 0 0 0 2px #fff; }
.drive__map video { width: 100%; }
.drive__map span { position: absolute; left: 0; top: 0; padding: 3px 8px 4px 7px; background: #fff; font-size: 12.5px; font-weight: 500; line-height: 1.2; }

.bars__grid { position: relative; display: grid; grid-template-columns: max-content minmax(0, 1fr) 3.4ch; column-gap: 16px; row-gap: 12px; align-items: center; font-size: 14.5px; padding-block: 6px; }
.bars__name { grid-column: 1; font-weight: 500; }
.bars__name.is-ours, .bars__val.is-ours { font-weight: 700; color: var(--ours-ink); }
.bars__track { grid-column: 2; height: 22px; }
.bars__bar { display: block; height: 100%; }
.bars__bar--ours { background: var(--ours); }
.bars__bar--fpo { background: var(--fpo); }
.bars__bar--grpo { background: var(--grpo); }
.bars__bar--nft { background: var(--nft); }
.bars__bar--grey { background: #cfcfcf; }
.bars__val { grid-column: 3; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.bars__line { grid-column: 2; grid-row: 1 / -1; position: relative; align-self: stretch; pointer-events: none; }
.bars__line::before { content: ""; position: absolute; left: var(--x); top: -6px; bottom: -6px; border-left: 1.5px dashed #8d8d8d; }
.dash { display: inline-block; width: 18px; border-top: 1.5px dashed #8d8d8d; vertical-align: middle; margin-right: 8px; }
/* the leaderboard: one point per entry on a scale from 60 to 68, which the axis prints */
.bars__track--dot { position: relative; }
.bars__track--dot::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid var(--hair); }
.bars__dot { position: absolute; top: 50%; width: 13px; height: 13px; border-radius: 50%; background: #9aa3a7; transform: translate(-50%, -50%); }
.bars__dot--ours { width: 17px; height: 17px; background: var(--ours); }
.bars--lead .bars__grid { grid-template-columns: max-content minmax(0, 1fr) 3.4ch; }
.bars--lead .bars__name { text-align: right; }
.bars__sub { font-weight: 400; color: var(--graphite); margin-left: 0.5em; }
.bars__axis { grid-column: 2; position: relative; height: 24px; margin-top: -4px; border-top: var(--line) solid var(--rule); font-size: 13px; color: var(--graphite); font-variant-numeric: tabular-nums; }
.bars__axis span { position: absolute; top: 6px; transform: translateX(-50%); }

.task__name { font-weight: 600; font-size: 16px; margin-bottom: 12px; }
.task .plate + .plate { margin-top: 16px; }
.split__clip { margin-top: 4px; }

/* ---------------------------------------------------------------- foot */
.bibtex { margin: clamp(20px, 3vh, 32px) 0 0; padding: 18px 20px; background: var(--plate); font: 13.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; }
.copy { font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
.foot { margin-top: clamp(80px, 13vh, 150px); padding-block: 28px clamp(40px, 7vh, 72px); border-top: var(--line) solid var(--rule); font-size: 14px; line-height: 1.5; color: var(--graphite); }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px var(--gap); }
.foot__h { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.foot__note { margin-top: 32px; }

/* ---------------------------------------------------------------- narrower screens */
br.wide { display: none; }
@media (min-width: 1000px) { br.wide { display: inline; } }

@media (max-width: 1080px) {
  .panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel--c { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; column-gap: clamp(20px, 3vw, 44px); align-items: start; }
  .panel--c .panel__title { grid-column: 1 / -1; }
  /* the plot at the left over both rows, the two paragraphs one under the other at the right */
  .panel--c .match { grid-column: 1; grid-row: 2 / span 2; }
  .panel--c .panel__text { grid-column: 2; margin-top: 12px; }
  .symbols > div { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
/* from here down the eight links of the bar need the room of the words "Pause footage" */
@media (max-width: 1180px) {
  .mast__motion-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .mast__motion { position: relative; margin-block: 0; margin-right: -14px; padding-inline: 14px; min-width: 44px; justify-content: center; border-left: 0; }
  .mast__motion::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; border-left: 1px solid var(--hair); }
  .mast__nav { gap: 16px; }
  .mast__nav a { font-size: 14px; }
}
/* below this width the row of links scrolls; its ends fade, so that a cut word reads as more to come */
@media (max-width: 950px) {
  .mast__nav { padding-inline: 12px 28px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 28px), transparent); }
}
@media (max-width: 860px) {
  body { font-size: 1.03rem; }
  .slats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .slat { margin-bottom: 28px; }
  .slat__media video, .slat__blank { height: clamp(180px, 46vw, 340px); }
  .split, .split--even, .abs { grid-template-columns: minmax(0, 1fr); }
  .path { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .abstract { padding-top: 0; }
  .split--even .split__main { order: 2; }
  .grid--7 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot__cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .mast__name { font-size: 17px; }
  .slats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slat__media video, .slat__blank { height: 66vw; }
  .panels { grid-template-columns: minmax(0, 1fr); row-gap: 44px; }
  .panel--c { display: flex; align-items: stretch; }
  .approaches { row-gap: 30px; }
  .panel--c .panel__text { margin-top: 16px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--2 { grid-template-columns: minmax(0, 1fr); }
  .sk__v { font-size: 13.5px; }
  /* on a phone the map goes under the camera picture, and the line on a small clip goes under the clip */
  .drive__map { position: relative; right: auto; top: auto; width: 62%; box-shadow: none; border-top: 3px solid #fff; }
  .plate--drive .plate__media { background: none; }
  /* a taller cut of the camera picture, on the side where the two paths run */
  .plate--drive .plate__media > video { aspect-ratio: 16 / 9; object-fit: cover; object-position: 72% 50%; }
  .runs .plate__media { background: none; }
  .runs .plate__tag { position: static; display: block; max-width: none; padding: 6px 0 0; background: none; font-size: 12.5px; }
  .bars--lead .bars__grid { grid-template-columns: minmax(0, 8.4em) minmax(0, 1fr) 3.4ch; }
  .bars--lead .bars__name { text-align: left; }
  .grid--3.trio, .grid--3.tasks { grid-template-columns: minmax(0, 1fr); }
  .grid--3.runs { gap: 8px; }
  .runs .plate__label { font-size: 13px; }
  .task { padding-top: 4px; }
  .eq { width: calc(var(--w) * 1.5px); }
  .film__play { padding: 10px 14px 10px 10px; font-size: 15px; }
  /* the results table: all five columns on a phone, the standard errors on a line of their own */
  .table--num { min-width: 0; font-size: 14px; }
  .table--num th, .table--num td { padding-right: 12px; }
  .table--num thead th { white-space: normal; }
  .table--num .se { display: block; font-size: 12px; font-weight: 400; color: var(--graphite); }
  @media (max-width: 400px) {
    .table--num { font-size: 13.5px; }
    .table--num th, .table--num td { padding-right: 8px; }
    .table--num th:last-child, .table--num td:last-child { padding-right: 0; }
  }
  /* the terms table: one entry per task, its three choices on three lines */
  .table--terms thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table--terms, .table--terms tbody, .table--terms tr, .table--terms tbody th, .table--terms td { display: block; }
  .table--terms tr { padding-block: 10px; border-bottom: 1px solid var(--hair); }
  .table--terms tbody tr > * { border-bottom: 0; padding: 1px 0; }
  .table--terms tbody th { color: var(--ink); font-weight: 600; padding-bottom: 3px; }
  .table--terms td::before { content: attr(data-l) ": "; color: var(--graphite); }
  .film__meta { display: none; }
  .hero__by span + span { padding-left: 0; border-left: 0; }
  .hero__by { flex-direction: column; }
  .bars__grid { grid-template-columns: minmax(0, 7.4em) minmax(0, 1fr) 3.4ch; column-gap: 10px; font-size: 13.5px; }
}

@media (max-width: 380px) { .hero h1 { font-size: 1.9rem; } }

@media print {
  .mast, .film__play, .mast__motion { display: none; }
  .plate, .chart, .bars, .cmp, .pair, .scene, .task, .table, .symbols > div { break-inside: avoid; }
}
