:root {
  color-scheme: dark;
  --bg: #0a0f12;
  --bg-soft: #0f161a;
  --bg-raised: #141d22;
  --bg-glass: rgba(10, 15, 18, 0.78);
  --ink: #f3f0e9;
  --ink-soft: #b7bdba;
  --ink-faint: #7d8888;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.2);
  --gold: #d9ab5d;
  --gold-bright: #f0c77c;
  --gold-soft: rgba(217, 171, 93, 0.12);
  --teal: #62c7c0;
  --teal-soft: rgba(98, 199, 192, 0.12);
  --expert-1: #2e7d32;
  --expert-2: #e65100;
  --expert-3: #1565c0;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --display: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --serif: "Crimson Pro", Georgia, serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --content: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --radius: 18px;
  --header-height: 72px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f1ea;
  --bg-soft: #ede8df;
  --bg-raised: #fbf9f4;
  --bg-glass: rgba(244, 241, 234, 0.82);
  --ink: #152024;
  --ink-soft: #4e5d5f;
  --ink-faint: #778285;
  --line: rgba(21, 32, 36, 0.12);
  --line-strong: rgba(21, 32, 36, 0.22);
  --gold: #9a681d;
  --gold-bright: #805412;
  --gold-soft: rgba(154, 104, 29, 0.1);
  --teal: #167c79;
  --teal-soft: rgba(22, 124, 121, 0.09);
  --shadow: 0 24px 80px rgba(37, 28, 14, 0.12);
}

*,
*::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(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -4;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 0.65px, transparent 0.65px);
  background-size: 6px 6px;
  content: "";
  opacity: 0.24;
  pointer-events: none;
}

::selection {
  background: var(--gold);
  color: #101417;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

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

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

code,
pre {
  font-family: var(--mono);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 0.75rem;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.ambient {
  position: fixed;
  z-index: -3;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(120px);
  opacity: 0.09;
  pointer-events: none;
}

.ambient-one {
  top: 8vh;
  left: -20rem;
  background: var(--gold);
}

.ambient-two {
  right: -22rem;
  bottom: 5vh;
  background: var(--teal);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-height);
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, min-height 220ms ease;
}

.site-header.is-scrolled {
  min-height: 62px;
  border-color: var(--line);
  background: var(--bg-glass);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.72rem;
  width: fit-content;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: linear-gradient(145deg, var(--bg-raised), var(--gold-soft));
  color: var(--ink);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);
}

.brand-mark svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 2.4vw, 2.3rem);
}

.primary-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 160ms ease;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--ink);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.theme-toggle {
  display: grid;
  justify-self: end;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--line-strong);
  color: var(--gold);
  transform: rotate(8deg);
}

.theme-icon {
  grid-area: 1 / 1;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: opacity 160ms ease, transform 160ms ease;
}

html[data-theme="dark"] .theme-icon-moon,
html[data-theme="light"] .theme-icon-sun {
  opacity: 0;
  transform: scale(0.55) rotate(-45deg);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: calc(var(--header-height) + 4rem) var(--gutter) 5rem;
  overflow: hidden;
  place-items: center;
}

.hero-grid {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-position: center;
  background-size: min(9vw, 118px) min(9vw, 118px);
  mask-image: radial-gradient(circle at 50% 46%, black 3%, transparent 72%);
  opacity: 0.28;
}

.hero::before {
  position: absolute;
  z-index: -2;
  top: 15%;
  left: 50%;
  width: min(58vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-soft), transparent 66%);
  content: "";
  transform: translateX(-50%);
  filter: blur(16px);
}

.hero-orbit {
  position: absolute;
  z-index: -1;
  top: 47%;
  left: 50%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
}

.hero-orbit::after {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 20px var(--gold);
  content: "";
}

.orbit-one {
  width: min(72vw, 960px);
  transform: translate(-50%, -50%) rotate(-13deg);
  animation: orbit 34s linear infinite;
}

.orbit-two {
  width: min(49vw, 650px);
  border-style: dashed;
  opacity: 0.65;
  transform: translate(-50%, -50%) rotate(26deg);
  animation: orbit-reverse 27s linear infinite;
}

@keyframes orbit {
  to { transform: translate(-50%, -50%) rotate(347deg); }
}

@keyframes orbit-reverse {
  to { transform: translate(-50%, -50%) rotate(-334deg); }
}

.hero-content {
  width: min(100%, 1050px);
  margin: 0 auto;
  text-align: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 1.2rem;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.eyebrow span {
  width: 26px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  display: flex;
  justify-content: center;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(5.3rem, 15vw, 10.7rem);
  font-weight: 500;
  line-height: 0.74;
  letter-spacing: -0.075em;
}

.title-skill {
  color: var(--ink);
}

.title-memo {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
  text-shadow: 0 0 55px var(--gold-soft);
}

.hero-subtitle {
  max-width: 880px;
  margin: clamp(2.3rem, 5vw, 3.5rem) auto 0;
  color: var(--ink);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.018em;
}

.paper-authors {
  max-width: 1020px;
  margin: 1.45rem auto 0;
}

.author-list {
  display: grid;
  gap: 0.38rem;
}

.author-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem clamp(0.85rem, 2vw, 1.45rem);
}

.author-row > span {
  color: var(--gold-bright);
  font-size: clamp(0.88rem, 1.45vw, 1rem);
  font-weight: 500;
  white-space: nowrap;
}

.paper-authors sup {
  margin-left: 0.12em;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.58em;
  font-weight: 600;
  vertical-align: super;
}

.paper-affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 1.15rem;
  margin-top: 0.8rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(0.76rem, 1.15vw, 0.87rem);
  line-height: 1.45;
}

.paper-affiliations span {
  white-space: nowrap;
}

.corresponding-author {
  margin: 0.42rem 0 0;
  color: var(--ink-faint);
  font-family: var(--serif);
  font-size: 0.76rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 2rem;
}

.project-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 43px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.project-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.project-button:hover,
.project-button:focus-visible {
  border-color: var(--gold);
  background: var(--gold-soft);
  transform: translateY(-2px);
}

.project-button-accent {
  border-color: var(--gold);
  background: var(--gold);
  color: #11171a;
}

.project-button-accent:hover,
.project-button-accent:focus-visible {
  background: var(--gold-bright);
}

.project-button.is-muted {
  color: var(--ink-faint);
  cursor: not-allowed;
}

.project-button small {
  color: inherit;
  font-family: var(--mono);
  font-size: 0.56rem;
  opacity: 0.66;
  text-transform: uppercase;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 620px;
  margin: 2.4rem auto 0;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0 1rem;
}

.hero-stats div + div {
  border-left: 1px solid var(--line);
}

.hero-stats strong {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 500;
}

.hero-stats strong span {
  color: var(--gold);
}

.hero-stats small {
  color: var(--ink-faint);
  font-size: 0.67rem;
  letter-spacing: 0.03em;
}

.scroll-cue {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue i {
  position: relative;
  width: 1px;
  height: 26px;
  overflow: hidden;
  background: var(--line-strong);
}

.scroll-cue i::after {
  position: absolute;
  top: -100%;
  left: 0;
  width: 1px;
  height: 100%;
  background: var(--gold);
  content: "";
  animation: scroll-line 1.8s ease-in-out infinite;
}

@keyframes scroll-line {
  65%, 100% { transform: translateY(210%); }
}

.section {
  position: relative;
  width: min(100%, calc(var(--content) + 2 * var(--gutter)));
  margin: 0 auto;
  padding: clamp(5.8rem, 10vw, 9rem) var(--gutter);
}

.section-compact {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.section-tinted {
  width: 100%;
  max-width: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.section-tinted > * {
  width: min(100%, var(--content));
  margin-right: auto;
  margin-left: auto;
}

.section-heading {
  max-width: 830px;
  margin-bottom: clamp(2.8rem, 6vw, 4.6rem);
}

.section-heading h2,
.citation-layout h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.55rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.section-heading > p:last-child {
  max-width: 690px;
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
  line-height: 1.55;
}

.section-video {
  padding-top: clamp(6.5rem, 10vw, 9.5rem);
}

.video-shell {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-raised);
  box-shadow: var(--shadow);
}

.video-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 49px;
  padding: 0 1.2rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

.video-topline span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.video-topline i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
}

.video-topline a {
  transition: color 160ms ease;
}

.video-topline a:hover,
.video-topline a:focus-visible {
  color: var(--gold);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #050708;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.tldr {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: clamp(1rem, 3vw, 2.3rem);
  align-items: start;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(120deg, var(--gold-soft), transparent 52%);
}

.tldr-label {
  padding-top: 0.34rem;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.tldr p {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.tldr strong {
  color: var(--ink);
  font-weight: 600;
}

.section-prose {
  padding-top: clamp(5rem, 8vw, 7rem);
}

.prose-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(2rem, 7vw, 6.2rem);
  align-items: start;
}

.prose-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.7vw, 1.28rem);
  line-height: 1.72;
}

.prose-grid .prose-lead {
  color: var(--ink);
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  line-height: 1.32;
}

.prose-single {
  max-width: 960px;
}

.prose-single p {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.8vw, 1.3rem);
  line-height: 1.72;
}

.pipeline-figure {
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #10171b;
  box-shadow: var(--shadow);
}

.figure-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #abb6b7;
  font-family: var(--mono);
  font-size: 0.67rem;
}

.figure-toolbar span {
  color: #f1ede4;
}

.figure-toolbar a:hover,
.figure-toolbar a:focus-visible {
  color: #f0c77c;
}

.pipeline-image-wrap {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.pipeline-image-wrap img {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  background: #10171b;
}

.pipeline-figure figcaption,
.analysis-figure figcaption {
  padding: 1.2rem 1.5rem 1.35rem;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.52;
}

.pipeline-figure figcaption strong,
.analysis-figure figcaption strong {
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}

.method-card {
  position: relative;
  min-height: 330px;
  padding: 1.7rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  transition: border-color 220ms ease, transform 220ms ease;
}

.method-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.method-number {
  position: absolute;
  top: 1.35rem;
  right: 1.4rem;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.63rem;
}

.method-card h3,
.resource-card h3 {
  margin: 1.45rem 0 0.7rem;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.1;
}

.method-card p {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.58;
}

.method-card code,
.method-note code {
  color: var(--teal);
  font-size: 0.76em;
}

.method-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--gold-soft), transparent);
}

.icon-experts {
  gap: 5px;
}

.icon-experts i {
  width: 9px;
  border: 1px solid var(--gold);
  border-radius: 99px;
  background: var(--gold-soft);
}

.icon-experts i:nth-child(1) { height: 25px; }
.icon-experts i:nth-child(2) { height: 39px; background: var(--gold); }
.icon-experts i:nth-child(3) { height: 18px; }

.icon-memory i {
  position: absolute;
  width: 30px;
  height: 13px;
  border: 1px solid var(--teal);
  border-radius: 5px;
  background: var(--bg-raised);
}

.icon-memory i:nth-child(1) { transform: translateY(-13px); }
.icon-memory i:nth-child(2) { transform: translateY(0); }
.icon-memory i:nth-child(3) { transform: translateY(13px); background: var(--teal-soft); }

.icon-gate {
  gap: 4px;
}

.icon-gate::before {
  position: absolute;
  width: 35px;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.icon-gate i {
  z-index: 1;
  width: 15px;
  height: 25px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: var(--bg-raised);
  transform: skewY(-20deg);
}

.icon-gate i:last-child {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.method-note {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.4rem;
  margin-top: 1.2rem;
  padding: 1.35rem 1.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
}

.method-note > span {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.method-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.protocol-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1.4fr;
  align-items: center;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.protocol-strip div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.protocol-strip strong {
  font-family: var(--mono);
  font-size: 1.45rem;
  font-weight: 500;
}

.protocol-strip span {
  color: var(--ink-faint);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

.protocol-strip > i {
  color: var(--ink-faint);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: normal;
}

.protocol-strip .protocol-total {
  margin: -0.45rem;
  padding: 0.55rem;
  border-radius: 10px;
  background: var(--gold-soft);
}

.protocol-strip .protocol-total strong {
  color: var(--gold-bright);
}

.result-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}

.result-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 245px;
  padding: 1.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  overflow: hidden;
}

.result-card::after {
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  width: 11rem;
  height: 11rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.result-card-featured {
  border-color: color-mix(in srgb, var(--gold) 55%, transparent);
  background: linear-gradient(145deg, var(--gold-soft), var(--bg-raised) 58%);
}

.result-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.result-card > strong {
  margin-top: 0.65rem;
  font-family: var(--mono);
  font-size: clamp(2.7rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.07em;
}

.result-card > strong span {
  color: var(--gold);
  font-size: 0.46em;
}

.result-card small {
  margin-top: 0.7rem;
  color: var(--ink-faint);
  font-size: 0.71rem;
}

.result-card small b {
  color: var(--ink-soft);
  font-weight: 500;
}

.result-card code {
  z-index: 1;
  width: fit-content;
  margin-top: auto;
  color: var(--teal);
  font-size: 0.66rem;
}

.table-shell {
  margin-top: 1.2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.table-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--line);
}

.table-title > div {
  display: flex;
  flex-direction: column;
}

.table-title span {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 500;
}

.table-title small,
.table-title a {
  color: var(--ink-faint);
  font-size: 0.68rem;
}

.table-title a:hover,
.table-title a:focus-visible {
  color: var(--gold);
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 830px;
  border-collapse: collapse;
}

th,
td {
  padding: 1.05rem 1.15rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

thead th {
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

tbody th {
  min-width: 235px;
  font-weight: 400;
}

tbody th code {
  display: block;
  color: var(--ink);
  font-size: 0.7rem;
}

tbody th small,
tbody td small {
  display: block;
  color: var(--ink-faint);
  font-size: 0.62rem;
  font-weight: 400;
}

tbody td {
  font-family: var(--mono);
  font-size: 0.8rem;
}

tbody td.best {
  color: var(--gold-bright);
}

.memory-row {
  background: var(--gold-soft);
}

.scope-note {
  margin: 1.25rem 0 0;
  padding: 1.2rem 1.4rem;
  border-left: 2px solid var(--teal);
  background: var(--teal-soft);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1rem;
}

.scope-note strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-analysis {
  background:
    radial-gradient(circle at 75% 18%, var(--teal-soft), transparent 30%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.analysis-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-raised);
  box-shadow: var(--shadow);
}

.section-visualization {
  width: 100%;
  max-width: none;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 75% 18%, var(--teal-soft), transparent 30%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.section-visualization > * {
  width: min(100%, var(--content));
  margin-right: auto;
  margin-left: auto;
}

.visualization-media {
  display: grid;
  gap: 1.2rem;
}

.visualization-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.visualization-video-shell {
  min-width: 0;
}

.visualization-video-shell .video-topline,
.visualization-pdf-shell .video-topline {
  gap: 1rem;
}

.visualization-video-shell .video-topline span,
.visualization-pdf-shell .video-topline span {
  min-width: 0;
}

.visualization-video-frame {
  aspect-ratio: 896 / 256;
  overflow: hidden;
  background: #050708;
}

.visualization-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.visualization-pdf-shell {
  background: var(--bg-raised);
}

.visualization-pdf-frame {
  aspect-ratio: 888 / 277;
  overflow: hidden;
  background: #fff;
}

.visualization-pdf-frame object {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.visualization-pdf-frame p {
  display: grid;
  height: 100%;
  margin: 0;
  place-items: center;
  color: #152024;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.visualization-pdf-frame a {
  text-decoration: underline;
}

.analysis-task {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--line);
}

.analysis-task span {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.analysis-task strong {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
}

.routing-image-wrap {
  padding: clamp(0.5rem, 2vw, 1.25rem);
  background: #fff;
}

.routing-image-wrap img {
  width: 100%;
}

.expert-legend {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.65rem;
}

.expert-legend span,
.phase-grid article > div {
  display: flex;
  align-items: center;
  gap: 0.48rem;
}

.expert-legend i,
.phase-grid article > div i {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.expert-one { background: var(--expert-1); }
.expert-two { background: var(--expert-2); }
.expert-three { background: var(--expert-3); }

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

.phase-grid article {
  min-height: 190px;
  padding: 1.35rem;
}

.phase-grid article + article {
  border-left: 1px solid var(--line);
}

.phase-time {
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.phase-grid article > div {
  margin-top: 0.72rem;
}

.phase-grid strong {
  font-family: var(--serif);
  font-size: 1.26rem;
  font-weight: 500;
}

.phase-grid p {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.45;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.resource-card {
  display: flex;
  flex-direction: column;
  min-height: 275px;
  padding: 1.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.resource-card:hover,
.resource-card:focus-visible {
  border-color: var(--gold);
  background: linear-gradient(145deg, var(--gold-soft), var(--bg-raised));
  transform: translateY(-4px);
}

.resource-card > span {
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.resource-card h3 {
  margin-top: 2rem;
}

.resource-card p {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.5;
}

.resource-card > i {
  margin-top: auto;
  color: var(--gold);
  font-size: 0.7rem;
  font-style: normal;
}

.section-citation {
  width: 100%;
  max-width: none;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.citation-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2.5rem, 8vw, 7rem);
  width: min(100%, var(--content));
  margin: 0 auto;
}

.citation-layout > div:first-child > p:last-child {
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.55;
}

.citation-box {
  align-self: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: #0b1114;
  box-shadow: var(--shadow);
}

.citation-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: #849092;
  font-family: var(--mono);
  font-size: 0.62rem;
}

.citation-toolbar button {
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: transparent;
  color: #b6c0c0;
  font-family: var(--mono);
  font-size: 0.59rem;
  cursor: pointer;
}

.citation-toolbar button:hover,
.citation-toolbar button:focus-visible {
  border-color: #d9ab5d;
  color: #f0c77c;
}

.citation-box pre {
  margin: 0;
  padding: 1.4rem;
  overflow-x: auto;
  color: #d9ddd9;
  font-size: clamp(0.67rem, 1.4vw, 0.78rem);
  line-height: 1.7;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 3rem;
  align-items: end;
  width: min(100%, calc(var(--content) + 2 * var(--gutter)));
  margin: 0 auto;
  padding: 2.7rem var(--gutter) 2.1rem;
  border-top: 1px solid var(--line);
}

.footer-brand {
  margin-bottom: 0.65rem;
}

.site-footer p {
  margin: 0;
  color: var(--ink-faint);
  font-family: var(--serif);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--gold);
}

.site-footer .footer-credit {
  grid-column: 1 / -1;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-size: 0.6rem;
  letter-spacing: 0.03em;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.method-grid .reveal:nth-child(2),
.result-highlights .reveal:nth-child(2),
.resource-grid .reveal:nth-child(2) { transition-delay: 90ms; }

.method-grid .reveal:nth-child(3),
.result-highlights .reveal:nth-child(3),
.resource-grid .reveal:nth-child(3) { transition-delay: 180ms; }

.resource-grid .reveal:nth-child(4) { transition-delay: 270ms; }

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 0.75rem;
  }

  .nav-toggle {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 38px;
    height: 38px;
    padding: 11px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle span:not(.sr-only) {
    width: 18px;
    height: 1px;
    background: var(--ink-soft);
    transition: transform 180ms ease, opacity 180ms ease;
  }

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

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: min(78vw, 350px);
    height: 100svh;
    padding: calc(var(--header-height) + 2.2rem) 2rem;
    border-left: 1px solid var(--line);
    background: var(--bg-glass);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(22px);
    transform: translateX(105%);
    transition: transform 230ms ease;
  }

  .primary-nav.is-open {
    transform: translateX(0);
  }

  .primary-nav a {
    width: 100%;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

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

  .theme-toggle {
    grid-column: 3;
    grid-row: 1;
  }

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

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

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

  .resource-card {
    min-height: 245px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 64px;
  }

  .site-header .brand > span:last-child {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 8.5rem;
    padding-bottom: 6.5rem;
  }

  .hero h1 {
    flex-direction: column;
    line-height: 0.63;
  }

  .hero-subtitle {
    margin-top: 3.2rem;
  }

  .orbit-one { width: 125vw; }
  .orbit-two { width: 88vw; }

  .author-list {
    gap: 0.25rem;
  }

  .author-row {
    gap: 0.14rem 0.8rem;
  }

  .paper-affiliations {
    display: grid;
    gap: 0.12rem;
  }

  .paper-affiliations span {
    white-space: normal;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    max-width: 280px;
  }

  .hero-stats div {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }

  .hero-stats div + div {
    padding-top: 0.65rem;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .scroll-cue { display: none; }

  .section {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }

  .section-compact {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .tldr,
  .prose-grid,
  .citation-layout,
  .method-note {
    grid-template-columns: 1fr;
  }

  .tldr {
    gap: 0.6rem;
  }

  .prose-grid {
    gap: 1.4rem;
  }

  .prose-grid .prose-lead {
    font-size: 1.45rem;
  }

  .pipeline-image-wrap img {
    width: 900px;
    max-width: none;
  }

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

  .protocol-strip {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }

  .protocol-strip > i {
    display: none;
  }

  .protocol-strip div {
    padding: 0.65rem;
  }

  .protocol-strip .protocol-total {
    margin: 0;
  }

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

  .phase-grid article {
    min-height: 0;
  }

  .phase-grid article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .resource-card {
    min-height: 220px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 460px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .project-button {
    justify-content: center;
  }

  .video-topline a {
    display: none;
  }

  .expert-legend {
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
  }

  .table-title {
    align-items: flex-start;
  }

  .table-title a {
    display: none;
  }
}

@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;
  }
}
