@font-face {
  font-family: Manrope;
  src: url("/assets/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #141918;
  --muted: #505d59;
  --paper: #fff;
  --surface: #eff3f1;
  --line: #dce4df;
  --strong-line: #b6c9be;
  --accent: #08734d;
  --oxide: #a8492f;
  --dark: #15372a;
  --green: #1b533e;
  --green-hover: #164433;
  --green-ink: #f5fbf6;
  --green-tint: #e9f3ed;
  --page-gutter: clamp(1rem, 4vw, 3.125rem);
  --shell: min(100% - 2 * var(--page-gutter), 1130px);
  --band-space: clamp(3rem, 6.4vw, 5.75rem);
  --radius-inset: 8px;
  --radius-card: 12px;
  --radius-panel: 16px;
  --radius-feature: clamp(18px, 2vw, 26px);
  --radius-pill: 999px;
  font: 16px/1.65 Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration: none; }
a:where(:hover) { color: var(--green-hover); }
p a:hover, p a:focus-visible { text-decoration: underline; text-underline-offset: .19em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dd, dl { margin: 0; }
h1, h2, h3 { line-height: 1.14; letter-spacing: -.04em; overflow-wrap: anywhere; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { letter-spacing: -.035em; }
p { overflow-wrap: anywhere; }
p + p { margin-top: .95rem; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip:focus { z-index: 5; position: fixed; inset: 1rem auto auto 1rem; padding: .5rem 1rem; background: white; }

.top { background: white; position: relative; z-index: 2; }
.bar { width: min(100% - 64px, 1348px); min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: .7rem 1.4rem; }
.brand { display: inline-flex; align-items: center; gap: .56rem; color: var(--ink); font-size: 1.125rem; font-weight: 740; letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.brand img { flex: 0 0 33px; width: 33px; height: 33px; }
.bar nav { display: flex; align-items: center; flex-wrap: wrap; gap: .26rem 1.45rem; }
.bar nav a { font-size: .91rem; color: var(--ink); text-decoration: none; }
.bar nav a { padding-block: .36rem; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: .45rem; flex-shrink: 0; }
.button-green, .header-cta { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-height: 44px; padding: .5rem 1rem; border: 1px solid transparent; background: var(--green); border-radius: var(--radius-pill); color: var(--green-ink); font-size: .875rem; font-weight: 665; line-height: 1.35; text-align: center; text-decoration: none; }
.button-green:hover, .header-cta:hover { background: var(--green-hover); }
.header-cta[aria-current] { border-color: var(--strong-line); background: var(--green-tint); color: var(--green-hover); }
.languages { position: relative; flex-shrink: 0; }
.languages summary { display: flex; align-items: center; min-height: 44px; gap: .45rem; padding: .3rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-pill); font-size: .87rem; color: var(--ink); cursor: pointer; }
.languages summary:hover { border-color: var(--accent); }
.languages summary::-webkit-details-marker { display: none; }
.languages svg { flex: 0 0 16px; width: 16px; height: 16px; color: var(--green); }
.languages ul { min-width: 11rem; padding: .32rem; margin: .3rem 0 0; list-style: none; position: absolute; inset-inline-end: 0; z-index: 3; background: white; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: 0 12px 28px #183c2d14; }
.languages a { display: block; padding: .31rem .59rem; color: var(--ink); text-decoration: none; border-radius: var(--radius-inset); }
.languages a:hover, .languages a[aria-current] { background: var(--surface); color: var(--accent); }
.language-notice { background: var(--surface); border-block: 1px solid var(--line); padding-block: .48rem; font-size: .91rem; }
.language-notice a { margin-inline-start: .32rem; font-weight: 675; }

.hero { --cut: var(--radius-feature); position: relative; width: min(100% - 48px, 1380px); margin-inline: auto; isolation: isolate; color: white; }
.hero-stage { min-height: 615px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 23%); align-items: start; gap: 2rem 5.5%; padding: clamp(4.35rem, 7vw, 6.5rem) 7.1% 10.5rem; }
.hero-photo { position: absolute; z-index: -1; inset: 0; overflow: hidden; border-radius: var(--cut); background: #25352d; }
.hero-photo picture, .hero-photo img { display: block; width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; object-position: center 51%; }
.hero-photo::after { position: absolute; content: ""; inset: 0; background: linear-gradient(90deg, #101c15a6, #101c153b 63%, #07171026); pointer-events: none; }
.hero-copy { min-width: 0; padding-top: clamp(1.1rem, 3.35vw, 3.4rem); }
.eyebrow { font-size: .94rem; font-weight: 620; }
.hero .eyebrow { color: #eff7ef; margin-bottom: 1.05rem; }
.hero h1 { font-size: clamp(3.9rem, 7vw, 6.35rem); font-weight: 495; line-height: .99; letter-spacing: -.071em; }
.hero h1 span { display: block; margin-top: .22em; font-size: .65em; font-weight: 530; line-height: 1.08; letter-spacing: -.052em; text-wrap: balance; overflow-wrap: normal; hyphens: auto; }
:lang(zh) .hero h1 span, :lang(ja) .hero h1 span, :lang(ko) .hero h1 span { font-size: .57em; letter-spacing: -.035em; }
.hero-description { color: #edf6f0; margin-top: 1.14rem; font-size: clamp(.97rem, 1.5vw, 1.12rem); max-width: 53ch; line-height: 1.58; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .2rem 1.4rem; margin-top: 1rem; }
.hero-actions a { display: inline-flex; align-items: center; min-height: 44px; color: white; font-size: .94rem; font-weight: 660; }
.hero-actions a:hover { color: #c5efd7; }
.hero :focus-visible { outline-color: #cdf2df; }
.hero-preview {
  display: grid;
  min-width: 0;
  margin-top: clamp(0rem, 2vw, 1.5rem);
  padding: 0;
  overflow: hidden;
  border: 1px solid #ffffff45;
  border-radius: var(--radius-panel);
  background: #111e19ed;
  color: #f5fbf6;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.hero-preview:hover { border-color: #e0f3e7a3; background: #1c3026; }
.hero-preview-media { position: relative; display: block; overflow: hidden; background: #182823; }
.hero-preview img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.play-chip {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 44px;
  aspect-ratio: 1;
  border-radius: var(--radius-pill);
  background: var(--green-ink);
  color: var(--green);
  box-shadow: 0 2px 12px #0b17174d;
}
.hero-preview:hover .play-chip { background: #d8f2e5; }
.play-chip svg { width: 21px; height: 21px; }
.hero-preview-copy { display: grid; gap: .18rem; padding: .7rem .85rem .85rem; line-height: 1.3; }
.hero-preview-copy > span { color: #bcd0c4; font-size: .75rem; font-weight: 560; }
.hero-preview-copy strong { font-size: .91rem; font-weight: 665; overflow-wrap: anywhere; }

html:has(.video-dialog[open]) { overflow: hidden; }
.video-dialog {
  width: min(960px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: auto;
  border: 1px solid #ffffff26;
  border-radius: var(--radius-feature);
  background: #101b16;
  color: #f5fbf6;
  box-shadow: 0 20px 70px #0008;
}
.video-dialog::backdrop { background: #090f0cd9; }
.video-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem clamp(.8rem, 2.5vw, 1.25rem); }
.video-dialog-header p { color: #bcd0c4; font-size: .75rem; }
.video-dialog-header h2 { font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 660; letter-spacing: 0; }
.video-dialog-close {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #ffffff30;
  border-radius: var(--radius-pill);
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.video-dialog-close:hover { background: #ffffff12; }
.video-dialog :focus-visible { outline-color: #cdf2df; }
.video-dialog-close svg { width: 20px; height: 20px; }
.video-dialog video { display: block; width: 100%; height: auto; max-height: calc(100dvh - 7.5rem); object-fit: contain; background: #080d0a; }
.spec-sheet { position: absolute; z-index: 1; width: 53%; inset: auto 0 0 auto; padding: 1.75rem .9rem .25rem 1.85rem; background: white; color: var(--ink); border-radius: var(--cut) 0 0 0; }
.spec-sheet::before, .spec-sheet::after { content: ""; position: absolute; width: var(--cut); height: var(--cut); background: radial-gradient(circle at 0 0, transparent calc(var(--cut) - .65px), white var(--cut)); pointer-events: none; }
.spec-sheet::before { inset: auto calc(100% - 1px) 0 auto; }
.spec-sheet::after { inset: auto 0 calc(100% - 1px) auto; }
.spec-sheet dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; align-items: stretch; }
.spec-sheet dl div { display: flex; flex-direction: column-reverse; justify-content: flex-end; min-width: 0; }
.spec-sheet dl div + div { padding-inline-start: .7rem; border-inline-start: 1px solid var(--line); }
.spec-sheet dt { color: var(--muted); font-size: .85rem; line-height: 1.44; overflow-wrap: anywhere; hyphens: auto; }
.spec-sheet dd { color: var(--ink); font-size: clamp(1.95rem, 3vw, 2.9rem); font-weight: 560; letter-spacing: -.073em; line-height: 1; white-space: nowrap; margin-bottom: .35rem; font-variant-numeric: tabular-nums; }

.band { padding-block: var(--band-space); }
.band h2, .missing h1 { font-size: clamp(1.95rem, 4.05vw, 3.45rem); font-weight: 585; line-height: 1.12; }
.status-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .93fr); align-items: center; gap: 1rem 5%; }
.status-copy > p, .version-copy > p { color: var(--muted); max-width: 62ch; }
.status-copy .verified-date { margin-top: .65rem; font-size: .84rem; }
.source-index { display: flex; flex-wrap: wrap; gap: .15rem 1.35rem; margin: 1.25rem 0 0; padding: .6rem 0 0; list-style: none; border-top: 1px solid var(--line); }
.source-index a { display: inline-flex; align-items: center; gap: .25rem; min-height: 32px; color: var(--muted); font-size: .82rem; line-height: 1.35; overflow-wrap: anywhere; }
.source-index a:hover, .source-index a:focus-visible { color: var(--accent); }
.source-index svg, .footer-link svg { flex: 0 0 14px; width: 14px; height: 14px; }
.library { background: var(--surface); }
.library h2, .home-demo h2 { text-align: center; max-width: 24ch; margin: 0 auto clamp(1.5rem, 3.5vw, 2.4rem); text-wrap: balance; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-panel); }
.index-entry { position: relative; min-width: 0; padding: clamp(1.25rem, 2.5vw, 2rem); background: white; }
.index-entry:hover { background: #f8fcfa; }
.topic-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 1rem; border: 1px solid var(--line); border-radius: var(--radius-inset); background: var(--green-tint); color: var(--green); }
.topic-icon svg { width: 21px; height: 21px; }
.index-entry h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 700; margin-bottom: .5rem; }
.index-entry a { color: var(--ink); text-decoration: none; }
.index-entry a::after { content: ""; position: absolute; inset: 0; }
.index-entry a:hover { color: var(--accent); }
.index-entry a:focus-visible { outline: none; }
.index-entry a:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -3px; }
.index-entry p { color: var(--muted); font-size: .91rem; line-height: 1.52; }

.versions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.03fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: stretch; }
.version-copy { display: flex; flex-direction: column; min-width: 0; align-self: stretch; }
.version-copy h2 { margin-bottom: 1rem; }
.version-cta, .demo-feature-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1rem; }
.version-cta { margin-block: 1.25rem 1.6rem; }
.version-cta > a:not(.button-green) { font-size: .875rem; font-weight: 660; }
.version-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; padding: 0; margin: auto 0 0; list-style: none; }
.version-cards li { border: 1px solid var(--line); border-radius: var(--radius-card); padding: .875rem 1rem; min-width: 0; }
.version-cards strong { display: block; font-weight: 750; line-height: 1.3; }
.version-cards p { color: var(--muted); font-size: .89rem; margin-top: .33rem; line-height: 1.42; }
.studio-photo { min-width: 0; overflow: hidden; border-radius: var(--radius-panel); background: #e7e5dd; }
.studio-photo img { width: 100%; height: 100%; min-height: 330px; max-height: 560px; object-fit: cover; object-position: center 43%; }

.home-demo { padding-top: 0; }
.demo-feature { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(.7rem, 3vw, 1.75rem); align-items: center; border-radius: var(--radius-panel); padding: .75rem; background: var(--surface); }
.demo-feature-copy { padding: 1rem clamp(.625rem, 3vw, 1.5rem); }
.demo-feature-copy > p:first-child { color: var(--muted); }
.demo-feature-actions { margin-top: 1rem; }
.demo-feature-actions .citations { margin: 0; }
.demo-feature-video { width: 100%; overflow: hidden; border-radius: var(--radius-inset); background: #121e19; }
.demo-feature-video video { width: 100%; height: auto; display: block; }
.table-scroll { border: 1px solid var(--line); border-radius: var(--radius-card); overflow: auto; }
table { border-collapse: collapse; width: 100%; min-width: 540px; font-size: .94rem; }
th, td { padding: .62rem .69rem; vertical-align: top; text-align: start; border-bottom: 1px solid var(--line); }
thead { background: var(--surface); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

.article { padding-bottom: clamp(2.4rem, 5vw, 4.7rem); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; font-size: .87rem; margin: 1.5rem 0 clamp(1.45rem, 4vw, 2.75rem); color: var(--muted); }
.article-title { border-bottom: 1px solid var(--line); padding-bottom: clamp(1.25rem, 3vw, 1.75rem); margin-bottom: clamp(1.25rem, 3vw, 1.75rem); }
.article-title h1 { font-size: clamp(2.2rem, 4.75vw, 3.6rem); font-weight: 695; max-width: 30ch; margin: 0 0 .75rem; text-wrap: balance; }
:lang(zh) .article-title h1, :lang(ja) .article-title h1, :lang(ko) .article-title h1 { max-width: 19em; }
.lead { max-width: 69ch; color: var(--muted); }
.verified-date { margin-top: .75rem; color: var(--muted); font-size: .85rem; }
.article-grid { display: grid; grid-template-columns: minmax(0, 760px) minmax(150px, 230px); gap: clamp(1.75rem, 5vw, 5rem); align-items: start; }
.article-body { grid-column: 1; grid-row: 1; }
.article-index { grid-column: 2; grid-row: 1; position: sticky; top: 1rem; border-left: 1px solid var(--strong-line); padding-left: 1rem; max-height: calc(100vh - 2rem); overflow: auto; }
.article-index h2 { font-size: .92rem; letter-spacing: 0; }
.article-index ol { padding: 0; list-style: none; margin: .65rem 0 0; }
.article-index li + li { margin-top: .45rem; }
.article-index a { color: var(--muted); font-size: .88rem; text-decoration: none; }
.article-index a:hover, .article-index a:focus-visible { color: var(--accent); }
.article-body section { padding-block: clamp(1.5rem, 3vw, 2rem); border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.article-body section:first-child { padding-top: 0; }
.article-body section h2 { font-size: clamp(1.47rem, 2.6vw, 2.02rem); margin-bottom: .6rem; }
.article-body section p { max-width: 74ch; }
.article-body section:target h2, #official-demos:target { color: var(--accent); }
.citations { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .9rem; margin: .7rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .84rem; }
.citations a { color: var(--muted); }
.citations a:hover, .citations a:focus-visible { color: var(--accent); }
.example { margin: .9rem 0 .4rem; white-space: pre-wrap; overflow-wrap: anywhere; padding: .93rem 1.05rem; background: #173429; color: #f3faf8; border-radius: var(--radius-card); font-size: .9rem; line-height: 1.55; }
.related ul { margin: .62rem 0 0; padding-left: 1.17rem; }

.editorial > p:first-of-type { margin-bottom: .82rem; }
.editorial h3 { font-size: 1.23rem; margin: 1.25rem 0 .6rem; }
.editorial .figure-note, .parameter-chart + figcaption, .research-figure > figcaption { margin-top: .68rem; color: var(--muted); font-size: .89rem; }
.research-figure { margin-top: .88rem; }
.parameter-chart, .tiles, .ratio-grid, .routing-diagram { list-style: none; padding: 0; margin: 0; }
.parameter-chart, .tiles, .routing-diagram, .elo-values, .ratio-grid { overflow: hidden; border-radius: var(--radius-card); }
.parameter-chart { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.parameter-chart li { padding: .83rem .92rem; background: var(--surface); }
.parameter-chart dl { display: grid; gap: .38rem; margin-top: .4rem; }
.parameter-metric { display: grid; grid-template-columns: 1fr auto; gap: .08rem .68rem; align-items: center; font-size: .86rem; }
.parameter-metric dd { font-variant-numeric: tabular-nums; }
.parameter-bar { grid-column: 1 / -1; line-height: 1; }
.parameter-bar meter { width: 100%; height: .53rem; border: 0; border-radius: var(--radius-pill); }
.parameter-bar meter::-webkit-meter-bar { background: #e2e9e8; border: 0; border-radius: var(--radius-pill); }
.parameter-bar meter::-webkit-meter-optimum-value { background: #137850; border: 0; border-radius: var(--radius-pill); }
.parameter-bar meter.active::-webkit-meter-optimum-value { background: #ac543a; }
.parameter-bar meter::-moz-meter-bar { background: #137850; }
.parameter-bar meter.active::-moz-meter-bar { background: #ac543a; }
.tiles, .routing-diagram { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.tiles li, .routing-diagram li { padding: .78rem .82rem; background: var(--surface); min-width: 0; }
.model-facts > li { padding: .95rem 1rem; }
.editorial .model-facts h3 { margin: 0 0 .65rem; }
.model-facts dl { display: grid; gap: .55rem; font-size: .875rem; line-height: 1.45; }
.model-facts dt { color: var(--muted); }
.model-facts dd { overflow-wrap: anywhere; }
.tiles strong, .routing-diagram strong, .demo strong, .ratio-grid strong { display: block; line-height: 1.35; }
.tiles p, .routing-diagram p, .demo p { margin-top: .33rem; color: var(--muted); font-size: .94rem; }
.editorial .table-scroll + .tiles { margin-top: .76rem; }
.steps, .routing-diagram { counter-reset: stage; }
.steps li, .routing-diagram li { counter-increment: stage; }
.steps li strong::before { content: counter(stage) ". "; color: var(--accent); }
.timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.routing-diagram { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.routing-diagram li::before { content: "0" counter(stage); display: block; margin-bottom: .32rem; color: var(--oxide); font-size: .82rem; font-variant-numeric: tabular-nums; }
.routing-shape { height: 39px; display: flex; align-items: center; margin-block: .22rem .7rem; gap: 3px; }
.routing-shape i { display: inline-block; width: 11px; height: 7px; background: #dce9e1; }
.routing-shape .head-a { background: #08734d; }
.routing-shape .head-b { background: #63877d; }
.routing-shape .head-c { background: #b05a40; }
.routing-shape.shape-0 i, .routing-shape.shape-3 i { width: 16px; height: 20px; }
.routing-shape.shape-3 { gap: 0; }
.routing-shape.shape-1, .routing-shape.shape-2 { align-items: flex-start; justify-content: center; flex-direction: column; gap: 3px; }
.routing-shape div { display: flex; align-items: center; gap: 3px; }
.routing-shape b { width: 13px; height: 1px; background: #8ba3a6; }
.training-stages { margin-top: .8rem; border-top: 2px solid var(--dark); }
.training-stages div { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.4fr); gap: .34rem 1rem; padding: .63rem 0; border-bottom: 1px solid var(--line); }
.training-stages dt { font-weight: 695; }
.training-stages dd { color: var(--muted); }

.elo-figure { border-top: 2px solid var(--dark); padding-top: .55rem; }
.figure-label { color: var(--muted); font-size: .87rem; margin-bottom: .4rem; }
.elo-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.elo-values div { display: flex; flex-direction: column-reverse; background: var(--surface); padding: .64rem .75rem; }
.elo-values dt { color: var(--muted); font-size: .87rem; }
.elo-values dd { font-size: clamp(1.27rem, 3vw, 2.05rem); font-variant-numeric: tabular-nums; font-weight: 690; }
.elo-values .elo-delta dd { color: var(--oxide); }
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .62rem; }
.demo { display: grid; align-content: start; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-card); overflow: hidden; min-width: 0; }
.demo video { display: block; width: 100%; height: auto; background: #172126; }
.demo figcaption { padding: .61rem .69rem; }
.ratio-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .4rem; background: var(--surface); border: 1px solid var(--line); }
.ratio-grid li { display: grid; justify-items: center; grid-template-rows: 42px auto 1fr; gap: .3rem; padding: .57rem .23rem; color: var(--muted); text-align: center; font-size: .84rem; }
.ratio-grid strong { color: var(--ink); }
.ratio-shape { display: block; align-self: center; border: 2px solid var(--accent); background: #e5eded; width: 94%; max-width: 48px; }
.ratio-0 { aspect-ratio: 21 / 9; }
.ratio-1 { aspect-ratio: 16 / 9; }
.ratio-2 { aspect-ratio: 4 / 3; max-width: 43px; }
.ratio-3 { aspect-ratio: 1; max-width: 37px; }
.ratio-4 { aspect-ratio: 3 / 4; max-width: 29px; }
.ratio-5 { aspect-ratio: 9 / 16; max-width: 22px; }

.footer { border-top: 1px solid #253b31; background: #0e1713; color: #f4fbf6; padding-block: 3.4rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.35rem 3rem; }
.footer .brand { color: #f5fff9; }
.footer-grid p { color: #bfcec5; margin-top: .55rem; max-width: 50ch; font-size: .88rem; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem clamp(.65rem, 3vw, 2.75rem); }
.footer-links .footer-heading { margin: 0; color: #c9d7ce; font-size: .84rem; font-weight: 685; line-height: 1.4; }
.footer-links ul { display: grid; gap: .4rem; margin: .65rem 0 0; padding: 0; list-style: none; }
.footer-links li { line-height: 1.35; }
.footer-links a { color: #aabbb0; font-size: .83rem; overflow-wrap: anywhere; }
.footer-links a:hover, .footer-links a[aria-current] { color: #e9f4ed; }
.footer-link { display: inline-flex; align-items: center; gap: .24em; }
.footer a:focus-visible { outline-color: #86e7b5; }

@media (max-width: 1130px) {
  .bar nav { gap: .24rem .85rem; }
  .hero-stage { min-height: 580px; }
  .spec-sheet { width: 56%; }
}
@media (max-width: 900px) {
  .bar { width: var(--shell); flex-wrap: wrap; padding-block: .62rem; min-height: 0; }
  .bar nav { order: 1; width: 100%; gap: .08rem .92rem; }
  .hero-stage { min-height: 535px; grid-template-columns: minmax(0, 1fr) minmax(152px, 24%); gap: 1.25rem; padding-inline: 5.1%; }
  .hero h1 span { font-size: .61em; }
  .spec-sheet { width: 66%; padding: 1.3rem .6rem .2rem 1.45rem; }
  .spec-sheet dd { font-size: clamp(1.65rem, 3.45vw, 2.5rem); }
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 1.35rem; }
  .article-body, .article-index { grid-column: auto; grid-row: auto; }
  .article-index { position: static; max-height: none; }
  .article-index ol { display: flex; flex-wrap: wrap; gap: .36rem .86rem; }
  .article-index li + li { margin: 0; }
}
@media (max-width: 650px) {
  .bar { column-gap: .5rem; }
  .bar nav { gap: .1rem .8rem; }
  .bar nav a { display: inline-flex; align-items: center; min-height: 32px; font-size: .84rem; }
  .brand { font-size: 1.03rem; }
  .brand img { width: 31px; height: 31px; flex-basis: 31px; }
  .header-cta, .languages summary { min-height: 40px; font-size: .81rem; padding-inline: .65rem; }
  .header-actions { gap: .27rem; }
  .hero { width: calc(100% - 24px); }
  .hero-stage { min-height: 0; grid-template-columns: minmax(0, 1fr); gap: 1.15rem; padding: 2.75rem clamp(1.25rem, 5vw, 1.85rem) 2.5rem; }
  .hero-copy { padding: 0; }
  .hero-photo img { object-position: center 48%; }
  .hero-photo::after { background: linear-gradient(90deg, #0b1b12b3, #141d1554); }
  .hero h1 { font-size: clamp(3.65rem, 13vw, 5.3rem); font-weight: 535; }
  .hero h1 span { font-size: .65em; }
  :lang(zh) .hero h1 span, :lang(ja) .hero h1 span, :lang(ko) .hero h1 span { font-size: .61em; }
  .hero .eyebrow { font-size: .82rem; margin-bottom: .79rem; }
  .hero-description { font-size: .94rem; margin-top: .94rem; }
  .hero-actions { gap: 0 1rem; margin-top: .5rem; }
  .hero-actions a { font-size: .86rem; }
  .hero-preview { grid-template-columns: minmax(80px, 36%) minmax(0, 1fr); width: min(100%, 310px); align-items: center; margin-top: 0; padding: .35rem; border-radius: var(--radius-card); }
  .hero-preview-media { border-radius: var(--radius-inset); }
  .hero-preview-copy { gap: .13rem; padding: .25rem .45rem .25rem .75rem; }
  .hero-preview-copy strong { font-size: .83rem; }
  .play-chip { width: 30px; }
  .play-chip svg { width: 17px; height: 17px; }
  .spec-sheet { position: static; width: var(--shell); margin-inline: auto; padding: 1.25rem 0 0; border-radius: 0; }
  .spec-sheet::before, .spec-sheet::after { content: none; }
  .spec-sheet dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem .85rem; }
  .spec-sheet dl div, .spec-sheet dl div + div { border: 0; border-bottom: 1px solid var(--line); padding: .25rem 0 .75rem; }
  .spec-sheet dd, .spec-sheet dt { padding-inline: .2rem; }
  .spec-sheet dd { font-size: 2rem; }
  .spec-sheet dt { font-size: .79rem; }
  .status-copy, .versions, .demo-feature, .footer-grid { grid-template-columns: 1fr; }
  .source-index { gap: .15rem .85rem; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index-entry { padding: .95rem; }
  .index-entry p { font-size: .86rem; }
  .studio-photo img { min-height: 0; max-height: 395px; aspect-ratio: 1.18; object-position: center 44%; }
  .demo-feature-copy { padding: .625rem .5rem; }
  .demo-feature-actions { column-gap: .75rem; }
  .breadcrumbs { margin-bottom: 1.24rem; }
  .article-title { margin-bottom: 1.25rem; }
  .training-stages div, .timeline { grid-template-columns: 1fr; }
  .routing-diagram { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ratio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .demo-grid, .tiles:not(.timeline) { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .brand { gap: .45rem; font-size: 1rem; }
  .brand img { width: 29px; height: 29px; flex-basis: 29px; }
  .header-cta { padding-inline: .5rem; }
  .languages summary { padding-inline: .5rem; }
  .languages summary > span { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
}
