:root {
  --ink: #eaf7f4;
  --ink-soft: #adc8c3;
  --ink-muted: #789792;
  --night: #061113;
  --night-soft: #091719;
  --surface: #0d2022;
  --surface-strong: #132b2e;
  --surface-pale: #eaf4f0;
  --teal: #24c7a3;
  --teal-bright: #59e0be;
  --blue: #65b8ff;
  --warm: #ffb86b;
  --line: rgba(175, 230, 219, 0.14);
  --line-strong: rgba(175, 230, 219, 0.26);
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.3);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --page: 1200px;
  --header-height: 76px;
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--night);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

::selection {
  background: rgba(36, 199, 163, 0.35);
  color: #fff;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--teal);
  color: #041310;
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

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

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

.section {
  position: relative;
  padding: 118px 0;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 48px;
}

.section-heading h2,
.citation-heading h2,
.benchmark-copy h2 {
  max-width: 850px;
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.15rem, 4.5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.section-heading > p:last-child,
.section-heading-split > p,
.citation-heading > p:last-child {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.75;
}

.section-heading-split {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: 80px;
}

.section-heading-split > p {
  margin: 0 0 6px;
}

.section-kicker,
.eyebrow {
  margin: 0 0 17px;
  color: var(--teal-bright);
  font-family: "Roboto Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(6, 17, 19, 0.78);
  box-shadow: 0 10px 38px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand img {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 8px 18px rgba(36, 199, 163, 0.16));
}

.brand-accent {
  color: var(--teal);
}

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

.site-nav > a {
  position: relative;
  color: var(--ink-soft);
  font-size: 0.91rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.site-nav > a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--teal);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.site-nav .nav-paper {
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--ink);
}

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

.site-nav .nav-paper:hover {
  border-color: rgba(36, 199, 163, 0.6);
  background: rgba(36, 199, 163, 0.08);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(13, 32, 34, 0.7);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  overflow: hidden;
  align-items: center;
  padding: calc(var(--header-height) + 72px) 0 84px;
  background:
    radial-gradient(circle at 79% 30%, rgba(36, 199, 163, 0.13), transparent 27%),
    radial-gradient(circle at 18% 82%, rgba(101, 184, 255, 0.07), transparent 30%),
    linear-gradient(145deg, #071315 0%, #061113 60%, #081819 100%);
}

.hero::before {
  position: absolute;
  top: 16%;
  right: -10%;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(36, 199, 163, 0.09);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(36, 199, 163, 0.025), 0 0 0 180px rgba(36, 199, 163, 0.018);
  content: "";
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(135, 199, 188, 0.036) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135, 199, 188, 0.036) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 90%);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.62fr);
  align-items: center;
  gap: clamp(58px, 8vw, 116px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
}

.eyebrow-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 7px rgba(36, 199, 163, 0.1), 0 0 22px rgba(36, 199, 163, 0.7);
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.75rem, 5.8vw, 5.35rem);
  font-weight: 700;
  line-height: 1.01;
  letter-spacing: -0.058em;
}

.hero h1 > span {
  display: block;
  margin-bottom: 9px;
  background: linear-gradient(100deg, var(--teal-bright), #88c9ff 70%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-lede {
  margin: 30px 0 26px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  letter-spacing: 0.005em;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 25px;
}

.authors a {
  position: relative;
  font-weight: 600;
}

.authors a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--teal);
  content: "";
  opacity: 0.35;
  transform-origin: left;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.authors a:hover::after {
  opacity: 1;
  transform: translateY(2px);
}

sup {
  color: var(--teal-bright);
  font-size: 0.62em;
}

.affiliations {
  max-width: 820px;
  margin: 9px 0 0;
  color: var(--ink-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.91rem;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

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

.button-primary {
  background: var(--teal);
  box-shadow: 0 12px 30px rgba(36, 199, 163, 0.18);
  color: #061713;
}

.button-primary:hover {
  background: var(--teal-bright);
  box-shadow: 0 16px 38px rgba(36, 199, 163, 0.26);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(13, 32, 34, 0.66);
  color: var(--ink);
  backdrop-filter: blur(10px);
}

.button-secondary:hover {
  border-color: rgba(101, 184, 255, 0.5);
  background: rgba(101, 184, 255, 0.08);
}

.button svg,
.repo-card-head svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.button-icon {
  font-size: 1.06rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  transform: translateY(18px);
}

.metric-card {
  position: relative;
  min-height: 154px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(19, 43, 46, 0.84), rgba(9, 24, 26, 0.72));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.metric-card::after {
  position: absolute;
  right: -32px;
  bottom: -48px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(36, 199, 163, 0.17);
  border-radius: 50%;
  content: "";
}

.metric-card-wide {
  min-height: 210px;
  grid-column: 1 / -1;
  padding: 28px;
  border-color: rgba(36, 199, 163, 0.28);
  background: linear-gradient(140deg, rgba(18, 53, 52, 0.92), rgba(8, 24, 26, 0.75));
}

.metric-label {
  display: block;
  color: var(--ink-muted);
  font-family: "Roboto Mono", monospace;
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin: 14px 0 4px;
  color: var(--blue);
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.metric-card-wide strong {
  margin-top: 20px;
  color: var(--teal-bright);
  font-size: clamp(3.6rem, 7vw, 6.3rem);
}

.metric-card strong span {
  margin-left: 2px;
  font-size: 0.5em;
}

.metric-card small {
  color: var(--ink-muted);
  font-size: 0.75rem;
}

.topology-field {
  position: absolute;
  z-index: 1;
  top: 10%;
  right: 4%;
  width: 520px;
  height: 500px;
  opacity: 0.35;
  pointer-events: none;
}

.topology-node {
  position: absolute;
  width: 11px;
  height: 11px;
  border: 2px solid var(--teal-bright);
  border-radius: 50%;
  background: var(--night);
  box-shadow: 0 0 20px rgba(36, 199, 163, 0.65);
}

.node-a { top: 15%; left: 18%; }
.node-b { top: 54%; left: 46%; }
.node-c { top: 26%; left: 81%; border-color: var(--blue); }
.node-d { top: 79%; left: 73%; border-color: var(--warm); }

.topology-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, rgba(36, 199, 163, 0), rgba(36, 199, 163, 0.75), rgba(101, 184, 255, 0));
  transform-origin: left;
}

.line-a { top: 18%; left: 20%; width: 335px; transform: rotate(10deg); }
.line-b { top: 55%; left: 46%; width: 210px; transform: rotate(38deg); }
.line-c { top: 18%; left: 20%; width: 260px; transform: rotate(45deg); }

.scroll-cue {
  position: absolute;
  z-index: 4;
  bottom: 27px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink-muted);
  font-family: "Roboto Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue span {
  position: relative;
  width: 20px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
}

.scroll-cue span::after {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 6px;
  border-radius: 5px;
  background: var(--teal);
  content: "";
  transform: translateX(-50%);
  animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%, 100% { opacity: 0.25; transform: translate(-50%, 0); }
  45% { opacity: 1; transform: translate(-50%, 10px); }
}

.section-overview {
  background: var(--surface-pale);
  color: #102623;
}

.section-overview::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(24, 74, 66, 0.1) 0.7px, transparent 0.7px);
  background-size: 22px 22px;
  content: "";
  opacity: 0.35;
  pointer-events: none;
}

.section-overview .page-shell {
  position: relative;
}

.section-overview .section-kicker {
  color: #087e69;
}

.section-overview .section-heading > p:last-child {
  color: #4f6c67;
}

.figure-frame {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow);
}

.figure-frame img {
  width: 100%;
  height: auto;
  background: #fff;
}

.figure-frame figcaption {
  padding: 15px 20px 17px;
  border-top: 1px solid rgba(31, 70, 64, 0.1);
  background: #f7fbf9;
  color: #627873;
  font-size: 0.82rem;
  line-height: 1.55;
}

.figure-frame figcaption span {
  color: #193d37;
  font-weight: 700;
}

.figure-open {
  position: absolute;
  z-index: 2;
  top: 13px;
  right: 13px;
  padding: 7px 11px;
  border: 1px solid rgba(15, 50, 44, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 18px rgba(12, 44, 38, 0.1);
  color: #254b44;
  cursor: pointer;
  font-family: "Roboto Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.figure-open:hover {
  background: #fff;
  transform: translateY(-1px);
}

.figure-hero {
  margin-bottom: 62px;
  border-color: rgba(36, 84, 76, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 90px rgba(38, 75, 68, 0.16);
}

.abstract-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 24px;
}

.abstract-card,
.idea-card {
  border: 1px solid rgba(30, 78, 69, 0.12);
  background: rgba(255, 255, 255, 0.62);
}

.abstract-card {
  padding: clamp(28px, 5vw, 54px);
  border-radius: var(--radius-md);
}

.abstract-card p:not(.section-kicker) {
  margin: 0 0 18px;
  color: #36534e;
  font-size: 1.03rem;
}

.abstract-card p:last-child {
  margin-bottom: 0;
}

.idea-stack {
  display: grid;
  gap: 13px;
}

.idea-card {
  display: flex;
  align-items: flex-start;
  gap: 21px;
  padding: 23px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.idea-card:hover {
  background: #fff;
  transform: translateX(4px);
}

.idea-index,
.pipeline-number {
  color: #118e78;
  font-family: "Roboto Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
}

.idea-card h3,
.pipeline-card h3,
.evidence-copy h3,
.repo-card h3 {
  margin: 0 0 5px;
  font-family: "Manrope", sans-serif;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.idea-card p {
  margin: 0;
  color: #607872;
  font-size: 0.88rem;
  line-height: 1.55;
}

.section-method {
  background:
    radial-gradient(circle at 10% 30%, rgba(101, 184, 255, 0.05), transparent 25%),
    var(--night-soft);
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 26px;
  counter-reset: stage;
}

.pipeline-card {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, rgba(18, 43, 46, 0.72), rgba(9, 24, 26, 0.8));
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.pipeline-card:not(:last-child)::after {
  position: absolute;
  z-index: 3;
  top: 67px;
  right: -12px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--night-soft);
  color: var(--teal);
  content: "›";
  font-size: 1.2rem;
}

.pipeline-card:hover {
  border-color: rgba(36, 199, 163, 0.35);
  transform: translateY(-4px);
}

.pipeline-number {
  position: absolute;
  top: 23px;
  right: 24px;
  color: var(--ink-muted);
}

.pipeline-icon {
  display: grid;
  width: 49px;
  height: 49px;
  margin-bottom: 31px;
  place-items: center;
  border: 1px solid rgba(36, 199, 163, 0.3);
  border-radius: 13px;
  background: rgba(36, 199, 163, 0.08);
  color: var(--teal-bright);
  font-size: 1.45rem;
}

.pipeline-card h3 {
  font-size: 1.22rem;
}

.pipeline-card p {
  margin: 10px 0 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.62;
}

.method-figures {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(320px, 0.48fr);
  gap: 24px;
}

.method-figures .figure-frame {
  align-self: start;
}

.memory-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 28px;
  border: 1px solid rgba(36, 199, 163, 0.2);
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, rgba(20, 54, 54, 0.75), rgba(8, 23, 25, 0.9));
}

.memory-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  font-family: "Roboto Mono", monospace;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--teal-bright);
}

.live-dot::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
  content: "";
}

.memory-graph {
  position: relative;
  height: 160px;
  margin: 18px 0 10px;
}

.graph-node {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(101, 184, 255, 0.55);
  border-radius: 50%;
  background: #0d2527;
  color: var(--blue);
  font-family: "Roboto Mono", monospace;
  font-size: 0.62rem;
  box-shadow: 0 0 18px rgba(101, 184, 255, 0.12);
}

.graph-node.goal {
  border-color: rgba(255, 184, 107, 0.8);
  color: var(--warm);
  box-shadow: 0 0 22px rgba(255, 184, 107, 0.22);
}

.g1 { top: 75px; left: 2%; }
.g2 { top: 19px; left: 31%; }
.g3 { top: 88px; left: 54%; }
.g4 { top: 26px; right: 4%; }
.g5 { right: 7%; bottom: 1px; }

.graph-edge {
  position: absolute;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(101, 184, 255, 0.2), rgba(36, 199, 163, 0.7));
  transform-origin: left;
}

.e1 { top: 88px; left: 8%; width: 92px; transform: rotate(-32deg); }
.e2 { top: 36px; left: 37%; width: 83px; transform: rotate(48deg); }
.e3 { top: 99px; left: 60%; width: 92px; transform: rotate(-39deg); }
.e4 { top: 46px; left: 84%; width: 82px; transform: rotate(82deg); }

.memory-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: auto 0 17px;
}

.memory-stats div {
  min-width: 0;
  padding: 13px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(3, 17, 18, 0.3);
  text-align: center;
}

.memory-stats dt {
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.memory-stats dd {
  margin: 1px 0 0;
  color: var(--ink-muted);
  font-size: 0.57rem;
  letter-spacing: 0.02em;
}

.memory-card > p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.section-results {
  background: #eaf4f0;
  color: #102623;
}

.section-results .section-kicker {
  color: #087e69;
}

.section-results .section-heading-split > p {
  color: #506d67;
}

.result-summary {
  display: grid;
  margin-bottom: 26px;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 13px;
}

.result-summary article {
  padding: 24px;
  border: 1px solid rgba(31, 83, 73, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.52);
}

.result-summary article.highlight {
  border-color: rgba(17, 142, 120, 0.25);
  background: rgba(36, 199, 163, 0.08);
}

.result-summary article.warm {
  border-color: rgba(207, 128, 45, 0.25);
  background: rgba(255, 184, 107, 0.13);
}

.result-summary article > span {
  color: #55716c;
  font-size: 0.78rem;
  font-weight: 600;
}

.result-summary strong {
  display: block;
  margin: 8px 0 2px;
  color: #153b34;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.result-summary .highlight strong {
  color: #087963;
}

.result-summary .warm strong {
  color: #a55713;
}

.result-summary small {
  color: #718a85;
  font-size: 0.72rem;
}

.result-arrow {
  align-self: center;
  color: #7a9992;
  font-size: 1.3rem;
}

.figure-results {
  margin-bottom: 24px;
}

.analysis-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.section-evidence {
  background:
    radial-gradient(circle at 86% 25%, rgba(255, 184, 107, 0.07), transparent 24%),
    #081719;
}

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

.evidence-stat {
  display: flex;
  align-items: flex-end;
  gap: 15px;
}

.evidence-stat strong {
  color: var(--warm);
  font-family: "Manrope", sans-serif;
  font-size: clamp(3.6rem, 7vw, 6rem);
  line-height: 0.82;
  letter-spacing: -0.06em;
}

.evidence-stat span {
  max-width: 180px;
  color: var(--ink-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.evidence-rule {
  height: 1px;
  margin: 34px 0;
  background: linear-gradient(90deg, rgba(255, 184, 107, 0.5), transparent);
}

.evidence-copy h3 {
  font-size: 1.5rem;
}

.evidence-copy p {
  margin: 14px 0 0;
  color: var(--ink-muted);
  font-size: 0.94rem;
}

.section-demos {
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 9%, rgba(101, 184, 255, 0.08), transparent 25%),
    linear-gradient(180deg, #0b1d1f 0%, #071517 100%);
}

.section-demos::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(36, 199, 163, 0.42), transparent);
  content: "";
}

.comparison-label {
  display: flex;
  width: max-content;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 auto 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(4, 16, 18, 0.5);
}

.comparison-label span {
  position: relative;
  padding: 7px 16px;
  color: var(--ink-muted);
  font-family: "Roboto Mono", monospace;
  font-size: 0.63rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.comparison-label span:not(:last-child)::after {
  position: absolute;
  top: 8px;
  right: 0;
  bottom: 8px;
  width: 1px;
  background: var(--line);
  content: "";
}

.video-comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 19px;
}

.video-card,
.trajectory-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(13, 32, 34, 0.78);
  box-shadow: var(--shadow);
}

.video-card-failure {
  border-color: rgba(255, 126, 121, 0.22);
}

.video-card-success {
  border-color: rgba(36, 199, 163, 0.3);
}

.video-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 640 / 368;
  background:
    radial-gradient(circle at center, rgba(36, 199, 163, 0.09), transparent 50%),
    #040c0d;
}

.video-wrap video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-status {
  position: absolute;
  z-index: 2;
  top: 13px;
  right: 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: rgba(4, 14, 15, 0.78);
  font-family: "Roboto Mono", monospace;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.video-status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  content: "";
}

.status-failure {
  color: #ff8984;
}

.status-success {
  color: var(--teal-bright);
}

.video-copy {
  padding: 21px 23px 23px;
}

.video-copy > div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.video-copy h3,
.trajectory-heading h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.025em;
}

.video-copy h3 {
  font-size: 1.08rem;
}

.video-index {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--teal-bright);
  font-family: "Roboto Mono", monospace;
  font-size: 0.65rem;
}

.video-copy p {
  margin: 10px 0 0 37px;
  color: var(--ink-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.comparison-arrow {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(36, 199, 163, 0.25);
  border-radius: 50%;
  background: #0a2021;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  color: var(--teal-bright);
  font-size: 1.35rem;
}

.comparison-arrow span {
  position: absolute;
  margin-top: -91px;
  color: var(--ink-muted);
  font-family: "Roboto Mono", monospace;
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trajectory-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin: 62px 0 21px;
}

.trajectory-heading .section-kicker {
  margin-bottom: 9px;
}

.trajectory-heading h3 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.trajectory-heading > p {
  margin: 0 0 3px;
  color: var(--ink-muted);
  font-size: 0.8rem;
}

.trajectory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.trajectory-card {
  border-radius: 15px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.trajectory-card:hover {
  border-color: rgba(36, 199, 163, 0.32);
  transform: translateY(-3px);
}

.trajectory-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px 14px;
}

.trajectory-meta span {
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
}

.trajectory-meta small {
  color: var(--ink-muted);
  font-family: "Roboto Mono", monospace;
  font-size: 0.55rem;
  text-align: right;
}

.section-robot {
  background: #eaf4f0;
  color: #102623;
}

.section-robot .section-kicker {
  color: #087e69;
}

.section-robot .section-heading-split > p {
  color: #506d67;
}

.figure-robot {
  margin-bottom: 24px;
}

.figure-cases {
  width: min(100%, 1020px);
  margin-inline: auto;
}

.section-benchmark {
  padding: 94px 0;
  background: #dfece7;
  color: #102623;
}

.benchmark-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.55fr);
  gap: clamp(42px, 8vw, 100px);
  padding: clamp(32px, 6vw, 72px);
  border: 1px solid rgba(31, 80, 72, 0.14);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.78), rgba(243, 250, 247, 0.53)),
    radial-gradient(circle at 30% 20%, rgba(36, 199, 163, 0.15), transparent 25%);
  box-shadow: 0 30px 90px rgba(53, 88, 81, 0.13);
}

.benchmark-copy .section-kicker {
  color: #087e69;
}

.benchmark-copy h2 {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
}

.benchmark-copy > p:not(.section-kicker) {
  max-width: 700px;
  margin: 21px 0 0;
  color: #4c6963;
}

.benchmark-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
}

.benchmark-tags span {
  padding: 7px 11px;
  border: 1px solid rgba(17, 126, 105, 0.18);
  border-radius: 999px;
  background: rgba(36, 199, 163, 0.07);
  color: #276057;
  font-size: 0.7rem;
  font-weight: 600;
}

.benchmark-copy .release-note {
  padding-left: 16px;
  border-left: 2px solid rgba(140, 96, 44, 0.42);
  color: #6e665c !important;
  font-size: 0.77rem;
  line-height: 1.5;
}

.repo-card {
  align-self: center;
  padding: 27px;
  border-radius: var(--radius-md);
  background: #0a1d1f;
  box-shadow: 0 24px 60px rgba(7, 32, 29, 0.22);
  color: var(--ink);
}

.repo-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-muted);
  font-family: "Roboto Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.repo-card h3 {
  margin: 20px 0;
  color: var(--ink);
  font-size: 1.45rem;
}

.repo-card code {
  display: block;
  overflow: hidden;
  margin-bottom: 23px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-muted);
  font-family: "Roboto Mono", monospace;
  font-size: 0.64rem;
  line-height: 1.55;
}

.repo-card .button {
  width: 100%;
}

.section-citation {
  background: #071315;
}

.citation-layout {
  display: grid;
  grid-template-columns: 0.6fr minmax(0, 1.4fr);
  align-items: center;
  gap: clamp(50px, 10vw, 130px);
}

.citation-heading > p:last-child {
  color: var(--ink-muted);
}

.bibtex-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #0c1d1f;
  box-shadow: var(--shadow);
}

.bibtex-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  font-family: "Roboto Mono", monospace;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bibtex-head button {
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  text-transform: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.bibtex-head button:hover {
  border-color: var(--teal);
  color: var(--teal-bright);
}

.bibtex-card pre {
  overflow-x: auto;
  margin: 0;
  padding: 26px;
  color: #b8d4ce;
  font-family: "Roboto Mono", monospace;
  font-size: clamp(0.7rem, 1.1vw, 0.82rem);
  line-height: 1.75;
  tab-size: 2;
}

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  background: #051012;
}

.footer-layout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
}

.footer-layout p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.75rem;
}

.footer-links {
  display: flex;
  gap: 19px;
}

.footer-links a {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--teal-bright);
}

.lightbox {
  width: min(96vw, 1480px);
  max-width: none;
  max-height: 94vh;
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(175, 230, 219, 0.2);
  border-radius: var(--radius-md);
  background: #071315;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.7);
  color: var(--ink);
}

.lightbox::backdrop {
  background: rgba(0, 8, 9, 0.88);
  backdrop-filter: blur(10px);
}

.lightbox-content {
  max-height: 90vh;
  overflow: auto;
  border-radius: inherit;
}

.lightbox-content img {
  width: 100%;
  height: auto;
  background: #fff;
}

.lightbox-content p {
  margin: 0;
  padding: 16px 20px;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.lightbox-close {
  position: absolute;
  z-index: 4;
  top: -16px;
  right: -16px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #102426;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pipeline .reveal:nth-child(2) { transition-delay: 0.08s; }
.pipeline .reveal:nth-child(3) { transition-delay: 0.16s; }
.pipeline .reveal:nth-child(4) { transition-delay: 0.24s; }

@media (max-width: 1080px) {
  .site-nav {
    gap: 20px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(270px, 0.7fr);
    gap: 50px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 6.6vw, 4.7rem);
  }

  .pipeline-card {
    padding: 22px;
  }

  .method-figures {
    grid-template-columns: 1fr;
  }

  .memory-card {
    min-height: 430px;
  }
}

@media (max-width: 880px) {
  :root {
    --header-height: 68px;
  }

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

  .section {
    padding: 88px 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    padding: 38px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(6, 17, 19, 0.97);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    backdrop-filter: blur(20px);
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav > a {
    padding: 16px 6px;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

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

  .site-nav .nav-paper {
    margin-top: 20px;
    border: 1px solid var(--line-strong);
    text-align: center;
  }

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

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

  .hero-copy {
    max-width: 760px;
  }

  .hero-metrics {
    max-width: 680px;
    transform: none;
  }

  .metric-card-wide {
    min-height: 180px;
  }

  .topology-field {
    right: -25%;
  }

  .scroll-cue {
    display: none;
  }

  .section-heading-split,
  .abstract-layout,
  .evidence-layout,
  .citation-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .section-heading-split > p {
    max-width: 700px;
  }

  .pipeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .pipeline-card:not(:last-child)::after {
    display: none;
  }

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

  .video-comparison {
    grid-template-columns: 1fr;
  }

  .comparison-arrow {
    width: 50px;
    height: 50px;
    margin: -4px auto;
    transform: rotate(90deg);
  }

  .comparison-arrow span {
    display: none;
  }

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

  .trajectory-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 8px);
  }

  .benchmark-panel {
    grid-template-columns: 1fr;
  }

  .repo-card {
    width: min(100%, 440px);
  }

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

  .footer-links {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .page-shell,
  .nav-shell {
    width: min(calc(100% - 28px), var(--page));
  }

  .section {
    padding: 72px 0;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .section-heading h2,
  .citation-heading h2,
  .benchmark-copy h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .hero {
    padding-top: calc(var(--header-height) + 62px);
    padding-bottom: 70px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12.3vw, 3.4rem);
  }

  .hero-lede {
    margin-top: 22px;
  }

  .authors {
    display: grid;
    gap: 5px;
  }

  .authors a {
    width: max-content;
  }

  .affiliations {
    margin-top: 11px;
  }

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

  .button {
    padding-inline: 14px;
  }

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

  .metric-card {
    min-height: 135px;
    padding: 18px;
  }

  .metric-card-wide {
    min-height: 160px;
  }

  .metric-card-wide strong {
    font-size: 4rem;
  }

  .metric-card strong {
    font-size: 2rem;
  }

  .figure-frame,
  .figure-hero {
    border-radius: 14px;
  }

  .figure-open {
    top: 8px;
    right: 8px;
    padding: 5px 8px;
    font-size: 0.56rem;
  }

  .figure-frame figcaption {
    padding: 12px 14px 14px;
    font-size: 0.74rem;
  }

  .abstract-card {
    padding: 24px;
  }

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

  .pipeline-card {
    min-height: auto;
  }

  .pipeline-icon {
    margin-bottom: 23px;
  }

  .memory-card {
    min-height: 410px;
    padding: 22px;
  }

  .memory-stats {
    gap: 5px;
  }

  .memory-stats dt {
    font-size: 0.92rem;
  }

  .memory-stats dd {
    font-size: 0.51rem;
  }

  .result-summary {
    grid-template-columns: 1fr;
  }

  .result-arrow {
    display: none;
  }

  .evidence-layout {
    gap: 40px;
  }

  .evidence-stat {
    align-items: center;
  }

  .evidence-stat strong {
    font-size: 4.6rem;
  }

  .comparison-label {
    justify-content: center;
    border-radius: 15px;
  }

  .comparison-label span {
    padding: 7px 10px;
    font-size: 0.52rem;
  }

  .video-copy {
    padding: 17px 18px 19px;
  }

  .video-copy p {
    margin-left: 0;
  }

  .trajectory-heading {
    display: block;
    margin-top: 48px;
  }

  .trajectory-heading > p {
    margin-top: 10px;
  }

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

  .trajectory-card:last-child {
    grid-column: auto;
    width: auto;
  }

  .trajectory-meta small {
    font-size: 0.53rem;
  }

  .benchmark-panel {
    padding: 27px 20px;
    border-radius: 20px;
  }

  .repo-card {
    padding: 22px;
  }

  .bibtex-card pre {
    padding: 20px;
  }

  .footer-layout {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .footer-links {
    grid-column: auto;
  }

  .lightbox-close {
    top: 7px;
    right: 7px;
    width: 36px;
    height: 36px;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
