/* HULK — warm neutrals, orange accents, editorial typography. */

:root {
  color-scheme: light;

  /* Surfaces and ink — warm neutrals so the orange sits naturally. */
  --paper: #fffdf8;
  --paper-rgb: 255, 253, 248;
  --paper-light: #ffffff;
  --ink: #1a1512;
  --ink-hover: #322a24;
  --muted: #6b6259;
  --line: rgba(26, 21, 18, 0.16);
  --rail-line: rgba(26, 21, 18, 0.22);
  --rail-node: rgba(26, 21, 18, 0.48);
  --surface: #f7f3ec;
  --surface-raised: #eae2d5;
  --dark-surface: #1a1512;
  --dark-surface-ink: #fffdf8;

  /* Accents. --flame is the primary; it is darkened in light mode so text
     and 1px rules on --paper still clear WCAG AA. */
  --flame: #b94c07;
  --flame-bright: #ff9900;
  --ember: #b8410a;
  --steel: #5f93aa;
  --sand: #c98f4e;
  --accent-ink: #1a1512;
  /* Text placed on a --flame fill. Light mode's flame is dark enough that it
     needs light text; dark mode's is bright enough that it needs dark text. */
  --on-flame: #fffdf8;
  --on-flame-muted: rgba(255, 253, 248, 0.7);
  --on-flame-bright: #14100d;

  /* Code */
  --code-surface: var(--paper);
  --code-text: #201a16;
  --code-keyword: #a5370a;
  --code-function: #0f4f9e;
  --code-string: #0a6b28;
  --code-number: #a8232f;
  --code-comment: #7b7268;

  /* Type */
  --serif:
    "Newsreader", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans:
    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: var(--serif);

  /* Layout */
  --contents-width: clamp(210px, 15vw, 238px);
  --page-gutter: clamp(28px, 3.2vw, 64px);
  --content-max: clamp(1200px, 84vw, 1500px);
}

html[data-theme="dark"] {
  color-scheme: dark;

  --paper: #12100e;
  --paper-rgb: 18, 16, 14;
  --paper-light: #1c1917;
  --ink: #f5f0e8;
  --ink-hover: #ded7cc;
  --muted: #a29a90;
  --line: rgba(245, 240, 232, 0.17);
  --rail-line: rgba(245, 240, 232, 0.24);
  --rail-node: rgba(245, 240, 232, 0.55);
  --surface: #1c1917;
  --surface-raised: #251f1b;
  --dark-surface: #0a0908;
  --dark-surface-ink: #f5f0e8;

  --flame: #ff9900;
  --flame-bright: #ffab33;
  --ember: #ff6b1a;
  --steel: #7fb3c8;
  --sand: #e8c39a;
  --on-flame: #14100d;
  --on-flame-muted: rgba(20, 16, 13, 0.65);

  --code-surface: var(--paper);
  --code-text: #ece5da;
  --code-keyword: #ffb066;
  --code-function: #8db5ff;
  --code-string: #8fdb92;
  --code-number: #ff9b91;
  --code-comment: #99908a;
}

/* Layout and accessible defaults */
:root {
  --content-max: 1280px;
  --page-gutter: clamp(22px, 4vw, 72px);
  --radius: 8px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 36px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
}
button,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
summary {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--flame);
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
img {
  max-width: 100%;
}
figure,
h1,
h2,
h3,
p {
  margin-top: 0;
}
h2,
h3 {
  font-weight: 400;
}
em {
  color: var(--flame);
  font-weight: 400;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: translateY(0);
}
.eyebrow {
  color: var(--muted);
  font: 400 10px/1.6 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 25px;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px var(--page-gutter);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 380px) {
  .site-header {
    flex-wrap: wrap;
    gap: 12px;
  }
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 400 26px/1 var(--serif);
  letter-spacing: -0.025em;
}
.wordmark-mark {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 1px;
  transform: rotate(45deg);
  background: var(--flame);
}
.wordmark-note {
  margin-left: 12px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font: 400 10px/1.5 var(--mono);
  letter-spacing: 0;
}
.header-links {
  display: flex;
  gap: 26px;
  font-size: 12px;
  margin-left: auto;
}
.header-links a:hover,
footer a:hover {
  color: var(--flame);
}
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 30px;
  cursor: pointer;
  font: 400 11px/1.3 var(--mono);
}
.theme-dot {
  width: 12px;
  height: 12px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--ink) 50%, transparent 50%);
}

/* Cover: research identity above a wide, replaceable film. */
.cover {
  padding: 74px var(--page-gutter) 0;
}
.cover-copy {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.cover .eyebrow {
  margin-bottom: 28px;
}
.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--flame);
  border-radius: 50%;
  margin: 0 8px 2px 0;
}
h1 {
  font: 400 clamp(80px, 9vw, 126px) / 0.85 var(--serif);
  letter-spacing: -0.065em;
  margin: 0;
}
h1 > span {
  display: block;
  font: 400 clamp(24px, 2.6vw, 36px) / 1.17 var(--serif);
  letter-spacing: -0.025em;
  margin-top: 25px;
  text-wrap: balance;
}
.cover-deck {
  color: var(--muted);
  font-size: 14px;
  max-width: 630px;
  margin: 22px auto 0;
  text-wrap: balance;
}
.authors {
  font: 400 14px/1.9 var(--serif);
  margin: 28px auto 0;
}
sup {
  font-size: 0.66em;
  line-height: 0;
}
.affiliations {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.9;
  margin: 8px 0 0;
}
.affiliations span {
  font-size: 9px;
}
.publication-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 40px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 11px;
  transition:
    border-color 150ms ease,
    transform 150ms ease;
}
.button:hover {
  border-color: var(--flame);
  transform: translateY(-2px);
}
.button-primary {
  background: var(--flame);
  color: var(--on-flame);
  border-color: var(--flame);
}
.button:disabled {
  cursor: default;
  opacity: 0.65;
  transform: none;
}
.publication-links .button:disabled {
  background: var(--surface);
  color: var(--muted);
  border-color: var(--line);
}
.resource-pending {
  color: var(--muted);
  font-size: 10px;
  padding: 0 10px;
}
.hero-film {
  max-width: 1440px;
  margin: auto;
}
.draft-caption {
  max-width: 1100px;
  margin: 12px auto 60px;
  color: var(--muted);
  text-align: center;
  font: 400 10px/1.7 var(--mono);
}

/* Fixed reading rail and mobile section shortcuts. */
.contents {
  position: fixed;
  top: 72px;
  left: max(20px, calc((100vw - 1740px) / 2));
  width: 188px;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms;
  max-height: calc(100svh - 96px);
  overflow-y: auto;
}
html[data-rail="on"] .contents {
  opacity: 1;
  visibility: visible;
}
.rail-home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 148px;
  font: 400 23px/1 var(--serif);
  margin: 0 0 30px 12px;
}
.rail-home > span {
  font: 400 13px/1 var(--mono);
  color: var(--muted);
}
.contents ol {
  list-style: none;
  margin: 0;
  padding: 0 0 0 12px;
  position: relative;
  border-left: 1px solid var(--line);
}
.contents > ol::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  width: 1px;
  height: calc(var(--contents-progress, 0) * 100%);
  background: var(--flame);
}
.contents li {
  margin: 0;
}
.contents li a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  padding: 12px 0;
}
.contents li a > span {
  font: 400 9px/1 var(--mono);
}
.contents .contents-subsections {
  padding: 0 0 8px 24px;
  border-left: 0;
}
.contents-subsections li a {
  padding: 6px 0;
  font-size: 9px;
  line-height: 1.5;
}
.contents a.active-parent {
  color: var(--ink);
}
.contents a.active,
.contents li a:hover {
  color: var(--flame);
}
.mobile-jumps {
  display: none;
}
.page-content {
  width: calc(100% - 300px);
  max-width: var(--content-max);
  margin: 0 var(--page-gutter) 0 auto;
}
.page-section {
  border-top: 1px solid var(--line);
  padding: 32px 0 100px;
  scroll-margin-top: 24px;
}
.section-heading {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: end;
  gap: 50px;
  margin-bottom: 36px;
}
h2 {
  font: 400 clamp(34px, 4.1vw, 60px) / 1.02 var(--serif);
  letter-spacing: -0.045em;
  margin-bottom: 0;
}
.section-heading > p {
  max-width: 470px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin: 0 0 4px;
}
.subsection-heading {
  margin-top: 48px;
  margin-bottom: 24px;
}
.subsection-heading h3,
.table-block > h3 {
  font: 400 clamp(23px, 2.4vw, 32px) / 1.15 var(--serif);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.subsection-heading > p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
  max-width: 720px;
}

/* Five vertically stacked Methods blocks, with one introduction per block. */
.methods-section .section-heading {
  grid-template-columns: 1fr;
}
.method-stack {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.method-block {
  min-width: 0;
  scroll-margin-top: 28px;
}
.method-block + .method-block,
.training-video-pair + .method-block {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.method-block > .eyebrow {
  margin-bottom: 12px;
}
.method-block-heading,
.video-card--method figcaption {
  margin-bottom: 22px;
}
.method-block-heading h3,
.video-card--method figcaption h3 {
  font: 400 clamp(26px, 3vw, 40px) / 1.15 var(--serif);
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.method-block-heading > p,
.methods-section .video-card--method figcaption > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  max-width: 820px;
  margin: 0;
}
.video-card.video-card--method figcaption {
  padding: 0;
}
.method-video-pair .video-card--method {
  display: flex;
  flex-direction: column;
}
.method-video-pair .video-card--method figcaption {
  flex: 1;
}
.method-video-pair h4,
.method-video-pair h5 {
  font: 400 24px / 1.2 var(--serif);
  margin: 0 0 12px;
}
.training-video-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.training-video-pair > .method-block,
.training-video-pair > .method-block + .method-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.training-video-pair .video-card--method {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.training-video-pair .video-slot {
  margin-top: auto;
}
@media (max-width: 600px) {
  .training-video-pair {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
.method-video-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin: 18px 0 0;
}
.method-optimization {
  margin-top: 36px;
}
.method-optimization > h4 {
  font: 400 clamp(23px, 2.4vw, 32px) / 1.15 var(--serif);
  margin: 0;
}
.method-optimization > .method-video-note {
  margin: 12px 0 24px;
}
.video-card--method .video-slot.has-poster {
  aspect-ratio: auto;
}
.video-card--method .has-poster::before,
.video-card--method .has-poster::after {
  display: none;
}
.video-card--method .has-poster .slot-poster {
  height: auto;
  object-fit: contain;
}
.video-card--method .has-poster .slot-fallback {
  position: relative;
  background: var(--surface);
  padding: 12px 16px;
}
.video-card--method .has-poster .slot-top {
  color: var(--muted);
}
.video-card--method .has-poster .slot-bottom {
  display: none;
}
.method-jumps {
  display: none;
}

/* Four-controller hardware comparisons. */
.benchmark-section .section-heading {
  grid-template-columns: 1fr;
}
.benchmark-stack {
  display: grid;
  gap: 48px;
}
.benchmark-row {
  min-width: 0;
  scroll-margin-top: 28px;
}
.benchmark-row + .benchmark-row {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.benchmark-row > h3 {
  font: 400 clamp(26px, 3vw, 38px) / 1.15 var(--serif);
  margin: 0 0 22px;
  letter-spacing: -0.025em;
}
.benchmark-videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 8px;
}
.video-card.benchmark-card figcaption {
  padding: 0 0 12px;
}
.benchmark-card h4 {
  font: 600 12px/1.5 var(--sans);
  margin: 0;
}
.benchmark-card.is-ours h4 {
  color: var(--flame);
}
.benchmark-card .video-slot {
  aspect-ratio: auto;
}
.benchmark-card .slot-poster,
.benchmark-card video {
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: contain;
  background: var(--surface);
}
@media (max-width: 600px) {
  .benchmark-videos {
    grid-template-columns: minmax(0, 1fr);
  }
}
.benchmark-card .video-slot::before,
.benchmark-card .video-slot::after {
  display: none;
}
.benchmark-card .has-poster .slot-fallback {
  position: relative;
  padding: 10px 12px;
  background: var(--surface);
}
.benchmark-card .has-poster .slot-top {
  color: var(--muted);
}
.benchmark-card .slot-bottom,
.benchmark-card .slot-top > span:last-child {
  display: none;
}
.benchmark-tables .table-block > h4 {
  font: 500 22px/1.3 var(--serif);
  margin: 0 0 10px;
}
.benchmark-tables .table-block + .table-block {
  margin-top: 36px;
}
.resources-section h2 {
  margin-bottom: 24px;
}
.resource-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.resource-buttons .button:not(.button-primary) {
  background: var(--surface);
  color: var(--ink);
}
.citation-details {
  max-width: 720px;
}
.citation-details > summary {
  cursor: pointer;
  color: var(--muted);
  font: 400 11px/1.7 var(--mono);
  padding: 8px 0;
}
.citation-details .citation-card {
  margin-top: 12px;
}
.evidence-note {
  font-size: 11px;
  color: var(--muted);
  margin: 20px 0 30px;
  max-width: 960px;
  line-height: 1.85;
}
.evidence-note a {
  border-bottom: 1px solid var(--flame);
  color: var(--ink);
  white-space: nowrap;
}

/* Findings and the short contact explanation. */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric-card {
  padding: 28px 24px;
}
.metric-card:first-child {
  padding-left: 0;
}
.metric-card + .metric-card {
  border-left: 1px solid var(--line);
}
.metric-value {
  display: block;
  font: 400 clamp(38px, 4.8vw, 68px) / 1 var(--serif);
  letter-spacing: -0.04em;
  color: var(--flame);
  margin-bottom: 18px;
}
.metric-word {
  font-size: clamp(25px, 3vw, 43px);
  line-height: 1.55;
}
.metric-card h3 {
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 10px;
}
.metric-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  margin: 0;
  max-width: 290px;
}
.contact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 28px;
  gap: 30px;
}
.contact-strip > div {
  border-top: 2px solid var(--line);
  padding-top: 14px;
}
.contact-strip > div:nth-child(1) {
  border-color: var(--flame);
}
.contact-strip > div:nth-child(2) {
  border-color: var(--steel);
}
.contact-strip > div:nth-child(3) {
  border-color: var(--sand);
}
.contact-strip > div > span {
  font: 400 9px/1 var(--mono);
  color: var(--muted);
}
.contact-strip h3 {
  font: 400 22px/1.2 var(--serif);
  margin: 12px 0 8px;
}
.contact-strip p {
  color: var(--muted);
  font-size: 11px;
  max-width: 270px;
}

/* Video proposals: a real player replaces the card when its source is installed. */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 22px;
}
.video-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.video-card {
  margin: 0;
  min-width: 0;
}
.video-slot {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  background: var(--surface);
}
.video-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.25;
  mask-image: linear-gradient(135deg, transparent, var(--ink));
}
.video-slot::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  pointer-events: none;
  opacity: 0.35;
}
.video-slot video {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  object-fit: contain;
  z-index: 3;
  background: var(--dark-surface);
}
.slot-fallback {
  position: absolute;
  inset: 0;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
}
.slot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font: 400 9px/1.5 var(--mono);
  color: var(--muted);
}
.slot-status {
  display: flex;
  align-items: center;
  gap: 7px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.slot-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border: 1px solid var(--flame);
  border-radius: 50%;
}
.slot-center {
  text-align: center;
  padding: 10px 14px;
}
.frame-mark {
  width: 35px;
  height: 25px;
  display: block;
  margin: 0 auto 16px;
  border: 1px solid var(--flame);
  position: relative;
  opacity: 0.8;
}
.frame-mark::before,
.frame-mark::after {
  content: "";
  position: absolute;
  background: var(--surface);
}
.frame-mark::before {
  top: -2px;
  bottom: -2px;
  left: 8px;
  right: 8px;
}
.frame-mark::after {
  left: -2px;
  right: -2px;
  top: 8px;
  bottom: 8px;
}
.slot-center p {
  color: var(--ink);
  font: 400 clamp(18px, 2.5vw, 31px) / 1.2 var(--serif);
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.slot-bottom {
  color: var(--muted);
  font: 400 9px/1.5 var(--mono);
}
.slot-poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.has-poster .slot-fallback {
  background: linear-gradient(
    180deg,
    var(--dark-surface),
    transparent 24%,
    transparent 72%,
    var(--dark-surface)
  );
}
.has-poster .slot-center {
  display: none;
}
.has-poster .slot-top,
.has-poster .slot-bottom {
  color: var(--dark-surface-ink);
}
.video-card figcaption {
  padding: 16px 0 0;
}
.video-caption-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
}
.video-caption-title h3 {
  margin: 0;
  font: 400 23px/1.2 var(--serif);
  letter-spacing: -0.02em;
}
.clip-id {
  color: var(--muted);
  font: 400 8px/1.5 var(--mono);
  text-align: right;
}
.video-card figcaption > p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.85;
  margin: 10px 0 10px;
  max-width: 880px;
}
.shot-note summary {
  width: fit-content;
  cursor: pointer;
  color: var(--flame);
  font: 400 10px/1.6 var(--mono);
  padding: 5px 0;
}
.shot-note p {
  margin: 10px 0 0;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.shot-note p.shot-format {
  font-size: 10px;
}
.video-card--hero .video-slot {
  aspect-ratio: 2.6;
}
.video-card--hero .video-slot.has-poster {
  aspect-ratio: auto;
}
.video-card--hero .has-poster::before,
.video-card--hero .has-poster::after {
  display: none;
}
.video-card--hero .slot-poster {
  height: auto;
}
.video-card--hero .has-poster .slot-fallback {
  position: relative;
  inset: auto;
  padding: 10px 18px;
  background: var(--dark-surface);
}
.video-card--hero .has-poster .slot-bottom {
  display: none;
}
.video-card--hero .has-poster video {
  position: relative;
  inset: auto;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.result-feature {
  margin: 48px 0 64px;
  scroll-margin-top: 110px;
}
.video-card--feature figcaption h3 {
  font: 600 clamp(26px, 3vw, 38px)/1.2 var(--sans);
  margin: 0 0 16px;
  letter-spacing: -.025em;
}
.video-card--feature figcaption > p {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.7;
}
.video-card--feature .video-slot {
  margin-top: 24px;
  aspect-ratio: 16 / 9;
}
.video-card--feature video,
.video-card--feature .slot-poster {
  object-fit: contain;
}
.simulation-feature .video-slot {
  aspect-ratio: 2 / 1;
}
.cart-highlight {
  padding: clamp(16px, 3vw, 32px);
  border: 1px solid var(--flame);
  border-radius: 12px;
  background: var(--surface-raised);
}
.cart-highlight h3 { color: var(--flame); }
.feature-note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}
.video-card--hero figcaption {
  display: none;
}
.video-card--hero .slot-top,
.video-card--hero .slot-bottom {
  font-size: 11px;
}
.video-grid--three .slot-fallback {
  padding: 14px 16px;
}
.video-grid--three .slot-center {
  padding: 4px;
}
.video-grid--three .frame-mark {
  margin-bottom: 10px;
  width: 26px;
  height: 20px;
}
.video-grid--three .slot-center p {
  font-size: 20px;
}
.video-grid--three .slot-bottom,
.video-grid--three .slot-top {
  font-size: 8px;
}
.video-grid--three .video-caption-title {
  display: block;
}
.video-grid--three .video-caption-title h3 {
  font-size: 21px;
}
.video-grid--three .clip-id {
  display: none;
}
.student-showcase {
  margin-top: 34px;
}
.student-showcase .video-card {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: center;
  gap: 30px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.student-showcase figcaption {
  padding: 0;
}
.student-showcase .video-caption-title {
  display: block;
}

/* Training diagram: the mechanisms are attached to their actual teacher. */
.training-diagram {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.guidance-node,
.teacher-node,
.student-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
}
.guidance-node {
  border-color: var(--steel);
  position: relative;
}
.guidance-node::after {
  content: "";
  position: absolute;
  top: 100%;
  height: 23px;
  width: 1px;
  background: var(--steel);
}
.node-kicker {
  font: 400 9px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.guidance-node strong,
.teacher-node strong,
.student-node strong {
  font: 400 25px/1.1 var(--serif);
}
.guidance-node > span:last-child,
.teacher-node > span,
.student-node > span:last-child {
  font-size: 11px;
  color: var(--muted);
}
.teacher-nodes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  padding-top: 44px;
  position: relative;
}
.teacher-nodes::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 25%;
  right: 25%;
  height: 1px;
  background: var(--steel);
}
.teacher-node {
  position: relative;
}
.teacher-node::before {
  content: "↓";
  position: absolute;
  bottom: 100%;
  height: 23px;
  line-height: 27px;
  color: var(--steel);
}
.teacher-node .barrier-label {
  border: 1px solid var(--flame);
  color: var(--flame);
  font: 400 10px/1.3 var(--mono);
  border-radius: 3px;
  padding: 6px 8px;
  margin-top: 4px;
}
.distill-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 17px 0 12px;
  color: var(--muted);
  font: 400 10px/1.4 var(--mono);
}
.distill-connector::before {
  content: "";
  width: 53%;
  height: 12px;
  border: 1px solid var(--line);
  border-top: 0;
  margin-top: -18px;
  margin-bottom: 8px;
}
.distill-connector > span:last-child {
  color: var(--flame);
  font-size: 22px;
}
.student-node {
  border-color: var(--flame);
}
.command-interface {
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.command-interface > span {
  font: 400 9px/1.4 var(--mono);
  color: var(--flame);
  text-transform: uppercase;
  white-space: nowrap;
}
.command-interface p {
  font-size: 11px;
  margin: 0;
}
.command-interface b {
  font-weight: 400;
  margin: 0 7px;
  color: var(--muted);
}
.paper-figure {
  margin: 0 0 30px;
}
.paper-figure img {
  display: block;
  width: 100%;
  background: var(--paper-light);
  border-radius: 6px;
  padding: 12px;
}
.paper-figure figcaption {
  font-size: 10px;
  color: var(--muted);
  padding-top: 10px;
}
.paper-figure figcaption > span {
  color: var(--flame);
  margin-right: 12px;
  font-family: var(--mono);
}
.paper-figure a {
  display: block;
}
.paper-figure figcaption a {
  display: inline;
  color: var(--flame);
  text-decoration: underline;
}
#method > .video-grid {
  margin-top: 30px;
}
.mechanism-panel {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 30px;
  align-items: center;
}
.mechanism-panel .paper-figure {
  margin-bottom: 0;
  min-width: 0;
}
.mechanism-copy h3 {
  font: 400 24px/1.2 var(--serif);
  margin-bottom: 10px;
}
.mechanism-copy p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 22px;
}
.mechanism-copy p:last-child {
  margin-bottom: 0;
}
#recovery > .expand-section {
  margin-bottom: 30px;
}
.hardware-table thead tr:first-child th:not(:first-child) {
  text-align: center;
}
#hardware-results {
  scroll-margin-top: 70px;
}
.comparison-labels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  text-align: center;
  border-top: 1px solid var(--line);
  padding: 16px 10px;
  font: 400 12px/1.5 var(--mono);
}
.comparison-labels .comparison-ours {
  color: var(--flame);
}

/* Expandable films and tables work without JavaScript. */
.expand-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 28px;
}
.expand-section > summary {
  display: flex;
  gap: 22px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font: 400 21px/1.3 var(--serif);
}
.expand-section > summary::-webkit-details-marker {
  display: none;
}
.expand-section > summary::after {
  content: "+";
  color: var(--flame);
  font: 400 20px/1 var(--mono);
  margin-left: auto;
}
.expand-section[open] > summary::after {
  content: "−";
}
.summary-note {
  font: 400 10px/1.5 var(--mono);
  color: var(--muted);
}
.expanded-content {
  padding: 12px 0 28px;
}
.expanded-content > p {
  color: var(--muted);
  font-size: 12px;
}
.protocol-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 14px 0;
  margin-bottom: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.protocol-strip span {
  font: 400 9px/1.4 var(--mono);
  color: var(--muted);
}
.table-block {
  margin-bottom: 44px;
}
.table-description {
  max-width: 900px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.table-source {
  caption-side: bottom;
  text-align: left;
  padding: 12px 0 0;
  color: var(--muted);
  font: 400 10px/1.7 var(--mono);
}
.table-scroll {
  overflow-x: auto;
  scrollbar-color: var(--line) transparent;
  width: 100%;
}
.data-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 850px;
  font-variant-numeric: tabular-nums;
}
.data-table th,
.data-table td {
  text-align: right;
  padding: 14px 12px;
  white-space: nowrap;
}
.data-table th:first-child {
  text-align: left;
}
.data-table thead th {
  font: 400 10px/1.5 var(--mono);
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.data-table .unit {
  display: block;
  font-size: 9px;
}
.data-table tbody th {
  font-size: 11px;
  font-weight: 500;
}
.data-table tbody td {
  font-size: 11px;
}
.data-table tbody tr {
  border-bottom: 1px solid var(--line);
}
.data-table .is-ours {
  background: color-mix(in srgb, var(--flame) 7%, var(--paper));
}
.data-table .is-ours th {
  color: var(--flame);
}
.data-table strong {
  font-weight: 700;
}
.data-table .sd {
  color: var(--muted);
  font-size: 10px;
}
.table-note {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.85;
  margin: 16px 0 0;
  max-width: 960px;
}
.table-key {
  border-left: 2px solid var(--flame);
  padding-left: 12px;
}
.limits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 30px;
}
.limits-grid article {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.limits-grid h3 {
  font: 400 22px/1.15 var(--serif);
  margin-bottom: 12px;
}
.limits-grid p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}
.paper-section {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
}
.paper-copy h2 {
  font-size: 80px;
  margin-bottom: 24px;
}
.paper-copy p {
  font-size: 12px;
  color: var(--muted);
}
.paper-copy p.paper-title {
  font: 400 26px/1.25 var(--serif);
  color: var(--ink);
}
.resource-list {
  margin-top: 30px;
  display: grid;
}
.resource-list > span {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 11px;
  border-bottom: 1px solid var(--line);
}
.resource-list small {
  color: var(--muted);
  font: 400 9px/1.5 var(--mono);
}
.citation-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  align-self: center;
  min-width: 0;
}
.citation-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  font: 400 10px/1.5 var(--mono);
  text-transform: uppercase;
}
.copy-button {
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  color: var(--flame);
  padding: 6px;
}
.citation-card pre {
  margin: 20px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 400 10px/1.8 var(--mono);
}
.citation-card code {
  font: inherit;
}
.citation-card > p {
  color: var(--muted);
  font-size: 10px;
  margin: 16px 0 0;
}
footer {
  border-top: 1px solid var(--line);
  margin: 0 var(--page-gutter);
  padding: 26px 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
footer p,
footer > a:last-child {
  color: var(--muted);
  font-size: 10px;
  margin: 0;
}

@media (min-width: 1740px) {
  .page-content {
    margin-right: calc((100vw - 1620px) / 2);
  }
}
@media (max-width: 1100px) {
  .contents {
    display: none;
  }
  .page-content {
    width: auto;
    margin: 0 var(--page-gutter);
  }
  .mobile-jumps {
    display: flex;
    position: sticky;
    top: 0;
    background: var(--paper);
    z-index: 30;
    justify-content: flex-start;
    gap: 26px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    font: 400 10px/1.5 var(--mono);
    overflow-x: auto;
    white-space: nowrap;
  }
  .mobile-jumps a {
    flex: 0 0 auto;
  }
  .mobile-jumps a:hover {
    color: var(--flame);
  }
  .page-section {
    scroll-margin-top: 68px;
  }
  .method-block,
  .benchmark-row {
    scroll-margin-top: 72px;
  }
  .method-jumps {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 0 0 16px;
    margin: -12px 0 28px;
    font: 400 10px/1.6 var(--mono);
  }
  .method-jumps a {
    flex: 0 0 auto;
    color: var(--muted);
    padding: 6px 0;
  }
  .method-jumps a:hover,
  .method-jumps a[aria-current] {
    color: var(--flame);
  }
  .wordmark-note {
    display: none;
  }
  .page-section:first-child {
    margin-top: 28px;
  }
}
@media (max-width: 760px) {
  .mechanism-panel {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .site-header {
    padding-top: 18px;
    padding-bottom: 18px;
    flex-wrap: wrap;
  }
  .header-links {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    font-size: clamp(9px, 2.3vw, 11px);
  }
  .cover {
    padding-top: 48px;
  }
  .cover .eyebrow {
    font-size: 8px;
  }
  .authors {
    font-size: 12px;
  }
  .section-heading {
    gap: 20px;
    grid-template-columns: 1fr;
  }
  .section-heading > p {
    max-width: 620px;
    font-size: 12px;
  }
  .page-section {
    padding-bottom: 64px;
  }
  .video-grid--three {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .video-grid--three .video-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
  }
  .video-grid--three figcaption {
    padding: 0;
  }
  .metric-card {
    padding: 22px 14px;
  }
  .metric-word {
    font-size: 27px;
    line-height: 1.4;
  }
  .metric-card h3,
  .metric-card p {
    font-size: 10px;
  }
  .contact-strip {
    gap: 18px;
  }
  .contact-strip h3 {
    font-size: 20px;
  }
  .slot-fallback {
    padding: 14px;
  }
  .slot-center p {
    font-size: 22px;
  }
  .video-caption-title {
    display: block;
  }
  .clip-id {
    display: none;
  }
  .student-showcase .video-card {
    padding: 16px;
    gap: 20px;
    grid-template-columns: 1fr 1fr;
  }
  .training-diagram {
    padding: 20px;
  }
  .teacher-nodes {
    gap: 16px;
  }
  .guidance-node,
  .teacher-node,
  .student-node {
    padding: 16px 12px;
  }
  .teacher-node strong {
    font-size: 22px;
  }
  .summary-note {
    display: none;
  }
  .limits-grid {
    gap: 20px;
  }
  .paper-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .citation-card {
    max-width: 680px;
  }
}
@media (max-width: 520px) {
  .contact-strip.training-facts > div {
    display: block;
  }
  .contact-strip.training-facts h3 {
    margin-top: 10px;
  }
  .cover {
    padding-left: 18px;
    padding-right: 18px;
  }
  .cover-deck {
    font-size: 12px;
  }
  .cover h1 {
    font-size: 86px;
  }
  .desktop-break {
    display: none;
  }
  .authors {
    line-height: 1.85;
  }
  .authors br {
    display: none;
  }
  .affiliations {
    font-size: 9px;
  }
  .publication-links {
    gap: 8px;
    margin-bottom: 28px;
  }
  .button {
    gap: 12px;
    padding: 10px 12px;
    font-size: 10px;
  }
  .resource-pending {
    flex-basis: 100%;
    padding-top: 6px;
  }
  .video-card--hero .video-slot {
    aspect-ratio: 1.5;
  }
  .video-card--hero .slot-poster {
    object-fit: contain;
    background: var(--dark-surface);
  }
  .video-card--hero .slot-top,
  .video-card--hero .slot-bottom {
    font-size: 9px;
  }
  .draft-caption {
    font-size: 9px;
    margin-bottom: 30px;
  }
  .mobile-jumps {
    justify-content: flex-start;
    gap: 10px;
    padding: 14px 20px;
    font-size: 9px;
  }
  .eyebrow {
    font-size: 9px;
    margin-bottom: 18px;
  }
  h2 {
    font-size: 39px;
  }
  .metric-grid {
    grid-template-columns: 1fr;
  }
  .metric-card,
  .metric-card:first-child {
    padding: 22px 0;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 6px 18px;
    align-items: center;
  }
  .metric-card + .metric-card {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .metric-value {
    grid-row: 1 / 3;
    font-size: 45px;
    margin: 0;
  }
  .metric-word {
    font-size: 31px;
    line-height: 1.1;
  }
  .metric-card h3 {
    margin: 0;
    font-size: 11px;
  }
  .metric-card p {
    font-size: 10px;
  }
  .contact-strip {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .contact-strip > div {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 0 10px;
    padding-top: 12px;
  }
  .contact-strip > div > span {
    grid-row: 1 / 3;
    line-height: 2;
  }
  .contact-strip h3 {
    margin: 0 0 7px;
  }
  .contact-strip p {
    max-width: none;
  }
  .video-grid,
  .video-grid--three {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .video-grid--three .video-card,
  .student-showcase .video-card {
    display: block;
  }
  .video-grid--three figcaption {
    padding-top: 16px;
  }
  .student-showcase figcaption {
    padding-top: 18px;
  }
  .slot-center p,
  .video-grid--three .slot-center p {
    font-size: 24px;
  }
  .slot-top,
  .slot-bottom,
  .video-grid--three .slot-top,
  .video-grid--three .slot-bottom {
    font-size: 9px;
  }
  .frame-mark {
    margin-bottom: 10px;
  }
  .teacher-nodes {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 24px;
  }
  .teacher-nodes::before,
  .teacher-node::before {
    display: none;
  }
  .guidance-node::after {
    height: 24px;
  }
  .teacher-node::after {
    content: "↓";
    position: absolute;
    top: -25px;
    height: 24px;
    color: var(--steel);
  }
  .teacher-node:nth-child(2)::after {
    content: "+";
    top: -21px;
    line-height: 20px;
  }
  .distill-connector::before {
    display: none;
  }
  .guidance-node strong,
  .student-node strong {
    font-size: 22px;
  }
  .command-interface {
    display: block;
  }
  .command-interface p {
    margin-top: 8px;
  }
  .comparison-labels {
    gap: 8px;
    font-size: 10px;
  }
  .limits-grid {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .expand-section > summary {
    font-size: 19px;
  }
  .paper-copy h2 {
    font-size: 65px;
  }
  footer {
    flex-wrap: wrap;
    gap: 18px;
  }
  footer p {
    order: 3;
    flex-basis: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
