@charset "UTF-8";
:root {
  --ink: #132c43;
  --muted: #5e7183;
  --blue: #126b86;
  --cyan: #078d9b;
  --paper: #fff;
  --soft: #f5f8fb;
  --line: #dfe7ee;
  --font: Inter, "Aptos", "Segoe UI", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid #6fbccf;
  outline-offset: 5px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button,
figure,
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.24;
  letter-spacing: -0.035em;
}
button {
  color: inherit;
}
.wrap {
  width: min(1160px, calc(100% - 64px));
  margin-inline: auto;
}
.section {
  padding-block: 64px;
}
.section-heading {
  margin-bottom: 28px;
}
.centered {
  text-align: center;
}
.section-label {
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  margin-bottom: 12px;
}
.section-heading h2 {
  font-size: 38px;
  font-weight: 650;
}
.icon {
  width: 22px;
  height: 22px;
  flex: none;
  vertical-align: middle;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -70px;
  z-index: 100;
  padding: 10px 16px;
  background: white;
  border: 1px solid var(--line);
}
.skip-link:focus {
  top: 12px;
}
.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;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffffed;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.header-inner {
  max-width: 1280px;
  margin: auto;
  min-height: 72px;
  padding-inline: 36px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand {
  display: inline-flex;
  font-size: 27px;
  font-weight: 760;
  letter-spacing: -0.065em;
  white-space: nowrap;
}
.brand > span {
  font-weight: 450;
  color: var(--blue);
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.site-header nav a {
  font-size: 17px;
  color: var(--muted);
  transition: color 0.15s;
}
.site-header nav a:hover,
.site-header nav a.current {
  color: var(--blue);
}
.header-cta {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 15px;
}
.header-cta:hover {
  background: var(--soft);
}
.menu-toggle {
  display: none;
}
.hero {
  text-align: center;
  padding-top: 34px;
}
.hero-wordmark {
  font-size: 84px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.07em;
  background: linear-gradient(105deg, #102b4c 22%, #176087 60%, #0794a0);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 20px;
}
.hero-wordmark span {
  font-weight: 520;
}
.hero h1 {
  font-size: 35px;
  line-height: 1.28;
  font-weight: 650;
  max-width: 1100px;
  margin-inline: auto;
  letter-spacing: -0.035em;
}
.hero h1 > span {
  color: var(--cyan);
}
.authors {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px 18px;
  margin: 24px auto 12px;
  font-size: 17px;
  font-weight: 600;
}
.authors > span {
  white-space: nowrap;
}
sup {
  font-size: 0.64em;
  vertical-align: super;
  margin-left: 2px;
  color: var(--blue);
}
.affiliations {
  display: grid;
  justify-items: center;
  gap: 6px;
  max-width: 1080px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}
.company-affiliations {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.contribution-note {
  font-size: 15px;
  color: var(--muted);
  margin-top: 13px;
}
.correspondence {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin: 12px auto 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
.correspondence > span {
  white-space: nowrap;
}
.correspondence a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #a9b7c0;
  text-underline-offset: 3px;
}
.correspondence a:hover,
.correspondence a:focus-visible {
  color: var(--blue);
  text-decoration-color: currentColor;
}
.resource-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #c9dce5;
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  padding: 11px 17px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.button .icon {
  width: 19px;
  height: 19px;
}
.button:hover {
  background: #eef6f8;
  border-color: #88bdcc;
}
.button.primary {
  color: #f3fbff;
  border-color: #173b53;
  background: #173b53;
}
.button.primary:hover {
  background: #20536a;
}
.demo-player {
  overflow: hidden;
  border: 1px solid #d4e4ec;
  border-radius: 12px;
  background: #071827;
  box-shadow: 0 18px 50px -35px #123a5559;
  margin-top: 32px;
  scroll-margin-top: 90px;
}
.demo-player video {
  display: block;
  width: 100%;
  height: auto;
}
.intro-section {
  padding-bottom: 60px;
}
.intro-text {
  max-width: 980px;
  margin: auto;
  text-align: center;
  font-size: 21px;
  line-height: 1.8;
  color: #455f73;
}
.method-section {
  background: var(--soft);
  border-block: 1px solid #eaf0f4;
}
.paper-figure {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.figure-button {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 16px;
  background: #fff;
}
.figure-button img {
  width: 100%;
}
.zoom-hint {
  position: absolute;
  right: 18px;
  bottom: 16px;
  font-size: 15px;
  color: var(--blue);
  background: #ffffffed;
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.15s;
}
.figure-button:hover .zoom-hint,
.figure-button:focus-visible .zoom-hint {
  opacity: 1;
}
.method-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 24px;
}
.method-step {
  padding: 0 24px;
  border-left: 1px solid #d5e1e8;
}
.method-step:first-child {
  border-left: 0;
  padding-left: 0;
}
.method-step:last-child {
  padding-right: 0;
}
.method-step > .step-number {
  font: 15px/1.5 var(--mono);
  color: var(--cyan);
}
.method-step-title {
  font-size: 22px;
  margin: 9px 0;
}
.method-step-copy {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.metric-card {
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(150deg, #fff, #f7fbfc);
}
.metric-icon,
.small-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #e9f4f6;
  color: var(--blue);
  border-radius: 10px;
}
.metric-label {
  font-size: 16px;
  color: var(--muted);
  margin: 17px 0 7px;
}
.metric-card strong {
  display: block;
  font-size: 38px;
  font-weight: 720;
  line-height: 1.2;
  letter-spacing: -0.055em;
  white-space: nowrap;
}
.metric-card strong span {
  font-size: 0.64em;
  font-weight: 550;
  color: var(--blue);
  letter-spacing: -0.025em;
}
.metric-card > p:last-child {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 8px;
}
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.result-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  min-width: 0;
}
.card-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.card-heading h3 {
  font-size: 23px;
  font-weight: 650;
}
.card-heading p {
  font-size: 16px;
  color: var(--muted);
  margin-top: 6px;
}
.benchmark-row {
  display: grid;
  grid-template-columns: 136px 1fr 64px;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 16px;
}
.benchmark-name {
  color: var(--muted);
}
.benchmark-track {
  height: 10px;
  border-radius: 10px;
  overflow: hidden;
  background: #edf2f5;
}
.benchmark-fill {
  height: 100%;
  display: block;
  background: #b5cbd6;
  border-radius: 10px;
}
.benchmark-value {
  text-align: right;
  font: 15px/1.5 var(--mono);
  color: #506b7f;
}
.benchmark-row.highlight .benchmark-name,
.benchmark-row.highlight .benchmark-value {
  color: var(--ink);
  font-weight: 700;
}
.benchmark-row.highlight .benchmark-fill {
  background: linear-gradient(90deg, #1a557e, #0795a2);
}
.latency-bars {
  margin-top: 0;
}
.latency-card .card-heading {
  margin-bottom: 16px;
}
.latency-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}
.latency-tabs button {
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.25;
  cursor: pointer;
  transition:
    background 0.18s,
    color 0.18s,
    box-shadow 0.18s;
}
.latency-tabs button span {
  font-size: 13px;
  font-weight: 500;
}
.latency-tabs button[aria-selected="true"] {
  color: var(--blue);
  background: #fff;
  border-color: #c9dce5;
  box-shadow: 0 2px 7px #173b530a;
}
.latency-tabs button:hover {
  color: var(--blue);
}
.latency-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 86px;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 16px;
}
.latency-row .benchmark-fill {
  background: #b5cbd6;
  transition: width 0.44s cubic-bezier(0.22, 1, 0.36, 1);
}
.latency-row.highlight .benchmark-fill {
  background: linear-gradient(90deg, #1a557e, #0795a2);
}
.latency-value {
  font: 15px/1.5 var(--mono);
  text-align: right;
  white-space: nowrap;
}
.latency-name {
  color: var(--muted);
}
.latency-row.highlight .latency-name,
.latency-row.highlight .latency-value {
  color: var(--blue);
  font-weight: 700;
}
.latency-source-note,
.latency-view-note {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.latency-source-note {
  margin-top: 18px;
}
.latency-view-note {
  margin-top: 6px;
}
.chart-note {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 24px;
}
.edge-speed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.quantization-speeds {
  flex: 1 1 280px;
  min-width: 240px;
  max-width: 360px;
}
.edge-speed {
  display: grid;
  gap: 3px;
  padding: 14px 17px;
  border: 1px solid #dce9ee;
  border-radius: 9px;
  background: linear-gradient(145deg, #f2f8fa, #fbfdfd);
}
.edge-device {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
}
.edge-speed strong {
  font-size: 29px;
  line-height: 1.25;
  letter-spacing: -0.04em;
}
.edge-speed small {
  font-size: 17px;
  font-weight: 550;
  color: var(--blue);
}
.edge-speed > span:last-child {
  font-size: 15px;
  color: var(--muted);
}
.quantization-evidence {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.quantization-evidence h3 {
  font-size: 22px;
}
.quantization-evidence p {
  font-size: 17px;
  color: var(--muted);
  margin-top: 5px;
}
.report-download-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.file-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid #d0d7de;
  background: #f6f8fa;
  color: #24292f;
  font-size: 16px;
  font-weight: 600;
  border-radius: 7px;
}
.file-download .icon {
  width: 17px;
  height: 17px;
}
.file-download:hover {
  background: #eef1f5;
  border-color: #b8c2ce;
}
.start-section {
  background: var(--soft);
  border-block: 1px solid #eaf0f4;
}
.setup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.setup-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  min-width: 0;
}
.setup-card > .card-heading {
  margin-bottom: 23px;
}
.code-panel {
  min-width: 0;
}
.code-tabs {
  display: flex;
  gap: 3px;
  border-bottom: 1px solid var(--line);
}
.code-tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  font-weight: 550;
  padding: 8px 12px 11px;
  border-bottom: 2px solid transparent;
}
.code-tabs button[aria-pressed="true"] {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.code-tabs .copy-button {
  margin-left: auto;
  font-size: 15px;
}
.code-panel pre {
  padding: 20px 16px;
  margin: 0;
  background: #f5f8fb;
  border-radius: 0 0 8px 8px;
  overflow: auto;
  min-height: 142px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.code-panel code,
.agent-prompt code {
  font: 14.5px/1.75 var(--mono);
}
#code-note {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 14px;
}
.text-link {
  display: inline-block;
  color: var(--blue);
  font-size: 17px;
  font-weight: 600;
  margin-top: 17px;
}
.text-link:hover {
  text-decoration: underline;
}
.ai-card > p {
  font-size: 19px;
  line-height: 1.85;
  color: var(--muted);
}
.ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.ai-actions .button {
  font-size: 16px;
}
.agent-prompt {
  margin-top: 23px;
  color: var(--muted);
  font-size: 16px;
}
.agent-prompt summary {
  cursor: pointer;
  color: var(--blue);
}
.agent-prompt pre {
  padding: 15px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-bottom: 0;
}
.repository-layout {
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 28px;
  background: #fff;
}
.repository-layout h3 {
  font-size: 23px;
  margin-bottom: 18px;
}
.repo-tree {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 36px;
}
.repo-tree > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: start;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid #edf2f5;
  font-size: 16px;
  color: var(--muted);
}
.repo-tree code {
  font: 14.5px/1.75 var(--mono);
  color: var(--ink);
  white-space: normal;
  overflow-wrap: anywhere;
}
.deployment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.deployment-card {
  display: block;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.deployment-card:hover {
  border-color: #83bac8;
  transform: translateY(-3px);
}
.deployment-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--blue);
  margin-bottom: 25px;
}
.deployment-top > span {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.deployment-card h3 {
  font-size: 24px;
  margin-bottom: 13px;
}
.deployment-card p {
  font-size: 19px;
  line-height: 1.8;
  color: var(--muted);
}
.acknowledgements {
  padding-top: 25px;
  padding-bottom: 56px;
  max-width: 880px;
  text-align: center;
}
.acknowledgements h2 {
  font-size: 32px;
  margin-bottom: 20px;
}
.acknowledgements > p:last-child {
  font-size: 19px;
  line-height: 1.85;
  color: var(--muted);
}
.acknowledgements a {
  color: var(--blue);
  font-weight: 600;
}
.acknowledgements a:hover {
  text-decoration: underline;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 30px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-inner > p {
  font-size: 17px;
  color: var(--muted);
}
.footer-inner > div {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 17px;
  color: var(--muted);
}
.footer-inner > div a:hover {
  color: var(--blue);
}
#figure-dialog {
  max-width: min(1400px, 96vw);
  max-height: 95vh;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  background: #fff;
  color: var(--ink);
}
#figure-dialog::backdrop {
  background: #071827bf;
}
#figure-dialog img {
  max-height: 78vh;
  object-fit: contain;
  margin: auto;
}
#close-figure {
  display: block;
  margin-left: auto;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  padding: 6px 12px;
  font-size: 16px;
}
#dialog-caption {
  text-align: center;
  font-size: 17px;
  color: var(--muted);
  margin-top: 16px;
}
body.dialog-open {
  overflow: hidden;
}
@media (min-width: 1500px) {
  .hero {
    padding-top: 58px;
  }
  .hero-wordmark {
    font-size: 92px;
  }
}
@media (max-width: 1050px) {
  .header-inner {
    gap: 20px;
    padding-inline: 26px;
  }
  .site-header nav {
    gap: 20px;
  }
  .site-header nav a {
    font-size: 16px;
  }
  .repo-tree {
    grid-template-columns: 1fr;
  }
  .repo-tree > div {
    grid-template-columns: 220px 1fr;
  }
  .setup-card,
  .result-card {
    padding: 23px;
  }
  .metric-card {
    padding: 22px 16px;
  }
  .metric-card strong {
    font-size: 32px;
  }
  .deployment-card {
    padding: 24px;
  }
}
@media (max-width: 850px) {
  .header-inner {
    min-height: 66px;
    gap: 16px;
  }
  .brand {
    font-size: 25px;
  }
  .menu-toggle {
    display: block;
    margin-left: auto;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 16px;
  }
  .site-header nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 16px 28px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-header nav.open {
    display: flex;
  }
  .site-header nav a {
    font-size: 18px;
    padding: 9px 0;
  }
  .header-cta {
    font-size: 15px;
    padding: 7px 10px;
  }
  .hero h1 {
    font-size: 30px;
  }
  .desktop-break {
    display: none;
  }
  .hero-wordmark {
    font-size: 74px;
  }
  .section {
    padding-block: 58px;
  }
  .section-heading h2 {
    font-size: 33px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .results-grid,
  .setup-grid {
    grid-template-columns: 1fr;
  }
  .method-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .method-step {
    padding: 0 18px;
  }
  .method-step:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
  .method-step:nth-child(even) {
    padding-right: 0;
  }
  .deployment-grid {
    grid-template-columns: 1fr;
  }
  .deployment-card {
    padding: 26px;
  }
  .deployment-top {
    margin-bottom: 16px;
  }
  .deployment-card h3 {
    font-size: 25px;
  }
  .quantization-evidence {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .quantization-speeds {
    flex-basis: auto;
    min-width: 0;
    max-width: none;
    width: 100%;
  }
  .code-panel pre {
    min-height: 0;
  }
  .footer-inner {
    justify-content: center;
    text-align: center;
  }
  .footer-inner > p {
    flex-basis: 100%;
  }
  .footer-inner > div {
    justify-content: center;
  }
  .acknowledgements {
    padding-top: 10px;
  }
}
@media (max-width: 560px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .header-inner {
    padding-inline: 18px;
  }
  .header-cta {
    display: none;
  }
  .hero {
    padding-top: 36px;
  }
  .hero-wordmark {
    font-size: 65px;
    margin-bottom: 16px;
  }
  .hero h1 {
    font-size: 27px;
    line-height: 1.3;
  }
  .authors {
    gap: 6px 14px;
    margin-top: 24px;
    font-size: 16px;
  }
  .affiliations {
    font-size: 15px;
    gap: 5px 12px;
  }
  .contribution-note {
    font-size: 14px;
    line-height: 1.8;
    margin-top: 13px;
  }
  .button {
    font-size: 16px;
    padding: 10px 15px;
  }
  .resource-links {
    margin-top: 21px;
  }
  .demo-player {
    margin-top: 25px;
    border-radius: 8px;
  }
  .section {
    padding-block: 48px;
  }
  .section-heading {
    margin-bottom: 26px;
  }
  .section-heading h2 {
    font-size: 30px;
  }
  .section-label {
    font-size: 14px;
  }
  .intro-text {
    font-size: 19px;
    line-height: 1.85;
  }
  .figure-button {
    padding: 10px;
  }
  .paper-figure {
    border-radius: 8px;
  }
  .method-steps {
    gap: 24px 16px;
  }
  .method-step {
    padding: 0 14px;
  }
  .method-step-title {
    font-size: 21px;
  }
  .method-step-copy {
    font-size: 17px;
  }
  .metric-grid {
    gap: 12px;
  }
  .metric-card {
    padding: 18px 13px;
  }
  .metric-label {
    font-size: 15px;
    margin-top: 14px;
  }
  .metric-card strong {
    font-size: 30px;
  }
  .metric-card > p:last-child {
    font-size: 14px;
  }
  .metric-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }
  .metric-icon .icon {
    width: 20px;
    height: 20px;
  }
  .result-card,
  .setup-card {
    padding: 21px 17px;
    border-radius: 9px;
  }
  .card-heading {
    gap: 11px;
  }
  .card-heading h3 {
    font-size: 22px;
  }
  .card-heading p {
    font-size: 15px;
  }
  .small-icon {
    width: 37px;
    height: 37px;
  }
  .small-icon .icon {
    width: 20px;
    height: 20px;
  }
  .benchmark-row {
    grid-template-columns: 112px 1fr 50px;
    gap: 8px;
    font-size: 15px;
  }
  .benchmark-value {
    font-size: 14px;
  }
  .latency-row {
    grid-template-columns: 72px minmax(0, 1fr) 82px;
    gap: 8px;
    font-size: 15px;
  }
  .latency-value {
    font-size: 14px;
  }
  .chart-note {
    font-size: 15px;
  }
  .quantization-evidence h3 {
    font-size: 21px;
  }
  .quantization-evidence p {
    font-size: 16px;
  }
  .report-download-actions {
    gap: 9px;
  }
  .file-download {
    font-size: 15px;
    padding: 10px 13px;
  }
  .code-tabs button {
    padding-inline: 10px;
    font-size: 15px;
  }
  .code-tabs .copy-button {
    font-size: 14px;
  }
  .code-panel pre {
    padding: 16px 13px;
  }
  .code-panel code,
  .agent-prompt code {
    font-size: 14px;
  }
  #code-note {
    font-size: 15px;
  }
  .ai-card > p {
    font-size: 18px;
  }
  .ai-actions {
    gap: 9px;
  }
  .ai-actions .button {
    font-size: 15px;
  }
  .repository-layout {
    padding: 22px 17px;
  }
  .repository-layout h3 {
    font-size: 22px;
  }
  .repo-tree > div {
    grid-template-columns: 1fr;
    gap: 1px;
    padding: 10px 0;
    font-size: 16px;
  }
  .repo-tree code {
    font-size: 15px;
  }
  .deployment-card {
    padding: 25px 21px;
  }
  .deployment-card h3 {
    font-size: 23px;
  }
  .deployment-card p {
    font-size: 18px;
  }
  .acknowledgements h2 {
    font-size: 27px;
  }
  .acknowledgements > p:last-child {
    font-size: 18px;
  }
  .site-footer {
    padding-block: 26px;
  }
  .footer-inner {
    gap: 17px;
  }
  .footer-inner > p,
  .footer-inner > div {
    font-size: 16px;
  }
  .footer-inner > div {
    gap: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .deployment-card:hover {
    transform: none;
  }
}

/* Typography and surface detail share one restrained teal accent. */
.hero {
  position: relative;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: -72px 0 auto;
  height: 540px;
  background: radial-gradient(ellipse at 50% 0, #e5f4f780 0, #fff0 68%);
}
.section-heading.centered::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  border-radius: 3px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, #1b5e80, #13a1ae);
}
.section-label {
  font-size: 19px;
  font-weight: 750;
}
.metric-card {
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px -22px #1b607566;
}
.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #44829e55, #27acb866);
}
.metric-card strong.token-metric {
  display: flex;
  align-items: center;
  gap: 9px;
}
.metric-card .token-metric > span {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  letter-spacing: inherit;
}
.token-arrow {
  flex: none;
  width: 48px;
  height: 30px;
  color: var(--cyan);
}
.result-card,
.setup-card,
.deployment-card,
.repository-layout {
  box-shadow: 0 10px 28px -25px #224c6950;
}
.paper-figure {
  box-shadow: 0 12px 35px -30px #214e6a55;
}
@media (max-width: 850px) {
  .section-label {
    font-size: 18px;
  }
  .affiliations {
    font-size: 15px;
  }
}
@media (max-width: 560px) {
  .hero::before {
    inset-inline: 0;
  }
  .section-label {
    font-size: 17px;
  }
  .affiliations {
    font-size: 15px;
    gap: 7px;
  }
  .method-step-copy,
  .ai-card > p,
  .deployment-card p {
    font-size: 17px;
  }
  .metric-card strong.token-metric {
    gap: 6px;
    font-size: 30px;
  }
  .token-arrow {
    width: 30px;
    height: 22px;
  }
  .edge-speed {
    padding: 12px;
  }
  .edge-speed strong {
    font-size: 28px;
  }
  .edge-speed small,
  .edge-device {
    font-size: 16px;
  }
  .edge-speed > span:last-child {
    font-size: 15px;
  }
}
@media (max-width: 360px) {
  .metric-card strong.token-metric {
    gap: 4px;
    font-size: 27px;
  }
  .token-arrow {
    width: 26px;
  }
}

.intro-section {
  padding-top: 48px;
  padding-bottom: 48px;
}

/* Motion enhances the existing content; all content stays readable without JS. */
.reading-progress {
  position: absolute;
  inset: auto 0 -1px;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
}
.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, #17557d, #11abb7);
}
.hero::before {
  animation: ambient-wash 12s ease-in-out infinite alternate;
}
@keyframes ambient-wash {
  from {
    opacity: 0.5;
    transform: translateY(-12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(10px) scale(1.02);
  }
}
.motion-card {
  --pointer-x: 50%;
  --pointer-y: 50%;
  position: relative;
  isolation: isolate;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}
.motion-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    330px circle at var(--pointer-x) var(--pointer-y),
    #16a2b219,
    #ffffff00 65%
  );
  opacity: 0;
  transition: opacity 0.25s;
}
.motion-card.is-pointed::after,
.motion-card:focus-within::after {
  opacity: 1;
}
.motion-card.is-pointed {
  border-color: #93c1ce;
  box-shadow: 0 14px 36px -25px #1c607763;
}
.method-step {
  display: block;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  position: relative;
  transition:
    background 0.2s,
    color 0.2s;
}
.method-step::after {
  content: "";
  position: absolute;
  left: 0;
  right: 24px;
  bottom: -10px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #176485, #15a8b2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.method-step[aria-selected="true"] .method-step-title {
  color: var(--blue);
}
.method-step[aria-selected="true"]::after {
  transform: scaleX(1);
}
.method-step:hover {
  background: #eaf4f680;
}
.method-tour {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 23px 26px;
  margin-top: 36px;
  border: 1px solid #cee2e9;
  border-radius: 11px;
  background: linear-gradient(125deg, #fff, #edf7f9);
}
#method-stage-panel {
  max-width: 800px;
}
.stage-tag {
  color: var(--blue);
  font: 13px/1.5 var(--mono);
  margin-bottom: 7px;
  letter-spacing: 0.07em;
}
#stage-title {
  font-size: 22px;
  margin-bottom: 8px;
}
#stage-description {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
}
.tour-controls {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: none;
}
#stage-position {
  font: 14px/1.5 var(--mono);
  white-space: nowrap;
  color: var(--muted);
}
#method-autoplay {
  min-width: 112px;
  background: #fff;
}
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  border: 1px solid #bcd7e1;
  border-radius: 12px;
  color: var(--blue);
  background: #ffffffed;
  backdrop-filter: blur(10px);
  box-shadow: 0 7px 25px -14px #184b6d80;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.2s,
    transform 0.2s,
    visibility 0.2s;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top svg {
  width: 22px;
  height: 22px;
}
.benchmark-row {
  border-radius: 6px;
  transition: background 0.18s;
}
.benchmark-row:hover {
  background: #edf6f8;
}
.guide-back {
  margin-left: auto;
  color: var(--blue);
  font-size: 16px;
}
.guide-content {
  width: min(920px, calc(100% - 40px));
  margin: 42px auto 70px;
  font-size: 17px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.guide-content h1 {
  font-size: 34px;
  margin: 0 0 28px;
}
.guide-content h2 {
  font-size: 25px;
  margin: 35px 0 15px;
}
.guide-content p,
.guide-content ul,
.guide-content ol {
  margin: 15px 0;
}
.guide-content a {
  color: var(--blue);
  text-decoration: underline;
}
.guide-content code {
  font: 14px/1.75 var(--mono);
}
.guide-content pre {
  padding: 19px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: auto;
  white-space: pre-wrap;
}
.guide-table {
  max-width: 100%;
  margin: 20px 0;
  overflow-x: auto;
}
.guide-table table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.6;
}
.guide-table th,
.guide-table td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.guide-table th {
  background: var(--soft);
}
.guide-content .anchor {
  display: none;
}
@media (max-width: 850px) {
  .method-tour {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }
  .tour-controls {
    justify-content: space-between;
  }
}
@media (max-width: 560px) {
  .method-tour {
    padding: 20px 17px;
    margin-top: 30px;
  }
  #stage-title {
    font-size: 21px;
  }
  #stage-description {
    font-size: 16px;
  }
  .back-to-top {
    right: 15px;
    bottom: 15px;
    width: 40px;
    height: 40px;
  }
  .guide-content {
    font-size: 16px;
  }
  .guide-content h1 {
    font-size: 29px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .latency-row .benchmark-fill,
  .latency-tabs button {
    transition: none;
  }
  .hero::before {
    animation: none;
  }
  .motion-card {
    transform: none !important;
  }
  .method-step::after {
    transition: none;
  }
  #method-autoplay {
    display: none;
  }
}

.method-step-title,
.method-step-copy,
.step-number {
  display: block;
}

/* Keep interactive controls stable while feedback and pipeline text change. */
.method-step-title {
  font-weight: 650;
}
.stage-tag {
  font-size: 15px;
}
#stage-title {
  font-size: 24px;
}
#stage-description {
  font-size: 18px;
  line-height: 1.75;
}
#method-autoplay[aria-pressed="true"] {
  background: #173b53;
  border-color: #173b53;
  color: #f3fbff;
}
@media (max-width: 560px) {
  #stage-title {
    font-size: 22px;
  }
  #stage-description {
    font-size: 17px;
  }
}
