@import url('/static/fonts.css?v=2');

/*
  Design tokens. One neutral family (cool zinc), one accent (signal orange).
  Radius scale: 8px for controls and inline elements, 12px for containers.
  z-index scale: 10 header, 20 grain overlay.
*/
:root {
  --bg: #fbfbfc;
  --surface: #ffffff;
  --surface-2: #f3f3f5;
  --surface-3: #ebebee;
  --line: #e4e4e8;
  --line-strong: #d4d4da;
  --text: #121215;
  --text-2: #3d3d45;
  --muted: #62626d;
  --accent: #c2410c;
  --accent-hover: #a9380a;
  --accent-ink: #ffffff;
  --accent-soft: rgba(194, 65, 12, 0.08);
  --accent-text: #b13b0b;
  --code-bg: #f5f5f7;
  --code-text: #25252b;
  --tok-key: #1f5f99;
  --tok-str: #2f7d4a;
  --tok-num: #a3470f;
  --tok-kw: #7a3fa0;
  --tok-com: #8a8a95;
  --shadow: 0 1px 2px rgba(18, 18, 30, 0.04), 0 12px 32px -12px rgba(18, 18, 30, 0.12);
  --radius-sm: 8px;
  --radius: 12px;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0c0c0e;
    --surface: #131316;
    --surface-2: #19191d;
    --surface-3: #212126;
    --line: #25252b;
    --line-strong: #34343c;
    --text: #ececef;
    --text-2: #c8c8cf;
    --muted: #9a9aa6;
    --accent: #ff7a3d;
    --accent-hover: #ff8f5c;
    --accent-ink: #1a0b03;
    --accent-soft: rgba(255, 122, 61, 0.1);
    --accent-text: #ff8f5c;
    --code-bg: #111114;
    --code-text: #dcdce2;
    --tok-key: #8cc4ff;
    --tok-str: #9fd8a8;
    --tok-num: #ffb38a;
    --tok-kw: #d3a8f0;
    --tok-com: #6e6e7a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --bg: #0c0c0e;
  --surface: #131316;
  --surface-2: #19191d;
  --surface-3: #212126;
  --line: #25252b;
  --line-strong: #34343c;
  --text: #ececef;
  --text-2: #c8c8cf;
  --muted: #9a9aa6;
  --accent: #ff7a3d;
  --accent-hover: #ff8f5c;
  --accent-ink: #1a0b03;
  --accent-soft: rgba(255, 122, 61, 0.1);
  --accent-text: #ff8f5c;
  --code-bg: #111114;
  --code-text: #dcdce2;
  --tok-key: #8cc4ff;
  --tok-str: #9fd8a8;
  --tok-num: #ffb38a;
  --tok-kw: #d3a8f0;
  --tok-com: #6e6e7a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15.5px/1.65 var(--sans);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}
a {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 30%, transparent);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.18s var(--ease), color 0.18s var(--ease);
}
a:hover {
  text-decoration-color: currentColor;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--surface-2);
  color: var(--code-text);
  padding: 0.12em 0.38em;
  border-radius: 5px;
  word-break: break-word;
}
pre {
  margin: 0;
  overflow-x: auto;
}
pre code {
  background: none;
  padding: 0;
  font-size: 13px;
  line-height: 1.7;
  word-break: normal;
  white-space: pre;
  border-radius: 0;
}
h1,
h2,
h3 {
  color: var(--text);
  text-wrap: balance;
}
h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0;
}
h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 14px;
}
h3 {
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 36px 0 10px;
}
p {
  text-wrap: pretty;
}
.muted {
  color: var(--muted);
}
.skip {
  position: absolute;
  left: 12px;
  top: -200px;
  padding: 8px 12px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-sm);
  z-index: 30;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* grain: fixed, non-interactive, never on scrolling containers */
.grain::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------------- header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 18px;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}
.logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--text);
  position: relative;
  flex: none;
}
.logo-mark::after {
  content: '';
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}
.topnav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.topnav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.topnav a:hover,
.topnav a.active {
  color: var(--text);
  background: var(--surface-2);
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font: 550 15px/1 var(--sans);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.12s var(--ease), color 0.18s var(--ease);
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-quiet {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--surface);
}
.btn-quiet:hover {
  border-color: var(--muted);
}
.arrow {
  transition: transform 0.18s var(--ease);
}
.btn:hover .arrow {
  transform: translateX(3px);
}

/* ---------------------------------------------------------------- code blocks + highlighting */
.code {
  position: relative;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 14px 0;
}
.code-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -16px -18px 14px;
  padding: 10px 14px 10px 18px;
  border-bottom: 1px solid var(--line);
  font: 500 12.5px var(--mono);
  color: var(--muted);
}
.code-head .method {
  color: var(--accent-text);
  font-weight: 600;
}
.tok-k {
  color: var(--tok-key);
}
.tok-s {
  color: var(--tok-str);
}
.tok-n {
  color: var(--tok-num);
}
.tok-w {
  color: var(--tok-kw);
}
.tok-c {
  color: var(--tok-com);
  font-style: italic;
}
.copy {
  position: absolute;
  top: 9px;
  right: 9px;
  font: 500 12px var(--sans);
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.18s var(--ease), color 0.18s var(--ease);
}
.code:hover .copy,
.tab-panel:hover .copy,
.copy:focus-visible {
  opacity: 1;
}
.copy:hover {
  color: var(--text);
}
@media (hover: none) {
  .copy {
    opacity: 1;
  }
}
.tabs {
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--code-bg);
  overflow: hidden;
}
.tab-list {
  display: flex;
  gap: 2px;
  padding: 6px 6px 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 500 13px var(--sans);
  padding: 8px 12px 10px;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.tab:hover {
  color: var(--text);
}
.tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.tab-panel {
  display: none;
  position: relative;
  padding: 16px 18px;
}
.tab-panel.active {
  display: block;
}

/* ---------------------------------------------------------------- landing */
.hero {
  position: relative;
  padding: 56px 0 72px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto 35%;
  height: 620px;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
}
.hero-copy .lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 46ch;
  margin: 22px 0 32px;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--accent-text);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.hero-visual {
  position: relative;
  padding-bottom: 44px;
}
.hero-shot {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface-2);
}
.hero-code {
  position: absolute;
  left: -40px;
  bottom: 0;
  width: min(420px, 74%);
  margin: 0;
  box-shadow: var(--shadow);
  background: color-mix(in srgb, var(--code-bg) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero-code pre {
  overflow: hidden;
}
.hero-code pre code {
  font-size: 12px;
  line-height: 1.65;
}
.hero-code .code-head {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.hero-code pre + .code-head {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

/* showcase: 1 large + 4 small, exactly 5 cells */
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}
.shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.shot-lg {
  grid-row: span 2;
}
.shot-img {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
}
.shot-lg .shot-img {
  aspect-ratio: auto;
  flex: 1;
  min-height: 320px;
}
.shot-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shot figcaption {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shot figcaption code {
  background: none;
  padding: 0;
  color: var(--accent-text);
  font-size: 12px;
  margin-right: 4px;
}
@media (prefers-reduced-motion: no-preference) {
  .shot-img img {
    transition: transform 0.6s var(--ease);
  }
  .shot:hover .shot-img img {
    transform: scale(1.03);
  }
}
.showcase-section {
  padding-top: 40px;
}

.models {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 16px;
}
.model-tile {
  position: relative;
  border-radius: var(--radius);
  padding: 32px;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  min-height: 300px;
}
.model-tile.max {
  background: linear-gradient(160deg, var(--accent-soft), transparent 60%), var(--surface);
  border: 1px solid var(--line);
}
.model-tile .model-id,
.model-card .model-id {
  background: none;
  padding: 0;
}
.model-tile .model-id {
  font: 500 13px var(--mono);
  color: var(--accent-text);
}
.model-tile h3 {
  font-size: 26px;
  letter-spacing: -0.025em;
  margin: 10px 0 12px;
}
.model-tile p {
  color: var(--text-2);
  max-width: 52ch;
  margin: 0;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: auto;
  padding-top: 28px;
}
.facts div {
  display: grid;
  gap: 2px;
}
.facts dt {
  font-size: 12.5px;
  color: var(--muted);
}
.facts dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.section {
  padding: 96px 0 104px;
}
.section.near {
  padding-top: 24px;
}
.section.flush {
  padding-top: 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}
.section-head p {
  color: var(--text-2);
  margin: 0;
}
.caps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 64px;
}
.cap {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
}
.cap h3 {
  margin: 0;
  font-size: 15.5px;
}
.cap p {
  margin: 0;
  color: var(--muted);
}

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  padding: 56px 24px 60px;
}
.band h2 {
  margin: 0 0 8px;
}
.band p {
  margin: 0;
  color: var(--text-2);
  max-width: 60ch;
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 32px 24px 40px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--text);
}
.site-footer .spacer {
  flex: 1;
}

/* theme switch: 3-way segmented control */
.theme-switch {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.theme-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 500 12.5px var(--sans);
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.theme-switch button[aria-pressed='true'] {
  background: var(--surface-2);
  color: var(--text);
}

/* entry motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(12px);
    animation: reveal 0.7s var(--ease) forwards;
    animation-delay: calc(var(--i, 0) * 80ms + 60ms);
  }
  @keyframes reveal {
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* ---------------------------------------------------------------- docs */
.docs {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  max-width: 1400px;
  margin: 0 auto;
}
.sidebar {
  position: sticky;
  top: 64px;
  height: calc(100dvh - 64px);
  overflow-y: auto;
  padding: 32px 16px 32px 24px;
  border-right: 1px solid var(--line);
}
.side-group + .side-group {
  margin-top: 22px;
}
.side-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin: 0 10px 6px;
}
.sidebar nav a {
  display: block;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.sidebar nav a:hover {
  color: var(--text);
}
.sidebar nav a.active {
  color: var(--text);
  background: var(--surface-2);
  box-shadow: inset 2px 0 0 var(--accent);
}
.side-foot {
  margin: 28px 10px 0;
}
.content {
  padding: 48px 56px 96px;
  min-width: 0;
  max-width: 880px;
}
.content section {
  padding: 40px 0 44px;
  border-top: 1px solid var(--line);
}
.content section:first-child {
  border-top: 0;
  padding-top: 0;
}
.content p,
.content li {
  color: var(--text-2);
  max-width: 72ch;
}
.docs-title {
  font-size: clamp(34px, 4vw, 46px);
}
.docs-lead {
  font-size: 17.5px;
  color: var(--text-2);
  max-width: 60ch;
  margin: 18px 0 28px;
}
.eyebrow {
  font: 500 13px var(--mono);
  color: var(--accent-text);
  margin: 0 0 14px;
}
.kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.kv div {
  padding: 14px 18px;
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}
.kv div:nth-child(odd) {
  border-right: 1px solid var(--line);
}
.kv div:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.kv .kv-k {
  font-size: 12.5px;
  color: var(--muted);
}
.kv .kv-v {
  color: var(--text-2);
  font-size: 14px;
}
.kv code {
  background: none;
  padding: 0;
  font-size: 13.5px;
}
.model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 14px;
}
.model-card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface-2);
}
.model-card:nth-child(2) {
  background: linear-gradient(160deg, var(--accent-soft), transparent 70%), var(--surface);
  border: 1px solid var(--line);
}
.model-card .model-id {
  font: 500 13px var(--mono);
  color: var(--accent-text);
}
.model-card h3 {
  margin: 8px 0 6px;
}
.model-card p {
  font-size: 14.5px;
  margin: 0;
}

/* parameter reference */
.params {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.param {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}
.param:first-child {
  border-top: 0;
}
.param:target {
  background: var(--accent-soft);
}
.param-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}
.param-name {
  text-decoration: none;
}
.param-name code {
  font-size: 14px;
  font-weight: 600;
  background: none;
  padding: 0;
  color: var(--text);
}
.param-type {
  color: var(--muted);
  font: 400 12.5px var(--mono);
}
.req {
  font: 600 11px var(--mono);
  color: var(--accent-text);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding: 1px 6px;
  border-radius: 4px;
}
.param p {
  margin: 6px 0 0;
  font-size: 14.5px;
}
.param-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.param-meta span {
  font-size: 12.5px;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 6px;
  padding: 2px 8px;
}
.param-meta code {
  background: none;
  padding: 0;
  font-size: 12px;
}

/* tables */
.table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  background: var(--surface);
  margin: 14px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 11px 16px;
  vertical-align: top;
  border-top: 1px solid var(--line);
}
thead th {
  border-top: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
}
td {
  color: var(--text-2);
}
td:first-child {
  white-space: nowrap;
}
.content ul {
  padding-left: 20px;
}
.content li {
  margin: 6px 0;
}
.content li::marker {
  color: var(--muted);
}
.note {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 16px;
  color: var(--text-2);
}

.not-found {
  min-height: 70dvh;
  display: grid;
  align-content: center;
  gap: 18px;
  max-width: 560px;
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .content {
    padding: 40px 32px 80px;
  }
}
@media (max-width: 860px) {
  .docs {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px 24px;
  }
  .side-group {
    display: none;
  }
  .side-group.first {
    display: block;
  }
  .side-group.first nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
  }
  .side-foot {
    display: none;
  }
  .showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shot-lg {
    grid-column: span 2;
    grid-row: auto;
  }
  .shot-lg .shot-img {
    aspect-ratio: 4 / 3;
    flex: none;
    min-height: 0;
  }
  .hero-visual {
    padding-bottom: 0;
  }
  .hero-code {
    position: relative;
    left: auto;
    width: auto;
    margin: -56px 12px 0;
  }
  .models,
  .caps,
  .model-grid,
  .kv {
    grid-template-columns: 1fr;
  }
  .kv div:nth-child(odd) {
    border-right: 0;
  }
  .kv div:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }
  .cap {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .band-inner {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .container,
  .topbar-inner {
    padding: 0 16px;
  }
  .topbar-inner {
    gap: 12px;
  }
  .topnav a {
    padding: 7px 8px;
  }
  .topnav .hide-sm {
    display: none;
  }
  .hero {
    padding: 44px 0 64px;
  }
  .section {
    padding: 64px 0 72px;
  }
  .model-tile {
    padding: 24px;
    min-height: 0;
  }
  .content {
    padding: 28px 16px 64px;
  }
  .band-inner {
    padding: 44px 16px 48px;
  }
  .site-footer {
    padding: 28px 16px 36px;
  }
}
