/* A continuous research environment, from model development to sovereign compute. */
.api-page {
  --lab-bg: #0b1b46;
  --lab-surface: #112754;
  --lab-text: #edf1fa;
  --lab-muted: #a9b9d3;
  --lab-line: #304870;
  --lab-accent: #bdd7ff;
  --lab-secondary: #b8b8f5;
  --ink-3: #526582;
  background: var(--lab-bg);
  color: var(--lab-text);
}
html:has(.api-page) { background: #0b1b46; }
.api-page ::selection { color: #0b1b46; background: #bdd7ff; }
.api-page .api { max-width: none; padding: 0; }
.api-page .nav.scrolled { background: rgba(11, 27, 70, 0.94); color: var(--lab-text); border-color: var(--lab-line); }
.api-page .nav-cta { border-color: #6b81a6; }
.api-page .nav a:hover { color: var(--lab-accent); }
.api-page [id] { scroll-margin-top: 110px; }
.api-page :is(a, button, summary, [tabindex]):focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.lab-skip-link { position: fixed; z-index: 100; top: 12px; left: 20px; padding: 12px 20px; background: var(--lab-accent); color: #0b1b46; transform: translateY(-160%); }
.lab-skip-link:focus { transform: none; }
.frontier-hero, .customer-band, .chapter-nav, .story-section, .sovereign-inner, .closing-section { max-width: 1440px; margin-inline: auto; padding-inline: clamp(24px, 6vw, 88px); }
.eyebrow, .technical-note, .system-topline, .gpu-system figcaption, .hero-baseline, .chapter-nav, .bench-hint, .primitive-title, .primitive-footer, .bench-foundation, .resource-index, .resource summary small {
  font-family: var(--type-mono);
  font-size: 10px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow { color: var(--lab-accent); }
.signal-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--lab-accent); margin-right: 9px; vertical-align: 2px; box-shadow: 0 0 14px #bdd7ff55; }
.frontier-hero { position: relative; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; padding-top: 120px; padding-bottom: 0; column-gap: 16px; }
.frontier-hero::before { content: ""; position: absolute; inset: 85px 0 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse at 73% 45%, #365bcc35, transparent 55%); }
.frontier-hero-copy { position: relative; z-index: 1; }
.frontier-hero .eyebrow { margin-bottom: 30px; }
.frontier-hero h1 { font-size: clamp(60px, 5.8vw, 84px); letter-spacing: -0.055em; line-height: 0.99; font-weight: 400; }
.frontier-hero h1 em, .section-heading h2 em, .closing-section h2 em { font-family: var(--type-serif); font-weight: 400; letter-spacing: -0.025em; color: var(--lab-accent); }
.hero-description { font-size: 19px; line-height: 1.65; color: #b8c7df; max-width: 42ch; margin-top: 30px; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 32px; }
.api-page .page-cta { display: inline-flex; gap: 28px; align-items: center; padding: 16px 22px; border: 1px solid var(--lab-accent); border-radius: 2px; background: var(--lab-accent); color: #0b1b46; box-shadow: none; font-size: 13px; font-weight: 500; transition: background 180ms, border-color 180ms; }
.api-page .page-cta:hover { background: #dce9ff; border-color: #dce9ff; transform: none; }
.text-link { display: inline-flex; align-items: center; gap: 24px; padding: 10px 0; font-size: 14px; border-bottom: 1px solid #637da7; }
.text-link:hover { color: var(--lab-accent); border-color: currentColor; }
/* Two workloads share one GPU foundation, in River Cloud or on premises. */
.gpu-system { position: relative; min-width: 0; width: 100%; margin: 0; padding-left: 12px; }
.system-topline { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; color: var(--lab-muted); font-size: 9px; letter-spacing: 0.06em; }
.api-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid #3e577e; border-bottom: 0; background: #102451; }
.mode-tabs[hidden], .api-mode[hidden], .mobile-scroll-hint { display: none; }
.api-mode { min-width: 0; padding: 16px 9px 0; }
.api-mode + .api-mode { border-left: 1px solid #3e577e; }
.api-mode h3 { color: #dedcff; font-size: clamp(17px, 1.7vw, 24px); font-weight: 400; line-height: 1.2; letter-spacing: -0.025em; margin-inline: 15px; }
.api-mode > p { color: #a9b9d3; font-size: 11px; line-height: 1.6; margin: 8px 15px 8px; }
.api-mode--production h3 { color: #c9edff; }
.mode-diagram { display: block; width: 100%; height: auto; }
.mode-diagram text { font-family: var(--type-sans); text-anchor: middle; }
.worker-node { fill: #2b315b; stroke: #9292d2; stroke-width: 0.85; }
.worker-label { fill: #edf1fa; font-size: 13px; }
.worker-slots { fill: #9894de; stroke: #cac8ff; stroke-width: 0.45; }
.learning-track { stroke: #8989bc; stroke-width: 1.2; }
.flow-label { fill: #c7c9e6; font-size: 11px; }
.compute-uplink { stroke: #8585bb; stroke-width: 1; }
.api-mode--production .worker-node { fill: #193b59; stroke: #83b9d4; }
.api-mode--production .worker-slots { fill: #77b4d3; stroke: #b9e7ff; }
.api-mode--production .compute-uplink { stroke: #75a8c3; }
.audience { stroke: #b9e7ff; stroke-width: 1; }
.serving-track { stroke: #75a8c3; stroke-width: 0.9; }
.gpu-system .flow-packet { stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 4 96; }
.flow-packet--learning { stroke: #b5b4ff; }
.flow-packet--serving { stroke: #96dbff; stroke-dasharray: 3 30; }

.compute-rail { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 22px; color: #edf1fa; border: 1px solid #6387b1; background: linear-gradient(100deg, #183667, #17305a); box-shadow: 0 10px 35px #0002; }
.compute-rail strong { font-size: 20px; font-weight: 400; letter-spacing: -0.035em; }
.compute-rail > span { font: 9px var(--type-mono); color: #b8c7df; }
.compute-foundation { position: relative; padding-bottom: 8px; background: radial-gradient(ellipse at 50% 45%, #3b64bc33, transparent 68%); }
.cluster-stage { position: relative; width: 100%; height: clamp(180px, 15vw, 220px); }
.cluster-canvas, .cluster-feeds { position: absolute; inset: 0; width: 100%; height: 100%; }
.cluster-canvas { display: block; opacity: 0; }
.cluster-feeds { pointer-events: none; overflow: visible; display: none; }
.cluster-stage[data-renderer="webgl"] .cluster-canvas { opacity: 1; }
.cluster-stage[data-renderer="webgl"] .cluster-feeds { display: block; }
.cluster-stage[data-renderer="webgl"] .cluster-fallback { display: none; }
.cluster-feed { fill: none; stroke-width: 1; }
.cluster-terminal { fill: #dbe8ff; stroke: #dbe8ff55; stroke-width: 5; }
.cluster-feed--training { stroke: #b5b4ff77; }
.cluster-feed--serving { stroke: #96dbff77; }
.cluster-packet--training { fill: #b5b4ff; filter: drop-shadow(0 0 4px #a8a3ff); }
.cluster-packet--serving { fill: #96dbff; filter: drop-shadow(0 0 4px #80d6ff); }
.cluster-legend { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px; font: 8px/1.7 var(--type-mono); color: #b8c7df; }
.cluster-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.cluster-legend i { width: 5px; height: 5px; border-radius: 1px; }
.legend-training { background: #a58aff; box-shadow: 0 0 9px #a58aff77; }
.legend-serving { background: #69aeff; box-shadow: 0 0 9px #69aeff77; }
.compute-foundation-label { font: 8px/1.7 var(--type-mono); letter-spacing: 0.08em; text-transform: uppercase; color: #98acca; }
.cluster-fallback { position: absolute; inset: 12% 4% 6%; display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; padding: 10px; border: 1px solid #4b6088; }
.cluster-fallback i { position: relative; background: #8e82c5; border: 1px solid #a1afd0; border-radius: 3px; box-shadow: 2px 3px 0 #081633; }
.cluster-fallback i::after { content: ""; position: absolute; inset: 8% 12%; background: repeating-linear-gradient(#a79ccc 0 2px, #6854b9 2px 6px); }
.cluster-fallback i:nth-child(8n + 5), .cluster-fallback i:nth-child(8n + 6), .cluster-fallback i:nth-child(8n + 7), .cluster-fallback i:nth-child(8n + 8) { background: #719ace; }
.cluster-fallback i:nth-child(8n + 5)::after, .cluster-fallback i:nth-child(8n + 6)::after, .cluster-fallback i:nth-child(8n + 7)::after, .cluster-fallback i:nth-child(8n + 8)::after { background: repeating-linear-gradient(#a2bddb 0 2px, #337fc4 2px 6px); }
.compute-location { padding: 14px 18px; margin: 12px 0 0; border: 1px solid #49678e; background: #142952; color: #dbe5f5; font-size: 15px; line-height: 1.7; text-wrap: pretty; }
.compute-location a { color: #bdd7ff; font-weight: 500; text-decoration: underline; text-decoration-color: #6c88b3; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.compute-location a > span { display: inline-block; margin-left: 6px; text-decoration: none; }
.compute-location a:hover { color: #fff; text-decoration-color: #bdd7ff; }
.gpu-system figcaption { font-size: 8px; letter-spacing: 0; text-transform: none; color: #a9b9d3; margin-top: 14px; }
.hero-baseline { position: relative; grid-column: 1 / -1; display: flex; justify-content: flex-start; gap: 40px; border-top: 1px solid var(--lab-line); padding: 18px 0; margin-top: 24px; color: var(--lab-muted); font-size: 9px; }
.hero-baseline a { color: var(--lab-text); }
.hero-baseline a span { padding-left: 24px; color: var(--lab-accent); }
.customer-band { display: flex; align-items: center; gap: 44px; padding-top: 36px; padding-bottom: 40px; }
.customer-band > p { flex: 0 0 128px; font-size: 14px; line-height: 1.55; color: var(--lab-muted); }
.customer-band strong { font-weight: 400; color: var(--lab-text); }
.customer-marks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; gap: 28px; flex: 1; min-width: 0; }
.customer-marks a { display: flex; align-items: center; justify-content: center; min-height: 44px; }
.customer-perplexity { gap: 7px; font-size: 24px; letter-spacing: -1px; }
.customer-marks img { max-width: 100%; height: auto; filter: brightness(0) invert(95%) sepia(8%) saturate(375%) hue-rotate(180deg); }
.customer-ivo { width: 96px; }
.customer-abacus { width: 128px; }
.customer-mixedbread { gap: 6px; font-size: 22px; font-weight: 500; letter-spacing: -0.6px; white-space: nowrap; }
.customer-mixedbread img { width: 30px; }
.customer-afori { width: 111px; }
.customer-perplexity img { width: 26px; }
.chapter-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.chapter-nav a { border-top: 1px solid var(--lab-line); padding: 20px 0; display: flex; align-items: center; gap: 13px; font-size: 9px; color: var(--lab-muted); }
.chapter-nav a > span:first-child { color: var(--lab-accent); }
.chapter-nav a > span:last-child { margin-left: auto; }
.chapter-nav a:hover { color: var(--lab-text); border-color: var(--lab-accent); }
.story-section { padding-top: 110px; padding-bottom: 110px; position: relative; }
.section-heading { margin-bottom: 52px; }
.chapter-number { display: inline-flex; align-items: center; gap: 16px; margin-right: 16px; color: var(--lab-muted); }
.chapter-number::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: 0.5; }
.section-heading h2 { font-size: clamp(42px, 4.5vw, 64px); letter-spacing: -0.045em; font-weight: 400; line-height: 1.07; margin-top: 25px; }
.section-intro { font-size: 19px; line-height: 1.65; max-width: 53ch; color: var(--lab-muted); margin-top: 25px; text-wrap: pretty; }
.develop-section .section-heading--split { grid-template-columns: 1.25fr 1fr; gap: 50px; }
.develop-section .section-intro { max-width: 43ch; }
.capabilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.capability { display: flex; flex-direction: column; padding: 32px; border: 1px solid #38557c; background: linear-gradient(145deg, #1a365988, #102451); }
.capability--inference { background: linear-gradient(145deg, #23365b88, #102451); border-color: #3a527e; }
.capability-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.capability-topline svg { width: 44px; height: 38px; stroke: #b5b4ff; stroke-width: 1; }
.capability--inference .capability-topline svg { stroke: #96dbff; }
.capability-topline .eyebrow { font-size: 9px; }
.capability h3 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 400; letter-spacing: -0.04em; line-height: 1.12; margin: 25px 0 17px; }
.capability .capability-lead { font-size: 21px; line-height: 1.4; color: #dbe5f5; margin-bottom: 16px; }
.capability > p { font-size: 16px; line-height: 1.7; color: #a9b9d3; text-wrap: pretty; }
.capability dl { margin: 27px 0 30px; }
.capability dl > div { display: grid; grid-template-columns: 0.85fr 1.4fr; gap: 23px; border-top: 1px solid #304870; padding-block: 20px; }
.capability dt { font-size: 14px; line-height: 1.5; color: #dbe5f5; }
.capability dd { font-size: 13px; line-height: 1.7; color: #a9b9d3; margin: 0; }
.capability-footer { display: flex; gap: 10px 18px; flex-wrap: wrap; margin-top: auto; font: 9px/1.7 var(--type-mono); color: #c1bfef; }
.capability--inference .capability-footer { color: #b0d9ee; }
.capability-footer > span + span::before { content: "·"; margin-right: 18px; opacity: 0.7; }
.model-foundation { margin-top: 34px; }
.model-foundation .eyebrow { display: block; color: var(--lab-muted); font-size: 9px; margin-bottom: 16px; }
.model-foundation-list { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; }
.model-foundation p { font-size: 22px; letter-spacing: -0.03em; }
.model-foundation p span { color: #617ca3; padding: 0 6px; }
.model-foundation .text-link { font-size: 12px; }
/* Model engineering connects the capabilities above to the deployment choices below. */
.engineering-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 52px; margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--lab-line); }
.engineering-notes .eyebrow { font-size: 9px; }
.engineering-notes h3 { font-size: clamp(25px, 2.5vw, 34px); line-height: 1.15; letter-spacing: -0.035em; font-weight: 400; margin: 16px 0 20px; text-wrap: balance; }
.engineering-notes p:not(.eyebrow) { color: var(--lab-muted); font-size: 16px; line-height: 1.75; text-wrap: pretty; }
.engineering-notes p.engineering-detail { margin-top: 22px; font: 10px/1.9 var(--type-mono); color: #bdd7ff; }
.system-section { padding-top: 90px; background: linear-gradient(180deg, #17346988, #0b1b4600); border-top: 1px solid var(--lab-line); }
.section-heading--split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 70px; align-items: end; }
.section-heading--split .section-intro { font-size: 17px; margin-top: 0; max-width: 40ch; }
.research-bench { border: 1px solid #425e87; background: #0d204b; position: relative; }
.research-bench::before, .research-bench::after { content: "+"; position: absolute; color: var(--lab-accent); font: 14px var(--type-mono); top: -10px; background: var(--lab-bg); width: 18px; text-align: center; }
.research-bench::before { left: -10px; }
.research-bench::after { right: -10px; }
.bench-topline { display: flex; justify-content: space-between; gap: 20px; padding: 23px 28px; }
.bench-topline .eyebrow { font-size: 9px; }
.bench-hint { font-size: 9px; text-transform: none; letter-spacing: 0; color: var(--lab-muted); }
.bench-hint span { margin-left: 12px; }
.loop-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--lab-line); }
.loop-tabs button { position: relative; display: flex; align-items: center; gap: 16px; padding: 26px 24px; border: 0; border-right: 1px solid var(--lab-line); font: 24px var(--type-sans); text-align: left; background: transparent; color: var(--lab-muted); cursor: pointer; transition: color 150ms, background 150ms; }
.loop-tabs button:last-child { border-right: 0; }
.loop-tabs button > span:first-child { font: 10px var(--type-mono); color: #b8c7df; }
.loop-tabs button[aria-selected="true"] { color: var(--lab-accent); background: #1b3965; box-shadow: inset 0 -2px var(--lab-accent); }
.loop-tabs button:hover { color: var(--lab-accent); background: #18315a; }
.loop-arrow { margin-left: auto; font-size: 17px; color: #a9b9d3; }
.loop-panel { display: grid; grid-template-columns: 0.85fr 1.3fr; gap: 36px; padding: 38px 32px; min-height: 425px; }
.loop-panel[hidden] { display: none; }
.loop-explanation .eyebrow { font-size: 9px; color: var(--lab-secondary); }
.loop-explanation h3 { font-size: 32px; font-weight: 400; letter-spacing: -0.025em; line-height: 1.12; margin: 17px 0; }
.loop-explanation > p { font-size: 16px; line-height: 1.65; color: #c5d1e5; }
.loop-explanation .loop-technical { font-size: 13px; line-height: 1.65; color: var(--lab-muted); margin-top: 18px; }
.primitive-window { min-width: 0; background: #081633; border: 1px solid var(--lab-line); align-self: stretch; display: flex; flex-direction: column; }
.primitive-title { display: flex; justify-content: space-between; gap: 12px; font-size: 9px; text-transform: none; letter-spacing: 0; color: var(--lab-muted); padding: 14px 20px; border-bottom: 1px solid var(--lab-line); }
.primitive-title span:last-child { color: var(--lab-secondary); }
.primitive-window pre { padding: 28px 22px; overflow-x: auto; margin-block: auto; }
.primitive-window code { font-family: var(--type-mono); font-size: 12px; line-height: 1.9; color: #edf1fa; }
.syntax-comment { color: #94a9c5; }
.syntax-call { color: #bdd7ff; }
.syntax-value { color: #c5b6f4; }
.syntax-keyword { color: #96c9ff; }
.primitive-footer { border-top: 1px solid var(--lab-line); padding: 14px 20px; color: #b8c7df; font-size: 8px; letter-spacing: 0; text-transform: none; }
.primitive-footer .signal-dot { width: 4px; height: 4px; }
.bench-foundation { display: flex; align-items: center; gap: 34px; border-top: 1px solid var(--lab-line); padding: 25px 30px; background: repeating-linear-gradient(90deg, transparent, transparent 47px, #30487020 48px); color: var(--lab-muted); }
.foundation-label { flex: 0 0 auto; font-size: 9px; letter-spacing: 0; text-transform: none; }
.foundation-label strong { font-weight: 400; color: var(--lab-text); }
.bench-foundation > div { display: flex; flex-wrap: wrap; justify-content: space-between; flex: 1; gap: 16px 25px; font-size: 8px; letter-spacing: 0.025em; }
.bench-foundation > div span::before { content: "+"; color: var(--lab-accent); margin-right: 9px; }
.research-bridge { display: flex; justify-content: flex-start; align-items: center; gap: 28px; padding-top: 30px; }
.research-bridge p { color: var(--lab-muted); font-size: 16px; line-height: 1.7; }
.research-bridge strong { font-weight: 400; color: var(--lab-text); }
.research-bridge .text-link { font-size: 13px; flex-shrink: 0; }
.sovereign-section { background: #e9eef8; color: #162c53; border-block: 1px solid #cbd5e8; --lab-accent: #2855a0; --lab-muted: #4b6080; --lab-secondary: #514d86; }
.sovereign-inner { padding-top: 100px; padding-bottom: 100px; }
.sovereign-section .section-heading { margin-bottom: 52px; }
.sovereign-section .section-intro { max-width: 55ch; }
.deployment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.deployment-option { display: flex; flex-direction: column; align-items: flex-start; padding: 38px; border: 1px solid #b8c8e2; background: #f5f7fc; }
.deployment-option--cluster { background: #dfe8f8; }
.deployment-icon { margin-bottom: 28px; color: #2855a0; }
.deployment-icon svg { width: 56px; height: 43px; stroke: currentColor; stroke-width: 1.2; }
.deployment-option h3 { font-size: 42px; line-height: 1.1; font-weight: 400; letter-spacing: -0.04em; margin: 15px 0 20px; }
.deployment-option > p:not(.eyebrow) { font-size: 17px; line-height: 1.7; color: #4b6080; max-width: 39ch; }
.deployment-option ul { list-style: none; padding: 0; margin: 28px 0 36px; width: 100%; }
.deployment-option li { padding: 12px 0; border-top: 1px solid #c2cfe4; font-size: 14px; line-height: 1.6; color: #364f75; }
.deployment-option .page-cta { margin-top: auto; }
.api-page .sovereign-section .page-cta { color: #f4f7ff; background: #254e99; border-color: #254e99; }
.api-page .sovereign-section .page-cta:hover { background: #1b3c7b; }
.deployment-note { font-size: 14px; text-align: center; margin-top: 28px; color: #4b6080; }
.build-section .section-heading--split { align-items: center; }
.build-section .section-heading .text-link { margin-top: 20px; }
.resource-library { border-top: 1px solid var(--lab-line); }
.resource { border-bottom: 1px solid var(--lab-line); }
.resource summary { list-style: none; display: flex; align-items: center; gap: 28px; padding: 30px 0; cursor: pointer; font-size: 25px; letter-spacing: -0.025em; font-weight: 400; }
.resource summary::-webkit-details-marker { display: none; }
.resource-index { color: var(--lab-accent); font-size: 9px; align-self: flex-start; padding-top: 6px; }
.resource summary small { display: block; color: var(--lab-muted); text-transform: none; letter-spacing: 0.025em; font-size: 10px; margin-top: 6px; }
.resource-plus { margin-left: auto; color: var(--lab-accent); font: 26px var(--type-mono); transition: transform 160ms; }
.resource[open] .resource-plus { transform: rotate(45deg); }
.resource summary:hover { color: var(--lab-accent); }
.resource-body { padding: 6px 0 36px; min-width: 0; }
.resource-intro { color: var(--lab-muted); font-size: 16px; line-height: 1.7; max-width: 75ch; margin-bottom: 28px; }
.resource-intro a { color: var(--lab-accent); text-decoration: underline; text-underline-offset: 4px; }
.api-page .model-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--lab-line); border-left: 1px solid var(--lab-line); }
.api-page .model { background: #112754; border-radius: 0; border: 0; border-right: 1px solid var(--lab-line); border-bottom: 1px solid var(--lab-line); padding: 23px; }
.api-page .model:hover { transform: none; background: #1a335d; }
.api-page .model-family { color: var(--lab-muted); }
.api-page .model-name { color: var(--lab-text); font-weight: 400; }
.api-page .model-tag.is-accent { color: #c5dcff; background: #263f6c; border-radius: 2px; }
.api-page .price-table :is(th, td) { border-color: var(--lab-line); }
.api-page .price-table th { color: var(--lab-muted); }
.api-page .price-table td.model-cell { color: var(--lab-text); font-size: 13px; }
.api-page .price-table .num { color: #c5dcff; font-size: 12px; white-space: nowrap; }
.api-page .price-table .num .unit { color: var(--lab-muted); font-size: 10px; }
.api-page .price-table tbody tr:hover { background: #18315a; }
.api-page .price-foot { color: var(--lab-muted); font-size: 10px; }
.api-page .code-tab { border-radius: 2px; color: var(--lab-muted); border-color: #5d78a1; }
.api-page .code-tab[aria-selected="true"] { color: #0b1b46; background: var(--lab-accent); border-color: var(--lab-accent); }
.api-page .code-tab .tab-kind { opacity: 1; }
.api-page .code-panel-desc { color: var(--lab-muted); }
.api-page .code-panel-desc strong { color: var(--lab-text); }
.api-page .code-window { background: #0c204b; border-color: var(--lab-line); border-radius: 2px; box-shadow: none; }
.api-page .code-bar { background: #142b56; border-color: var(--lab-line); }
.api-page .code { max-height: 460px; }
.api-page .code-dot:nth-child(1) { background: #b5b4ff; }
.api-page .code-dot:nth-child(2) { background: #96dbff; }
.api-page .code-dot:nth-child(3) { background: #6897d4; }
.api-page .code-file, .api-page .code-copy { color: #dbe5f5; }
.api-page .tok-com { color: #94a9bd; }
.api-page .tok-kw { color: #96c9ff; }
.api-page .tok-str { color: #a6d9f5; }
.api-page .tok-num, .api-page .tok-fn { color: #c5b6f4; }
.api-page .tok-self { color: #d0bff3; }
.api-page .chart-card { border-radius: 2px; background: #e9eef8; color: #162c53; }
.api-page .chart-title, .api-page .chart-legend, .api-page .chart-foot { color: #4b6080; }
.api-page .citation { color: var(--lab-muted); }
.closing-section { text-align: center; padding-top: 40px; padding-bottom: 112px; }
.closing-section h2 { font-size: clamp(48px, 5.5vw, 78px); font-weight: 400; letter-spacing: -0.045em; line-height: 1.07; margin-top: 25px; }
.closing-section .hero-actions { justify-content: center; margin-top: 38px; }
.api-page .footer { background: #081333; color: var(--lab-text); border-top: 1px solid var(--lab-line); }
.api-page .footer-col h4 { color: var(--lab-muted); opacity: 1; }
/* An illustrated Console overview, following the real workspace layout. */
.console-section { border-top: 1px solid var(--lab-line); margin-top: 100px; padding-top: 80px; }
.console-copy { display: grid; grid-template-columns: 0.8fr 1.5fr; gap: 80px; align-items: start; margin-bottom: 38px; }
.console-copy h3 { font-size: clamp(32px, 3.3vw, 46px); font-weight: 400; line-height: 1.12; letter-spacing: -0.04em; margin-top: 22px; }
.console-copy h3 em { font-family: var(--type-serif); font-weight: 400; color: var(--lab-accent); }
.console-description > p { font-size: 16px; line-height: 1.7; color: var(--lab-muted); text-wrap: pretty; max-width: 60ch; }
.console-copy ul { padding: 0; margin: 18px 0; list-style: none; }
.console-copy li { font-size: 13px; line-height: 1.65; color: #c5d1e5; padding: 7px 0 7px 17px; position: relative; }
.console-copy li::before { content: "+"; position: absolute; left: 0; color: var(--lab-accent); }
.console-copy .text-link { font-size: 13px; }
.console-illustration { min-width: 0; margin: 0; border: 1px solid #cbd0db; background: #fff; color: #292b29; box-shadow: 0 28px 65px #0003; border-radius: 10px; overflow: hidden; }
.console-browser { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 18px; background: #f5f5f4; border-bottom: 1px solid #e7e7e4; font: 10px var(--type-mono); color: #686b72; }
.console-window-dots { letter-spacing: 3px; color: #b8babd; font-size: 8px; }
.console-workspace { display: grid; grid-template-columns: 180px minmax(0, 1.5fr) minmax(0, 1fr); background: #fff; }
.console-sidebar { display: flex; flex-direction: column; border-right: 1px solid #eeefec; padding: 24px 12px 14px; }
.console-brand { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 4px; color: #143884; }
.console-logo { display: block; width: 108px; height: auto; color: #143884; }
.console-menu { display: grid; gap: 3px; margin-top: 30px; }
.console-menu > span { display: flex; align-items: center; gap: 10px; font-size: 12px; padding: 10px 8px; line-height: 1.4; }
.console-menu svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.console-menu .is-current { background: #f4ecd8; border-radius: 7px; }
.console-menu--secondary { margin-top: auto; padding-top: 26px; }
.console-team { display: flex; align-items: center; gap: 9px; padding: 12px 9px; margin-top: 18px; background: #f4ecd8; border-radius: 7px; font-size: 12px; }
.console-team small { display: block; margin-top: 4px; font-size: 10px; color: #75766e; }
.console-avatar { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #c6c1b2; border-radius: 50%; font-size: 12px; flex-shrink: 0; }
.console-content { padding: 26px; min-width: 0; }
.console-mobile-brand { display: none; }
.console-balance-card, .console-run-card { background: #f6f5f2; border-radius: 12px; padding: 24px; }
.console-card-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; }
.console-card-title strong { font-size: 22px; font-weight: 500; letter-spacing: -0.035em; }
.console-card-title > span { font-size: 12px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.console-balance { font: 500 clamp(26px, 3vw, 40px)/1.2 var(--type-mono); letter-spacing: -0.055em; color: #153888; }
.console-balance-card > p { margin-top: 10px; font-size: 13px; line-height: 1.6; color: #777970; }
.console-usage { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #e3e2dc; }
.console-usage span { display: block; color: #74766f; font-size: 11px; }
.console-usage strong { display: block; margin-top: 7px; color: #333630; font: 400 17px/1.4 var(--type-mono); letter-spacing: -0.045em; }
.console-run-card { margin-top: 22px; padding-bottom: 12px; }
.console-run-card .console-card-title { margin-bottom: 8px; }
.console-run { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 19px 0; }
.console-run strong { display: block; font-size: 15px; font-weight: 400; line-height: 1.4; }
.console-run small { display: block; font-size: 11px; margin-top: 4px; line-height: 1.5; color: #85867e; }
.console-status { display: inline-block; padding: 3px 9px; border: 1px solid #86b69b; border-radius: 20px; font-size: 11px; line-height: 1.3; color: #32865c; white-space: nowrap; }
.console-status--long { border-color: #cba76d; color: #a57526; }
.console-information { display: flex; flex-direction: column; padding: 30px 26px 28px 14px; }
.console-information h4 { font-size: 23px; font-weight: 500; letter-spacing: -0.035em; }
.console-news > div { margin-top: 28px; }
.console-news strong { font-size: 15px; font-weight: 500; line-height: 1.4; }
.console-news p { font-size: 13px; line-height: 1.65; margin-top: 6px; color: #5c5e57; }
.console-info-link { display: block; font-size: 12px; line-height: 1.6; margin-top: 8px; text-decoration: underline; text-underline-offset: 3px; }
.console-docs { display: grid; gap: 14px; margin-top: auto; padding-top: 40px; }
.console-docs h4 { margin-bottom: 4px; }
.console-docs > span { font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.console-illustration figcaption { padding: 14px 18px; border-top: 1px solid #e7e7e4; font: 10px/1.7 var(--type-mono); color: #72756e; background: #fafaf8; }

@media (max-width: 1280px) {
  .customer-marks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; }
}
@media (max-width: 1100px) {
  .gpu-system { padding-left: 0; }
  .system-topline { font-size: 8px; }
  .api-mode { padding-inline: 3px; }
  .api-mode h3 { margin-inline: 12px; font-size: 19px; }
  .api-mode > p { margin-inline: 12px; font-size: 10px; }
  .compute-rail { padding-inline: 16px; }
  .compute-rail > span { font-size: 8px; }
  .compute-location { font-size: 14px; }

  .capability { padding: 26px; }
  .capability dl > div { gap: 15px; }
  .capability-footer { font-size: 8px; gap: 8px 10px; }
  .capability-footer > span + span::before { margin-right: 10px; }

  .deployment-option { padding: 30px; }

  .frontier-hero, .customer-band, .chapter-nav, .story-section, .sovereign-inner, .closing-section { padding-inline: 40px; }
  .frontier-hero { padding-top: 120px; }
  .frontier-hero h1 { font-size: 61px; }
  .frontier-hero .eyebrow { font-size: 8px; }
  .hero-description { font-size: 17px; }
  .section-heading--split { gap: 40px; }
  .loop-tabs button { padding: 24px 20px; font-size: 21px; gap: 12px; }
  .loop-panel { gap: 28px; padding: 35px 28px; }
  .bench-foundation { align-items: start; }
  .bench-foundation > div { display: grid; grid-template-columns: 1fr 1fr; }
  .customer-band { gap: 40px; }
  .api-page .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .engineering-notes { grid-template-columns: 1fr; gap: 32px; margin-top: 36px; padding-top: 30px; }
  .engineering-notes h3 { text-wrap: initial; }
  .gpu-system { max-width: 640px; margin: 45px auto 0; }
  .api-mode h3 { font-size: 23px; }
  .api-mode > p { font-size: 11px; }

  .develop-section .section-heading--split { grid-template-columns: 1fr; gap: 25px; }
  .develop-section .section-intro { max-width: 55ch; }
  .capabilities { gap: 20px; }
  .capability { padding: 24px; }
  .capability-topline .eyebrow { font-size: 8px; }
  .capability .capability-lead { font-size: 19px; }
  .capability > p { font-size: 15px; }
  .capability dl > div { grid-template-columns: 1fr; gap: 9px; }
  .model-foundation p { font-size: 20px; }

  .deployment-options { gap: 20px; }
  .deployment-option { padding: 25px; }
  .deployment-option h3 { font-size: 33px; }
  .deployment-option > p:not(.eyebrow) { font-size: 15px; }
  .deployment-option li { font-size: 12px; }
  .api-page .deployment-option .page-cta { font-size: 11px; padding-inline: 14px; gap: 12px; }

  .frontier-hero { grid-template-columns: 1fr; padding-top: 130px; }
  .frontier-hero-copy { max-width: 590px; }
  .frontier-hero h1 { font-size: clamp(66px, 10vw, 82px); }
  .hero-description { max-width: 44ch; font-size: 18px; }
  .hero-baseline { margin-top: 22px; font-size: 8px; }
  .customer-band { flex-direction: column; align-items: flex-start; gap: 26px; }
  .customer-band > p { flex-basis: auto; }
  .customer-marks { width: 100%; }
  .chapter-nav { grid-template-columns: 1fr 1fr; gap: 0 28px; }
  .story-section { padding-top: 80px; padding-bottom: 80px; }
  .section-heading--split { grid-template-columns: 1fr; gap: 24px; }
  .section-heading--split .section-intro { max-width: 56ch; }
  .loop-panel { grid-template-columns: 1fr; gap: 28px; }
  .loop-explanation > p { max-width: 55ch; }
  .loop-explanation h3 br { display: none; }
  .loop-tabs button { padding: 20px 15px; font-size: 19px; gap: 8px; }
  .loop-arrow { display: none; }
  .research-bridge { flex-direction: column; align-items: start; gap: 16px; }
  .sovereign-inner { padding-top: 80px; padding-bottom: 80px; }
  .closing-section { padding-top: 20px; padding-bottom: 80px; }
}
/* One full-size workload at a time keeps the shared cluster close to the story. */
@media (max-width: 640px) {
  .mode-tabs:not([hidden]) { display: grid; grid-template-columns: 0.8fr 1.2fr; border: 1px solid #3e577e; border-bottom: 0; }
  .mode-tabs button { -webkit-tap-highlight-color: transparent; display: flex; justify-content: center; align-items: center; gap: 8px; padding: 16px 8px; min-height: 54px; border: 0; background: #0d204b; color: var(--lab-muted); font: 13px/1.4 var(--type-sans); cursor: pointer; }
  .mode-tabs button + button { border-left: 1px solid #3e577e; }
  .mode-tabs button[aria-selected="true"] { color: var(--lab-text); background: #1b315a; box-shadow: inset 0 -2px #b5b4ff; }
  .mode-tabs button:last-child[aria-selected="true"] { box-shadow: inset 0 -2px #96dbff; }
  .mode-tabs button > span { width: 6px; height: 6px; border-radius: 1px; flex-shrink: 0; }
  .api-modes { grid-template-columns: 1fr; }
  .api-mode { padding: 22px 12px 0; }
  .api-mode + .api-mode { border-left: 0; border-top: 1px solid #3e577e; }
  .mode-tabs:not([hidden]) + .api-modes .api-mode { border-top: 0; padding-top: 14px; }
  .mode-tabs:not([hidden]) + .api-modes h3 { display: none; }
  .api-mode h3 { font-size: 25px; }
  .api-mode > p { font-size: 13px; margin-bottom: 14px; }
  .mode-diagram { max-width: 340px; margin-inline: auto; }
  .capabilities, .deployment-options { grid-template-columns: 1fr; }
  .capability dl > div { grid-template-columns: 0.85fr 1.4fr; gap: 20px; }
  .deployment-option { padding: 28px; }
  .deployment-icon { margin-bottom: 14px; }
  .api-page .deployment-option .page-cta { font-size: 13px; min-height: 48px; }
  .mobile-scroll-hint { display: flex; align-items: center; justify-content: space-between; color: var(--lab-muted); font: 11px/1.5 var(--type-mono); margin-bottom: 14px; }
  .api-page .price-table td:first-child, .api-page .price-table th:first-child { position: sticky; left: 0; z-index: 1; background: #112754; border-right: 1px solid var(--lab-line); }
  .api-page .price-table { min-width: 640px; }
}
@media (max-width: 520px) {
  .cluster-stage { height: auto; aspect-ratio: 2.7; }
  .cluster-legend { flex-wrap: wrap; justify-content: center; gap: 9px 20px; font-size: 9px; }
  .cluster-legend .compute-foundation-label { display: none; }

  .gpu-system { margin-top: 34px; }
  .system-topline { font-size: 10px; padding-bottom: 12px; }
  .compute-rail { padding: 15px 13px; }
  .compute-rail strong { font-size: 18px; white-space: nowrap; }
  .compute-rail > span { text-align: right; font-size: 9px; line-height: 1.6; }
  .compute-location { padding: 14px 13px; margin-top: 13px; }
  .compute-location { font-size: 14px; }
  .gpu-system figcaption { font-size: 7px; line-height: 1.7; }

  .capability h3 { font-size: 35px; }
  .capability dl { margin-bottom: 18px; }
  .capability dt { font-size: 14px; }
  .capability dd { font-size: 14px; line-height: 1.6; }
  .model-foundation { margin-top: 28px; }
  .model-foundation p { font-size: 19px; line-height: 1.9; }
  .model-foundation p span { padding: 0 3px; }
  .model-foundation-list { gap: 8px 20px; }

  .deployment-option { padding: 28px 24px; }
  .deployment-option h3 { font-size: 36px; }
  .deployment-option li { font-size: 13px; }
  .deployment-note { font-size: 12px; line-height: 1.7; }

  .frontier-hero, .customer-band, .chapter-nav, .story-section, .sovereign-inner, .closing-section { padding-inline: 22px; }
  .frontier-hero { padding-top: 108px; }
  .frontier-hero .eyebrow { font-size: 9px; letter-spacing: 0.035em; margin-bottom: 26px; }
  .frontier-hero h1 { font-size: clamp(42px, 13vw, 66px); }
  .hero-description { font-size: 16px; line-height: 1.7; margin-top: 25px; }
  .hero-actions { gap: 16px; margin-top: 26px; }
  .api-page .page-cta { padding: 15px 18px; font-size: 12px; gap: 20px; }
  .text-link { font-size: 13px; gap: 12px; min-height: 44px; }
  .hero-baseline { font-size: 9px; gap: 20px; align-items: center; }
  .hero-baseline > span { max-width: 20ch; }
  .hero-baseline a { display: inline-flex; align-items: center; min-height: 44px; }
  .hero-baseline a span { padding-left: 8px; }
  .customer-band { flex-wrap: wrap; gap: 24px; padding-top: 28px; padding-bottom: 30px; }
  .customer-band > p { font-size: 13px; }
  .customer-band > p br { display: none; }
  .customer-band > p strong { margin-left: 4px; }
  .customer-marks { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 24px; }
  .customer-marks a { flex: 0 1 calc(50% - 12px); }
  .customer-perplexity { font-size: 22px; }
  .customer-perplexity img { width: 24px; }
  .customer-mixedbread { font-size: 18px; }
  .customer-mixedbread img { width: 26px; }
  .customer-ivo { width: 96px; }
  .chapter-nav { gap: 0 22px; }
  .chapter-nav a { font-size: 10px; letter-spacing: 0; gap: 8px; padding-block: 16px; min-height: 64px; }
  .story-section { padding-top: 62px; padding-bottom: 62px; }
  .eyebrow { font-size: 9px; }
  .chapter-number { gap: 10px; margin-right: 10px; }
  .chapter-number::after { width: 24px; }
  .section-heading { margin-bottom: 32px; }
  .section-heading h2 { font-size: 39px; line-height: 1.1; }
  .section-intro, .section-heading--split .section-intro { font-size: 16px; }
  .bench-topline { flex-direction: column; gap: 7px; padding: 17px 18px; }
  .bench-hint { font-size: 8px; }
  .loop-tabs button { padding: 16px 8px; font-size: 16px; display: block; min-height: 72px; }
  .loop-tabs button > span:first-child { display: block; margin-bottom: 9px; font-size: 10px; }
  .loop-tabs button .loop-arrow { display: none; }
  .loop-panel { padding: 26px 18px 0; gap: 24px; }
  .primitive-window { margin-inline: -18px; border-inline: 0; border-bottom: 0; }
  .loop-explanation h3 { font-size: 28px; }
  .loop-explanation > p { font-size: 15px; }
  .loop-explanation .loop-technical { font-size: 12px; }
  .primitive-window pre { padding: 22px 18px; }
  .primitive-window code { font-size: 12px; line-height: 1.85; }
  .primitive-title { font-size: 10px; padding: 14px 18px; flex-wrap: wrap; gap: 4px 16px; }
  .primitive-footer { padding: 14px 18px; font-size: 10px; }
  .bench-foundation { flex-direction: column; gap: 20px; padding: 20px 18px; }
  .bench-foundation > div { gap: 14px; font-size: 10px; }
  .research-bridge p { font-size: 15px; }
  .research-bridge p br { display: none; }
  .sovereign-inner { padding-top: 62px; padding-bottom: 62px; }
  .resource summary { gap: 16px; font-size: 21px; padding-block: 26px; }
  .resource summary small { font-size: 11px; }
  .resource-index { font-size: 8px; }
  .resource-intro { font-size: 14px; }
  .api-page .model-grid { grid-template-columns: 1fr; }
  .api-page .code-tabs { flex-wrap: nowrap; gap: 8px; }
  .api-page .code-tab { padding: 12px 16px; font-size: 12px; }
  .api-page .code-copy { min-height: 44px; padding-inline: 12px; }
  .api-page .code-tab .tab-kind { display: block; font-size: 10px; margin: 6px 0 0; }
  .closing-section h2 { font-size: 44px; }
}
@media (max-width: 1100px) {
  .console-copy { gap: 40px; }
  .console-workspace { grid-template-columns: 158px minmax(0, 1.5fr) minmax(0, 1fr); }
  .console-content { padding: 20px; }
  .console-balance-card, .console-run-card { padding: 20px 16px; }
  .console-information { padding: 24px 20px 24px 0; }
  .console-run strong { font-size: 14px; }
  .console-run small { font-size: 10px; }
}
@media (max-width: 900px) {
  .console-workspace { grid-template-columns: 158px minmax(0, 1fr); }
  .console-information { display: none; }
  .console-content { padding: 24px; }
  .console-balance-card, .console-run-card { padding: 24px; }
}
@media (max-width: 800px) {
  .console-section { margin-top: 65px; padding-top: 55px; }
  .console-copy { grid-template-columns: 1fr; gap: 24px; }
  .console-copy h3 { font-size: 42px; }
  .console-description > p { max-width: 55ch; }
}
@media (max-width: 600px) {
  .console-workspace { grid-template-columns: 1fr; }
  .console-sidebar { display: none; }
  .console-mobile-brand { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; color: #777970; font-size: 13px; }
  .console-mobile-brand .console-logo { width: 90px; }
  .console-content { padding: 20px 14px; }
  .console-balance-card, .console-run-card { padding: 22px 16px; }
  .console-card-title strong { font-size: 22px; }
  .console-card-title > span { font-size: 11px; }
  .console-balance { font-size: clamp(27px, 8vw, 36px); }
  .console-run { gap: 8px; padding-block: 16px; }
  .console-run small { font-size: 10px; }
  .console-status { font-size: 10px; padding: 3px 7px; }
  .console-usage { gap: 10px; }
  .console-usage span { font-size: 10px; }
  .console-usage strong { font-size: 16px; }
  .console-browser { padding: 13px 12px; font-size: 8px; gap: 8px; }
  .console-window-dots { font-size: 6px; letter-spacing: 1px; }
  .console-illustration figcaption { font-size: 9px; padding: 12px 14px; }
}
@media (max-width: 520px) {
  .console-section { margin-top: 50px; padding-top: 45px; }
  .console-copy h3 { font-size: 36px; }
  .console-description > p { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .api-page *, .api-page *::before, .api-page *::after { animation: none; transition: none; scroll-behavior: auto; }
}
