:root {
  --ink: #161a19;
  --muted: #606865;
  --line: #d8dedb;
  --paper: #f8faf8;
  --white: #ffffff;
  --forest: #0d5d53;
  --teal: #2e7369;
  --cyan: #bed4ce;
  --yellow: #b8cbc5;
  --night: #101715;
  --content: min(1180px, calc(100vw - 64px));
  --reading: min(720px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "SF Pro Text", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

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

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

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

button {
  font: inherit;
}

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

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

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

.reading-progress {
  position: fixed;
  z-index: 120;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
}

.site-nav {
  position: sticky;
  z-index: 100;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
  padding: 0 max(32px, calc((100vw - 1340px) / 2));
  border-bottom: 1px solid rgb(255 255 255 / 15%);
  color: var(--white);
  background: var(--night);
}

.nav-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  width: fit-content;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  width: 10px;
  height: 10px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgb(168 231 220 / 15%);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  position: relative;
  color: rgb(255 255 255 / 65%);
  font-size: 14px;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 2px;
  background: var(--yellow);
  content: "";
  opacity: 0;
  transform: scaleX(0.2);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="true"] {
  color: var(--white);
}

.nav-links a[aria-current="true"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-report {
  justify-self: end;
  font-size: 14px;
  font-weight: 650;
}

.nav-report span,
.primary-action span,
.report-action span {
  display: inline-block;
  margin-left: 6px;
  transition: transform 180ms ease;
}

.nav-report:hover span,
.primary-action:hover span,
.report-action:hover span {
  transform: translate(3px, -3px);
}

.hero {
  position: relative;
  min-height: clamp(520px, 65svh, 600px);
  overflow: hidden;
  color: var(--white);
  background: #12201c;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: var(--content);
  min-height: inherit;
  margin: 0 auto;
  padding: 64px 0 86px;
}

.eyebrow,
.section-kicker,
.micro-label,
.footer-label,
.benchmark-label {
  margin: 0 0 18px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(46px, 5.4vw, 72px);
  font-weight: 720;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-summary {
  max-width: 780px;
  margin: 26px 0 0;
  color: rgb(255 255 255 / 82%);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-top: 38px;
}

.primary-action,
.report-action {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgb(255 255 255 / 72%);
  background: transparent;
  color: var(--white);
  font-size: 14px;
  font-weight: 760;
}

.hero-meta {
  color: rgb(255 255 255 / 65%);
  font-size: 14px;
}

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

.metrics-band {
  padding: 54px 0 58px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.metrics-band .section-shell {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 2.2fr);
  gap: 56px;
}

.metrics-intro h2 {
  max-width: 260px;
  margin: 0;
  font-size: 26px;
  line-height: 1.3;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.metric {
  min-width: 0;
  padding: 0 20px;
  border-left: 1px solid var(--line);
}

.metric dt {
  color: var(--muted);
  font-size: 13px;
}

.metric dd {
  margin: 10px 0 8px;
  font-family: "SF Pro Display", "PingFang SC", sans-serif;
  font-size: clamp(30px, 3vw, 45px);
  font-weight: 780;
  line-height: 1.1;
  white-space: nowrap;
}

.metric p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.metric-accent dd {
  color: var(--forest);
}

.story-section {
  padding: 104px 0;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 72px minmax(360px, 1fr) minmax(360px, 1fr);
  gap: 46px;
  align-items: start;
}

.section-index {
  padding-top: 5px;
  border-top: 1px solid currentColor;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.section-heading h2,
.conclusion-grid h2 {
  margin: 0;
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.section-copy p {
  margin: 0;
}

.section-copy p + p,
.conclusion-copy p + p {
  margin-top: 1.2em;
}

.lead-copy {
  padding-top: 38px;
  color: #39413e;
  font-size: 17px;
}

.fact-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 86px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.fact-line div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 150px;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}

.fact-line div:last-child {
  border-right: 0;
}

.fact-line strong {
  font-size: 42px;
  line-height: 1.1;
}

.fact-line span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.method-section {
  background: var(--white);
}

.feature-triad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 90px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.model-proof {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.55fr);
  gap: 64px;
  align-items: center;
  margin-top: 88px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.model-proof h3 {
  margin: 0 0 18px;
  font-size: 27px;
  line-height: 1.4;
}

.model-proof > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.feature-triad article {
  min-width: 0;
  padding: 38px 36px 42px;
  border-right: 1px solid var(--line);
}

.feature-triad article:last-child {
  border-right: 0;
}

.feature-number {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.feature-triad h3 {
  margin: 42px 0 16px;
  font-size: 24px;
  line-height: 1.2;
}

.feature-triad p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.method-figure-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.65fr);
  gap: 70px;
  align-items: center;
  margin-top: 100px;
}

.paper-figure {
  margin: 0;
}

.paper-figure img {
  width: 100%;
  height: auto;
  border: 1px solid #e6e9e7;
  background: var(--white);
}

.paper-figure figcaption {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.paper-figure figcaption span {
  color: var(--ink);
  font-weight: 760;
}

.method-notes {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pull-quote {
  margin: 0 0 42px;
  font-size: 24px;
  font-weight: 650;
  line-height: 1.45;
}

.fit-list {
  margin: 0 0 36px;
  border-top: 1px solid var(--line);
}

.fit-list div {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.fit-list dt {
  color: var(--muted);
  font-size: 14px;
}

.fit-list dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 780;
}

.text-button {
  display: inline-flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.text-button span {
  font-size: 22px;
  font-weight: 400;
}

.route-panel {
  max-width: 860px;
  margin-top: 70px;
}

.route-panel[hidden] {
  display: none;
}

.results-section {
  color: var(--ink);
  background: #edf2f0;
}

.results-section .section-kicker,
.results-section .benchmark-label {
  color: var(--forest);
}

.results-section .section-index,
.results-section .lead-copy {
  color: var(--muted);
}

.results-layout {
  display: grid;
  grid-template-columns: minmax(380px, 0.85fr) minmax(390px, 1.15fr);
  gap: 90px;
  align-items: center;
  margin-top: 90px;
}

.dark-figure img {
  border-color: var(--line);
}

.results-section .paper-figure figcaption,
.results-section .paper-figure figcaption {
  color: var(--muted);
}

.results-section .paper-figure figcaption span {
  color: var(--ink);
}

.benchmark-panel {
  align-self: center;
}

.benchmark-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.benchmark-panel caption {
  padding-bottom: 18px;
  color: var(--ink);
  font-size: 27px;
  font-weight: 700;
  text-align: left;
}

.benchmark-panel th,
.benchmark-panel td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

.benchmark-panel th:first-child,
.benchmark-panel td:first-child {
  padding-left: 0;
  text-align: left;
}

.benchmark-panel thead th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.benchmark-panel tbody th {
  font-weight: 600;
}

.highlight-row {
  color: var(--ink);
  background: #dbe7e3;
}

.highlight-row th:first-child {
  padding-left: 12px;
}

.table-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.throughput-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 92px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.throughput-main,
.resource-bars {
  padding: 50px 46px;
}

.throughput-main {
  border-right: 1px solid var(--line);
}

.throughput-main strong {
  display: block;
  margin: 6px 0 24px;
  color: var(--forest);
  font-size: clamp(64px, 8vw, 108px);
  line-height: 1;
}

.throughput-main strong small {
  font-size: 0.28em;
}

.throughput-main p,
.resource-bars > p {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.resource-bars > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}

.resource-bars span {
  color: var(--muted);
  font-size: 13px;
}

.resource-bars b {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 26px;
  overflow: hidden;
  padding-left: 10px;
  background: #e8efec;
  font-size: 13px;
  line-height: 1;
}

.resource-bars b::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar);
  background: var(--teal);
  content: "";
}

.resource-bars b span {
  position: relative;
  z-index: 1;
  color: var(--ink);
}

.resource-bars > p {
  margin-top: 34px;
}

.field-section {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.lab-visual {
  margin-top: 88px;
}

.comparison-section {
  margin-top: 90px;
}

.comparison-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.segmented-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
}

.segmented-control button {
  min-height: 42px;
  padding: 0 17px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.segmented-control button:last-child {
  border-right: 0;
}

.segmented-control button[aria-pressed="true"] {
  color: var(--white);
  background: var(--forest);
}

.comparison-status {
  display: grid;
  grid-template-columns: 100px 180px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 32px 0 26px;
}

.comparison-status span {
  color: var(--muted);
  font-size: 12px;
}

.comparison-status strong {
  font-size: 25px;
}

.comparison-status p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.comparison-frame {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fdfefd;
}

.comparison-pane {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  margin: 0;
  padding: 46px 20px 20px;
}

.comparison-pane + .comparison-pane {
  border-left: 1px solid var(--line);
}

.comparison-pane > span {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.comparison-pane img {
  width: 100%;
  height: 100%;
  max-height: 540px;
  object-fit: contain;
}

[data-comparison-mode="before"] .comparison-frame,
[data-comparison-mode="after"] .comparison-frame {
  grid-template-columns: 1fr;
}

[data-comparison-mode="before"] .after-pane,
[data-comparison-mode="after"] .before-pane {
  display: none;
}

[data-comparison-mode="after"] .after-pane {
  border-left: 0;
}

.comparison-caption {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.conclusion-section {
  color: var(--ink);
  border-top: 1px solid var(--line);
  background: #e8efec;
}

.conclusion-section .section-kicker {
  color: var(--forest);
}

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

.conclusion-copy {
  color: #39413e;
  font-size: 17px;
}

.report-action {
  margin-top: 38px;
  border-color: var(--forest);
  color: var(--forest);
}

.site-footer {
  padding: 46px 0;
  color: rgb(255 255 255 / 72%);
  background: var(--night);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 56px;
  align-items: end;
}

.footer-label {
  color: var(--cyan);
}

.footer-grid p {
  margin: 0;
  font-size: 14px;
}

.author-block {
  color: rgb(255 255 255 / 50%);
}

.footer-grid > a {
  font-size: 13px;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

@media (max-width: 980px) {
  :root {
    --content: min(100% - 44px, 860px);
  }

  .site-nav {
    grid-template-columns: 1fr auto;
    padding-inline: 22px;
  }

  .nav-links {
    display: none;
  }

  .metrics-band .section-shell,
  .editorial-grid,
  .conclusion-grid {
    grid-template-columns: 1fr;
  }

  .metrics-intro h2 {
    max-width: none;
  }

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

  .metric {
    padding: 24px;
    border-bottom: 1px solid var(--line);
  }

  .section-index {
    display: none;
  }

  .lead-copy {
    max-width: 720px;
    padding-top: 0;
  }

  .method-figure-grid,
  .model-proof,
  .results-layout {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .curve-figure,
  .dark-figure {
    max-width: 720px;
  }

  .method-notes {
    max-width: 620px;
  }

  .results-layout {
    align-items: start;
  }

  .dark-figure {
    max-width: 540px;
    justify-self: center;
  }

  .conclusion-grid {
    gap: 48px;
  }
}

@media (max-width: 760px) {
  :root {
    --content: calc(100vw - 32px);
  }

  body {
    font-size: 16px;
  }

  html {
    scroll-padding-top: 64px;
  }

  .site-nav {
    height: 62px;
    padding-inline: 16px;
  }

  .nav-brand {
    font-size: 12px;
  }

  .nav-report {
    font-size: 12px;
  }

  .hero {
    min-height: min(650px, calc(100svh - 16px));
  }

  .hero-content {
    justify-content: center;
    width: var(--content);
    padding: 72px 0;
  }

  .hero h1 {
    font-size: clamp(36px, 10.2vw, 46px);
    line-height: 1.18;
  }

  .hero-summary {
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.65;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-top: 28px;
  }

  .metrics-band {
    padding: 48px 0;
  }

  .metrics-band .section-shell {
    gap: 28px;
  }

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

  .metric {
    min-height: 146px;
    padding: 20px 10px;
  }

  .metric:nth-child(odd) {
    border-left: 0;
  }

  .metric dd {
    font-size: clamp(25px, 8vw, 34px);
  }

  .story-section {
    padding: 84px 0;
  }

  .section-heading h2,
  .conclusion-grid h2 {
    font-size: clamp(36px, 11vw, 52px);
  }

  .lead-copy {
    font-size: 17px;
  }

  .fact-line {
    grid-template-columns: 1fr 1fr;
    margin-top: 54px;
  }

  .fact-line div {
    min-height: 120px;
    padding: 18px 14px;
    border-bottom: 1px solid var(--line);
  }

  .fact-line div:nth-child(2) {
    border-right: 0;
  }

  .fact-line strong {
    font-size: 34px;
  }

  .feature-triad {
    grid-template-columns: 1fr;
    margin-top: 58px;
  }

  .feature-triad article {
    padding: 28px 18px 32px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-triad article:last-child {
    border-bottom: 0;
  }

  .feature-triad h3 {
    margin-top: 20px;
  }

  .method-figure-grid,
  .model-proof,
  .results-layout,
  .lab-visual,
  .comparison-section {
    margin-top: 58px;
  }

  .paper-figure figcaption {
    grid-template-columns: 50px 1fr;
  }

  .pull-quote {
    font-size: 25px;
  }

  .throughput-band {
    grid-template-columns: 1fr;
    margin-top: 58px;
  }

  .throughput-main,
  .resource-bars {
    padding: 36px 20px;
  }

  .throughput-main {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .throughput-main strong {
    font-size: 67px;
  }

  .comparison-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

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

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

  .segmented-control button {
    padding-inline: 8px;
  }

  .comparison-status {
    grid-template-columns: 1fr auto;
    gap: 4px 16px;
  }

  .comparison-status p {
    grid-column: 1 / -1;
    margin-top: 8px;
  }

  .comparison-frame {
    grid-template-columns: 1fr;
    min-height: 360px;
  }

  .comparison-pane {
    min-height: 340px;
  }

  .comparison-pane + .comparison-pane {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .comparison-caption {
    text-align: left;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }
}

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

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

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