:root {
  --ink: #171a24;
  --ink-soft: #535b6c;
  --ink-faint: #7c8493;
  --paper: #f5f6f8;
  --surface: #ffffff;
  --surface-soft: #eceff2;
  --line: rgba(23, 26, 36, 0.12);
  --line-strong: rgba(23, 26, 36, 0.22);
  --night: #101622;
  --night-soft: #192232;
  --green: #2f765f;
  --green-bright: #72e2ae;
  --green-soft: #e1f3eb;
  --blue: #466fa3;
  --gold: #aa711b;
  --coral: #b75245;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: clamp(1.5rem, 2.2vw, 1.85rem);
  --text-section: clamp(2.5rem, 4.6vw, 3.8rem);
  --text-display: clamp(3.5rem, 6.6vw, 5.5rem);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 12px 32px rgba(22, 27, 40, 0.07);
  --shadow-lg: 0 34px 84px rgba(18, 24, 38, 0.17);
  --shell: min(1240px, calc(100vw - 56px));
  --section-space: 84px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 5%, rgba(114, 226, 174, 0.11), transparent 27rem),
    radial-gradient(circle at 92% 10%, rgba(70, 111, 163, 0.1), transparent 32rem),
    var(--paper);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

button,
a {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
}

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

::selection {
  color: var(--night);
  background: var(--green-bright);
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--night);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

.content-section {
  padding-block: var(--section-space);
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 76px;
  border-bottom: 1px solid transparent;
  transition:
    height 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.site-header.is-scrolled {
  height: 66px;
  background: rgba(245, 246, 248, 0.86);
  border-color: var(--line);
  box-shadow: 0 9px 28px rgba(18, 24, 38, 0.05);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: var(--shell);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: block;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  font-weight: 600;
}

.site-nav > a {
  position: relative;
  transition: color 180ms ease;
}

.site-nav > a:not(.nav-paper)::after {
  content: "";
  position: absolute;
  inset: auto 0 -5px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

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

.site-nav > a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-paper {
  padding: 9px 14px;
  color: #fff !important;
  background: var(--night);
  border-radius: 10px;
}

.nav-paper.is-pending {
  color: #b7bfcd !important;
  cursor: default;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.nav-toggle span:not(.sr-only) {
  width: 17px;
  height: 1.5px;
  display: block;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 180ms ease;
}

.hero {
  min-height: 720px;
  padding-top: 124px;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(500px, 1.04fr);
  align-items: center;
  gap: clamp(44px, 5vw, 72px);
}

.status-line,
.section-kicker,
.method-number,
.result-card > span,
.efficiency-stat > span {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.status-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  background: var(--green-bright);
  border: 2px solid rgba(47, 118, 95, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(114, 226, 174, 0.12);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: var(--text-display);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero h1 span {
  display: block;
  padding-right: 0.08em;
  color: transparent;
  background: linear-gradient(105deg, var(--green) 2%, #4d79ad 58%, #7256a7);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-deck {
  max-width: 670px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.125rem, 1.8vw, 1.28rem);
  line-height: 1.62;
}

.authors {
  max-width: 720px;
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 17px;
  font-size: var(--text-sm);
  font-weight: 700;
}

.authors sup,
.affiliations sup {
  color: var(--green);
  font-size: 0.72em;
}

.affiliations {
  max-width: 720px;
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 3px 16px;
  color: var(--ink-faint);
  font-size: var(--text-sm);
  line-height: 1.55;
}

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

.button {
  min-height: 49px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.button-primary {
  color: var(--night);
  background: var(--green-bright);
  box-shadow: 0 12px 25px rgba(47, 118, 95, 0.16);
}

.button-primary:hover {
  box-shadow: 0 16px 32px rgba(47, 118, 95, 0.22);
}

.button-dark {
  color: #fff;
  background: var(--night);
}

.button-dark:hover {
  background: #202b3d;
  box-shadow: 0 14px 28px rgba(16, 22, 34, 0.16);
}

.button-light {
  background: rgba(255, 255, 255, 0.74);
  border-color: var(--line);
}

.button-light:hover {
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.button.is-pending {
  cursor: default;
  opacity: 0.82;
  box-shadow: none;
}

.button.is-pending:hover {
  transform: none;
}

.hero-showcase {
  position: relative;
  margin: 0;
  padding: 14px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 0, rgba(114, 226, 174, 0.14), transparent 40%),
    radial-gradient(circle at 0 100%, rgba(70, 111, 163, 0.2), transparent 44%),
    var(--night);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-showcase::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 14% -5% -7% 9%;
  background: rgba(47, 118, 95, 0.18);
  border-radius: 50%;
  filter: blur(45px);
}

.showcase-topline {
  height: 38px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #aeb8c8;
  font-size: var(--text-xs);
}

.showcase-topline span {
  font-family: var(--font-mono);
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.showcase-topline b {
  color: var(--green-bright);
  font-size: var(--text-xs);
  font-weight: 600;
}

.showcase-grid {
  height: 320px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 174px 136px;
  gap: 10px;
}

.task-tile {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--night-soft);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
}

.task-tile::after {
  content: "";
  position: absolute;
  inset: 30% 0 0;
  background: linear-gradient(transparent, rgba(7, 11, 18, 0.86));
  pointer-events: none;
}

.task-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.task-tile:hover img {
  transform: scale(1.035);
}

.task-tile span {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 10px;
  left: 12px;
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.task-tile.tile-main {
  grid-column: 1 / 3;
}

.task-tile:nth-child(2) img {
  object-position: center;
}

.task-tile:nth-child(3) img {
  object-position: center;
}

.hero-showcase figcaption {
  padding: 12px 6px 2px;
  color: #aeb8c8;
  font-size: var(--text-sm);
  line-height: 1.55;
}

.hero-showcase figcaption span {
  margin-right: 8px;
  color: var(--green-bright);
  font-weight: 700;
}

.metric-band {
  color: #fff;
  background: var(--night);
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-grid {
  min-height: 112px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metric {
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
}

.metric:first-child {
  padding-left: 0;
}

.metric:last-child {
  padding-right: 0;
  border-right: 0;
}

.metric strong {
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.metric span {
  margin-top: 7px;
  color: #9da7b8;
  font-size: var(--text-sm);
}

.video-section {
  padding-block: 52px;
}

.video-section .section-heading {
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.65fr);
  gap: clamp(28px, 4vw, 56px);
  margin-bottom: 22px;
}

.video-section .section-heading h2 {
  max-width: none;
  font-size: clamp(2.35rem, 4vw, 3.45rem);
  white-space: nowrap;
}

.video-section .section-heading > p {
  max-width: 430px;
  font-size: var(--text-base);
  line-height: 1.55;
}

.video-card {
  margin: 0;
  padding: 12px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0, rgba(114, 226, 174, 0.12), transparent 32rem),
    var(--night);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.video-card-meta {
  min-height: 42px;
  padding: 0 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #9faabb;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.video-card-meta span:first-child {
  color: var(--green-bright);
  font-weight: 500;
}

.video-card video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  background: #070a10;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.section-heading {
  margin-bottom: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  align-items: end;
  gap: clamp(42px, 7vw, 92px);
}

.section-heading h2 {
  max-width: 780px;
  margin: 10px 0 0;
  font-size: var(--text-section);
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.section-heading > p {
  max-width: 560px;
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-size: var(--text-lg);
  line-height: 1.65;
}

.paper-figure {
  margin: 0;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.figure-link {
  display: block;
  overflow: hidden;
  background: #fafbfc;
  border: 1px solid rgba(23, 26, 36, 0.08);
  border-radius: 14px;
}

.figure-link img {
  width: 100%;
  height: auto;
}

.paper-figure figcaption {
  padding: 12px 4px 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.paper-figure figcaption span {
  flex: 0 0 auto;
  color: var(--ink);
  font-weight: 700;
}

.principle-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.principle-card,
.method-card,
.result-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.principle-card:hover,
.method-card:hover,
.result-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.principle-card > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 9px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.principle-card h3,
.method-card h3 {
  margin: 14px 0 0;
  font-size: var(--text-xl);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.principle-card p,
.method-card p,
.result-card p,
.efficiency-stat p {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  line-height: 1.65;
}

.tinted-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(70, 111, 163, 0.09), transparent 30rem),
    var(--surface-soft);
  border-block: 1px solid var(--line);
}

.tinted-section::before {
  content: "";
  position: absolute;
  top: -420px;
  right: -260px;
  width: 720px;
  height: 720px;
  border: 1px solid rgba(70, 111, 163, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.method-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.method-card {
  min-height: 170px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.74);
}

.method-number {
  display: block;
}

.method-card h3 {
  margin-top: 10px;
  padding-top: 0;
}

.results-figure {
  position: relative;
}

.results-figure::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 18% 7% -5%;
  background: rgba(47, 118, 95, 0.12);
  border-radius: 50%;
  filter: blur(48px);
}

.result-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.result-card {
  min-height: 168px;
  display: flex;
  flex-direction: column;
}

.result-card > span {
  color: var(--ink-faint);
}

.result-card strong {
  margin-top: 18px;
  padding-top: 0;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.055em;
}

.dark-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 0 80%, rgba(114, 226, 174, 0.11), transparent 35rem),
    radial-gradient(circle at 100% 10%, rgba(70, 111, 163, 0.2), transparent 42rem),
    var(--night);
}

.dark-section::after {
  content: "";
  position: absolute;
  top: 160px;
  right: -280px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.section-heading-light > p {
  color: #adb6c6;
}

.dark-section .section-kicker {
  color: var(--green-bright);
}

.paper-figure-dark {
  position: relative;
  z-index: 1;
  color: var(--ink);
  background: #f8f9fa;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 34px 84px rgba(0, 0, 0, 0.28);
}

.efficiency-stats {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.efficiency-stat {
  min-height: 190px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
}

.efficiency-stat > span {
  color: var(--green-bright);
}

.efficiency-stat strong {
  margin-top: 18px;
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 3.1vw, 2.7rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.06em;
}

.efficiency-stat strong i {
  padding-inline: 8px;
  color: var(--green-bright);
  font-style: normal;
}

.efficiency-stat strong small {
  color: #98a3b5;
  font-size: var(--text-sm);
  letter-spacing: 0;
}

.efficiency-stat p {
  max-width: 560px;
  color: #aeb7c7;
  font-size: var(--text-base);
}

.citation-section {
  padding-block: var(--section-space);
}

.citation-panel {
  padding: clamp(32px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(32px, 5vw, 60px);
  color: #fff;
  background:
    radial-gradient(circle at 12% 100%, rgba(114, 226, 174, 0.13), transparent 46%),
    radial-gradient(circle at 100% 0, rgba(70, 111, 163, 0.2), transparent 48%),
    var(--night);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.citation-copy .section-kicker {
  color: var(--green-bright);
}

.citation-copy h2 {
  margin: 12px 0 0;
  font-size: var(--text-2xl);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.citation-copy p {
  margin: 16px 0 0;
  color: #a2adbe;
  font-size: var(--text-sm);
}

.code-wrap {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-md);
}

.code-wrap pre {
  margin: 0;
  padding: 54px 24px 24px;
  overflow-x: auto;
  color: #cbd3e1;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.72;
}

.copy-button {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #adb7c8;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  cursor: pointer;
  font-size: var(--text-xs);
}

.copy-button:hover,
.copy-button.is-copied {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
}

.copy-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.site-footer {
  padding-block: 28px;
  border-top: 1px solid var(--line);
}

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

.footer-inner p {
  margin: 0;
  color: var(--ink-faint);
  font-size: var(--text-sm);
}

.footer-links {
  display: flex;
  gap: 22px;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  font-weight: 600;
}

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

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

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

@media (max-width: 1120px) {
  :root {
    --shell: min(960px, calc(100vw - 44px));
  }

  .site-nav {
    gap: 19px;
  }

  .hero {
    min-height: 0;
    padding-top: 116px;
    grid-template-columns: 1fr;
    gap: 44px;
  }

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

  .hero-showcase {
    width: min(850px, 100%);
    margin-inline: auto;
  }

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

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

  .method-card {
    min-height: 160px;
  }
}

@media (max-width: 860px) {
  :root {
    --shell: calc(100vw - 36px);
    --section-space: 68px;
  }

  .nav-toggle {
    display: block;
  }

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

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

  .site-nav {
    position: fixed;
    inset: 64px 0 auto;
    padding: 28px 24px 34px;
    display: grid;
    gap: 20px;
    background: rgba(245, 246, 248, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(17, 24, 45, 0.09);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    transform: translateY(-130%);
    transition: transform 220ms ease;
  }

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

  .nav-paper {
    text-align: center;
  }

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 20px;
  }

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

  .video-section .section-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .video-section .section-heading h2 {
    white-space: normal;
  }

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

  .metric {
    min-height: 94px;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(n + 3) {
    border-bottom: 0;
  }

  .metric:first-child {
    padding-left: 24px;
  }

  .metric:last-child {
    padding-right: 24px;
  }

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

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

  .paper-figure {
    padding: 13px;
  }

  .figure-scroll {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .figure-scroll img {
    width: 860px;
    max-width: none;
  }

  .paper-figure figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .efficiency-stats {
    grid-template-columns: 1fr;
  }

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

  .citation-copy {
    max-width: 540px;
  }
}

@media (max-width: 620px) {
  :root {
    --shell: calc(100vw - 28px);
    --section-space: 56px;
  }

  .site-header,
  .site-header.is-scrolled {
    height: 64px;
  }

  .hero {
    padding-top: 94px;
    padding-bottom: 56px;
    gap: 36px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 15vw, 4.4rem);
  }

  .hero-deck {
    font-size: var(--text-lg);
  }

  .authors {
    gap: 4px 12px;
  }

  .affiliations {
    display: block;
  }

  .affiliations span {
    display: block;
  }

  .hero-showcase {
    padding: 11px;
    border-radius: 22px;
  }

  .showcase-grid {
    height: auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 140px 100px 100px;
    gap: 8px;
  }

  .task-tile.tile-main {
    grid-column: 1 / -1;
  }

  .task-tile {
    border-radius: 11px;
  }

  .showcase-topline {
    height: 36px;
  }

  .hero-showcase figcaption {
    font-size: var(--text-xs);
  }

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

  .button {
    padding-inline: 14px;
  }

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

  .section-heading h2 {
    font-size: clamp(2.35rem, 11vw, 3.15rem);
  }

  .section-heading > p {
    font-size: var(--text-base);
  }

  .video-section {
    padding-block: 44px;
  }

  .video-section .section-heading {
    margin-bottom: 24px;
  }

  .video-card {
    padding: 8px;
    border-radius: 20px;
  }

  .video-card-meta {
    min-height: 38px;
    padding: 7px 5px 10px;
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .video-card video {
    border-radius: 14px;
  }

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

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

  .method-card h3 {
    margin-top: 10px;
    padding-top: 0;
  }

  .result-card strong {
    margin-top: 22px;
    padding-top: 0;
  }

  .efficiency-stat {
    min-height: 0;
    padding: 22px;
  }

  .citation-panel {
    padding: 28px 20px;
  }

  .code-wrap pre {
    font-size: var(--text-xs);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 16px;
  }
}

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

  .hero-actions .button:first-child {
    grid-column: auto;
  }

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

  .metric,
  .metric:nth-child(2),
  .metric:nth-child(n + 3) {
    min-height: 82px;
    padding: 15px 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }

  .metric:first-child,
  .metric:last-child {
    padding-inline: 20px;
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .showcase-topline span {
    display: none;
  }

  .showcase-topline {
    justify-content: flex-end;
  }
}

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

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

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