:root {
  --ink: #121b2b;
  --muted: #5e6876;
  --line: #dfe3e8;
  --paper: #ffffff;
  --wash: #f4f6f7;
  --pink: #c33374;
  --pink-dark: #982656;
  --teal: #087f8e;
  --orange: #e78b13;
  --max-width: 1180px;
  --shadow: 0 16px 36px rgba(18, 27, 43, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

button {
  font: inherit;
}

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

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 62px;
  height: 28px;
  object-fit: cover;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.site-nav a,
.language-toggle {
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

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

.language-toggle {
  padding: 5px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  cursor: pointer;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  color: var(--pink);
  border-color: var(--pink);
}

.nav-repo {
  padding: 7px 12px;
  color: var(--ink) !important;
  border: 1px solid var(--line);
  border-radius: 4px;
}

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

.hero {
  overflow: hidden;
  padding: 104px 0 0;
  background: var(--wash);
  border-bottom: 1px solid var(--line);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: end;
  padding-bottom: 76px;
}

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

.eyebrow,
.section-index {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(3.7rem, 8vw, 7.6rem);
  font-weight: 850;
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-title {
  max-width: 690px;
  margin: 28px 0 0;
  color: var(--pink);
  font-size: clamp(1.4rem, 2.6vw, 2.25rem);
  font-weight: 760;
  line-height: 1.15;
}

.hero-lede {
  max-width: 690px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  color: #fff;
  background: var(--pink);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--pink-dark);
}

.button-secondary {
  border: 1px solid var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--teal);
  border-color: var(--teal);
}

.hero-mfu {
  padding: 21px 0 0;
  border-top: 3px solid var(--pink);
  border-bottom: 1px solid #cbd1d7;
}

.hero-mfu-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.hero-mfu-header > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-mfu-header > div > span {
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
}

.hero-mfu-header small {
  color: var(--muted);
  font-size: 12px;
}

.hero-mfu-header > strong {
  font-size: 2rem;
  line-height: 1.1;
}

.hero-mfu-header > strong span {
  margin-left: 2px;
  color: var(--pink);
  font-size: 1rem;
}

.mfu-trajectory {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mfu-trajectory li {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}

.mfu-trajectory li:not(:last-child)::after {
  position: absolute;
  z-index: 0;
  top: 43px;
  bottom: -30px;
  left: 14px;
  width: 1px;
  background: #bcc4cc;
  content: "";
}

.mfu-node {
  position: relative;
  z-index: 1;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--muted);
  background: var(--wash);
  border: 1px solid #aeb7c0;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}

.mfu-trajectory li:last-child .mfu-node {
  color: #fff;
  background: var(--pink);
  border-color: var(--pink);
}

.mfu-trajectory li > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mfu-trajectory b {
  font-size: 13px;
  line-height: 1.35;
}

.mfu-trajectory li > span small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.mfu-trajectory em {
  color: var(--teal);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.mfu-total {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 14px 0;
  color: var(--muted);
  font-size: 12px;
}

.mfu-total strong {
  color: var(--pink-dark);
  font-size: 13px;
}

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

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

.metric {
  display: flex;
  flex-direction: column;
  min-height: 136px;
  padding: 24px 22px 22px 0;
  border-right: 1px solid var(--line);
}

.metric:not(:first-child) {
  padding-left: 22px;
}

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

.metric strong {
  color: var(--ink);
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1;
}

.metric strong span {
  margin-left: 3px;
  color: var(--pink);
  font-size: 0.55em;
}

.metric > span {
  max-width: 190px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.metric-accent strong {
  color: var(--pink);
}

.section {
  padding: 112px 0;
}

.report-overview,
.system-detail,
.training-detail,
.quality-detail,
.scale-detail,
.limitations-section {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.article-header {
  max-width: 980px;
}

.article-header h2 {
  max-width: 850px;
}

.article-dek {
  max-width: 900px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.article-prose {
  max-width: 930px;
  margin-top: 46px;
}

.article-prose h3 {
  margin: 42px 0 13px;
  font-size: 1.5rem;
  line-height: 1.2;
}

.article-prose h3:first-child {
  margin-top: 0;
}

.article-prose p {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.85;
}

.article-prose p + p {
  margin-top: 24px;
}

.overview-table-wrap {
  max-width: 1180px;
  margin-top: 56px;
  overflow-x: auto;
  border: 1px solid var(--line);
}

.mfu-stage-summary {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 70px;
  margin-top: 58px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.mfu-stage-intro h3 {
  margin: 10px 0 17px;
  font-size: 1.65rem;
  line-height: 1.25;
}

.mfu-stage-intro > p:last-child,
.mfu-level-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.mfu-level-list {
  border-top: 1px solid var(--line);
}

.mfu-level-list article {
  display: grid;
  grid-template-columns: 84px minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 22px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.mfu-level-list article > span {
  color: var(--pink-dark);
  font-size: 11px;
  font-weight: 800;
}

.mfu-level-list h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
}

.mfu-level-list p {
  font-size: 0.94rem;
}

.optimization-details {
  margin-top: 58px;
  border-top: 1px solid var(--line);
}

.optimization-level {
  display: grid;
  grid-template-columns: minmax(230px, 0.68fr) minmax(0, 1.82fr);
  gap: 54px;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}

.optimization-level-header > span {
  color: var(--pink-dark);
  font-size: 11px;
  font-weight: 800;
}

.optimization-level-header h3 {
  margin: 10px 0 15px;
  font-size: 1.4rem;
  line-height: 1.3;
}

.optimization-level-header p,
.optimization-detail-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.optimization-level-header p {
  font-size: 0.96rem;
}

.optimization-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.optimization-detail-grid section {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 24px;
  border-left: 1px solid var(--line);
}

.optimization-detail-grid section:first-child {
  padding-left: 0;
  border-left: 0;
}

.optimization-detail-grid section:last-child {
  padding-right: 0;
}

.optimization-detail-grid h4 {
  min-height: 46px;
  margin: 0 0 13px;
  font-size: 1rem;
  line-height: 1.4;
}

.optimization-detail-grid p {
  flex: 1;
  font-size: 0.9rem;
}

.optimization-detail-grid code {
  display: block;
  margin-top: 18px;
  padding-top: 13px;
  overflow-wrap: anywhere;
  color: var(--teal);
  border-top: 1px solid var(--line);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  line-height: 1.55;
}

.article-table {
  min-width: 880px;
  background: var(--paper);
}

.article-table caption {
  padding: 20px 22px;
  background: var(--wash);
}

.article-table th,
.article-table td {
  vertical-align: top;
  line-height: 1.55;
}

.article-table tbody th {
  min-width: 155px;
}

.article-table code {
  color: var(--pink-dark);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.quick-start-section {
  background: var(--wash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-start-intro {
  max-width: 930px;
  margin-top: 34px;
}

.quick-start-intro p,
.quick-start-note p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.quick-steps {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.quick-step {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 0.66fr);
  gap: 50px;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}

.quick-step-meta {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.quick-step-meta > span {
  padding-top: 5px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.quick-step-meta h3 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.15;
}

.quick-step-body > p {
  max-width: 770px;
  margin: 0 0 23px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.quick-step pre {
  overflow-x: auto;
  margin: 0;
  padding: 22px 24px;
  color: #e6edf3;
  background: var(--ink);
  border-left: 4px solid var(--teal);
  font-size: 12px;
  line-height: 1.65;
  white-space: pre;
}

.quick-step:nth-child(2n) pre {
  border-left-color: var(--orange);
}

.quick-step:nth-child(3n) pre {
  border-left-color: var(--pink);
}

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

.quick-start-note {
  max-width: 930px;
  margin-top: 42px;
  padding: 20px 24px;
  background: var(--paper);
  border-left: 3px solid var(--orange);
}

.table-total th,
.table-total td {
  font-weight: 850;
  background: #f8f9fa;
}

.section-intro {
  background: var(--paper);
}

.intro-grid,
.section-heading,
.stack-layout,
.resource-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  gap: 80px;
  align-items: end;
}

h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2rem, 4.3vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-summary,
.section-heading > p,
.stack-copy > p,
.resource-layout > div > p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 58px;
}

.research-block {
  min-height: 300px;
  padding: 28px;
  border-top: 4px solid var(--teal);
  background: var(--wash);
}

.research-domain {
  border-top-color: var(--pink);
}

.block-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.block-topline img {
  width: 36px;
  height: 36px;
}

.block-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 48px;
}

.block-icons img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.block-icon-plus {
  color: var(--pink);
  font-size: 1.3rem;
  font-weight: 850;
}

.research-block h3 {
  margin: 42px 0 12px;
  font-size: 1.45rem;
  line-height: 1.1;
}

.research-block p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px;
}

.tag-list span {
  padding: 3px 7px;
  color: var(--ink);
  border: 1px solid #cbd2d8;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 800;
}

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

.narrative-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 80px;
  align-items: start;
}

.narrative-lead h2 {
  max-width: 580px;
}

.narrative-copy {
  padding-top: 36px;
}

.narrative-copy p {
  margin: 0;
  color: var(--muted);
}

.narrative-copy p + p {
  margin-top: 22px;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 68px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.signal {
  padding-right: 25px;
  border-right: 1px solid var(--line);
}

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

.signal strong {
  color: var(--pink);
  font-size: 2.6rem;
  line-height: 1;
}

.signal strong span {
  margin-left: 2px;
  font-size: 0.6em;
}

.signal h3 {
  margin: 20px 0 7px;
  font-size: 1.08rem;
}

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

.workflow-section,
.results-section {
  background: var(--wash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  align-items: start;
}

.section-heading > p {
  padding-top: 39px;
}

.workflow-line {
  display: grid;
  grid-template-columns: 1fr 50px 1fr 50px 1fr 50px 1fr;
  align-items: center;
  margin-top: 62px;
}

.workflow-step {
  min-height: 292px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.step-number {
  margin-bottom: 23px;
  color: var(--pink);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.workflow-step img {
  width: 42px;
  height: 42px;
}

.evaluation-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 96px;
  min-height: 48px;
  padding: 7px 11px;
  color: var(--ink);
  border: 2px solid var(--pink);
  border-radius: 4px;
  background: #fff5f9;
}

.evaluation-mark span {
  color: var(--teal);
  font-size: 14px;
  font-weight: 850;
}

.evaluation-mark strong {
  color: var(--pink);
  font-size: 1.75rem;
  line-height: 1;
}

.workflow-step h3 {
  margin: 25px 0 9px;
  font-size: 1.22rem;
}

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

.workflow-connector {
  height: 1px;
  background: var(--orange);
}

.workflow-explain {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 70px;
  margin-top: 72px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.workflow-explain article {
  max-width: 510px;
}

.mini-label {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.mini-label-pink {
  color: var(--pink);
}

.workflow-explain h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.workflow-explain p:last-child {
  margin: 0;
  color: var(--muted);
}

.data-engine-section {
  border-bottom: 1px solid var(--line);
}

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

.engine-item {
  min-height: 306px;
  padding: 26px;
  border-top: 3px solid var(--teal);
  background: var(--wash);
}

.engine-item:nth-child(2) {
  border-top-color: var(--orange);
}

.engine-item:nth-child(3) {
  border-top-color: var(--pink);
}

.engine-number {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.engine-item h3 {
  margin: 44px 0 13px;
  font-size: 1.3rem;
  line-height: 1.1;
}

.engine-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.results-heading {
  margin-bottom: 58px;
}

.results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 26px;
  align-items: stretch;
}

.table-wrap {
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--line);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13px;
}

caption {
  padding: 20px 22px;
  color: var(--ink);
  text-align: left;
  font-size: 14px;
  font-weight: 800;
}

th,
td {
  padding: 16px 14px;
  border-top: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

th:first-child,
td:first-child {
  padding-left: 22px;
  text-align: left;
}

thead th {
  color: var(--muted);
  background: #f8f9fa;
  font-size: 11px;
  font-weight: 800;
}

tbody th {
  font-weight: 750;
}

.result-ours th,
.result-ours td {
  color: var(--pink);
  font-weight: 850;
  background: #fff5f9;
}

.result-note {
  padding: 27px;
  background: var(--ink);
  color: #fff;
}

.result-note-mark {
  color: var(--orange);
  font-size: 2.6rem;
  font-weight: 850;
  line-height: 1;
}

.result-note h3 {
  margin: 38px 0 14px;
  font-size: 1.4rem;
  line-height: 1.15;
}

.result-note p {
  margin: 0;
  color: #c8d0d8;
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  gap: 9px;
  margin-top: 30px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--orange);
}

.benchmark-reading {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 70px;
  margin-top: 58px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.benchmark-reading h3 {
  margin: 0 0 11px;
  font-size: 1.12rem;
}

.benchmark-reading p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.stack-section {
  border-bottom: 1px solid var(--line);
}

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

.stack-copy .section-index {
  margin-bottom: 18px;
}

.stack-copy > p {
  max-width: 520px;
  margin-top: 26px;
}

.stack-list {
  border-top: 1px solid var(--line);
}

.stack-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 15px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  transition: color 160ms ease, padding 160ms ease;
}

.stack-item:hover,
.stack-item:focus-visible {
  padding-left: 8px;
  color: var(--pink);
}

.stack-number,
.resource-icon {
  color: var(--teal);
  font-size: 11px;
  font-weight: 850;
}

.stack-item strong,
.resource-link strong {
  display: block;
  font-size: 15px;
}

.stack-item small,
.resource-link small,
.resource-link code {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-family: inherit;
}

.arrow {
  color: var(--pink);
  font-size: 18px;
}

.resource-band {
  padding: 95px 0;
  color: #fff;
  background: var(--ink);
}

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

.resource-band .section-index {
  color: var(--orange);
}

.resource-band h2 {
  max-width: 620px;
}

.resource-layout > div > p {
  max-width: 610px;
  margin-top: 26px;
  color: #c8d0d8;
}

.resource-actions {
  border-top: 1px solid #425064;
}

.resource-link {
  display: grid;
  grid-template-columns: 35px 1fr auto;
  gap: 13px;
  align-items: center;
  min-height: 78px;
  border-bottom: 1px solid #425064;
  transition: color 160ms ease, padding 160ms ease;
}

.resource-link:hover,
.resource-link:focus-visible {
  padding-left: 8px;
  color: var(--orange);
}

.resource-link small,
.resource-link code {
  color: #aeb8c4;
}

.resource-command {
  cursor: default;
}

.resource-command:hover {
  padding-left: 0;
  color: #fff;
}

.resource-command code {
  overflow-wrap: anywhere;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
}

.resource-command button {
  padding: 5px 9px;
  color: #fff;
  background: transparent;
  border: 1px solid #6b7786;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.resource-command button:hover,
.resource-command button:focus-visible {
  color: var(--orange);
  border-color: var(--orange);
}

.site-footer {
  color: #c8d0d8;
  background: var(--ink);
  border-top: 1px solid #425064;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 32px;
  padding: 22px 0;
  font-size: 12px;
}

.footer-inner > span:first-child {
  color: #fff;
  font-weight: 850;
}

.footer-inner a {
  color: #fff;
  font-weight: 750;
}

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

:focus-visible {
  outline: 3px solid rgba(231, 139, 19, 0.55);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .site-nav {
    gap: 14px;
  }

  .site-nav > a:not(.nav-repo) {
    display: none;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero-mfu {
    width: min(100%, 680px);
  }

  .intro-grid,
  .section-heading,
  .stack-layout,
  .resource-layout,
  .narrative-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section-heading > p {
    padding-top: 0;
  }

  .workflow-line {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .workflow-connector {
    display: none;
  }

  .results-layout {
    grid-template-columns: 1fr;
  }

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

  .quick-step {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mfu-stage-summary {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .optimization-level {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .optimization-detail-grid {
    grid-template-columns: 1fr;
  }

  .optimization-detail-grid section,
  .optimization-detail-grid section:first-child,
  .optimization-detail-grid section:last-child {
    padding: 24px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .optimization-detail-grid section:last-child {
    padding-bottom: 0;
  }

  .optimization-detail-grid h4 {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--max-width), calc(100% - 32px));
  }

  .header-inner {
    min-height: 64px;
    gap: 12px;
  }

  .brand span {
    display: none;
  }

  .brand img {
    width: 72px;
    height: 30px;
  }

  .site-nav {
    gap: 12px;
    font-size: 12px;
  }

  .nav-repo {
    padding: 6px 9px;
  }

  .hero {
    padding-top: 72px;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 18vw, 5.5rem);
  }

  .hero-title {
    margin-top: 22px;
    font-size: 1.35rem;
  }

  .hero-lede {
    font-size: 0.98rem;
  }

  .hero-layout {
    gap: 42px;
    padding-bottom: 56px;
  }

  .hero-mfu-header > strong {
    font-size: 1.75rem;
  }

  .mfu-level-list article {
    grid-template-columns: 72px 1fr;
    gap: 10px 16px;
  }

  .mfu-level-list p {
    grid-column: 1 / -1;
  }

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

  .metric,
  .metric:not(:first-child) {
    min-height: 112px;
    padding: 20px 13px;
  }

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

  .metric:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .metric strong {
    font-size: 1.8rem;
  }

  .section {
    padding: 78px 0;
  }

  .research-grid {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .research-block {
    min-height: 0;
    padding: 23px;
  }

  .research-block h3 {
    margin-top: 31px;
  }

  .narrative-copy {
    padding-top: 0;
  }

  .article-dek {
    margin-top: 22px;
    font-size: 1rem;
    line-height: 1.7;
  }

  .article-prose {
    margin-top: 35px;
  }

  .article-prose h3 {
    margin-top: 34px;
    font-size: 1.3rem;
  }

  .article-prose p {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .overview-table-wrap {
    margin-top: 38px;
  }

  .signal-grid,
  .workflow-explain,
  .benchmark-reading {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .signal {
    padding: 0 0 25px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .workflow-line {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .workflow-step {
    min-height: 0;
  }

  .results-heading {
    margin-bottom: 36px;
  }

  .workflow-explain {
    margin-top: 48px;
  }

  .engine-grid {
    margin-top: 38px;
  }

  .engine-item {
    min-height: 0;
  }

  .quick-step {
    padding: 32px 0;
  }

  .quick-step-meta h3 {
    font-size: 1.25rem;
  }

  .quick-step pre {
    padding: 18px;
    font-size: 11px;
  }

  .quick-start-note {
    padding: 17px 18px;
  }

  .result-note {
    padding: 23px;
  }

  .resource-band {
    padding: 75px 0;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

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

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