/* SHAPE project page.
   Layout: one dark band, as tall as the window (title, reel and authors), on a white page; a 740 px text
   column and a 1000 px media column; a thin rule between sections; contents fixed at the left on wide screens.
   Type: Inter (the typeface of the Sharpa preprint template); graphite text.
   Colour: the palette of the paper's figures, one job per hue: orange = human data, blue = robot data,
   purple = discrete tokens, teal = backbone, green = EEF stream / action expert, navy = joint stream.
   Sharpa blue (the accent of sharpa.com) is used for page chrome only: progress bar, markers, numbers. */

@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/InterVariable.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --panel: #f5f5f7;
  --ink: #1d1d1f;
  --text: #3a3a3c;
  --text-2: #6e6e73;
  --text-3: #a1a1a6;
  --line: #e8e8ed;
  --rule: #d2d2d7;
  --dark: #0b0b0c;
  --brand: #0079df;

  --hum: #e08a2c; --hum-ink: #b8661a; --hum-bg: #fdf6ee; --hum-line: #f3d2ae; --hum-soft: #f1c48f;
  --rob: #3a72c4; --rob-ink: #2a5aa0; --rob-bg: #eef4fc; --rob-line: #c6d9f5; --rob-soft: #a9c4ea;
  --tok: #7b4fb0; --tok-ink: #5a3590; --tok-bg: #f4eefa; --tok-line: #d8c4f0;
  --vlm: #3e7d87; --vlm-ink: #2d646d; --vlm-bg: #e6f2f4; --vlm-line: #a8cfd6;
  --eef: #4d8443; --eef-ink: #3d7035; --eef-bg: #eef6ec; --eef-line: #bbdabb;
  --jnt: #34557a; --jnt-ink: #26415e; --jnt-bg: #edf2f7; --jnt-line: #bcccde;
  --base-1: #8e8e93; --base-2: #c7c7cc;

  --radius: 14px;
  --text-col: 740px;
  --media-col: 1000px;
  --nav-h: 64px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --math: "STIX Two Math", "STIXGeneral", "Cambria Math", "Times New Roman", serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 20px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss03"; overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; } /* the width and height attributes only reserve the shape */
a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; transition: text-decoration-color .2s; }
a:hover { text-decoration-color: var(--ink); }
button { font: inherit; color: inherit; }
sub, sup { font-size: .72em; line-height: 0; position: relative; vertical-align: baseline; }
sub { bottom: -.22em; } sup { top: -.42em; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--rob); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--brand); z-index: 130; }

/* ---------------------------------------------------------------- navigation
   Over the first screen: transparent, white type. Below it: white bar, dark type. */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 110; height: var(--nav-h);
  display: flex; align-items: center; gap: 18px; padding: 0 clamp(16px, 3vw, 32px);
  color: #fff; transition: background .25s, color .25s, box-shadow .25s;
}
.nav.scrolled:not(.light) { background: rgba(11, 11, 12, .72); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.nav.light { background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.nav a { text-decoration: none; }
.nav-logo img { height: 19px; width: auto; }
.nav-logo .on-light, .nav.light .nav-logo .on-dark { display: none; }
.nav.light .nav-logo .on-light { display: block; }
.nav-name { font-weight: 650; font-size: 15px; letter-spacing: .08em; padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .28); line-height: 1; }
.nav.light .nav-name { border-left-color: var(--rule); }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; font-weight: 500; }
.nav-links a { opacity: .78; transition: opacity .2s; }
.nav-links a:hover, .nav-links a.on { opacity: 1; }
.nav-tools { display: flex; align-items: center; gap: 12px; margin-left: 8px; }
.lang { appearance: none; border: 1px solid rgba(255, 255, 255, .34); background: none; border-radius: 999px; padding: 6px 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 550; line-height: 1; }
.lang i { width: 1px; height: 11px; background: currentColor; opacity: .35; }
.lang span { opacity: .5; }
.lang span.on { opacity: 1; }
.nav.light .lang { border-color: var(--rule); }
.lang:hover { border-color: currentColor; }

/* ---------------------------------------------------------------- first screen
   The dark band is exactly as tall as the window. It holds two rows, title with reel and below them the
   authors, and the height that they leave free is split 10 : 7 : 13 into the spaces above the title row,
   between the two rows, and below the authors: a third of it lies above the title, and the authors stand a
   little above the middle between the reel and the bottom edge. However wide the window, the content keeps
   to 1280 px in its middle. In a low window the sizes follow the height, so that all of this fits on one
   screen from about 600 px of height (two columns; below 1020 px of width it is one column, and on a phone
   the band is taller than the screen). */
.hero { position: relative; background: var(--dark); color: #f5f5f7; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 72px 72px; -webkit-mask-image: radial-gradient(120% 90% at 70% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(120% 90% at 70% 40%, #000 20%, transparent 75%); }
.hero::after { content: ""; position: absolute; right: -10%; top: -20%; width: 70%; height: 120%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(58, 114, 196, .20), rgba(224, 138, 44, .07) 55%, transparent 72%); }
.hero-in {
  position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; /* title and reel stay close to the middle of a wide window */
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav-h) + var(--gap-y)) clamp(20px, 3.4vw, 44px) var(--gap-y);
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 10fr auto 7fr auto 13fr; /* space, title row, space, authors, space */
  --gap-y: clamp(18px, 3.2vh, 36px); /* the least that each of the three spaces is, where the window leaves no height free */
  --gap-a: clamp(12px, 2.6vh, 22px); --gap-b: clamp(10px, 2.1vh, 18px); --gap-c: clamp(16px, 3.4vh, 30px); /* spaces between the lines of the title block */
}
.hero-main { grid-row: 2; display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); column-gap: clamp(28px, 4.4vw, 64px); align-items: center; }
.hero h1 { margin: 0; font-size: clamp(76px, min(10.4vw, 19vh), 148px); line-height: .9; font-weight: 720; letter-spacing: -.045em; color: #fff; }
.acronym { margin: var(--gap-a) 0 0; font-size: clamp(17px, 1.55vw, 21px); line-height: 1.4; color: rgba(255, 255, 255, .56); font-weight: 450; text-wrap: balance; }
.acronym b { color: #fff; font-weight: 700; }
.tagline { margin: var(--gap-b) 0 0; font-size: clamp(17px, 1.45vw, 19.5px); line-height: 1.5; color: rgba(255, 255, 255, .82); max-width: 31em; text-wrap: pretty; }
.hero-row { margin-top: var(--gap-c); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px;
  font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; color: #fff;
  border: 1px solid rgba(255, 255, 255, .38); background: rgba(255, 255, 255, .04); transition: background .2s, border-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }
.btn.primary { background: #fff; border-color: #fff; color: var(--ink); }
.btn.primary:hover { background: #e8e8ed; border-color: #e8e8ed; }
.btn small { font-size: 12px; font-weight: 500; opacity: .62; display: none; }
.btn.soon { cursor: default; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .78); }
.btn.soon small { display: inline; }
.hero .meta { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .52); }

/* in a low window the reel is no taller than the room that the bar, the authors and the spaces leave */
.hero-media { margin: 0; min-width: 0; width: 100%; max-width: calc((100svh - 300px) * 16 / 9); justify-self: center; }
.hero-media .frame { border-radius: 18px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 34px 90px rgba(0, 0, 0, .6); }
.hero-media video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.reel-toggle { position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(0, 0, 0, .46); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s, background .2s; }
.frame:hover .reel-toggle, .reel-toggle:focus-visible, .frame.is-paused .reel-toggle { opacity: 1; }
.reel-toggle:hover { background: rgba(0, 0, 0, .7); }
.reel-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.reel-toggle .i-play, .is-paused .reel-toggle .i-pause { display: none; }
.is-paused .reel-toggle .i-play { display: block; }
.reel-cap { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13.5px; line-height: 1.3; color: rgba(255, 255, 255, .5); text-align: left; }
.reel-task { color: #fff; font-weight: 620; font-size: 15px; }
.reel-tag { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 13px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .86); font-weight: 500; }
.reel-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rob); flex: none; }
.reel-tag.hum::before { background: var(--hum); }
.reel-tag:empty { display: none; }
.reel-note { position: absolute; left: 12px; bottom: 12px; z-index: 2; padding: 5px 9px; border-radius: 7px; font-size: 12px; font-weight: 600; line-height: 1; color: #fff;
  background: rgba(17, 17, 17, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; }
.reel-note:empty { display: none; } /* main.js writes it, with the speed that the manifest records */
/* Label of the human demonstration that the reel carries in a corner for the tasks learned from it. The picture
   itself is part of the video; main.js lays this box over it and shows it during those cuts. */
#reel { container-type: inline-size; }
.reel-pip { position: absolute; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .35s; }
.reel-pip.on { opacity: 1; }
/* Its labels lie along the bottom: a head camera sees the hands at work in the upper half of the picture. */
.reel-pip .tag, .reel-pip .spd { top: auto; bottom: 7%; padding: .42em .66em; font-size: 11px; font-size: clamp(8.5px, 1.72cqw, 12px); }
.reel-pip .tag { left: 4.5%; }
.reel-pip .spd { right: 4.5%; } /* speed of the demonstration; the rollout around it is faster */
@container (max-width: 480px) { #reel .long { display: none; } } /* narrow reel: short labels, so that they hide less of it */

/* ---------------------------------------------------------------- authors
   Inside the dark band, in the row below the title and the reel, centred across the width. */
.byline { grid-row: 4; margin-top: var(--gap-y); text-align: center; font-size: clamp(15.5px, 1.18vw, 17px); } /* size of the names; the affiliations follow it */
.byline:empty { display: none; }
.js .byline:empty { display: block; min-height: 5.15em; } /* until main.js has filled it, the room of two rows of names and the affiliations is kept, so that the title does not jump */
/* The names stand in two rows: main.js puts a line break after the first half of the list. Where the window
   is too narrow for that (one column), the break is switched off and the names are words of one centred
   paragraph whose lines are balanced: filled line by line, a list of thirteen leaves its last author alone
   on a line at many widths. Two names are kept apart by a space and the margins of both; the paragraph is
   wider by the two margins at the ends of a line, which hold no name. */
.authors { margin: 0 -9px; font-size: 1em; line-height: 1.7; font-weight: 520; color: rgba(255, 255, 255, .94); text-wrap: balance; }
.authors > span { display: inline-block; margin: 0 9px; white-space: nowrap; }
/* A thin line marks the names that lead to a page; not every author has one. The padding makes a name as tall
   as its line to a finger and does not move anything. */
.authors a { text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .36); padding: 4px 0; }
.authors a:hover { text-decoration-color: #fff; }
.authors sup { font-weight: 450; color: rgba(255, 255, 255, .52); margin-left: 1px; }
.affils { margin: 6px 0 0; font-size: max(13.5px, .83em); color: rgba(255, 255, 255, .56); display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; }
.affils > span { text-wrap: balance; } /* a long name that breaks on a narrow screen breaks in the middle */
.affils sup { margin-right: 2px; }
.bynotes { margin: 4px 0 0; font-size: 13px; color: rgba(255, 255, 255, .44); }
.byslot { display: inline-block; margin: 0; padding: 12px 26px; border: 1.5px dashed rgba(255, 255, 255, .24); border-radius: 12px; color: rgba(255, 255, 255, .5); font-size: 14.5px; }
.byslot code { font: 13px var(--mono); color: rgba(255, 255, 255, .74); }

/* ---------------------------------------------------------------- article */
.post { max-width: 1048px; margin: 0 auto; padding: 0 24px 96px; }
.post > hr { border: 0; border-top: 1px solid var(--line); margin: 76px auto 0; max-width: var(--media-col); }
.sec { padding-top: 76px; }
.sec-video { padding-top: 48px; }
.sec > *, .block > * { max-width: var(--text-col); margin-left: auto; margin-right: auto; }
.sec > .wide, .block > .wide { max-width: var(--media-col); }
.sec h2 { margin-top: 0; margin-bottom: 24px; font-size: clamp(27px, 3.1vw, 35px); line-height: 1.17; font-weight: 660; letter-spacing: -.024em; color: var(--ink); text-wrap: balance; }
.sec h3 { margin-top: 0; margin-bottom: 12px; font-size: 21.5px; line-height: 1.3; font-weight: 640; letter-spacing: -.012em; color: var(--ink); text-wrap: balance; }
.sec p { margin-top: 0; margin-bottom: 20px; text-wrap: pretty; }
.sec strong { color: var(--ink); font-weight: 640; }
.kicker { margin-bottom: 10px !important; font-size: 12.5px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.sec > .block { margin-top: 52px; max-width: var(--media-col); } /* its text stays in the text column, its .wide parts use the media column */
.sec > * + .wide, .block > * + .wide, .sec > * + .chart, .block > * + .chart, .sec > * + .paper-fig, .block > * + .paper-fig { margin-top: 30px; }
.sec > .wide + p:not(.cap), .sec > .chart + p, .sec > .paper-fig + p, .block > .wide + p:not(.cap), .block > .stats + p { margin-top: 30px; }
.cap, figcaption { color: var(--text-2); font-size: 14.5px; line-height: 1.5; text-align: center; text-wrap: pretty; }
.sec p.cap { margin-top: 14px; margin-bottom: 0; }
.sec p.cap + p:not(.cap) { margin-top: 30px; }
figure { margin: 0 auto; }
figcaption { margin-top: 12px; }
html[lang="zh"] body { line-height: 1.8; }
html[lang="zh"] .sec h2, html[lang="zh"] .sec h3 { letter-spacing: 0; }
.ph { display: inline-block; text-wrap: balance; } /* a clause of Chinese text that moves to the next line as a whole */
html[lang="zh"] .kicker, html[lang="zh"] .pair-label, html[lang="zh"] .q-k, html[lang="zh"] .toc-h { letter-spacing: .06em; }

/* media frames */
.frame { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; }
.frame video, .frame img { width: 100%; height: 100%; object-fit: cover; }
.frame.lift { box-shadow: 0 8px 34px rgba(0, 0, 0, .13); }
.tag, .spd { position: absolute; z-index: 2; font-size: 12px; font-weight: 600; line-height: 1; padding: 5px 8px; border-radius: 6px; pointer-events: none;
  background: rgba(17, 17, 17, .66); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); white-space: nowrap; }
.tag { left: 8px; top: 8px; }
.spd { right: 8px; top: 8px; font-variant-numeric: tabular-nums; }

/* small labels with a colour key */
.pair-label { display: flex; align-items: center; gap: 8px; margin: 0 0 10px !important; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; color: var(--text-2); }
.pair-label i { width: 8px; height: 8px; border-radius: 2px; background: var(--text-3); flex: none; }
.pair-label.hum, .hum > .dw-head .pair-label { color: var(--hum-ink); } .pair-label.hum i, .hum > .dw-head .pair-label i { background: var(--hum); }
.pair-label.rob, .rob > .dw-head .pair-label { color: var(--rob-ink); } .pair-label.rob i, .rob > .dw-head .pair-label i { background: var(--rob); }
.pair-label.k i { background: var(--ink); }

/* segmented control */
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--panel); gap: 2px; max-width: 100%; }
.seg button { appearance: none; border: 0; background: none; cursor: pointer; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 560; line-height: 1.15; color: var(--text-2); transition: background .2s, color .2s, box-shadow .2s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"], .seg button[aria-current="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .06); }

/* ---------------------------------------------------------------- overview video */
#overview-video { aspect-ratio: 16 / 9; }
#overview-video video, #overview-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.slot { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff; background-size: cover; background-position: center; }
.slot::before { content: ""; position: absolute; inset: 0; background: rgba(11, 11, 12, .62); }
.slot > div { position: relative; display: grid; gap: 12px; justify-items: center; }
.slot .play { width: 68px; height: 68px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .7); display: grid; place-items: center; }
.slot .play svg { width: 24px; height: 24px; fill: #fff; margin-left: 4px; }
.slot b { font-size: 19px; font-weight: 620; }
.slot span { font-size: 14px; color: rgba(255, 255, 255, .7); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }

/* ---------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: 34px; margin-bottom: 34px; }
.sec > .stats { max-width: var(--media-col); }
@media (min-width: 900px) { .stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding: clamp(16px, 2.1vw, 24px) clamp(14px, 1.8vw, 22px); display: grid; gap: 8px; align-content: start; }
.stat + .stat { border-left: 1px solid var(--line); }
@media (max-width: 899px) { .stat:nth-child(odd) { border-left: 0; } .stat:nth-child(n + 3) { border-top: 1px solid var(--line); } .stats.three .stat:last-child { grid-column: 1 / -1; } }
.stat b { font-weight: 380; font-size: clamp(32px, 4vw, 46px); line-height: 1; letter-spacing: -.035em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat b small { font-size: .44em; font-weight: 450; color: var(--text-2); margin-left: 4px; letter-spacing: 0; }
.stat span { color: var(--text-2); font-size: 14px; line-height: 1.45; }

/* ---------------------------------------------------------------- introduction and the three findings
   The introduction is one short paragraph in slightly larger type. The findings follow it at once, as three
   cards: number and heading, the same two settings with one number each, one line that says what the
   numbers compare, two sentences, and a link to the section with the details. */
.sec p.lead { font-size: 18.5px; line-height: 1.62; color: var(--ink); }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.point { border: 1px solid var(--line); border-radius: 20px; padding: 22px 22px 20px; background: #fff; display: flex; flex-direction: column; }
/* the parts of the three cards share their rows, so that they line up when a heading takes one more line */
@supports (grid-template-rows: subgrid) {
  .point { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; align-content: start; }
}
.point h3 { display: grid; gap: 9px; align-content: start; margin-bottom: 18px; font-size: 19.5px; line-height: 1.28; }
.point h3 .n { color: var(--brand); font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .04em; line-height: 1; }
.pt-ev { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 16px; align-content: start; padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--line); }
.sec .pt-ev p { margin: 0; display: grid; gap: 9px; align-content: start; }
/* the setting of a number: blue for robot demonstrations, orange for human ones, as everywhere on the page */
.pt-l { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 620; line-height: 1.2; color: var(--text-2); white-space: nowrap; }
.pt-l i { width: 7px; height: 7px; border-radius: 2px; flex: none; background: var(--text-3); }
.pt-ev .rob .pt-l { color: var(--rob-ink); } .pt-ev .rob .pt-l i { background: var(--rob); }
.pt-ev .hum .pt-l { color: var(--hum-ink); } .pt-ev .hum .pt-l i { background: var(--hum); }
.pt-ev b { font-weight: 430; font-size: clamp(19px, 2.05vw, 23px); line-height: 1; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pt-ev b .a { color: var(--text-3); } /* the value that the other one is compared with */
.pt-ev b i { font-style: normal; font-size: .6em; font-weight: 550; color: var(--text-3); margin: 0 .42em; letter-spacing: 0; vertical-align: .18em; }
.pt-ev b small { font-size: .56em; font-weight: 450; color: var(--text-2); margin-left: 4px; letter-spacing: 0; }
.sec .pt-ev .pt-key { display: block; grid-column: 1 / -1; font-size: 12.5px; line-height: 1.4; color: var(--text-2); } /* what the two values of a number are */
.sec .pt-p { margin: 16px 0 0; font-size: 15px; line-height: 1.58; }
/* the link stands at the bottom left of its card, in a grid as well as in a column */
.pt-go { justify-self: start; align-self: flex-start; margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 620; color: var(--ink); text-decoration: none; }
.pt-go::after { content: ""; width: 6px; height: 6px; border-right: 1.7px solid currentColor; border-top: 1.7px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.pt-go:hover { color: var(--brand); }
.pt-go:hover::after { transform: translateX(3px) rotate(45deg); }

/* ---------------------------------------------------------------- pretraining data */
.datawall { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.125fr); gap: 14px; }
.dw { border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; border: 1px solid; min-width: 0; }
.dw.hum { background: var(--hum-bg); border-color: var(--hum-line); }
.dw.rob { background: var(--rob-bg); border-color: var(--rob-line); }
.dw-head { display: flex; flex-direction: column; gap: 3px; }
.dw-head .pair-label { margin: 0 !important; }
.dw-num { margin: 0 !important; font-size: 13.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.dw-num b { color: var(--ink); font-weight: 650; font-size: 15px; }
.dw-grid { display: grid; gap: 6px; flex: 1; align-content: center; }
.dw-grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dw-grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { position: relative; aspect-ratio: 5 / 4; border-radius: 8px; overflow: hidden; background: #e9e9ee; }
.tile video { width: 100%; height: 100%; object-fit: cover; }
.tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 7px 5px; font-size: 11px; font-weight: 600; line-height: 1.15; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .62)); opacity: 0; transition: opacity .2s; }
.tile:hover span { opacity: 1; }
.dw-chips { margin: 0 !important; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 550; color: var(--text); border: 1px solid rgba(0, 0, 0, .06); }
.chip::before { content: ""; width: 13px; height: 13px; flex: none; background: no-repeat center / contain; }
.chip.yes::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5l3 3 6-7' fill='none' stroke='%234d8443' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.chip.no::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 3l8 8M11 3l-8 8' fill='none' stroke='%23d64545' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.chip.no { color: var(--text-2); }

/* the two questions */
.qcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.qcard { border-radius: 18px; padding: 22px 24px 6px; background: var(--panel); border-top: 3px solid var(--text-3); }
.qcard.q1 { border-top-color: var(--tok); }
.qcard.q2 { border-top-color: var(--jnt); }
.q-k { margin: 0 0 8px !important; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.q1 .q-k { color: var(--tok-ink); } .q2 .q-k { color: var(--jnt-ink); }
.qcard h3 { font-size: 20px; }
.qcard p { font-size: 15.5px; line-height: 1.6; }

/* ---------------------------------------------------------------- architecture */
.arch { border: 1px solid var(--line); border-radius: 20px; padding: 18px clamp(14px, 2.2vw, 24px) 16px; background: #fff; }
.arch-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-bottom: 16px; }
.arch-key { margin: 0 !important; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--text-2); }
.arch-key .k { display: inline-flex; align-items: center; gap: 6px; }
.arch-key .k i { width: 9px; height: 9px; border-radius: 50%; }
.arch-key .hum i { background: var(--hum); } .arch-key .rob i { background: var(--rob); }
.arch-key .dash i { width: 15px; height: 10px; border-radius: 3px; border: 1.5px dashed var(--text-3); }
/* inputs | arrow | model. The blocks of the model are rows of this grid, so that the arrow from the inputs
   sits in the row of the backbone, which is where the inputs go. The two 1fr rows centre the model when
   the inputs are taller. */
.arch-grid { display: grid; grid-template-columns: minmax(0, 300px) 54px minmax(0, 1fr); grid-template-rows: 1fr repeat(5, auto) 1fr; }
.arch-in { grid-column: 1; grid-row: 1 / -1; min-width: 0; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.arch-model { display: contents; }
.arch-model > * { grid-column: 3; min-width: 0; }
.arch-model > .blk.tok { grid-row: 2; } .arch-model > .vflow.up { grid-row: 3; } .arch-model > .blk.vlm { grid-row: 4; }
.arch-model > .vflow.down { grid-row: 5; } .arch-model > .blk.exp { grid-row: 6; }
.src { border-radius: 14px; padding: 10px 11px 11px; border: 1.5px solid; transition: opacity .35s, filter .35s; }
.src.hum { background: var(--hum-bg); border-color: var(--hum); }
.src.rob { background: var(--rob-bg); border-color: var(--rob); }
.src-t { margin: 0 0 8px !important; font-size: 14.5px; font-weight: 680; line-height: 1.2; }
.src.hum .src-t { color: var(--hum-ink); } .src.rob .src-t { color: var(--rob-ink); }
.src-v { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; transition: opacity .35s, filter .35s; }
.src-v.three { grid-template-columns: 1.24fr 1fr 1fr; align-items: end; }
.src-v + .src-v { margin-top: 6px; }
.mini { min-width: 0; }
.mini video { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 7px; background: #dfe3ea; }
.mini.sk video { background: #fff; border: 1px solid rgba(0, 0, 0, .07); }
.mini span { display: block; margin-top: 4px; font-size: 11px; line-height: 1.2; color: var(--text-2); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arch-flow { grid-column: 2; grid-row: 4; position: relative; }
.arch-flow i { position: absolute; left: 6px; right: 8px; top: 50%; height: 1.5px; background: var(--text-3); }
.arch-flow i::after { content: ""; position: absolute; right: -7px; top: -4.25px; border: 5px solid transparent; border-left: 8px solid var(--text-3); border-right: 0; }
.blk { border-radius: 14px; padding: 12px 14px; border: 1.5px solid; transition: opacity .35s, filter .35s; }
.blk-t { margin: 0 !important; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 15.5px; font-weight: 680; line-height: 1.25; }
.blk-t em { font-style: normal; font-weight: 500; font-size: 13px; color: var(--text-2); }
.blk-s { margin: 5px 0 0 !important; font-size: 13px; line-height: 1.35; color: var(--text-2); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.loss { margin-left: auto; font-family: var(--math); font-weight: 400; font-size: 15px; color: var(--text); white-space: nowrap; }
.blk.tok { background: var(--tok-bg); border-color: var(--tok); border-style: dashed; }
.blk.tok .blk-t { color: var(--tok-ink); }
.blk.vlm { background: var(--vlm-bg); border-color: var(--vlm-line); }
.blk.vlm .blk-t { color: var(--vlm-ink); }
.blk.exp { background: var(--eef-bg); border-color: var(--eef-line); padding-bottom: 14px; }
.blk.exp .blk-t { color: #295422; margin-bottom: 10px !important; }
.dots { display: inline-flex; gap: 3px; align-self: center; transition: opacity .35s; }
.dots i { width: 8px; height: 8px; border-radius: 50%; }
.dots .hum { background: var(--hum); } .dots .rob { background: var(--rob); }
.toks { display: inline-flex; gap: 3px; }
.toks i { width: 15px; height: 13px; border-radius: 3px; background: var(--tok); opacity: .9; }
.toks i:nth-child(2n) { opacity: .62; } .toks i:nth-child(3n) { opacity: .4; }
.aux { margin: 9px 0 0 !important; padding-top: 8px; border-top: 1.5px dashed var(--vlm-line); display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 13px; color: var(--text-2); transition: opacity .35s, filter .35s; }
.aux .loss { margin-left: 3px; font-size: 14px; }
.vflow { height: 32px; position: relative; transition: opacity .35s; }
.vflow::before { content: ""; position: absolute; left: 50%; top: 2px; bottom: 2px; width: 1.5px; margin-left: -.75px; background: var(--text-3); }
.vflow::after { content: ""; position: absolute; left: 50%; margin-left: -5px; border: 5px solid transparent; }
.vflow.down::after { bottom: -1px; border-top: 8px solid var(--text-3); border-bottom: 0; }
.vflow.up::before { background: repeating-linear-gradient(to top, var(--tok) 0 4px, transparent 4px 8px); } /* dashed: training only */
.vflow.up::after { top: -1px; border-bottom: 8px solid var(--tok); border-top: 0; }
.lane { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px 12px; padding: 9px 12px; border-radius: 10px; background: #fff; border: 1.5px solid; min-height: 58px; }
.lane.eef { border-color: var(--eef); } .lane.jnt { border-color: var(--jnt); }
.lane-t { margin: 0 !important; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; line-height: 1.25; }
.lane-t b { font-size: 14.5px; font-weight: 680; }
.lane.eef b { color: var(--eef-ink); } .lane.jnt b { color: var(--jnt-ink); }
.lane-t small { flex-basis: 100%; font-size: 12.5px; color: var(--text-2); }
.chunk { display: inline-flex; gap: 3px; }
.chunk i { width: 14px; height: 14px; border-radius: 3px; }
.lane.eef .chunk i { background: var(--eef); } .lane.jnt .chunk i { background: var(--jnt); }
.chunk i:nth-child(1) { opacity: .2; } .chunk i:nth-child(2) { opacity: .36; } .chunk i:nth-child(3) { opacity: .52; } .chunk i:nth-child(4) { opacity: .68; } .chunk i:nth-child(5) { opacity: .84; }
.tail { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; transition: opacity .35s; }
.tail b { font-weight: 680; color: var(--ink); }
.tail .ik { padding: 3px 9px; border-radius: 7px; border: 1.5px solid var(--text-2); font-weight: 680; font-size: 13px; line-height: 1.2; background: var(--panel); }
.arr { display: inline-block; width: 28px; height: 1.5px; background: var(--text-2); position: relative; margin-right: 6px; }
.arr.long { width: 88px; }
.arr::after { content: ""; position: absolute; right: -6px; top: -3.75px; border: 4.5px solid transparent; border-left: 7px solid var(--text-2); border-right: 0; }
.lane-sep { margin: 5px 0 !important; text-align: center; font-size: 12px; font-style: italic; color: var(--text-2); display: flex; align-items: center; gap: 10px; }
.lane-sep::before, .lane-sep::after { content: ""; flex: 1; border-top: 1.5px dashed var(--eef-line); }
.arch-note { margin: 14px 0 0 !important; font-size: 13.5px; line-height: 1.45; color: var(--text-2); text-align: center; }
.when-deploy, .arch[data-mode="deploy"] .when-train { display: none; }
.arch[data-mode="deploy"] .when-deploy { display: revert; }
.arch[data-mode="deploy"] .t-only { opacity: .2; filter: grayscale(1); }
.arch[data-mode="deploy"] .dots.t-only { opacity: 0; }
.arch[data-mode="train"] .d-only { opacity: .26; }
.arch[data-mode="deploy"] .blk.exp, .arch[data-mode="deploy"] .blk.vlm { box-shadow: 0 0 0 3px rgba(0, 0, 0, .04); }

/* Marks that travel along the arrows while the diagram is on screen (main.js adds .live). Into the backbone:
   a human sample (orange) and a robot sample (blue) in turn; in the deployment view both are robot
   observations. Backbone to expert: two marks in the colour of the backbone. Backbone to tokens: the dashes of
   the training-only arrow march upwards. To the robot: the colour of the stream. Only the arrows of the
   current view move. */
.arch-flow i::before, .arch-flow::after, .arr::before, .vflow.down i::before, .vflow.down i::after {
  content: ""; position: absolute; opacity: 0; pointer-events: none;
  background: radial-gradient(circle closest-side, currentColor 0 76%, transparent 84%) 0 50% / 6px 6px no-repeat; }
.arch-flow i::before, .arr::before { left: 0; right: 0; top: -2.25px; height: 6px; }
.arch-flow::after { left: 6px; right: 8px; top: 50%; margin-top: -2.25px; height: 6px; color: var(--rob); }
.arch-flow i::before { color: var(--hum); }
.arch[data-mode="deploy"] .arch-flow i::before { color: var(--rob); }
.vflow.down i { position: absolute; left: 50%; margin-left: -3px; top: 2px; bottom: 8px; width: 6px; color: var(--vlm); }
.vflow.down i::before, .vflow.down i::after { inset: 0; background-position: 50% 0; }
.lane.eef .arr::before { color: var(--eef); } .lane.jnt .arr::before { color: var(--jnt); }
@keyframes dot-x { 0% { background-position: 0% 50%; opacity: 0; } 14%, 82% { opacity: 1; } 100% { background-position: 100% 50%; opacity: 0; } }
@keyframes dot-y { 0% { background-position: 50% 0%; opacity: 0; } 14%, 82% { opacity: 1; } 100% { background-position: 50% 100%; opacity: 0; } }
@keyframes march-up { to { background-position: 0 -8px; } }
@media (prefers-reduced-motion: no-preference) {
  .arch.live .arch-flow i::before { animation: dot-x 1.4s linear infinite; }
  .arch.live .arch-flow::after { animation: dot-x 1.4s linear .7s infinite; }
  .arch.live .vflow.down i::before { animation: dot-y 1.1s linear .2s infinite; }
  .arch.live .vflow.down i::after { animation: dot-y 1.1s linear .75s infinite; }
  .arch.live[data-mode="train"] .vflow.up::before { animation: march-up .5s linear infinite; }
  .arch.live[data-mode="deploy"] .arr::before { animation: dot-x 1s linear infinite; }
  .arch.live[data-mode="deploy"] .ik + .arr::before { animation-delay: .5s; }
  .arch.live[data-mode="deploy"] .arr.long::before { animation-duration: 1.5s; }
}

.formula { margin: 26px auto 8px !important; text-align: center; font-family: var(--math); font-size: 22px; line-height: 1.9; color: var(--ink); padding: 0 0 4px; }
.sec p.formula { text-wrap: balance; }
.formula .tm { display: inline-block; white-space: nowrap; margin: 0 .1em; } /* a term never breaks; the line breaks before a plus sign */
.formula i { font-family: var(--math); }
.formula .ss { display: inline-grid; vertical-align: 1.02em; margin: 0 .16em 0 .05em; font-family: var(--font); font-size: .56em; font-weight: 500; line-height: 1.3; text-align: left; }
.formula .ss.lo { vertical-align: -.48em; }
.formula .ss sup, .formula .ss sub { position: static; font-size: 1em; line-height: 1.3; }
.facts { list-style: none; margin: 26px auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.facts li { background: #fff; padding: 12px 16px; display: grid; gap: 2px; align-content: start; }
.facts span { font-size: 12.5px; color: var(--text-2); }
.facts b { font-size: 15px; font-weight: 620; color: var(--ink); }

/* expandable parts */
details.more { margin-top: 30px; }
.sec > details.more { max-width: var(--media-col); }
details.more > summary { list-style: none; cursor: pointer; display: flex; justify-content: center; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--rule); font-size: 14.5px; font-weight: 560; color: var(--ink); transition: background .2s, border-color .2s; }
details.more > summary span::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
details.more[open] > summary span::after { transform: translateY(2px) rotate(-135deg); }
details.more > summary:hover span { background: var(--panel); border-color: var(--text-3); }
details.more > *:not(summary) { margin-top: 22px; }

/* figures of the paper */
.paper-fig img { width: 100%; height: auto; }
.paper-fig a { display: block; }
.paper-fig.mid { max-width: 600px; }

/* ---------------------------------------------------------------- 2 x 2 study */
.study { text-align: center; }
.mx { margin: 22px auto 0; display: grid; grid-template-columns: minmax(84px, 128px) minmax(0, 1fr) 76px minmax(0, 1fr); grid-template-rows: auto auto 48px auto; gap: 0; align-items: stretch; text-align: left; max-width: 860px; }
.mx-ch, .mx-rh { font-size: 13px; font-weight: 650; line-height: 1.25; color: var(--text-2); }
.mx-ch { grid-row: 1; padding: 0 4px 10px; text-align: center; align-self: end; }
.mx-rh { grid-column: 1; padding-right: 14px; align-self: center; text-align: right; }
.mx-ch b, .mx-rh b { display: block; color: var(--ink); font-weight: 680; font-size: 14px; }
.mx-ch.tok b { color: var(--tok-ink); } .mx-rh.hum b { color: var(--hum-ink); } .mx-rh.rob b { color: var(--rob-ink); }
.cell { border-radius: 16px; padding: 16px 18px 15px; border: 1.5px solid var(--line); background: #fff; display: grid; gap: 4px; min-width: 0; }
.cell .nm { font-size: 13.5px; font-weight: 620; color: var(--text-2); line-height: 1.2; }
.cell .val { font-size: clamp(30px, 4.2vw, 42px); font-weight: 420; letter-spacing: -.035em; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.cell .val small { font-size: .42em; font-weight: 480; color: var(--text-2); letter-spacing: 0; margin-left: 3px; }
.cell .bar { height: 8px; border-radius: 4px; background: var(--panel); overflow: hidden; margin-top: 6px; }
.cell .bar i { display: block; height: 100%; width: 0; border-radius: 4px; transition: width .7s cubic-bezier(.2, .7, .2, 1); }
.cell.shape { border-color: var(--hum); background: var(--hum-bg); }
.cell.shape .nm { color: var(--hum-ink); font-weight: 720; }
.cell.shape .bar { background: #f6e3cc; }
.dl { display: flex; align-items: center; justify-content: center; font-size: 13.5px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dl.h { flex-direction: column; gap: 3px; }
.dl.v { gap: 7px; flex-direction: row-reverse; }
.dl svg { flex: none; fill: none; stroke: var(--text-3); stroke-width: 1.500; stroke-linecap: round; stroke-linejoin: round; }
.dl.h svg { width: 46px; height: 10px; }
.dl.v svg { width: 10px; height: 30px; }
.dl.tok span { color: var(--tok-ink); } .dl.hum span { color: var(--hum-ink); }
.study .cap { margin-top: 18px !important; }

/* The robot, seen from the side, is in the middle of the room to the left of the text, in both directions: the
   space between the columns is as wide as the padding at the sides of the panel. */
.platform { --pad-x: clamp(18px, 3vw, 36px); display: grid; grid-template-columns: minmax(0, .5fr) minmax(0, 1fr); gap: var(--pad-x); align-items: center; background: var(--panel); border-radius: 20px; padding: clamp(18px, 2.6vw, 30px) var(--pad-x); margin-top: 34px !important; }
.pf-img img { width: 100%; max-width: 208px; height: auto; margin: 0 auto; }
.pf-txt ul { margin: 0; padding-left: 1.15em; font-size: 15.5px; line-height: 1.55; }
.pf-txt li { margin-bottom: 7px; }
.pf-txt li::marker { color: var(--text-3); }

/* ---------------------------------------------------------------- players */
.deck-views { display: grid; gap: 10px; }
.deck-views.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.deck-views .frame { aspect-ratio: 16 / 9; cursor: pointer; }
.deck-bar { margin-top: 10px; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-2); }
.pp { appearance: none; border: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; transition: background .2s; }
.pp:hover { background: #000; }
.pp svg { width: 15px; height: 15px; fill: currentColor; }
.pp .i-play, .deck.is-paused .pp .i-pause { display: none; }
.deck.is-paused .pp .i-play { display: block; }
.seek { flex: 1; min-width: 40px; height: 4px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.time { font-variant-numeric: tabular-nums; min-width: 6.4em; text-align: right; flex: none; }
.rates { display: inline-flex; gap: 2px; padding: 2px; background: var(--panel); border-radius: 999px; flex: none; }
.rates button { appearance: none; border: 0; background: none; cursor: pointer; padding: 5px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1; color: var(--text-2); font-variant-numeric: tabular-nums; }
.rates button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .14); }
.rates-l { font-size: 12.5px; color: var(--text-3); flex: none; }

/* task picker */
.sec > * + .picker { margin-top: 20px; } /* the row of tasks follows the text closely */
.picker-cap { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.pill { display: inline-block; padding: 3px 13px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 660; font-size: 15px; line-height: 1.5; white-space: nowrap; }
.picker-desc { font-size: 14.5px; color: var(--text-2); flex: 1 1 240px; }
.res { display: flex; flex-wrap: wrap; gap: 5px 16px; font-size: 13px; color: var(--text-2); width: 100%; padding-top: 4px; }
.res .r { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.res .bar { width: 44px; height: 6px; border-radius: 3px; background: var(--panel); overflow: hidden; }
.res .bar i { display: block; height: 100%; min-width: 2px; border-radius: 3px; }
.res b { color: var(--ink); font-weight: 560; font-variant-numeric: tabular-nums; }
.res .top, .res .top b { color: var(--ink); font-weight: 720; }
.stages { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; counter-reset: st; }
.stages li { position: relative; counter-increment: st; }
.stages img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; background: var(--panel); }
.stages span { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; font-size: 13px; line-height: 1.25; color: var(--text); font-weight: 520; }
.stages span::before { content: counter(st); font-size: 11px; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; }
.stages em { font-style: normal; color: var(--text-2); font-weight: 450; }
.stages-h { margin: 18px 0 -8px !important; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.thumbs { margin-bottom: 18px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; } /* the six tasks to choose from, right below the text */
.th { appearance: none; border: 0; padding: 0; background: none; cursor: pointer; text-align: center; color: var(--text-2); min-width: 0; }
.th img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; outline: 2px solid transparent; outline-offset: 2px; opacity: .8; transition: opacity .2s, transform .2s, outline-color .2s, box-shadow .2s; background: var(--panel); }
.th:hover img, .th:focus-visible img { opacity: 1; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .16); }
.th:focus-visible { outline: none; }
.th .nm { display: inline-block; margin-top: 8px; padding: 1px 9px; border-radius: 10px; font-size: 13px; font-weight: 560; line-height: 1.45; text-wrap: balance; }
.th .sc { display: flex; justify-content: center; align-items: center; gap: 5px; margin-top: 1px; font-size: 12.5px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.th .sc i { width: 8px; height: 8px; border-radius: 2px; background: var(--hum); }
.th.on img { opacity: 1; outline-color: var(--ink); }
.th.on .nm { background: var(--ink); color: #fff; font-weight: 680; }

/* ---------------------------------------------------------------- charts */
.chart { position: relative; }
.chart h4 { margin: 0; font-weight: 680; font-size: 15.5px; line-height: 1.35; color: var(--ink); text-align: center; }
.chart .note { margin: 5px auto 0 !important; color: var(--text-2); font-size: 13.5px; line-height: 1.45; text-align: center; max-width: 640px; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 14px 0 4px; font-size: 13px; color: var(--text); }
.legend > span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.legend i { width: 11px; height: 11px; border-radius: 2.5px; display: inline-block; flex: none; }
.legend > .sep { width: 1px; height: 12px; background: var(--rule); border-radius: 0; }
.legend b { font-weight: 680; color: var(--ink); }
.chart svg { width: 100%; height: auto; overflow: visible; display: block; }
.chart svg text { font-family: var(--font); }
.chart .axis { fill: var(--text-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.chart .ylab { fill: var(--text-2); font-size: 12px; }
.chart .cat { fill: var(--text); font-size: 13px; font-weight: 520; }
.chart .cat.on { fill: var(--ink); font-weight: 720; }
.chart .cat.sub { fill: var(--text-2); font-size: 11.5px; font-weight: 450; }
.chart .val { fill: var(--text-2); font-size: 11.5px; font-weight: 520; font-variant-numeric: tabular-nums; }
.chart .val.big { fill: var(--ink); font-weight: 720; font-size: 12.5px; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .base { stroke: var(--text-3); stroke-width: 1; }
.chart .hl { fill: var(--panel); }
.chart .cg { transition: opacity .25s; }
.chart .hit { fill: transparent; }
.chart .hit.pick { cursor: pointer; }
.chart .bar { transition: opacity .2s; }
.chart .whisk { stroke: var(--ink); stroke-width: 1.1; }
.chart .div { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 3 4; }
.js .chart .bar-g { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .chart.in .bar-g { transform: none; }
.js .chart .val, .js .chart .whisk { opacity: 0; transition: opacity .4s .5s; }
.js .chart.in .val, .js .chart.in .whisk { opacity: 1; }
.tip { position: fixed; z-index: 140; pointer-events: none; background: rgba(255, 255, 255, .97); border: 1px solid var(--line); color: var(--text); font-size: 13px; line-height: 1.4; padding: 8px 11px; border-radius: 9px; opacity: 0; transition: opacity .12s; max-width: 280px; box-shadow: 0 8px 26px rgba(0, 0, 0, .14); }
.tip.on { opacity: 1; }
.tip b { color: var(--ink); font-weight: 680; }
.tip .s { display: flex; align-items: center; gap: 7px; }
.tip .s i { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.tip .s span { margin-left: auto; padding-left: 14px; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- human-to-robot */
.h2r { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.h2r-task { display: grid; gap: 8px; min-width: 0; align-content: start; }
.h2r-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; padding: 0 2px 2px; }
.h2r-head b { font-size: 16.5px; font-weight: 680; color: var(--ink); }
.h2r-head span { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.h2r-head span b { font-size: 13px; color: var(--hum-ink); font-weight: 720; }
.h2r .frame { cursor: pointer; }
.h2r .frame.hum { box-shadow: 0 0 0 2px var(--hum); }
.h2r .frame.rob { box-shadow: 0 0 0 2px var(--rob-soft); }
.h2r-down { height: 16px; position: relative; }
.h2r-down::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 4px; width: 1.5px; margin-left: -.75px; background: var(--text-3); }
.h2r-down::after { content: ""; position: absolute; left: 50%; bottom: -1px; margin-left: -5px; border: 5px solid transparent; border-top: 7px solid var(--text-3); border-bottom: 0; }
.h2r-foot { font-size: 12.5px; color: var(--text-2); text-align: center; padding-top: 2px; }
.h2r-ctl { grid-column: 1 / -1; display: flex; justify-content: center; align-items: center; gap: 10px; padding-top: 4px; }

/* ---------------------------------------------------------------- which stream */
.duel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.duel-card { border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px 6px; background: #fff; }
/* label, heading, bars and text of the two cards share their rows, so they line up when one label wraps */
@supports (grid-template-rows: subgrid) {
  .duel-card { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; align-content: start; }
}
.duel-card .pair-label { letter-spacing: .07em; }
.duel-card h3 { font-size: 20px; margin-bottom: 16px; }
.duel-card p { font-size: 15.5px; line-height: 1.6; }
.duel-bars { display: grid; gap: 10px; margin-bottom: 18px; }
.db { display: grid; grid-template-columns: 92px minmax(0, 1fr) 68px; align-items: center; gap: 10px; font-size: 14px; }
.db .l { font-weight: 640; white-space: nowrap; }
.db.eef .l { color: var(--eef-ink); } .db.jnt .l { color: var(--jnt-ink); }
.db .t { height: 22px; border-radius: 6px; background: var(--panel); overflow: hidden; }
.db .t i { display: block; height: 100%; min-width: 3px; width: 0; border-radius: 6px; transition: width .8s cubic-bezier(.2, .7, .2, 1); }
.db.eef .t i { background: var(--eef); } .db.jnt .t i { background: var(--jnt); }
.db .v { font-variant-numeric: tabular-nums; font-weight: 560; color: var(--text-2); text-align: right; white-space: nowrap; }
.db.win .v { color: var(--ink); font-weight: 760; font-size: 16px; }
.duel-u { margin: -2px 0 0 !important; font-size: 12.5px !important; color: var(--text-3); }

/* ---------------------------------------------------------------- simulation */
/* one rollout per task in a row that slides sideways; the next card shows at the edge */
.rail-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.rail-bar .seg button { white-space: nowrap; }
.rail-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.rail-count { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; margin-right: 4px; white-space: nowrap; }
.rail-btn { appearance: none; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid var(--rule); background: #fff; color: var(--ink); cursor: pointer;
  display: grid; place-items: center; transition: background .2s, border-color .2s, opacity .2s; }
.rail-btn:hover:not(:disabled) { background: var(--panel); border-color: var(--text-3); }
.rail-btn:disabled { opacity: .32; cursor: default; }
.rail-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rail-track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 36px) / 3.25); gap: 12px; overflow-x: auto;
  overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail-track::-webkit-scrollbar { display: none; }
.sim-item { margin: 0; min-width: 0; scroll-snap-align: start; }
.sim-item .frame { aspect-ratio: 16 / 10; cursor: pointer; }
.sim-item figcaption { margin-top: 7px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; text-align: left; font-size: 13.5px; color: var(--text); font-weight: 520; }
.sim-item figcaption b { font-variant-numeric: tabular-nums; color: var(--hum-ink); font-weight: 720; }

/* ---------------------------------------------------------------- tables */
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { border-collapse: collapse; width: 100%; font-size: 13.5px; line-height: 1.35; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sec p.tbl-cap { margin: 12px 0 0; text-align: center; color: var(--text-2); font-size: 13.5px; line-height: 1.45; }
.tbl th, .tbl td { padding: 7px 10px; text-align: center; }
.tbl th:first-child, .tbl td:first-child, .tbl .l { text-align: left; }
.tbl thead th { font-weight: 640; color: var(--ink); border-bottom: 1px solid var(--text-3); vertical-align: bottom; white-space: normal; }
.tbl thead tr:first-child th { border-top: 1.5px solid var(--ink); }
.tbl tbody tr:last-child td, .tbl tbody tr:last-child th { border-bottom: 1.5px solid var(--ink); }
.tbl tbody th { font-weight: 560; color: var(--ink); text-align: left; }
.tbl tr.sepr td, .tbl tr.sepr th { border-top: 1px solid var(--line); }
.tbl tr.rule td, .tbl tr.rule th { border-top: 1px solid var(--text-3); }
.tbl td.best, .tbl td b { font-weight: 760; color: var(--ink); }
.tbl tr.ours th, .tbl tr.ours td, .tbl th.ours, .tbl td.ours { background: var(--hum-bg); }
.tbl td.dim { color: var(--text-3); }
.tbl .grp { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
/* a table with the chart that belongs to it at its right, as in the paper */
.ctl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 330px); gap: 14px 28px; align-items: center; }
.ctl .tbl-wrap { min-width: 0; }
.ctl .tbl tbody th { white-space: normal; min-width: 190px; text-wrap: balance; } /* a long label wraps; it must not push the last column out of view */

/* ---------------------------------------------------------------- citation */
.bib { position: relative; background: var(--panel); border-radius: 16px; padding: 22px 24px; max-width: var(--text-col); }
.bib pre { margin: 0; font: 13.5px/1.65 var(--mono); color: var(--ink); white-space: pre-wrap; word-break: break-word; padding-right: 64px; }
/* One block per line of the entry. A field that wraps continues below the start of its value (--value is set
   by main.js); on a narrow screen that would leave too little room, so it continues four characters in. */
.bib pre span { display: block; }
.bib pre .fld { --hang: var(--value, 4ch); padding-left: var(--hang); text-indent: calc(0px - var(--hang)); }
.sec .bib-source { margin-block: 12px 0; text-align: center; color: var(--text-2); font-size: 14px; }
.bib-source a { display: inline-block; padding: 5px 8px; }
.copy { position: absolute; right: 14px; top: 14px; appearance: none; border: 1px solid var(--rule); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.copy:hover { border-color: var(--ink); }

/* ---------------------------------------------------------------- contents at the left */
.toc { position: fixed; top: calc(var(--nav-h) + 40px); left: 20px; width: 172px; max-height: calc(100vh - 140px); overflow-y: auto; z-index: 20;
  font-size: 13.5px; line-height: 1.35; opacity: 0; visibility: hidden; transform: translateX(-6px); transition: opacity .25s, transform .25s, visibility .25s; }
.toc.show { opacity: 1; visibility: visible; transform: none; }
.toc-h { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin: 0 0 10px 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 5px 8px 5px 12px; border-left: 2px solid var(--line); color: var(--text-2); text-decoration: none; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); border-left-color: var(--text-3); }
.toc a.on { color: var(--ink); border-left-color: var(--brand); font-weight: 640; }
@media (max-width: 1459px) { .toc { display: none; } }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--dark); color: rgba(255, 255, 255, .55); padding: 44px 24px 40px; display: flex; flex-direction: column; align-items: center; gap: 16px; font-size: 13.5px; }
.footer img { height: 22px; width: auto; }
.footer p { margin: 0; }

/* ---------------------------------------------------------------- reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .chart .bar-g { transform: none; transition: none; }
  .js .chart .val, .js .chart .whisk { opacity: 1; transition: none; }
  .cell .bar i, .db .t i { transition: none; }
}

/* ---------------------------------------------------------------- narrower screens */
@media (max-width: 1020px) {
  /* one column: title, reel, authors. On a phone these are taller than the window and the band is as tall as
     they are; where the window is taller, the band still fills it and the free height is split as above. */
  .hero-in { --gap-y: 36px; --gap-a: 22px; --gap-b: 18px; --gap-c: 30px; }
  .hero-main { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .authors br { display: none; } /* no room for two rows: the names wrap as one balanced paragraph */
  .hero-copy { max-width: 640px; }
  .hero-media { max-width: none; }
  .hero h1 { font-size: clamp(76px, 10.4vw, 148px); }
  .nav-links { display: none; }
  .nav-tools { margin-left: auto; }
}
@media (max-width: 1040px) {
  .pt-ev { column-gap: 10px; } .pt-l { font-size: 11.5px; gap: 5px; } /* three narrow cards: the longer label still fits its column */
}
@media (max-width: 960px) {
  .points { grid-template-columns: minmax(0, 1fr); } /* three cards side by side would be too narrow for their numbers */
  .pt-ev { column-gap: 16px; } .pt-l { font-size: 12.5px; gap: 6px; }
  .pt-ev b { font-size: 23px; }
}
@media (max-width: 860px) {
  .datawall, .qcards, .duel, .platform, .ctl { grid-template-columns: minmax(0, 1fr); }
  .ctl .paper-fig { max-width: 400px; }
  /* stacked: the line from the inputs runs down the left, past the token block, and enters the backbone */
  .arch-grid { grid-template-columns: 26px minmax(0, 1fr); grid-template-rows: none; }
  .arch-in { grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; margin-bottom: 18px; }
  .arch-model > * { grid-column: 2; }
  .arch-model > .blk.exp { grid-column: 1 / -1; }
  .arch-flow { grid-column: 1; grid-row: 2 / 4; }
  .arch-flow i { left: 8px; right: auto; top: -12px; bottom: 0; width: 1.5px; height: auto; }
  .arch-flow i::after { right: auto; left: 9px; top: calc(100% + 18.25px); }
  .arch-flow::before { content: ""; position: absolute; left: 8px; top: 100%; width: 10px; height: 24px; border: solid var(--text-3); border-width: 0 0 1.5px 1.5px; border-bottom-left-radius: 7px; }
  /* the marks run down the line */
  .arch-flow i::before { left: -2.25px; right: auto; top: 0; bottom: 0; width: 6px; height: auto; background-position: 50% 0; }
  .arch-flow::after { left: 5.75px; right: auto; top: -12px; bottom: 0; width: 6px; height: auto; margin-top: 0; background-position: 50% 0; }
  .arch.live .arch-flow i::before, .arch.live .arch-flow::after { animation-name: dot-y; }
  .thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail-track { grid-auto-columns: calc((100% - 24px) / 2.22); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .post { padding-left: 18px; padding-right: 18px; }
  .sec { padding-top: 56px; }
  .post > hr { margin-top: 56px; }
  .h2r { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .rail-track { grid-auto-columns: calc((100% - 12px) / 1.22); }
  .wide-only { display: none; } /* words that a narrow screen has no room for */
  .deck-views.two { grid-template-columns: minmax(0, 1fr); }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mx { grid-template-columns: 64px minmax(0, 1fr) 40px minmax(0, 1fr); }
  .mx-rh { padding-right: 8px; font-size: 12px; } .mx-rh b { font-size: 12.5px; }
  .cell { padding: 12px 12px 11px; border-radius: 13px; }
  .dl { font-size: 12px; } .dl.h svg { width: 30px; }
  .seg button { padding: 8px 11px; font-size: 13px; }
  .time, .rates-l { display: none; }
  .paper-fig.scroll > a { overflow-x: auto; -webkit-overflow-scrolling: touch; } /* the figure scrolls sideways, its caption stays */
  .paper-fig.scroll img { min-width: 720px; }
  .sec p.lead { font-size: 17.5px; }
  .arch-in { grid-template-columns: minmax(0, 1fr); }
  .lane { grid-template-columns: minmax(0, 1fr) auto; }
  .lane .tail { grid-column: 1 / -1; }
  .arr.long { width: 40px; }
  .db { grid-template-columns: 88px minmax(0, 1fr) 62px; gap: 8px; }
  .res { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; }
  .res .r { display: grid; grid-template-columns: minmax(0, 1fr) 40px 3.3em; }
  .res .r b { text-align: right; }
  .bib pre .fld { --hang: 4ch; }
  .byline { font-size: 16px; } .authors { margin: 0 -6px; } .authors > span { margin: 0 6px; } /* three names to a line on a phone */
}
@media (max-width: 480px) {
  .hero h1 { font-size: 68px; }
  .nav-name { display: none; }
  .dw-grid.g4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .formula { font-size: 17px; }
  .thumbs { gap: 8px; }
  .th .nm { font-size: 12px; padding: 1px 6px; }
}
@media (max-width: 352px) { /* the smallest phones: three tabs with long English names still fit the column */
  .seg { overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .seg button { padding: 8px 6px; font-size: 12px; }
}
