:root {
  --ink: #101b1d;
  --ink-soft: #26383b;
  --muted: #56696c;
  --paper: #f7f8f5;
  --white: #ffffff;
  --mist: #e9f1ef;
  --line: #cfdbd8;
  --cloud: #5bc7c6;
  --cloud-deep: #087f83;
  --edge: #f07a55;
  --edge-deep: #bd4a2e;
  --signal: #f3c84b;
  --green: #70a65d;
  --blue: #287db5;
  --shadow: 0 22px 60px rgba(16, 27, 29, 0.12);
  --content: 1200px;
  --header-height: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

::selection {
  color: var(--ink);
  background: var(--signal);
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--white);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(calc(100% - 48px), var(--content));
  margin-inline: auto;
}

.section {
  padding: 104px 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--cloud-deep);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow-light {
  color: var(--cloud);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 4.6rem;
  font-weight: 800;
}

h2 {
  margin-bottom: 22px;
  font-size: 2.65rem;
  font-weight: 750;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.section-heading {
  max-width: 650px;
}

.section-heading-wide {
  max-width: 790px;
  margin-bottom: 52px;
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  height: var(--header-height);
  color: var(--white);
  background: rgba(16, 27, 29, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  background: rgba(16, 27, 29, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), 1320px);
  height: 100%;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.brand > span:last-child > span {
  color: var(--cloud);
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--ink);
  background: var(--cloud);
  border-radius: 6px;
}

.brand-mark svg {
  width: 19px;
  height: 19px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--cloud);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--white);
}

.site-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle svg {
  width: 21px;
  height: 21px;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  min-height: 88svh;
  padding: calc(var(--header-height) + 60px) 0 64px;
  align-items: center;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}

.hero-backdrop,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-backdrop {
  object-fit: cover;
  object-position: center 63%;
  opacity: 0.72;
}

.hero-scrim {
  background: rgba(8, 16, 18, 0.78);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  color: var(--cloud);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--signal);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(243, 200, 75, 0.16);
}

.hero h1 {
  max-width: 820px;
}

.hero-lead {
  margin-bottom: 16px;
  color: var(--cloud);
  font-size: 1.65rem;
  font-weight: 650;
  line-height: 1.35;
}

.hero-title-long {
  max-width: 850px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.03rem;
  line-height: 1.65;
}

.authors {
  display: flex;
  max-width: 930px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 5px 11px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.authors a {
  text-decoration-color: rgba(91, 199, 198, 0.45);
  text-underline-offset: 4px;
}

.authors a:hover {
  color: var(--cloud);
}

.authors sup,
.affiliations sup {
  color: var(--cloud);
}

.affiliations {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
}

.hero-actions {
  display: flex;
  margin-bottom: 38px;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--ink);
  background: var(--cloud);
  border-color: var(--cloud);
}

.button-primary:hover {
  background: #7ad6d5;
}

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.24);
}

.button-secondary:hover {
  border-color: var(--cloud);
}

.hero-metrics {
  display: flex;
  gap: 14px;
}

.hero-metric {
  display: grid;
  width: 210px;
  min-height: 86px;
  padding: 14px 18px;
  align-content: center;
  background: rgba(16, 27, 29, 0.78);
  border-left: 3px solid var(--edge);
}

.hero-metric strong {
  color: var(--signal);
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.45rem;
  line-height: 1.15;
}

.hero-metric span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.72rem;
}

/* Abstract */
.abstract-section {
  background: var(--white);
}

.abstract-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.45fr);
  gap: 80px;
}

.sticky-heading {
  position: sticky;
  top: calc(var(--header-height) + 40px);
  align-self: start;
}

.abstract-copy {
  color: var(--muted);
  font-size: 1.02rem;
}

.lead-copy {
  color: var(--ink-soft);
  font-size: 1.3rem;
  font-weight: 550;
  line-height: 1.55;
}

.contribution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 42px;
}

.contribution {
  min-height: 220px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contribution > span {
  display: block;
  margin-bottom: 32px;
  color: var(--edge-deep);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
}

.contribution p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

/* Figures */
.paper-figure,
.rollout-figure {
  position: relative;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
}

.paper-figure {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.paper-figure img,
.rollout-figure img {
  width: 100%;
  height: auto;
}

.paper-figure img {
  background: var(--white);
}

.paper-figure figcaption,
.rollout-figure figcaption {
  padding: 17px 20px;
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
  font-size: 0.79rem;
  line-height: 1.6;
}

.figure-zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(16, 27, 29, 0.14);
  cursor: pointer;
}

.figure-zoom:hover {
  color: var(--cloud-deep);
}

.figure-zoom svg {
  width: 18px;
  height: 18px;
}

.figure-zoom-dark {
  color: var(--white);
  background: rgba(16, 27, 29, 0.86);
  border-color: rgba(255, 255, 255, 0.14);
}

.problem-section {
  background: var(--paper);
}

.figure-light img {
  padding: 36px 24px 20px;
}

/* Method */
.method-section {
  background: var(--mist);
}

.architecture-figure img {
  padding: 22px;
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.method-step {
  min-height: 320px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  place-items: center;
  color: var(--ink);
  border-radius: 6px;
}

.step-icon svg {
  width: 23px;
  height: 23px;
}

.cloud-icon {
  background: #bde6e4;
}

.edge-icon {
  background: #f8c6b6;
}

.act-icon {
  background: #f6df92;
}

.step-number {
  margin-bottom: 8px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.method-step > p:not(.step-number) {
  color: var(--muted);
  font-size: 0.88rem;
}

.method-step code {
  display: block;
  margin-top: 22px;
  padding: 12px 14px;
  color: var(--ink-soft);
  background: var(--paper);
  border-left: 3px solid var(--cloud-deep);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  overflow-x: auto;
}

/* Training */
.training-section {
  color: var(--white);
  background: var(--ink);
}

.training-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 84px;
}

.training-copy > p:not(.eyebrow, .training-note) {
  color: rgba(255, 255, 255, 0.68);
}

.formula {
  display: grid;
  margin: 30px 0 18px;
  padding: 20px 22px;
  gap: 5px;
  color: var(--signal);
  background: rgba(255, 255, 255, 0.055);
  border-left: 3px solid var(--edge);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  overflow-x: auto;
}

.training-note {
  color: var(--cloud);
  font-size: 0.83rem;
  font-weight: 650;
}

.training-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.flow-path {
  display: grid;
  min-height: 355px;
  padding: 26px 20px;
  place-items: center;
  align-content: space-between;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.fresh-path {
  background: rgba(91, 199, 198, 0.09);
}

.stale-path {
  background: rgba(240, 122, 85, 0.09);
}

.flow-path > span:not(.flow-tag) {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
}

.flow-path svg {
  width: 18px;
  color: rgba(255, 255, 255, 0.42);
}

.flow-tag {
  padding: 5px 9px;
  color: var(--ink);
  background: var(--cloud);
  border-radius: 4px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
}

.stale-path .flow-tag {
  background: var(--edge);
}

/* Latency lab */
.results-section {
  background: var(--white);
}

.latency-lab {
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lab-controls {
  display: grid;
  grid-template-columns: minmax(440px, 1fr) minmax(300px, 0.8fr);
  align-items: end;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.suite-control {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 4px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.suite-button {
  min-height: 38px;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.suite-button.is-active {
  color: var(--white);
  background: var(--ink);
}

.delay-label-row {
  display: flex;
  margin-bottom: 10px;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.76rem;
  font-weight: 700;
}

.delay-label-row output {
  color: var(--edge-deep);
  font-family: "IBM Plex Mono", monospace;
  white-space: nowrap;
}

.delay-control input[type="range"] {
  width: 100%;
  height: 20px;
  margin: 0;
  accent-color: var(--cloud-deep);
  cursor: pointer;
}

.range-ticks {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
}

.lab-chart {
  position: relative;
  display: grid;
  margin-top: 34px;
  padding-top: 28px;
  gap: 16px;
}

.chart-scale {
  position: absolute;
  top: 0;
  left: 154px;
  right: 62px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
}

.chart-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 54px;
  min-height: 38px;
  align-items: center;
  gap: 14px;
}

.method-name {
  font-size: 0.78rem;
  font-weight: 700;
}

.bar-track {
  position: relative;
  height: 18px;
  background-color: #e4e9e7;
  background-image: linear-gradient(to right, transparent calc(25% - 1px), rgba(96, 113, 116, 0.18) 25%, transparent calc(25% + 1px), transparent calc(50% - 1px), rgba(96, 113, 116, 0.18) 50%, transparent calc(50% + 1px), transparent calc(75% - 1px), rgba(96, 113, 116, 0.18) 75%, transparent calc(75% + 1px));
  border-radius: 3px;
  overflow: hidden;
}

.bar-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--muted);
  border-radius: 3px;
  transition: width 360ms ease;
}

.cloudedge .bar-fill {
  background: var(--blue);
}

.vlash .bar-fill {
  background: #169b8f;
}

.univla .bar-fill {
  background: var(--edge);
}

.oft .bar-fill {
  background: #43b5d9;
}

.openvla .bar-fill {
  background: #797c7d;
}

.bar-value {
  color: var(--ink-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  text-align: right;
}

.lab-summary {
  display: flex;
  margin-top: 30px;
  padding-top: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.lab-summary p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.lab-summary strong {
  color: var(--ink);
}

.window-status {
  flex: 0 0 auto;
  padding: 5px 9px;
  color: var(--cloud-deep);
  background: rgba(91, 199, 198, 0.13);
  border-radius: 4px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.67rem;
  font-weight: 600;
}

.window-status.is-beyond {
  color: var(--edge-deep);
  background: rgba(240, 122, 85, 0.12);
}

.result-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 30px 0;
  border-block: 1px solid var(--line);
}

.result-metrics article {
  display: grid;
  min-height: 160px;
  padding: 28px;
  align-content: center;
  border-right: 1px solid var(--line);
}

.result-metrics article:last-child {
  border-right: 0;
}

.result-metrics strong {
  color: var(--cloud-deep);
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.8rem;
  line-height: 1.2;
}

.result-metrics span {
  margin-top: 5px;
  font-size: 0.86rem;
  font-weight: 700;
}

.result-metrics small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.7rem;
}

.result-figure img {
  padding: 14px;
}

.results-details {
  margin-top: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.results-details summary {
  padding: 18px 22px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.results-details[open] summary {
  border-bottom: 1px solid var(--line);
}

.table-scroll {
  padding: 8px 20px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
}

caption {
  padding: 12px 0;
  color: var(--muted);
  text-align: left;
}

th,
td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

th:first-child,
td:first-child {
  text-align: left;
}

thead th {
  color: var(--muted);
  background: var(--mist);
}

tbody th {
  color: var(--ink-soft);
}

.ours-row {
  color: #075f64;
  background: rgba(91, 199, 198, 0.1);
}

.table-note {
  margin: 0;
  padding: 14px 20px 18px;
  color: var(--muted);
  font-size: 0.7rem;
}

/* Mechanism */
.mechanism-section {
  background: var(--mist);
}

.mechanism-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
  align-items: center;
  gap: 52px;
}

.mechanism-copy > p:last-of-type {
  color: var(--muted);
}

.mechanism-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 32px 0 0;
  gap: 12px;
}

.mechanism-stats div {
  padding: 18px 0;
  border-top: 3px solid var(--edge);
}

.mechanism-stats dt {
  color: var(--cloud-deep);
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.4rem;
  font-weight: 700;
}

.mechanism-stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.73rem;
}

.mechanism-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.consistency-figure img {
  padding: 8px;
}

/* Robot */
.robot-section {
  color: var(--white);
  background: #151719;
}

.robot-heading > p:last-child {
  color: rgba(255, 255, 255, 0.62);
}

.robot-results {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.45fr);
  align-items: start;
  gap: 28px;
}

.rollout-figure {
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.rollout-figure figcaption {
  color: rgba(255, 255, 255, 0.56);
  background: #1c2022;
  border-color: rgba(255, 255, 255, 0.12);
}

.robot-table-wrap {
  padding: 24px;
  background: #1c2022;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.robot-table caption {
  color: rgba(255, 255, 255, 0.62);
}

.robot-table th,
.robot-table td {
  border-color: rgba(255, 255, 255, 0.12);
}

.robot-table th:first-child {
  color: rgba(255, 255, 255, 0.62);
}

.robot-table thead th {
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.05);
}

.robot-table strong {
  color: var(--cloud);
}

.robot-table-wrap > p {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
}

/* Citation */
.citation-section {
  background: var(--paper);
}

.citation-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.6fr) minmax(0, 1.4fr);
  align-items: start;
  gap: 72px;
}

.citation-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.citation-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cloud-deep);
  font-size: 0.84rem;
  font-weight: 700;
  text-underline-offset: 4px;
}

.text-link svg {
  width: 16px;
  height: 16px;
}

.bibtex-block {
  position: relative;
  color: #d9e8e6;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
}

.bibtex-block pre {
  margin: 0;
  padding: 30px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.73rem;
  line-height: 1.75;
  overflow-x: auto;
}

.copy-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: inline-flex;
  min-width: 78px;
  height: 38px;
  padding: 0 12px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--white);
  background: #243638;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.copy-button:hover {
  border-color: var(--cloud);
}

.copy-button svg {
  width: 15px;
  height: 15px;
}

/* Footer */
.site-footer {
  padding: 32px 0;
  color: rgba(255, 255, 255, 0.56);
  background: #0b1214;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  font-size: 0.72rem;
}

.footer-layout p {
  margin-bottom: 0;
}

.footer-layout p:last-child {
  text-align: right;
}

.footer-brand {
  color: var(--white);
}

/* Image dialog */
.image-dialog {
  width: min(94vw, 1500px);
  max-width: none;
  max-height: 92vh;
  padding: 56px 18px 18px;
  background: var(--white);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.42);
}

.image-dialog::backdrop {
  background: rgba(6, 11, 12, 0.86);
}

.image-dialog img {
  width: 100%;
  max-height: calc(92vh - 74px);
  margin-inline: auto;
  object-fit: contain;
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
}

.dialog-close svg {
  width: 19px;
  height: 19px;
}

@media (max-width: 1020px) {
  h1 {
    font-size: 3.8rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .contribution-grid {
    grid-template-columns: 1fr;
  }

  .contribution {
    min-height: 0;
  }

  .contribution > span {
    margin-bottom: 18px;
  }

  .lab-controls,
  .robot-results {
    grid-template-columns: 1fr;
  }

  .mechanism-layout {
    grid-template-columns: 1fr;
  }

  .robot-table-wrap {
    width: 100%;
  }
}

@media (max-width: 780px) {
  :root {
    --header-height: 62px;
  }

  .page-shell,
  .nav-shell {
    width: min(calc(100% - 32px), var(--content));
  }

  .section {
    padding: 76px 0;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    padding: 18px 16px 24px;
    gap: 0;
    background: rgba(16, 27, 29, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transform: translateY(-130%);
    visibility: hidden;
    transition: transform 180ms ease, visibility 180ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  .site-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: 84svh;
    padding-top: calc(var(--header-height) + 54px);
  }

  .hero-backdrop {
    object-position: 58% center;
  }

  .hero-lead {
    font-size: 1.35rem;
  }

  .hero-title-long {
    font-size: 0.9rem;
  }

  .hero-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-metric {
    width: auto;
  }

  .abstract-layout,
  .training-layout,
  .citation-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sticky-heading {
    position: static;
  }

  .method-steps,
  .result-metrics {
    grid-template-columns: 1fr;
  }

  .method-step {
    min-height: 0;
  }

  .result-metrics article {
    min-height: 130px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .result-metrics article:last-child {
    border-bottom: 0;
  }

  .lab-controls {
    gap: 26px;
  }

  .chart-scale {
    left: 126px;
  }

  .chart-row {
    grid-template-columns: 112px minmax(0, 1fr) 52px;
    gap: 10px;
  }

  .method-name {
    font-size: 0.69rem;
  }

  .lab-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-layout {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer-layout p:last-child {
    text-align: left;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .section {
    padding: 64px 0;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 46px);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
  }

  .hero-metrics {
    display: none;
  }

  .training-flow,
  .mechanism-stats,
  .mechanism-figures {
    grid-template-columns: 1fr;
  }

  .hero-metric {
    min-height: 74px;
  }

  .section-heading-wide {
    margin-bottom: 36px;
  }

  .figure-light img,
  .architecture-figure img {
    padding: 12px;
  }

  .latency-lab {
    padding: 20px 14px;
  }

  .suite-control {
    grid-template-columns: repeat(3, 1fr);
  }

  .delay-label-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .chart-scale {
    left: 0;
    right: 48px;
  }

  .chart-row {
    grid-template-columns: minmax(0, 1fr) 48px;
    min-height: 56px;
    gap: 4px 8px;
  }

  .method-name {
    grid-column: 1 / -1;
    font-size: 0.72rem;
  }

  .bar-value {
    font-size: 0.7rem;
  }

  .result-figure img,
  .consistency-figure img {
    padding: 5px;
  }

  .bibtex-block pre {
    padding: 62px 18px 24px;
    font-size: 0.66rem;
  }

  .image-dialog {
    width: 100vw;
    height: 100svh;
    max-height: none;
    margin: 0;
    padding: 58px 16px 18px;
    border-radius: 0;
    overflow: auto;
  }

  .image-dialog img {
    width: 1200px;
    max-width: none;
    max-height: none;
    margin: 0;
  }

  .figure-zoom {
    top: 8px;
    right: 8px;
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
