:root {
  --ink: #10243a;
  --muted: #607286;
  --blue-950: #071f39;
  --blue-900: #0b3158;
  --blue-800: #124a7c;
  --blue-700: #1f669f;
  --blue-600: #2b7bb7;
  --blue-300: #94c5e8;
  --blue-100: #e7f2fa;
  --blue-50: #f4f9fd;
  --orange: #df7519;
  --orange-soft: #fff0df;
  --green: #3c8e5e;
  --green-soft: #e8f5ed;
  --line: #d9e4ed;
  --paper: #ffffff;
  --surface: #f7fafc;
  --shadow: 0 24px 80px rgba(7, 31, 57, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

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

button {
  font: inherit;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.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 16px;
  color: white;
  background: var(--blue-900);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.container {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
}

.container.narrow {
  width: min(calc(100% - 48px), 900px);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(217, 228, 237, 0.9);
  box-shadow: 0 10px 35px rgba(7, 31, 57, 0.06);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(calc(100% - 48px), var(--container));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  max-width: 580px;
  color: var(--blue-950);
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.site-nav a {
  position: relative;
  color: #40566b;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--blue-600);
  border-radius: 10px;
  content: "";
  transform: scaleX(0);
  transition: transform 160ms ease;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: var(--blue-950);
  border-radius: 4px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 148px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 15%, rgba(148, 197, 232, 0.42), transparent 30%),
    linear-gradient(180deg, #f8fbfe 0%, #ffffff 75%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(43, 123, 183, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 123, 183, 0.07) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 74%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.hero-orb-one {
  top: 180px;
  right: -140px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(43, 123, 183, 0.15);
}

.hero-orb-two {
  top: 310px;
  right: -50px;
  width: 160px;
  height: 160px;
  background: rgba(223, 117, 25, 0.08);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  max-width: 1050px;
  margin: 0 auto;
  color: var(--blue-950);
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.65rem, 5.3vw, 4.85rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.title-accent {
  color: var(--blue-700);
}

.hero-lead {
  max-width: 780px;
  margin: 26px auto 24px;
  color: #486075;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.authors {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 20px;
  row-gap: 2px;
  color: var(--blue-800);
  font-size: 18px;
  font-weight: 600;
}

.authors sup,
.affiliations sup {
  color: var(--orange);
  font-size: 0.66em;
  font-weight: 700;
}

.affiliations {
  max-width: 980px;
  margin: 14px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 18px;
  color: #738398;
  font-size: 14px;
}

.affiliations p {
  margin: 0;
}

.hero-actions {
  margin: 30px auto 42px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

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

.button:focus-visible,
.copy-button:focus-visible,
.menu-toggle:focus-visible {
  outline: 3px solid rgba(43, 123, 183, 0.34);
  outline-offset: 3px;
}

.button-primary {
  color: white;
  background: var(--blue-900);
  box-shadow: 0 10px 22px rgba(11, 49, 88, 0.22);
}

.button-primary:hover {
  background: var(--blue-800);
}

.button-secondary {
  color: var(--blue-950);
  background: white;
  border-color: var(--line);
  box-shadow: 0 7px 22px rgba(11, 49, 88, 0.07);
}

.button-secondary:hover {
  border-color: var(--blue-300);
}

.button-quiet {
  color: var(--blue-800);
  background: var(--blue-100);
}

.button-contact {
  color: #8c450b;
  background: var(--orange-soft);
  border-color: #efbf91;
  box-shadow: 0 7px 22px rgba(171, 80, 11, 0.1);
}

.button-contact:hover {
  background: #ffe1c1;
  border-color: var(--orange);
}

.button-icon {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 5px;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  line-height: 1;
}

.model-icon {
  color: var(--orange);
}

.token-stage {
  max-width: 1020px;
  margin: 0 auto;
  padding: 24px 26px 28px;
  text-align: left;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(148, 197, 232, 0.58);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.token-stage-header {
  margin-bottom: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.token-stage-header > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.stage-kicker {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.token-stage-header strong {
  color: var(--blue-950);
  font-family: "Manrope", sans-serif;
  font-size: 32px;
}

.stage-axis {
  padding: 4px 10px;
  color: var(--blue-700);
  background: var(--blue-100);
  border-radius: 999px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}

.token-flow {
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) 54px minmax(0, 3fr);
  align-items: center;
  gap: 12px;
}

.flat-token {
  padding: 17px;
  text-align: center;
  background: #f3f5f7;
  border: 1px dashed #a9b4bf;
  border-radius: var(--radius-sm);
}

.token-label {
  display: block;
  margin-bottom: 6px;
  color: #7f8a96;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.flat-token code {
  color: #536274;
  font-size: 17px;
}

.flow-arrow {
  color: var(--orange);
  font-size: 28px;
  text-align: center;
}

.hierarchy-tokens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.digit-token {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid;
  border-radius: var(--radius-sm);
}

.digit-token span {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.digit-token code {
  font-size: clamp(0.72rem, 1.3vw, 0.92rem);
  white-space: nowrap;
}

.digit-hundreds {
  color: #165686;
  background: #ddecf7;
  border-color: #a5cee9;
}

.digit-tens {
  color: #246a9d;
  background: #edf6fc;
  border-color: #c3def0;
}

.digit-ones {
  color: #9c4b08;
  background: var(--orange-soft);
  border-color: #f0c79f;
}

.section {
  padding: 104px 0;
}

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

.section-heading h2 {
  margin: 5px 0 0;
  color: var(--blue-950);
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading > p,
.split-heading > p {
  color: var(--muted);
}

.section-index {
  color: var(--orange);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.centered {
  text-align: center;
}

.centered > p {
  margin: 14px auto 0;
}

.split-heading {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.7fr);
  align-items: end;
  gap: 60px;
}

.split-heading > p {
  max-width: 520px;
  margin: 0;
  font-size: 18px;
}

.abstract-section {
  background: var(--blue-50);
}

.abstract-copy {
  margin: 0;
  color: #2e465d;
  font-size: clamp(1.16rem, 2.2vw, 1.42rem);
  line-height: 1.78;
  text-align: justify;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.comparison-card {
  padding: 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.comparison-card p {
  margin: 16px 0 0;
  color: var(--muted);
}

.flat-card {
  background: #f6f7f8;
}

.hi-card {
  background: linear-gradient(150deg, #f3f9fd, #ffffff);
  border-color: #b8d9ed;
  box-shadow: 0 18px 44px rgba(18, 74, 124, 0.08);
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card-tag {
  color: var(--blue-950);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.type-count {
  padding: 3px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.coordinate-pair {
  min-height: 82px;
  margin-top: 14px;
  display: grid;
  grid-template-columns: auto 64px auto;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.coordinate-pair code {
  padding: 12px 16px;
  color: #596775;
  background: white;
  border: 1px solid #cbd3da;
  border-radius: 9px;
  font-size: 22px;
}

.coordinate-relation {
  width: 64px;
  color: #8c98a3;
  font-family: "Apple Symbols", "Segoe UI Symbol", sans-serif;
  font-size: 56px;
  line-height: 1;
  text-align: center;
}

.coordinate-breakdown {
  min-height: 82px;
  margin-top: 14px;
  display: grid;
  gap: 8px;
  align-content: center;
}

.coordinate-breakdown > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.coordinate-breakdown code {
  padding: 6px 9px;
  color: #a34c06;
  background: var(--orange-soft);
  border: 1px solid #f0c79f;
  border-radius: 7px;
  font-size: 12px;
}

.coordinate-breakdown code.shared {
  color: #155b8e;
  background: var(--blue-100);
  border-color: #b8d9ed;
}

.feature-row {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.feature-item {
  min-height: 132px;
  padding: 23px;
  display: flex;
  align-items: center;
  gap: 17px;
  background: white;
}

.feature-number {
  color: var(--blue-700);
  font-family: "Manrope", sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.feature-item strong,
.feature-item div span {
  display: block;
}

.feature-item strong {
  font-family: "Manrope", sans-serif;
  font-size: 15px;
}

.feature-item div span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.method-section,
.analysis-section {
  color: #e8f2fb;
  background: var(--blue-950);
}

.light-heading h2 {
  color: white;
}

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

.method-notes {
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.method-notes article {
  position: relative;
  padding: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 197, 232, 0.16);
  border-radius: var(--radius-md);
}

.method-notes h3 {
  margin: 4px 0 8px;
  color: white;
  font-family: "Manrope", sans-serif;
  font-size: 18px;
}

.method-notes p {
  margin: 0;
  color: #b6c8d7;
  font-size: 15px;
  line-height: 1.5;
}

.note-index {
  color: var(--orange);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
}

.paper-figure {
  margin: 0;
}

.paper-figure img {
  width: 100%;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.paper-figure figcaption {
  margin: 13px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.method-section .paper-figure img,
.analysis-section .paper-figure img {
  border-color: rgba(148, 197, 232, 0.2);
}

.method-section .paper-figure figcaption,
.analysis-section .paper-figure figcaption {
  color: #aabed0;
}

.framework-figure {
  padding: 16px;
  background: white;
  border-radius: calc(var(--radius-lg) + 4px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.24);
}

.framework-figure figcaption {
  padding: 0 20px 8px;
  color: #536a7c !important;
}

.results-section {
  background: var(--surface);
}

.result-summary {
  margin-bottom: 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.result-summary article {
  min-height: 154px;
  padding: 23px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.result-summary article:last-child {
  border-right: 0;
}

.result-summary span {
  color: var(--blue-700);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}

.result-summary strong {
  margin: 4px 0;
  color: var(--blue-950);
  font-family: "Manrope", sans-serif;
  font-size: 34px;
  line-height: 1.1;
}

.result-summary small {
  color: var(--muted);
  font-size: 13px;
}

.results-layout {
  display: grid;
  gap: 26px;
}

.results-figure,
.result-table-wrap {
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(7, 31, 57, 0.06);
}

.results-figure figcaption {
  padding: 0 12px 3px;
}

.table-title {
  padding: 4px 4px 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.table-title span {
  color: var(--orange);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.table-title strong {
  color: var(--blue-950);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  min-width: 830px;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: 10px 12px;
  text-align: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

th:last-child,
td:last-child {
  border-right: 0;
}

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

thead th {
  color: white;
  background: var(--blue-900);
  font-weight: 600;
}

thead tr:last-child th {
  background: var(--blue-800);
}

th:first-child,
td:first-child {
  text-align: left;
  font-weight: 600;
}

tbody tr:nth-child(even) {
  background: #f7fafc;
}

.ours-row {
  color: var(--blue-950);
  background: #e6f2fa !important;
  font-weight: 700;
}

.ours-row td:first-child {
  color: var(--blue-700);
}

.best-alt {
  color: #9c4b08;
  background: var(--orange-soft);
  font-weight: 700;
}

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

.example-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}

.example-grid .paper-figure {
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 50px rgba(7, 31, 57, 0.07);
}

.diagnostic-figure {
  padding: 16px;
  background: white;
  border-radius: var(--radius-lg);
}

.diagnostic-figure figcaption {
  padding-bottom: 4px;
  color: #536a7c;
}

.citation-section {
  background: var(--blue-50);
}

.citation-box {
  position: relative;
  overflow: hidden;
  color: #d9eaf7;
  background: var(--blue-950);
  border: 1px solid #194b76;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 70px rgba(7, 31, 57, 0.17);
}

.citation-box pre {
  margin: 0;
  padding: 34px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre;
}

.copy-button {
  position: absolute;
  z-index: 2;
  top: 15px;
  right: 15px;
  padding: 8px 12px;
  color: #d9eaf7;
  background: #123c62;
  border: 1px solid #2c5d87;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease;
}

.copy-button:hover {
  background: #1b527f;
}

.copy-button span:first-child {
  margin-right: 5px;
}

.contact-section {
  background: var(--blue-50);
}

.contact-address {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--blue-950);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 46px rgba(7, 31, 57, 0.07);
}

.contact-address-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  color: #8c450b;
  background: var(--orange-soft);
  border: 1px solid #efbf91;
  border-radius: 12px;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.contact-address-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.contact-address-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-address-copy strong {
  overflow-wrap: anywhere;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.contact-copy-button {
  min-width: 104px;
  margin-left: auto;
  flex: 0 0 auto;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue-700);
  background: var(--blue-50);
  border: 1px solid #c7dce9;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.contact-copy-button:hover {
  transform: translateY(-1px);
  background: var(--blue-100);
  border-color: var(--blue-300);
}

.contact-copy-button:focus-visible {
  outline: 3px solid rgba(43, 123, 183, 0.34);
  outline-offset: 3px;
}

.site-footer {
  padding: 42px 0;
  color: #a8bccd;
  background: #06182c;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.site-footer strong {
  color: white;
  font-family: "Manrope", sans-serif;
  font-size: 18px;
}

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

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

.footer-links a {
  color: #d5e2ec;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
}

@media (max-width: 920px) {
  .brand {
    max-width: calc(100% - 56px);
    font-size: 13px;
  }

  .site-nav {
    position: fixed;
    top: 72px;
    right: 18px;
    left: 18px;
    padding: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 10px;
  }

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

  .menu-toggle {
    display: block;
  }

  .menu-toggle.is-open > span:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.is-open > span:nth-child(3) {
    opacity: 0;
  }

  .menu-toggle.is-open > span:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .method-notes,
  .feature-row {
    grid-template-columns: 1fr;
  }

  .feature-row {
    gap: 1px;
  }

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

  .result-summary article:nth-child(2) {
    border-right: 0;
  }

  .result-summary article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

@media (max-width: 700px) {
  body {
    font-size: 17px;
  }

  .coordinate-pair {
    grid-template-columns: auto 46px auto;
    gap: 8px;
  }

  .coordinate-pair code {
    padding: 10px 12px;
    font-size: 18px;
  }

  .coordinate-relation {
    width: 46px;
    font-size: 42px;
  }

  .container,
  .container.narrow,
  .nav-shell {
    width: min(calc(100% - 32px), var(--container));
  }

  .hero {
    min-height: auto;
    padding: 122px 0 74px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.35rem);
  }

  .hero-lead {
    margin-top: 20px;
  }

  .authors {
    column-gap: 14px;
    font-size: 16px;
  }

  .affiliations {
    display: block;
    font-size: 13px;
  }

  .hero-actions {
    margin-bottom: 34px;
  }

  .button {
    min-height: 45px;
    padding: 10px 15px;
  }

  .contact-address {
    padding: 18px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: flex-start;
    gap: 12px;
  }

  .contact-address-icon {
    width: 40px;
    height: 40px;
  }

  .contact-copy-button {
    grid-column: 2;
    justify-self: start;
    margin-left: 0;
  }

  .token-stage {
    padding: 20px;
    border-radius: 20px;
  }

  .token-stage-header {
    align-items: flex-start;
  }

  .token-stage-header > div {
    display: block;
  }

  .stage-kicker {
    display: block;
  }

  .token-stage-header strong {
    font-size: 27px;
  }

  .token-flow {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .hierarchy-tokens {
    grid-template-columns: 1fr;
  }

  .digit-token code {
    font-size: 13px;
  }

  .section {
    padding: 76px 0;
  }

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

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

  .comparison-card {
    padding: 23px;
  }

  .coordinate-breakdown code {
    font-size: 11px;
  }

  .method-notes {
    gap: 12px;
  }

  .framework-figure,
  .results-figure,
  .result-table-wrap,
  .diagnostic-figure,
  .example-grid .paper-figure {
    padding: 8px;
    border-radius: 16px;
  }

  .paper-figure img {
    border-radius: 11px;
  }

  .result-summary article {
    min-height: 132px;
    padding: 18px;
  }

  .result-summary strong {
    font-size: 29px;
  }

  .table-title {
    display: block;
  }

  .table-title strong {
    display: block;
    margin-top: 4px;
  }

  .citation-box pre {
    padding: 66px 20px 24px;
    font-size: 11px;
  }

  .footer-inner {
    display: block;
  }

  .footer-links {
    margin-top: 18px;
  }
}

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

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