/* ==========================================================================
   BananaMind — bananamind.web.app
   Deep navy / light gray / banana yellow / electric blue
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */
:root {
  /* Brand */
  --navy-900: #060e23;
  --navy-800: #0a1633;
  --navy-700: #122048;
  --navy-600: #1c2f61;
  --navy-500: #2b4179;

  --blue-600: #0b5fd6;
  --blue-500: #1971e6;
  --blue-400: #3d8bf5;
  --cyan-400: #22b8e6;

  --yellow-500: #f5c518;
  --yellow-400: #ffd233;
  --yellow-100: #fdf3d0;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f7f9fc;
  --gray-100: #eef2f8;
  --gray-200: #e0e6f0;
  --gray-300: #cbd4e2;
  --gray-500: #64748b;
  --gray-600: #4d5a70;
  --gray-700: #37435a;

  /* Semantic */
  --bg: var(--white);
  --bg-alt: var(--gray-50);
  --surface: var(--white);
  --border: var(--gray-200);
  --border-strong: var(--gray-300);
  --text: var(--navy-800);
  --text-muted: var(--gray-600);
  --text-faint: var(--gray-500);
  --accent: var(--blue-600);
  --accent-hover: var(--navy-700);
  --focus: var(--blue-500);

  /* Type */
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;

  /* Geometry */
  --radius: 8px;
  --radius-sm: 6px;
  --radius-xs: 4px;
  --shell: 1200px;
  --header-h: 60px;

  /* Elevation — restrained */
  --shadow-sm: 0 1px 2px rgba(6, 14, 35, .06);
  --shadow-md: 0 2px 10px rgba(6, 14, 35, .07);

  /* Motion */
  --t-fast: 120ms ease;
  --t-base: 180ms ease;
}

/* --- Reset ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "kern", "liga", "tnum" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--accent-hover); }

code {
  font-family: var(--font-mono);
  font-size: .875em;
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: .1em .38em;
  white-space: nowrap;
}

strong { font-weight: 650; }

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* --- Focus & skip link ---------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  background: var(--navy-800);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--t-base);
}
.skip-link:focus {
  top: 12px;
  color: var(--white);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.anchor {
  display: block;
  position: relative;
  top: calc(var(--header-h) * -1);
}

/* --- Layout --------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: 72px;
  border-top: 1px solid var(--border);
}
.section-tight { padding-block: 48px; }
.section-alt { background: var(--bg-alt); }

.kicker {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.65rem, 1.2rem + 1.6vw, 2.2rem);
  margin-bottom: 14px;
}

.section-lede {
  max-width: 68ch;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.sub-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fineprint {
  font-size: .8125rem;
  line-height: 1.55;
  color: var(--text-faint);
  max-width: 72ch;
}
.fineprint code { font-size: .8em; }

/* --- Icons ---------------------------------------------------------------- */
.icon {
  width: 1em;
  height: 1em;
  flex: none;
  stroke-width: 2;
  vertical-align: -0.115em;
}

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.site-header.is-stuck {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  flex: none;
}
.brand:hover { color: var(--text); }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font-size: 1.0625rem; }

.site-nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-list a {
  display: block;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--t-fast), background-color var(--t-fast);
}
.nav-list a:hover {
  color: var(--text);
  background: var(--gray-100);
}
.nav-list a.is-active {
  color: var(--navy-800);
  background: var(--gray-100);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  font-size: 20px;
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: background-color var(--t-fast), border-color var(--t-fast);
}
.nav-toggle:hover { background: var(--gray-100); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding-inline: 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.btn-sm {
  height: 36px;
  padding-inline: 13px;
  font-size: .875rem;
}
.btn .icon { font-size: 1.05em; }

.btn-primary {
  background: var(--navy-800);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--navy-700);
  color: var(--white);
}

.btn-outline {
  background: var(--white);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover {
  background: var(--gray-100);
  border-color: var(--gray-500);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--white);
  border-color: var(--navy-600);
  color: var(--text);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: 56px 44px;
  background:
    radial-gradient(1100px 520px at 82% -8%, rgba(25, 113, 230, .14), transparent 64%),
    radial-gradient(700px 420px at 4% 8%, rgba(245, 197, 24, .12), transparent 62%),
    linear-gradient(180deg, var(--gray-50) 0%, var(--white) 78%);
}
.hero::after {
  /* hairline separator so the next section reads as a distinct band */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  column-gap: 48px;
  row-gap: 32px;
}

.hero-copy { min-width: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--navy-600);
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 13px 5px 11px;
  margin-bottom: 20px;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow-500);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, .22);
  flex: none;
}

.hero h1 {
  font-size: clamp(2.1rem, 1.25rem + 3.3vw, 3.4rem);
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}

.hero-lede {
  max-width: 54ch;
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 26px;
}

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

.hero-visual {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.hero-visual img {
  width: 100%;
  aspect-ratio: 1400 / 788;
  object-fit: cover;
}

.hero-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 8px 0 0;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-stat {
  background: rgba(255, 255, 255, .82);
  padding: 14px 18px;
  min-height: 74px;
}
.hero-stat dt {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 3px;
}
.hero-stat dd {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
}
.hero-stat .sep { color: var(--border-strong); padding-inline: 2px; }

/* --- Chip grid (architecture) --------------------------------------------- */
.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 24px;
}
.chip {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-weight: 550;
  color: var(--text);
  transition: border-color var(--t-fast);
}
.chip:hover { border-color: var(--border-strong); }
.chip .icon {
  font-size: 1.05rem;
  color: var(--accent);
}

/* --- Model explorer ------------------------------------------------------- */
.explorer { margin-top: 26px; }

.explorer-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding-inline: 14px;
  border: 0;
  border-radius: var(--radius-xs);
  background: transparent;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background-color var(--t-fast), color var(--t-fast);
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] {
  background: var(--white);
  color: var(--navy-800);
  box-shadow: var(--shadow-sm);
}
.tab-count {
  min-width: 22px;
  padding-inline: 5px;
  border-radius: 999px;
  background: var(--gray-200);
  font-size: .6875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 17px;
  text-align: center;
  color: var(--text-muted);
}
.tab[aria-selected="true"] .tab-count {
  background: var(--navy-800);
  color: var(--white);
}

.explorer-status {
  font-size: .8125rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.explorer-note {
  margin-top: 12px;
  font-size: .8125rem;
  color: var(--text-faint);
  max-width: 78ch;
}

/* --- Tables --------------------------------------------------------------- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}
.table-scroll + .table-scroll,
.figure + .table-scroll,
.figure-pair + .table-scroll { margin-top: 32px; }

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: .9375rem;
}

caption {
  caption-side: top;
  text-align: left;
  padding: 14px 18px 12px;
  font-size: .875rem;
  font-weight: 650;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

thead th {
  background: var(--gray-50);
  text-align: left;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 11px 18px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody th,
tbody td {
  padding: 0 18px;
  height: 54px;
  border-bottom: 1px solid var(--gray-100);
  text-align: left;
  font-weight: 400;
  vertical-align: middle;
}
tbody tr:last-child th,
tbody tr:last-child td { border-bottom: 0; }

tbody th[scope="row"] {
  font-weight: 600;
  color: var(--text);
}

.col-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
th.col-num { text-align: right; }

.data-table tbody tr:hover { background: var(--gray-50); }

/* Model table specifics */
.model-table { min-width: 720px; }
.model-table .col-model { width: 34%; }
.model-table .col-variant,
.model-table .col-status { white-space: nowrap; }
.model-table .col-link { width: 1%; }

.model-table tbody tr { transition: background-color var(--t-fast); }
.model-table tbody tr:hover { background: var(--gray-50); }
.model-table tbody tr[hidden] { display: none; }

.model-name {
  display: block;
  width: fit-content;
  font-weight: 650;
  color: var(--text);
  letter-spacing: -0.01em;
  text-decoration-color: var(--border-strong);
}
a.model-name:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: currentColor;
}
.model-sub {
  display: block;
  font-size: .8125rem;
  font-weight: 400;
  color: var(--text-faint);
  line-height: 1.35;
}

.model-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding-inline: 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.model-link:hover {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--white);
}
.model-link.is-disabled {
  border-style: dashed;
  border-color: var(--border);
  color: var(--text-faint);
  font-weight: 500;
  cursor: default;
}

/* --- Badges & tags -------------------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding-inline: 9px;
  border-radius: var(--radius-xs);
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .01em;
  white-space: nowrap;
  border: 1px solid transparent;
}
.tag-base {
  background: var(--gray-100);
  border-color: var(--border);
  color: var(--text-muted);
}
.tag-chat {
  background: rgba(25, 113, 230, .09);
  border-color: rgba(25, 113, 230, .28);
  color: var(--blue-600);
}
.tag-released {
  background: var(--white);
  border-color: var(--border-strong);
  color: var(--text-muted);
}
.tag-preview {
  background: var(--yellow-100);
  border-color: rgba(207, 160, 8, .38);
  color: #7a5c00;
}
.tag-soon {
  background: var(--gray-50);
  border-color: var(--border-strong);
  border-style: dashed;
  color: var(--text-faint);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding-inline: 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  background: var(--white);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-muted);
}
.badge .icon { font-size: .95rem; }
.badge-warn {
  background: var(--yellow-100);
  border-color: rgba(207, 160, 8, .4);
  color: #7a5c00;
}

/* --- Pro section ---------------------------------------------------------- */
.pro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  margin-top: 30px;
  align-items: start;
}

.pro-metrics,
.pro-facts { min-width: 0; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin: 0 0 14px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.metric {
  background: var(--white);
  padding: 14px 16px;
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.metric dt {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.metric-value {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--navy-800);
}
.metric-value .unit {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-faint);
  margin-left: 3px;
}
.metric-accent {
  background: linear-gradient(180deg, #fffdf3, var(--white));
  box-shadow: inset 3px 0 0 var(--yellow-500);
}

.fact-list {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 16px;
  min-height: 42px;
  border-bottom: 1px solid var(--gray-100);
}
.fact:last-child { border-bottom: 0; }
.fact dt {
  font-size: .875rem;
  color: var(--text-muted);
  flex: none;
}
.fact dd {
  margin: 0;
  font-size: .875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--text);
}
.fact-list-wide {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-top: 26px;
}
.fact-list-wide .fact { border-right: 1px solid var(--gray-100); }

/* --- Callout -------------------------------------------------------------- */
.callout {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.callout > div > p { color: var(--text-muted); max-width: 78ch; }
.callout > div > p + p { margin-top: 10px; }
.callout-icon {
  font-size: 1.25rem;
  color: var(--accent);
  flex: none;
  margin-top: 2px;
}

/* --- Figures -------------------------------------------------------------- */
.figure {
  margin: 32px 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.figure img {
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.figure figcaption {
  padding: 11px 16px;
  font-size: .8125rem;
  color: var(--text-faint);
  background: var(--gray-50);
}

.figure-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
  align-items: start;
}
.figure-pair .figure { margin-top: 32px; }

/* --- Code block ----------------------------------------------------------- */
.code-block {
  margin-top: 26px;
  border: 1px solid var(--navy-700);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-900);
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 46px;
  padding-inline: 14px 10px;
  background: var(--navy-800);
  border-bottom: 1px solid var(--navy-700);
}
.code-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  font-weight: 650;
  letter-spacing: .02em;
  color: #a9bde0;
}
.code-lang .icon { color: var(--yellow-500); font-size: 1rem; }

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 92px;
  height: 30px;
  padding-inline: 11px;
  background: transparent;
  border: 1px solid var(--navy-600);
  border-radius: var(--radius-xs);
  color: #cfdcf2;
  font-size: .8125rem;
  font-weight: 600;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.copy-btn:hover {
  background: var(--navy-700);
  color: var(--white);
}
.copy-btn:focus-visible { outline-color: var(--blue-400); }
.copy-btn.is-copied {
  border-color: var(--yellow-500);
  color: var(--yellow-400);
}
.copy-btn .icon { font-size: .95rem; }

.code-body {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: .8125rem;
  line-height: 1.75;
  color: #e2e9f7;
  tab-size: 4;
}
.code-body code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  color: inherit;
  white-space: pre;
}

/* --- Split columns -------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  margin-top: 28px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.split-item {
  background: var(--white);
  padding: 22px;
}
.section-alt .split-item { background: var(--white); }
.split-item p {
  color: var(--text-muted);
  font-size: .9375rem;
  max-width: 60ch;
}
.split-item p + .btn-row { margin-top: 14px; }
.split-item .fineprint { margin-top: 10px; }
.sub-icon {
  font-size: 1.0625rem;
  color: var(--accent);
}

/* --- Model detail pages --------------------------------------------------- */
.breadcrumb {
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  font-size: .8125rem;
  color: var(--text-faint);
}
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before {
  content: "/";
  color: var(--border-strong);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.model-hero {
  padding-block: 44px 40px;
  background:
    radial-gradient(900px 420px at 88% -20%, rgba(25, 113, 230, .12), transparent 62%),
    linear-gradient(180deg, var(--gray-50), var(--white) 82%);
  border-bottom: 1px solid var(--border);
}
.model-hero h1 {
  font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.6rem);
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  margin-bottom: 10px;
}
.model-tagline {
  font-size: 1.125rem;
  font-weight: 550;
  color: var(--navy-600);
  max-width: 62ch;
  margin-bottom: 12px;
}
.model-hero .section-lede { max-width: 74ch; }
.model-stats { margin-top: 26px; }
.model-stats .stat-unit {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-faint);
}
.model-hero .btn-row { margin-top: 20px; }

.model-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 24px;
}
.model-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  height: 100%;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.model-nav:hover {
  border-color: var(--border-strong);
  background: var(--gray-50);
  color: var(--text);
}
.model-nav-name {
  font-weight: 650;
  font-size: .9375rem;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.model-nav-meta {
  font-size: .8125rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}

/* --- About page ----------------------------------------------------------- */
.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
}
.about-hero-copy { min-width: 0; }
.about-hero-mark {
  width: 148px;
  height: 148px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: 10px;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 26px;
}
.person {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.person:hover {
  border-color: var(--border-strong);
  background: var(--gray-50);
  color: var(--text);
}
.person img {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  object-fit: cover;
  background: var(--white);
}
.person-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.person-name {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.person-role {
  font-size: .875rem;
  color: var(--text-muted);
}
.person-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: .8125rem;
  color: var(--text-faint);
  overflow-wrap: anywhere;
}
.person:hover .person-meta { color: var(--accent); }

/* --- Partners ------------------------------------------------------------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  padding: 24px 18px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-align: center;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.partner:hover {
  border-color: var(--border-strong);
  background: var(--gray-50);
  color: var(--text);
}
.partner img {
  width: 76px;
  height: 76px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: cover;
  margin-bottom: 12px;
}
.partner-name {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.partner-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .8125rem;
  color: var(--text-faint);
}
.partner:hover .partner-meta { color: var(--accent); }

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: #b9c7e2;
  padding-block: 48px 26px;
}
.site-footer .brand { color: var(--white); }
.site-footer .brand:hover { color: var(--white); }

.footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.5fr);
  gap: 36px;
  padding-bottom: 30px;
}

.footer-note {
  margin-top: 14px;
  font-size: .875rem;
  line-height: 1.6;
  max-width: 38ch;
  color: #94a6c6;
}
.footer-note strong { color: #dbe5f5; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
}
.footer-heading {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7d90b3;
  margin-bottom: 12px;
}
.footer-col li + li { margin-top: 7px; }
.footer-col a {
  font-size: .9375rem;
  color: #cfdaee;
}
.footer-col a:hover {
  color: var(--yellow-400);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer a:focus-visible { outline-color: var(--yellow-400); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .8125rem;
  color: #7d90b3;
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav-list a { padding-inline: 9px; font-size: .9rem; }
  .pro-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 56px; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 20px 16px;
    max-width: var(--shell);
    margin-inline: auto;
  }
  .nav-list a {
    padding: 11px 12px;
    font-size: .9375rem;
  }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding-block: 40px 40px; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; }
  .hero-stats { order: 3; }
  .hero-lede { max-width: none; }
}

@media (max-width: 720px) {
  .section { padding-block: 52px; }
  .section-tight { padding-block: 40px; }
  .shell { padding-inline: 16px; }

  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat { min-height: 0; padding: 12px 16px; }

  .explorer-controls { flex-direction: column; align-items: stretch; }
  .tabs { width: 100%; }
  .tab { flex: 1; justify-content: center; padding-inline: 8px; }

  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { min-height: 78px; padding: 12px 14px; }
  .metric-value { font-size: 1.3125rem; }

  .callout { flex-direction: column; gap: 12px; padding: 18px; }
  .figure-pair { grid-template-columns: 1fr; }
  .fact-list-wide { grid-template-columns: 1fr; }
  .fact-list-wide .fact { border-right: 0; }

  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-nav { gap: 24px; }
}

@media (max-width: 400px) {
  .metric-grid { grid-template-columns: 1fr; }
  .btn { padding-inline: 14px; }
  .fact { flex-direction: column; gap: 2px; align-items: flex-start; }
  .fact dd { text-align: left; }
}

@media (min-width: 1400px) {
  :root { --shell: 1280px; }
}

/* --- Motion preferences --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Print ---------------------------------------------------------------- */
@media print {
  .site-header,
  .skip-link,
  .hero-actions,
  .copy-btn { display: none !important; }
  body { color: #000; }
  .section { border-top: 0; padding-block: 20px; }
}
