/* vllm-sr/auto — design system. A dawn sky over ASCII ridges, cream paper, a serif display face, ink for
   actions and one ember accent for the routing light. Three type levels, whitespace, an 8 px rhythm. */

@font-face { font-family: "Cormorant Garamond"; src: url("/pt/assets/fonts/CormorantGaramond.woff2?v=a39000e9fb") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/pt/assets/fonts/CormorantGaramond-Italic.woff2?v=b3c2cb4df7") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/pt/assets/fonts/inter-var.woff2?v=1f5d84f407") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/pt/assets/fonts/jetbrains-mono-var.woff2?v=f8ce79820b") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  --paper: #f6f1e7;
  --paper-2: #efe8da;
  --surface: #fffdf9;
  --ink: #16181d;
  --ink-2: #464b55;
  --muted: #6c717c;
  --faint: #9da1a9;
  --hair: rgba(22, 24, 29, 0.09);
  --ember: #d9441f;
  --ember-hi: #ef5630;
  --ok: #1f9d5b;
  --warn: #b7791f;
  --bad: #c8352b;
  --sky-0: #93b3e4;
  --sky-1: #b2c8ec;
  --sky-2: #d9dded;
  --dawn: #f1d8c6;
  --shadow: 0 1px 2px rgba(40, 32, 20, 0.04), 0 12px 32px rgba(40, 32, 20, 0.07);
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 28px;
  --max: 1120px;
  --narrow: 720px;
  --nav-h: 56px;
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: var(--sans); font-feature-settings: "cv11", "ss01", "calt"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body { margin: 0; min-height: 100vh; font-size: 17px; line-height: 1.55; letter-spacing: -0.011em; overflow-x: hidden; background: var(--paper); }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(217, 68, 31, 0.22); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 8px; }
img, svg, canvas { display: block; max-width: 100%; }
code, kbd, pre, .mono { font-family: var(--mono); font-feature-settings: "zero", "calt"; letter-spacing: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--narrow); }
.hide { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -56px; z-index: 100; padding: 8px 16px; border-radius: 980px; background: var(--ink); color: #fff; font-weight: 600; }
.skip:focus { top: 8px; }

/* ── Type: three levels ─────────────────────────────────── */
.display { font-family: var(--serif); font-weight: 500; font-size: clamp(52px, 8.2vw, 112px); line-height: 0.98; letter-spacing: -0.018em; }
.title { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 6vw, 80px); line-height: 1; letter-spacing: -0.015em; }
.lead { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; letter-spacing: -0.014em; color: var(--ink-2); }
.caption { font-size: 14px; line-height: 1.5; color: var(--muted); letter-spacing: -0.006em; }
.caption a, .lead a { text-decoration: underline; text-decoration-color: rgba(22, 24, 29, 0.25); text-underline-offset: 3px; }
.caption a:hover, .lead a:hover { color: var(--ink); text-decoration-color: var(--ember); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.label { font-size: 12px; line-height: 1.3; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }
.tabular { font-variant-numeric: tabular-nums; }
.eyebrow { font: 600 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ember); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.kicker .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--ok); }
.kicker .dot.warn { background: var(--warn); }
.kicker .dot.bad { background: var(--bad); }
.flame-text, .ember { color: var(--ember); }
.serif { font-family: var(--serif); }
em.serif { font-style: italic; }

/* ── Navigation ─────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(246, 241, 231, 0.78); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); transition: background 0.4s, box-shadow 0.4s; }
.nav.scrolled { box-shadow: 0 1px 0 var(--hair); }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { position: relative; display: flex; align-items: center; height: 100%; }
.brand img { height: 28px; width: auto; transition: opacity 0.4s var(--ease); }
.brand .on-sky { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { font-size: 14px; color: var(--ink-2); padding: 8px 12px; border-radius: 980px; transition: color 0.2s, background 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
/* Over the hero's sky the bar is clear and light. */
.nav.over-sky { position: fixed; left: 0; right: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.nav.over-sky .brand .on-paper { opacity: 0; }
.nav.over-sky .brand .on-sky { opacity: 1; }
.nav.over-sky .nav-links a { color: rgba(255, 255, 255, 0.9); }
.nav.over-sky .nav-links a:hover { color: #fff; }
.nav.over-sky .menu-btn { color: #fff; }
.menu-btn { display: none; width: 40px; height: 40px; border: 0; background: transparent; color: var(--ink); border-radius: 980px; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 0 auto; position: relative; transition: transform 0.3s var(--ease), background 0.2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.nav.open .menu-btn span { background: transparent; }
.nav.open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav-links { position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 32px; background: rgba(246, 241, 231, 0.98); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.25s, transform 0.3s var(--ease); }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a, .nav.over-sky .nav-links a { font: 500 32px/1.2 var(--serif); color: var(--ink); padding: 8px 0; border-radius: 0; }
}

/* ── Buttons and links ──────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 980px; border: 0; cursor: pointer; font: 500 16px/1 var(--sans); letter-spacing: -0.012em; color: var(--ink); background: var(--paper-2); transition: background 0.2s, transform 0.2s var(--ease), opacity 0.2s, box-shadow 0.25s; }
.btn:hover { background: #e7dfcf; }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.5; cursor: default; }
.btn.primary { background: var(--ink); color: #fff; box-shadow: 0 8px 24px rgba(22, 24, 29, 0.18); }
.btn.primary:hover { background: #000; box-shadow: 0 10px 28px rgba(22, 24, 29, 0.24); }
.btn.sm { height: 32px; padding: 0 16px; font-size: 14px; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink-2); }
.btn.ghost:hover { color: var(--ink); background: var(--paper-2); }
.btn.danger { background: transparent; color: var(--bad); }
.btn.danger:hover { background: rgba(200, 53, 43, 0.08); }
.more { display: inline-flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 500; color: var(--ink); transition: color 0.2s; }
.more::after { content: "›"; font-size: 1.3em; line-height: 1; transform: translateY(-1px); transition: transform 0.3s var(--ease); }
.more:hover { color: var(--ember); }
.more:hover::after { transform: translate(2px, -1px); }
.copy.done { color: var(--ok); }

/* ── Forms ──────────────────────────────────────────────── */
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; color: var(--ink-2); }
.input { width: 100%; height: 48px; padding: 0 16px; border-radius: var(--r-sm); border: 0; background: var(--surface); color: var(--ink); font: 400 16px var(--sans); letter-spacing: -0.012em; box-shadow: inset 0 0 0 1px var(--hair); transition: box-shadow 0.2s; }
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; box-shadow: inset 0 0 0 1px rgba(217, 68, 31, 0.5), 0 0 0 4px rgba(217, 68, 31, 0.12); }
textarea.input { height: auto; min-height: 112px; padding: 16px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--ink); flex: none; }
.progress { height: 4px; border-radius: 980px; background: rgba(22, 24, 29, 0.08); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ember); transition: width 0.3s var(--ease); }
.progress.indeterminate i { width: 32%; animation: slide 1.2s var(--ease) infinite; }
@keyframes slide { from { transform: translateX(-110%); } to { transform: translateX(320%); } }
.err { color: var(--bad); font-size: 14px; }
.note { font-size: 14px; color: var(--muted); }

/* ── Sections and mosaic rules ──────────────────────────── */
.section { padding: clamp(96px, 13vw, 160px) 0; }
.center { text-align: center; }
.mosaic-rule { display: block; width: 100%; height: 40px; margin: 0 auto; max-width: 960px; }

/* ── Hero: dawn sky, ASCII ridges, the routing light ────── */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(100svh, 940px); display: flex; flex-direction: column; color: #fff;
  background: linear-gradient(180deg, var(--sky-0) 0%, var(--sky-1) 24%, var(--sky-2) 48%, var(--dawn) 72%, var(--paper) 100%); }
.hero .range { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 58%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.6s ease; }
.hero .range.on { opacity: 1; }
.hero-copy { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: calc(var(--nav-h) + clamp(48px, 9vh, 96px)) 24px clamp(260px, 40vh, 420px); }
.hero .logo { width: clamp(168px, 18vw, 216px); height: auto; margin-bottom: 40px; filter: drop-shadow(0 2px 24px rgba(52, 88, 140, 0.18)); }
.hero h1 { max-width: 11.5em; text-shadow: 0 2px 32px rgba(52, 88, 140, 0.22); }
.hero .sub { margin-top: 24px; max-width: 34em; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; color: rgba(255, 255, 255, 0.94); text-shadow: 0 1px 18px rgba(52, 88, 140, 0.25); letter-spacing: -0.014em; }
.hero .actions { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 32px; }
.hero .more { color: #fff; text-shadow: 0 1px 14px rgba(52, 88, 140, 0.3); }
.hero .more:hover { color: #fff; opacity: 0.8; }
.hero .legal { margin-top: 24px; max-width: 34em; color: rgba(255, 255, 255, 0.82); font-size: 13px; text-shadow: 0 1px 12px rgba(52, 88, 140, 0.25); }
.hero .legal a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.5); }
.route-caption { position: absolute; left: 0; right: 0; bottom: 24px; text-align: center; font: 500 12px/1 var(--mono); letter-spacing: 0.04em; color: rgba(22, 24, 29, 0.55); pointer-events: none; transition: opacity 0.5s; }
.route-caption b { color: var(--ember); font-weight: 600; }

/* The key, once it exists: a frosted panel on the sky. */
.glass { background: rgba(255, 253, 249, 0.78); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 1px 1px rgba(255, 255, 255, 0.6) inset, 0 24px 64px rgba(40, 52, 80, 0.16); color: var(--ink); }
.keybox { width: 100%; max-width: 640px; margin-top: 40px; padding: 24px; border-radius: var(--r-lg); text-align: left; }
.keybox .head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.keybox .head h2 { font: 500 28px/1.1 var(--serif); }
.keyline { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 20px; border-radius: 980px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); }
.keyline code { flex: 1; min-width: 0; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.keybox .caption { margin: 8px 0 24px 20px; }
.keybox .tabs { margin-bottom: 8px; }
.keybox .code pre { font-size: 13px; }
.working { width: 100%; max-width: 360px; margin-top: 40px; }
.working .progress { background: rgba(255, 255, 255, 0.4); }
.working .caption { margin-top: 16px; color: rgba(255, 255, 255, 0.9); }

/* ── Code ───────────────────────────────────────────────── */
.code { position: relative; border-radius: var(--r); background: var(--ink); color: #ececf1; overflow: hidden; text-align: left; }
.code .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 12px 0 20px; }
.code .bar .label { color: #8b8f99; }
.code .bar .btn { background: rgba(255, 255, 255, 0.08); color: #ececf1; }
.code .bar .btn:hover { background: rgba(255, 255, 255, 0.16); }
.code pre { margin: 0; padding: 12px 20px 20px; overflow: auto; font-size: 14px; line-height: 1.7; tab-size: 4; }
.code pre::-webkit-scrollbar { height: 8px; }
.code pre::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 8px; }
.tok-k { color: #ff9a7d; }
.tok-s { color: #f3d3a8; }
.tok-c { color: #7c808a; }
.tok-n { color: #f3d3a8; }
.tok-f { color: #ffffff; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 980px; background: rgba(22, 24, 29, 0.06); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: transparent; color: var(--muted); font: 500 13px var(--sans); padding: 6px 14px; border-radius: 980px; cursor: pointer; white-space: nowrap; transition: color 0.2s, background 0.2s, box-shadow 0.2s; }
.tabs button[aria-selected="true"] { color: var(--ink); background: var(--surface); box-shadow: 0 1px 2px rgba(22, 24, 29, 0.08); }

/* ── Try it ─────────────────────────────────────────────── */
.ask { max-width: var(--narrow); margin: 48px auto 0; }
.prompt { display: flex; align-items: flex-end; gap: 8px; padding: 8px 8px 8px 24px; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); transition: box-shadow 0.25s; }
.prompt:focus-within { box-shadow: 0 0 0 4px rgba(217, 68, 31, 0.12), var(--shadow); }
.prompt textarea { flex: 1; min-width: 0; resize: none; border: 0; background: transparent; color: var(--ink); font: 400 18px/1.5 var(--sans); letter-spacing: -0.014em; padding: 8px 0; max-height: 240px; outline: none; }
.prompt textarea::placeholder { color: var(--faint); }
.send { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background 0.2s, transform 0.2s var(--ease), opacity 0.2s; }
.send:hover { background: #000; }
.send:active { transform: scale(0.94); }
.send[disabled] { opacity: 0.35; cursor: default; }
.send svg { width: 18px; height: 18px; }
.ideas { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.ideas button { border: 0; background: none; padding: 4px 0; color: var(--muted); font: 400 15px var(--sans); cursor: pointer; transition: color 0.2s; }
.ideas button:hover { color: var(--ink); }
.answer { margin-top: 48px; text-align: left; font-size: 18px; line-height: 1.65; color: var(--ink); letter-spacing: -0.012em; }
.answer:empty { display: none; }
.answer p + p, .answer p + pre, .answer pre + p, .answer ul + p, .answer p + ul, .answer ol + p, .answer p + ol { margin-top: 16px; }
.answer pre { margin: 16px 0; background: var(--ink); color: #ececf1; border-radius: var(--r-sm); padding: 16px 20px; overflow: auto; font-size: 14px; line-height: 1.65; }
.answer code { font-size: 0.86em; background: rgba(22, 24, 29, 0.06); padding: 2px 6px; border-radius: 6px; }
.answer pre code { background: transparent; padding: 0; }
.answer ul, .answer ol { margin: 8px 0; padding-left: 24px; }
.answer h4 { font-size: 18px; margin: 24px 0 8px; }
.answer .cursor { display: inline-block; width: 2px; height: 1.05em; vertical-align: -3px; background: var(--ember); animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.thinking { margin-bottom: 24px; color: var(--muted); font-size: 15px; }
.thinking summary { cursor: pointer; list-style: none; display: inline-flex; gap: 8px; align-items: center; }
.thinking summary::-webkit-details-marker { display: none; }
.thinking summary::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--ember); }
.thinking div { margin-top: 8px; white-space: pre-wrap; }
/* The response owns scrolling, so streamed thinking follows the same bottom as the answer. */
.routed { margin-top: 24px; text-align: left; font: 500 13px/1.5 var(--mono); color: var(--muted); letter-spacing: 0; }
.routed b { color: var(--ember); font-weight: 600; }
.ownkey { margin-top: 32px; }
.ownkey .input { max-width: 440px; margin: 8px auto 0; text-align: center; }

/* ── Mission: an ink band that hands the demo over to the architecture ── */
.mission { position: relative; background: var(--ink); color: #f3efe6; }
.dissolve { display: block; width: 100%; height: 56px; }
.mission .wrap { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(32px, 4vw, 56px); }
.m-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.mission .eyebrow { color: var(--ember-hi); }
.mission .statement { margin-top: 16px; font: 500 clamp(48px, 6.4vw, 92px)/0.98 var(--serif); letter-spacing: -0.02em; color: #fffdf9; }
.mission .statement em { font-style: italic; color: var(--ember-hi); }
.mission .why { max-width: 30em; margin-top: 24px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; color: rgba(243, 239, 230, 0.72); }
.mission .links { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.mission .more { color: #fffdf9; }
.mission .more:hover { color: var(--ember-hi); }
.m-principles { list-style: none; margin: 0; padding: 0; }
.m-principles li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 20px; align-items: start; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.m-principles li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.m-principles canvas { width: 32px; height: 32px; margin-top: 2px; }
.m-principles h3 { font: 600 24px/1.2 var(--serif); letter-spacing: -0.005em; color: #fffdf9; }
.m-principles p { margin-top: 6px; font-size: 15.5px; line-height: 1.5; color: rgba(243, 239, 230, 0.68); }
.handoff { margin: clamp(40px, 5vw, 64px) auto 0; display: flex; width: max-content; align-items: baseline; gap: 14px; color: #fffdf9; }
.handoff span { font: 600 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(243, 239, 230, 0.6); }
.handoff b { font: 500 24px/1 var(--serif); letter-spacing: -0.005em; transition: color 0.2s; }
.handoff:hover b { color: var(--ember-hi); }
.handoff i { width: 9px; height: 9px; border-right: 2px solid var(--ember-hi); border-bottom: 2px solid var(--ember-hi); transform: translateY(-4px) rotate(45deg); animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(0) rotate(45deg); } }
@media (max-width: 860px) { .m-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* ── Event and sponsor: one region, two parts ───────────── */
.credits { padding: clamp(72px, 8vw, 112px) 0; }
.credits .mosaic-rule { margin-bottom: 40px; }
.cr { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.cr-part { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: clamp(28px, 4vw, 48px); }
.cr-part + .cr-part { border-left: 1px solid var(--hair); }
/* The official PyTorch file carries its own clear space: 12% at the sides, 31% above, 19% below. */
.cr .pytorch { height: 72px; width: auto; margin: -10px 0 -8px -22px; }
.cr-title { font: 500 clamp(30px, 3.4vw, 44px)/1.05 var(--serif); letter-spacing: -0.01em; }
.cr-talk { display: grid; gap: 8px; max-width: 36em; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--hair); }
.cr-talk q { font: italic 500 clamp(19px, 1.7vw, 23px)/1.35 var(--serif); color: var(--ink-2); }
.cr .amd-link { margin: 14px 0 8px; }
.cr .amd { display: block; width: 152px; height: auto; color: var(--ink); }
.cr-sponsor p { max-width: 24em; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.cr-sponsor .more { margin-top: auto; }
@media (max-width: 860px) {
  .cr { grid-template-columns: minmax(0, 1fr); }
  .cr-part + .cr-part { border-left: 0; border-top: 1px solid var(--hair); }
}

/* ── Footer ─────────────────────────────────────────────── */
.footer { padding: 32px 0 48px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.footer .wrap { display: grid; gap: 16px; }
.footer .rule { height: 1px; background: var(--hair); }
.footer .links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer .links a { color: var(--ink-2); }
.footer .links a:hover { color: var(--ink); }
.footer .co { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.footer .co span + span::before { content: "·"; margin-right: 16px; color: var(--faint); }

/* ── Inner pages ────────────────────────────────────────── */
.page-head { padding: clamp(64px, 9vw, 112px) 0 clamp(32px, 4vw, 48px); }
.page-head h1 { font: 500 clamp(48px, 6.4vw, 88px)/1 var(--serif); letter-spacing: -0.015em; margin-top: 16px; }
.page-head p { color: var(--ink-2); font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; max-width: 34em; margin-top: 24px; letter-spacing: -0.014em; }
.page-head + .mosaic-rule, .page-rule { margin-bottom: 48px; }
.card { border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.card.pad { padding: 24px; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); padding: 8px 16px 8px 0; border-bottom: 1px solid var(--hair); white-space: nowrap; }
table.data td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--hair); color: var(--ink-2); vertical-align: top; }
table.data td:first-child { color: var(--ink); }
table.data tr:last-child td { border-bottom: 0; }
table.data .mono { font-size: 13px; color: var(--ink); }
.pill { display: inline; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.pill.ok { color: var(--ok); }
.pill.warn { color: var(--warn); }
.pill.bad { color: var(--bad); }

.doc { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 64px; padding-bottom: 128px; }
.toc { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; display: grid; gap: 4px; font-size: 14px; }
.toc a { color: var(--muted); padding: 4px 0; transition: color 0.2s; }
.toc a:hover, .toc a.on { color: var(--ink); }
.toc a.on { box-shadow: inset 2px 0 0 var(--ember); padding-left: 12px; margin-left: -14px; }
.prose { min-width: 0; max-width: 720px; color: var(--ink-2); }
.prose h2 { font: 500 40px/1.05 var(--serif); color: var(--ink); margin: 80px 0 16px; letter-spacing: -0.01em; scroll-margin-top: calc(var(--nav-h) + 32px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; color: var(--ink); margin: 40px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin: 8px 0; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(22, 24, 29, 0.3); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--ember); }
.prose code:not(pre code) { font-size: 0.86em; padding: 2px 6px; border-radius: 6px; background: rgba(22, 24, 29, 0.06); color: var(--ink); white-space: nowrap; }
.prose .code { margin: 24px 0 32px; }
.prose .table-wrap { margin: 16px 0 32px; }
.prose strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .doc { grid-template-columns: minmax(0, 1fr); gap: 32px; } .toc { position: static; display: flex; flex-wrap: wrap; gap: 4px 16px; } .toc a.on { padding-left: 0; margin-left: 0; box-shadow: none; } }
.legal-doc { max-width: 720px; padding-bottom: 128px; }
.legal-doc h2 { font: 500 32px/1.1 var(--serif); margin: 48px 0 16px; }

/* Keys */
.keys-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; align-items: start; padding-bottom: 128px; }
@media (max-width: 960px) { .keys-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; } }
.keylist { display: grid; }
.keyitem { padding: 24px 0; border-bottom: 1px solid var(--hair); display: grid; gap: 16px; }
.keyitem:first-child { padding-top: 0; }
.keyitem .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.keyitem .id { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; min-width: 0; }
.keyitem .id code { font-size: 17px; color: var(--ink); }
.keyitem .meta { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: 14px; }
.keyitem .meta b { color: var(--ink-2); font-weight: 500; }
.keyitem .actions { display: flex; flex-wrap: wrap; gap: 0 4px; margin-left: -16px; }
.keyitem .actions .btn { background: transparent; color: var(--ink-2); font-size: 14px; height: 32px; padding: 0 16px; box-shadow: none; }
.keyitem .actions .btn:hover { color: var(--ink); background: var(--paper-2); }
.keyitem .actions .btn.danger { color: var(--bad); }
.usage { padding-top: 8px; display: grid; gap: 32px; }
.meters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 560px) { .meters { grid-template-columns: minmax(0, 1fr); } }
.meter .row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.meter .row b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.chart { width: 100%; height: 120px; }
.chart .axis { fill: var(--faint); font: 11px var(--sans); }
.mini-table { display: grid; gap: 8px; font-size: 15px; }
.mini-table div { display: flex; justify-content: space-between; gap: 16px; color: var(--ink-2); }
.mini-table span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.empty { padding: 8px 0 48px; color: var(--ink-2); display: grid; gap: 16px; justify-items: start; }
.side { display: grid; gap: 48px; position: sticky; top: calc(var(--nav-h) + 32px); }
.side h3 { font: 500 28px/1.1 var(--serif); }
.side .muted { font-size: 15px; }
@media (max-width: 960px) { .side { position: static; } }

/* Status */
.state-line { display: flex; align-items: center; gap: 16px; }
.state-line .orb { width: 12px; height: 12px; border-radius: 3px; background: var(--ok); box-shadow: 0 0 0 6px rgba(31, 157, 91, 0.12); flex: none; }
.state-line.degraded .orb { background: var(--warn); box-shadow: 0 0 0 6px rgba(183, 121, 31, 0.14); }
.state-line.down .orb { background: var(--bad); box-shadow: 0 0 0 6px rgba(200, 53, 43, 0.14); }
.state-line.unknown .orb { background: var(--faint); box-shadow: none; }
.state-line .big { font: 500 clamp(32px, 4vw, 44px)/1.1 var(--serif); }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.figure .v { font: 500 clamp(40px, 4.6vw, 56px)/1 var(--serif); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; margin-top: 12px; }
.figure .s { color: var(--muted); font-size: 14px; margin-top: 8px; }
@media (max-width: 760px) { .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hist { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; height: 40px; margin: 16px 0 8px; }
.hist i { border-radius: 2px; background: var(--ok); opacity: 0.8; }
.hist i.degraded { background: var(--warn); }
.hist i.down { background: var(--bad); }
.hist i.no_data { background: rgba(22, 24, 29, 0.08); }
.hist-axis { display: flex; justify-content: space-between; color: var(--faint); font-size: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.block + .block { margin-top: 80px; }
.block h2 { font: 500 36px/1.1 var(--serif); margin-bottom: 24px; }

/* ── Dialog, toast ──────────────────────────────────────── */
.modal { border: 0; border-radius: var(--r-lg); background: var(--surface); color: var(--ink); padding: 0; width: min(440px, calc(100vw - 32px)); box-shadow: 0 32px 96px rgba(40, 32, 20, 0.28); }
.modal::backdrop { background: rgba(22, 24, 29, 0.25); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal form { padding: 32px; display: grid; gap: 16px; }
.modal h3 { font: 500 28px/1.1 var(--serif); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.toast { position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 16px); opacity: 0; z-index: 90; padding: 12px 20px; border-radius: 980px; background: var(--ink); color: #fff; font-weight: 500; font-size: 15px; transition: all 0.35s var(--ease); pointer-events: none; box-shadow: 0 12px 32px rgba(22, 24, 29, 0.25); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ── Motion ─────────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.1s; }
.js .reveal.d2 { transition-delay: 0.2s; }
.js .reveal.d3 { transition-delay: 0.3s; }
.fade-in { animation: fadein 0.7s var(--ease) both; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.e404 { min-height: 64vh; display: grid; place-items: center; text-align: center; padding: 96px 0; }
.e404 h1 { font: 500 clamp(48px, 7vw, 96px)/1 var(--serif); }
.e404 p { margin-top: 16px; }
.e404 .actions { margin-top: 40px; display: flex; gap: 16px 32px; justify-content: center; align-items: center; flex-wrap: wrap; }


/* ── Home: the header floats over the sky, then turns to paper ── */
.home .nav { position: fixed; left: 0; right: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; transition: background 0.35s var(--ease), box-shadow 0.35s; }
.home .nav.solid { background: rgba(246, 241, 231, 0.82); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); box-shadow: 0 1px 0 var(--hair); }
.home .nav:not(.solid) .nav-links a { color: rgba(22, 24, 29, 0.74); }
.hero .sub b { color: #fff; font-weight: 600; }

/* ── The key: one button, one consent line, then the panel ── */
.key { width: 100%; max-width: 640px; margin-top: 40px; display: flex; flex-direction: column; align-items: center; }
.btn-key { position: relative; overflow: hidden; display: inline-grid; place-items: center; height: 56px; min-width: 248px; padding: 0 32px; border: 0; border-radius: 980px; background: var(--ink); color: #fff; font: 500 17px/1 var(--sans); letter-spacing: -0.012em; cursor: pointer; box-shadow: 0 10px 30px rgba(22, 24, 29, 0.22); transition: background 0.2s, transform 0.2s var(--ease), box-shadow 0.25s; }
.btn-key:hover { background: #000; box-shadow: 0 12px 34px rgba(22, 24, 29, 0.28); }
.btn-key:active { transform: scale(0.98); }
.btn-key[disabled] { cursor: progress; }
.btn-key > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 10px; transition: opacity 0.25s, transform 0.35s var(--ease); }
.btn-key .k-busy, .btn-key .k-ok { opacity: 0; transform: translateY(10px); }
.btn-key.busy .k-label, .btn-key.done .k-label { opacity: 0; transform: translateY(-10px); }
.btn-key.busy .k-busy, .btn-key.done .k-ok { opacity: 1; transform: none; }
.btn-key .k-ok svg { width: 18px; height: 18px; color: #7ee2a8; }
.btn-key .k-bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--ember-hi); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease), opacity 0.5s; }
.btn-key.done .k-bar { opacity: 0; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.consent { margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.consent a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(22, 24, 29, 0.25); }
.consent a:hover { color: var(--ink); text-decoration-color: var(--ember); }
.hero .consent { color: rgba(255, 255, 255, 0.88); text-shadow: 0 1px 12px rgba(52, 88, 140, 0.28); }
.hero .consent a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.55); }
.key-status { margin-top: 16px; padding: 8px 16px; border-radius: 980px; background: rgba(200, 53, 43, 0.9); color: #fff; font-size: 14px; }
.kpanel { width: 100%; margin-top: 32px; padding: 24px; border-radius: var(--r-lg); text-align: left; outline: none; }
.kp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.kp-head h2 { font: 500 28px/1.1 var(--serif); letter-spacing: -0.01em; }
.kp-manage { font-size: 14px; color: var(--muted); transition: color 0.2s; }
.kp-manage::after { content: " ›"; }
.kp-manage:hover { color: var(--ink); }
.kp-warn { margin: 8px 0 0 20px; font-size: 13px; font-weight: 500; color: var(--ember); }
.kp-call { margin-top: 24px; }
.kp-call-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.kp-call-head h3 { margin-right: auto; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.kpanel .tabs button { padding: 4px 12px; font-size: 12px; }
.kp-call .code pre { padding: 16px 20px; font-size: 12.5px; }
.kp-meta { margin-top: 12px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.kp-meta a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .kpanel { padding: 20px 16px; } .kp-call-head { flex-wrap: wrap; } .kp-call-head h3 { width: 100%; } }

/* ── Sponsor and footer details ─────────────────────────── */
.amd-link { display: inline-block; transition: opacity 0.2s; }
.amd-link:hover { opacity: 0.75; }
.footer .tm { max-width: 60em; color: var(--faint); font-size: 11.5px; }

/* ── Keys page ──────────────────────────────────────────── */
.side .key { max-width: none; margin-top: 16px; align-items: flex-start; }
.side .btn-key { min-width: 0; width: 100%; }
.side .made { width: 100%; margin-top: 16px; }
.side .made .kp-warn { margin-left: 20px; }
.paste { display: flex; gap: 8px; margin-top: 16px; }
.side .caption b { color: var(--ink-2); font-weight: 600; }

/* ── Status page ────────────────────────────────────────── */
.status-page { padding-bottom: 128px; }
.status-page > .block { margin-top: 80px; }
.figures.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .figures.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hist-head { margin-top: 48px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ── Header: a confident logo ───────────────────────────── */
:root { --nav-h: 68px; }
.brand img { height: 40px; }
@media (max-width: 760px) { :root { --nav-h: 60px; } .brand img { height: 32px; } }

/* ── Hero: the whole first screen, ink type over the sky ─── */
.hero { min-height: 100vh; min-height: 100svh; }
.hero-copy { justify-content: center; padding: calc(var(--nav-h) + 32px) 24px clamp(120px, 22vh, 220px); }
.hero .display { color: var(--ink); font-weight: 700; font-size: clamp(56px, 8.4vw, 124px); line-height: 0.96; letter-spacing: -0.022em; max-width: 12em; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35); }
.key-phrase { position: relative; font-style: italic; color: #a12f17; white-space: nowrap; }
.key-phrase::after { content: ""; position: absolute; left: 3%; right: 2%; bottom: 0.04em; height: 0.08em; background-image: linear-gradient(90deg, #a12f17 0 8px, transparent 8px 12px); background-size: 12px 100%; opacity: 0.5; animation: shimmer 3.2s linear infinite; }
@keyframes shimmer { to { background-position: 48px 0; } }
.hero .sub { margin-top: 28px; max-width: 32em; color: #3b404a; font-size: clamp(18px, 1.7vw, 22px); font-weight: 400; text-shadow: none; }
.hero .sub b { color: var(--ink); font-weight: 600; }
.hero .consent { color: #555b69; text-shadow: none; }
.hero .consent a { color: var(--ink-2); text-decoration-color: rgba(22, 24, 29, 0.3); }
.hero .range { height: 44%; }
.scroll-cue { position: absolute; left: 50%; bottom: 24px; width: 24px; height: 36px; margin-left: -12px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px rgba(22, 24, 29, 0.35); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: rgba(22, 24, 29, 0.55); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }
@media (max-height: 760px) { .scroll-cue { display: none; } }

/* ── Watch it choose: the examples, the four live steps, then the response ── */
.home .section { padding: clamp(80px, 9vw, 120px) 0; }
.choose > .wrap { max-width: 1664px; padding-inline: 32px; }
.choose .head, .arch .head { max-width: 780px; margin: 0 auto; }
.choose .head .lead, .arch .head .lead { margin-top: 16px; }
.section > .wrap > .mosaic-rule { margin-bottom: 48px; }
.console { margin-top: 48px; display: grid; grid-template-columns: clamp(220px, 17vw, 256px) minmax(0, 1fr); gap: 20px; }
.examples { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; }
.work { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: 20px; min-width: 0; min-height: 0; }
.work > .stage { min-width: 0; }
/* Reserve a quiet answer surface before the first run: all columns stay centred without a layout jump. */
.response { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 20px 24px; border-radius: var(--r-lg); background: rgba(255, 253, 249, 0.45); box-shadow: inset 0 0 0 1px var(--hair); overflow: hidden; transition: background 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.work.open .response { background: var(--surface); box-shadow: 0 0 0 2px var(--ember), 0 16px 40px rgba(217, 68, 31, 0.12); }
.response-empty { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 12px; padding: 32px; color: var(--muted); }
.response-empty b { font: 500 32px/1.15 var(--serif); color: var(--ink-2); }
.response-empty span { max-width: 22em; font-size: 15px; }
.response .step-head { margin-bottom: 4px; }
.response .step-head .label { color: var(--ember); }
.response > .pv { min-height: 1.4em; margin-bottom: 14px; text-align: left; }
.response .err { margin-bottom: 12px; }
.response .answer { flex: 1 1 auto; min-height: 96px; margin: 0; overflow: auto; overscroll-behavior: contain; font-size: 16px; line-height: 1.6; }
.response .waiting { font: 500 12.5px/1.5 var(--mono); color: var(--muted); }
.response .waiting::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 1px; background: var(--ember); animation: blink 1s steps(1) infinite; }
.request-content { min-width: 0; overflow: auto; overscroll-behavior: contain; padding: 18px; border: 1px solid rgba(217, 68, 31, 0.14); border-radius: 12px; background: linear-gradient(145deg, rgba(217, 68, 31, 0.045), rgba(217, 68, 31, 0.012)); }
.request-question { color: var(--ink); font-size: 17px; line-height: 1.65; overflow-wrap: anywhere; }
.request-question > :first-child { margin-top: 0; }
.request-question > :last-child { margin-bottom: 0; }
.request-question p + p { margin-top: 12px; }
.request-placeholder { color: var(--muted); font-size: 15px; }
.request-content:has(.request-image) { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 14px; align-content: start; align-items: start; }
.request-image { margin: 0; }
.request-image img { display: block; width: 92px; max-height: 92px; object-fit: contain; border-radius: 8px; background: var(--paper); }
.request-image figcaption { margin-top: 6px; color: var(--muted); font: 500 10px/1.5 var(--mono); }
.request-context { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--hair); color: var(--muted); font-size: 12px; }
.request-context summary { cursor: pointer; line-height: 1.5; }
.request-turn { margin-top: 14px; color: var(--ink-2); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.request-turn > b { display: block; margin-bottom: 4px; color: var(--muted); font: 500 10px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }
.request-turn p { margin: 0; }
.ex-list { display: grid; gap: 8px; }
.ex { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--surface); box-shadow: 0 1px 2px rgba(40, 32, 20, 0.05); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.ex:hover { transform: translateX(3px); box-shadow: 0 1px 2px rgba(40, 32, 20, 0.05), 0 10px 24px rgba(40, 32, 20, 0.08); }
.ex .t { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 600 18px/1.2 var(--serif); letter-spacing: -0.005em; }
.ex .t > span, .ex .r, .ex .x { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex .r { font: 500 11px/1.45 var(--mono); color: var(--muted); }
.ex .r { display: block; width: 100%; }
.ex .px { flex: none; width: 16px; height: 16px; }
.ex.active { box-shadow: inset 0 0 0 1.5px var(--ember), 0 10px 24px rgba(217, 68, 31, 0.1); }
.ex .x { font-size: 12.5px; line-height: 1.45; color: var(--bad); }
.ex:has(.x) .r { display: none; }
.ex-key { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.ex-key .bar { display: none; flex: 0 0 120px; height: 4px; border-radius: 2px; background: var(--hair); overflow: hidden; }
.ex-key.busy .bar { display: block; }
.ex-key .bar b { display: block; height: 100%; background: var(--ember); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
#ex-key-text:empty { display: none; }
.ex-key .consent { flex-basis: 100%; margin: 0; font-size: 12.5px; }
.prompt.mini { flex: none; padding: 6px 6px 6px 16px; border-radius: 16px; }
.prompt.mini textarea { font-size: 15px; padding: 6px 0; }
.prompt.mini .send { width: 34px; height: 34px; }
.stage { padding: 4px 28px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.step { position: relative; padding: 16px 0 16px 26px; opacity: 0.45; transition: opacity 0.45s var(--ease); }
.step + .step { box-shadow: 0 -1px 0 var(--hair); }
.step::before { content: ""; position: absolute; left: 0; top: 21px; width: 10px; height: 10px; border-radius: 2px; background: rgba(22, 24, 29, 0.14); transition: background 0.3s, box-shadow 0.3s; }
.step.on, .step.done { opacity: 1; }
.step.on::before { background: var(--ember); box-shadow: 0 0 0 4px rgba(217, 68, 31, 0.16); animation: beat 1s ease-in-out infinite; }
.step.done::before { background: var(--ink); }
@keyframes beat { 50% { box-shadow: 0 0 0 7px rgba(217, 68, 31, 0.06); } }
.step[data-step="request"] { opacity: 1; }
.step-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; min-height: 22px; }
.step.on .step-head .label { color: var(--ember); }
.pv { font: 500 12px/1.4 var(--mono); color: var(--muted); text-align: right; }
.step .code pre { max-height: 240px; padding: 14px 18px; font-size: 12px; line-height: 1.6; }
.sig { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.sig li { display: inline-flex; gap: 6px; align-items: baseline; padding: 5px 8px; border-radius: 7px; background: rgba(22, 24, 29, 0.05); color: var(--faint); font: 500 11px/1 var(--mono); transition: background 0.25s, color 0.25s, transform 0.25s var(--ease); }
.sig li b { font-weight: 700; }
.sig li b:empty { display: none; }
.sig li.lit { background: var(--ink); color: #fff; transform: translateY(-1px); }
.sig li.hit { background: var(--ember); color: #fff; transform: translateY(-1px); }
.ranking { margin-top: 12px; font: 500 12px/1.5 var(--mono); color: var(--ink-2); }
.ranking:empty { display: none; }
.lane-note { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.lane-note:empty { display: none; }
.lanes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lanes li { padding: 7px 10px; border-radius: 8px; background: rgba(22, 24, 29, 0.05); color: var(--faint); font: 500 12px/1 var(--mono); transition: background 0.12s, color 0.12s; }
.lanes li.scan { background: rgba(22, 24, 29, 0.12); color: var(--ink-2); }
.lanes li.pick { background: var(--ember); color: #fff; font-weight: 700; }
.pool { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tile { display: grid; gap: 2px; padding: 8px 12px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); transition: opacity 0.35s, box-shadow 0.35s, transform 0.35s var(--ease); }
.tile .n { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.tile .e { min-height: 1.4em; font: 500 11.5px/1.4 var(--mono); color: var(--muted); }
.tile.ghost, .tile.slot, .tile.etc { background: transparent; box-shadow: none; outline: 1px dashed rgba(22, 24, 29, 0.18); outline-offset: -1px; }
.tile.ghost .n, .tile.etc .n { font-weight: 500; color: var(--muted); }
.tile.pick { box-shadow: inset 0 0 0 1.5px var(--ember), 0 8px 24px rgba(217, 68, 31, 0.12); transform: translateY(-2px); }
.tile.pick .e { color: var(--ember); }
.tile.dim { opacity: 0.42; }
.toolcall { margin-bottom: 12px; }
.toolcall pre { margin: 6px 0 0; padding: 12px 16px; border-radius: 10px; background: var(--ink); color: #ececf1; font-size: 12.5px; overflow: auto; }
/* One row height for the console, so the examples and the steps (and the open response) share their top
   and bottom edges. The request block takes up the difference, so nothing moves during a run. */
@media (min-width: 701px) {
  .console { --console-h: 900px; grid-template-rows: var(--console-h); }
  .ex-list { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
  .ex { flex: 1 1 0; min-height: 0; }
  .stage { display: flex; flex-direction: column; min-height: 0; }
  .step[data-step="request"] { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
  .step[data-step="request"] .request-content { flex: 1 1 0; min-height: 96px; }
  .work.open .ex-key { min-height: 1.5em; }
  .work.open .ranking { display: block; min-height: 1.5em; }
  .work.open .lane-note { display: block; min-height: 3em; }
}
@media (min-width: 701px) {
  .stage { padding: 4px 18px; }
  .pool { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { padding-left: 20px; }
  .step-head { flex-wrap: wrap; gap: 6px; }
  .step-head .pv { text-align: left; }
  .tile { padding: 8px; }
}
@media (min-width: 1101px) and (max-width: 1360px) {
  .console { --console-h: 1010px; gap: 16px; }
  .work { gap: 16px; }
  .response { padding: 20px; }
}
@media (max-width: 1100px) {
  .console { --console-h: 1080px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto var(--console-h); }
  .examples { grid-column: 1; grid-row: 1; }
  .work { grid-column: 1; grid-row: 2; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
  .ex-list { display: flex; flex: none; flex-direction: row; overflow-x: auto; gap: 8px; padding: 2px 2px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .ex-list::-webkit-scrollbar { display: none; }
  .ex { flex: 0 0 240px; min-height: 72px; scroll-snap-align: start; }
}
@media (max-width: 700px) {
  .choose > .wrap { padding-inline: 20px; }
  .console { grid-template-rows: auto auto; }
  .work { grid-template-columns: minmax(0, 1fr); }
  .stage { padding: 4px 18px; }
  .pool { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .response { min-height: 240px; max-height: 70svh; padding: 20px; }
  .response-empty { padding: 20px; }
}

/* ── How it works: a blueprint, vLLM SR inside one dashed boundary ── */
.arch { background-color: var(--paper-2); background-image: radial-gradient(rgba(22, 24, 29, 0.08) 1px, transparent 1.3px); background-size: 22px 22px; }
.home .section.arch { padding-top: clamp(48px, 5vw, 72px); }
.diagram { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 0.95fr) 56px minmax(0, 2.7fr) 56px minmax(0, 1.3fr); align-items: start; }
.diagram > .client, .diagram > .pool-box { margin-top: 46px; }
.diagram > .wire { z-index: 1; margin-top: 98px; }
.diagram > .wire.in { margin-right: -22px; }
.diagram > .wire.out { margin-left: -22px; }
.sr { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1.1fr); grid-template-rows: auto 52px auto; padding: 44px 20px 20px; border: 2px dashed rgba(217, 68, 31, 0.62); border-radius: 28px; background: rgba(255, 253, 249, 0.42); }
.sr > .front { grid-column: 1; grid-row: 1; }
.sr > .wire { grid-column: 2; grid-row: 1; }
.sr > .engine { grid-column: 3; grid-row: 1; }
.sr > .sr-note { grid-column: 1; grid-row: 2 / span 2; align-self: end; }
.sr > .vwire { grid-column: 3; grid-row: 2; }
.sr > .model { grid-column: 3; grid-row: 3; }
.sr-tag { position: absolute; top: -22px; left: 22px; display: flex; align-items: center; padding: 6px 14px; border-radius: 14px; background: var(--paper-2); }
.sr-tag img { display: block; height: 30px; width: auto; }
.sr-note { max-width: 24em; padding: 0 4px 6px; font: 500 12px/1.6 var(--mono); color: var(--ink-2); }
.box { position: relative; align-self: start; display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.box .px-ico { width: 24px; height: 24px; margin-bottom: 4px; }
.box h3 { font: 600 22px/1.15 var(--serif); letter-spacing: -0.005em; }
.box p, .box li { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.box code { font-size: 12px; }
.box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.box ul li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 8px 2px 0; border-radius: 1px; background: var(--ember); }
.box.engine { box-shadow: inset 0 0 0 1.5px rgba(217, 68, 31, 0.5), var(--shadow); }
.box.model { background: var(--paper-2); }
.model-hf { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.model-hf img { flex: none; width: 24px; height: 24px; object-fit: contain; }
.model-hf:hover span { text-decoration: underline; text-underline-offset: 4px; }
.chain { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.chain li { position: relative; padding: 8px 10px; border-radius: 8px; background: rgba(22, 24, 29, 0.05); color: var(--ink); font: 500 12.5px/1 var(--mono); }
.chain li + li::before { content: ""; position: absolute; left: 50%; top: -6px; width: 2px; height: 6px; margin-left: -1px; background: rgba(217, 68, 31, 0.5); }
.pool-box .tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tiles .tile.row { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; box-shadow: inset 0 0 0 1.5px var(--ember); }
.tiles .tile.row .e { min-height: 0; }
.tiles .tile.slot { min-height: 40px; display: grid; place-items: center; }
.tiles .tile.slot .px { width: 14px; height: 14px; opacity: 0.75; }
.tiles .tile.etc { grid-column: 1 / -1; text-align: center; }
.wire { align-self: start; position: relative; height: 2px; margin-top: 52px; background-image: radial-gradient(circle, rgba(22, 24, 29, 0.3) 1px, transparent 1.4px); background-size: 6px 2px; }
.wire::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left-color: rgba(22, 24, 29, 0.35); border-right: 0; }
.wire i, .vwire i { position: absolute; width: 8px; height: 8px; border-radius: 2px; background: var(--ember); box-shadow: 0 0 12px rgba(217, 68, 31, 0.55); }
.wire i { top: -3px; left: 0; animation: travel 2.4s var(--ease) infinite; }
.sr > .wire i { animation-delay: 0.8s; }
.diagram > .wire.out i { animation-delay: 1.6s; }
@keyframes travel { 0% { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
.vwire { position: relative; justify-self: center; width: 2px; background-image: radial-gradient(circle, rgba(22, 24, 29, 0.3) 1px, transparent 1.4px); background-size: 2px 6px; }
.vwire i { left: -3px; top: 0; animation: down 2.4s var(--ease) 1.2s infinite; }
.vwire i.up { left: auto; right: -12px; animation: up 2.4s var(--ease) 2.2s infinite; background: var(--ink); box-shadow: none; }
@keyframes down { 0% { top: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { top: calc(100% - 8px); opacity: 0; } }
@keyframes up { 0% { top: calc(100% - 8px); opacity: 0; } 15%, 85% { opacity: 1; } 100% { top: 0; opacity: 0; } }
.band { margin-top: 32px; padding: 14px 20px; border-radius: 12px; background: var(--ink); color: rgba(255, 255, 255, 0.82); font-size: 14px; text-align: center; }
.band b { color: #fff; }
@media (prefers-reduced-motion: reduce) { .wire i, .vwire i, .key-phrase::after, .scroll-cue span, .handoff i { display: none; } }
@media (max-width: 1000px) {
  .diagram { display: flex; flex-direction: column; align-items: stretch; }
  .diagram > .client, .diagram > .pool-box { margin-top: 0; }
  .sr { display: flex; flex-direction: column; padding: 40px 16px 16px; }
  .sr > .sr-note { order: 9; margin-top: 16px; }
  .box { align-self: stretch; }
  .wire, .vwire, .diagram > .wire { align-self: center; width: 2px; height: 40px; margin: 0; background-image: radial-gradient(circle, rgba(22, 24, 29, 0.3) 1px, transparent 1.4px); background-size: 2px 6px; }
  .wire::after { right: auto; left: -4px; top: auto; bottom: -3px; border: 5px solid transparent; border-top-color: rgba(22, 24, 29, 0.35); border-bottom: 0; }
  .wire i { left: -3px; top: 0; animation-name: down; }
  .vwire i.up { right: -12px; }
}
.facts { margin-top: 64px; padding-top: 40px; border-top: 1px solid rgba(22, 24, 29, 0.14); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fact { padding: 0 32px; }
.fact:first-child { padding-left: 0; }
.fact + .fact { border-left: 1px solid rgba(22, 24, 29, 0.14); }
.fact b { display: block; font: 500 clamp(30px, 3.4vw, 44px)/1.1 var(--serif); letter-spacing: -0.01em; color: var(--ink); }
.fact span { display: block; max-width: 22em; margin-top: 12px; font-size: 15px; color: var(--ink-2); }
@media (max-width: 860px) {
  .facts { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .fact, .fact:first-child { padding: 0; }
  .fact + .fact { border-left: 0; padding-top: 28px; border-top: 1px solid rgba(22, 24, 29, 0.14); }
}
.tiles .tile.row { display: grid; gap: 2px; }
@media (max-width: 600px) { .hero .range { height: 30%; } .hero-copy { padding-bottom: 30vh; } }
