/* LiteLLM careers.
   Taken from litellm.ai and the brand guidelines: a light canvas framed by
   hairline rails, dotted panels, Geist with Geist Mono for small labels,
   LiteLLM blue (#0117be) for the logo and primary actions, midnight indigo
   for the one dark band. Motion is quick out, soft landing, and only where it
   explains something: requests routing, code being typed, issues opening. */

@font-face { font-family: "Geist"; src: url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-Regular.woff2") format("woff2"), url("../fonts/Geist-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-Medium.woff2") format("woff2"), url("../fonts/Geist-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-mono/GeistMono-Regular.woff2") format("woff2"), url("../fonts/GeistMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --canvas: #f5f5f7;
  --paper: #ffffff;
  --ink: #0b0b12;
  --body: #3d4352;
  --muted: #6a7386;
  --faint: #a3a9b6;
  --line: rgba(10, 15, 50, .10);
  --line-strong: rgba(10, 15, 50, .18);
  --dot: rgba(10, 15, 60, .16);

  --blue: #0117be;          /* brand: logo and primary actions */
  --blue-ui: #1b3ee9;       /* interface accent on their site */
  --blue-tint: #eef0fe;
  --blue-line: rgba(1, 23, 190, .22);
  --navy: #0a0f32;          /* midnight indigo */
  --navy-line: rgba(255, 255, 255, .12);
  --green: #16a34a;

  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max: 1200px;
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.22, 1, .36, 1);     /* quick out, soft landing */
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.5; letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
h1, h2, h3 { font-weight: 500; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: #d6daff; }
:focus-visible { outline: 2px solid var(--blue-ui); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- Rails: the hairline frame from litellm.ai ---------- */
.rails { max-width: var(--max); margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--canvas); }
.section { padding: clamp(80px, 11vw, 144px) var(--pad) 0; position: relative; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(245, 245, 247, .78); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { max-width: var(--max); margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 24px; padding: 0 var(--pad); }
.nav__brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.nav__brand img { height: 20px; width: auto; }
.badge { font-family: var(--mono); font-size: 11px; color: var(--blue); background: var(--blue-tint); border: 1px solid var(--blue-line); padding: 2px 7px; border-radius: 4px; letter-spacing: 0; }
.nav__links { position: relative; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 10px; background: rgba(10, 15, 50, .04); }
.nav__links a { position: relative; z-index: 1; font-size: 14px; color: var(--muted); padding: 6px 12px; border-radius: 7px; transition: color .25s var(--ease); display: inline-flex; align-items: center; gap: 6px; }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
/* The pill slides to the active section, like the tab bar in their admin UI. */
.nav__pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 7px; background: var(--paper); box-shadow: 0 1px 2px rgba(10, 15, 50, .08), 0 0 0 1px var(--line); opacity: 0; transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s var(--ease); }
.nav__pill.is-on { opacity: 1; }

.count { font-family: var(--mono); font-size: 11px; color: var(--blue); background: var(--blue-tint); border-radius: 4px; padding: 0 5px; line-height: 18px; min-width: 18px; text-align: center; }
.count:empty { display: none; }
.count--light { color: #fff; background: rgba(255, 255, 255, .18); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 10px; font-size: 15px; font-weight: 500; white-space: nowrap;
  background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong), 0 1px 2px rgba(10, 15, 50, .06);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--line-strong), 0 6px 16px rgba(10, 15, 50, .08); }
.btn:active { transform: scale(.97); transition-duration: .12s; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 1px 2px rgba(1, 23, 190, .3); }
.btn--primary:hover { background: #0014a8; box-shadow: 0 8px 20px rgba(1, 23, 190, .24); }
.btn--small { height: 34px; padding: 0 14px; font-size: 14px; border-radius: 8px; }

.link { color: var(--blue); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.link:hover { background-size: 100% 1px; }

/* Scroll progress: a blue hairline under the nav, driven by scroll position. */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--blue); transform: scaleX(0); transform-origin: left; }
@supports (animation-timeline: scroll()) {
  .progress { animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* ---------- Type ---------- */
.label { font-family: var(--mono); font-size: 12px; color: var(--blue); letter-spacing: 0; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.label::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: currentColor; }
.label--dark { color: #8f9bff; }
.heading { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.05; letter-spacing: -.035em; max-width: 17ch; }
.heading--dark { color: #fff; }
.body { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: var(--body); max-width: 34em; margin-top: 24px; }
.body + .body { margin-top: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(860px, 100svh); padding: clamp(96px, 12vw, 150px) var(--pad) 0; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); overflow: hidden; background: var(--paper); }
.grid { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__content { position: relative; max-width: 880px; }
.hero__title { font-size: clamp(44px, 7.6vw, 104px); line-height: .98; letter-spacing: -.05em; margin: 26px 0 28px; }
.hero__title > span { display: block; }
.hero__l2 { color: var(--blue); }
.hero__lede { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; color: var(--body); max-width: 36em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Terminal chip: types the install command, then confirms. */
.term { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; letter-spacing: 0; color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 8px; padding: 7px 12px; box-shadow: 0 1px 2px rgba(10, 15, 50, .05); }
.term__prompt { color: var(--blue); }
.term__cmd { min-width: 1ch; }
.term__caret { width: 7px; height: 15px; background: var(--blue); margin-left: -6px; animation: caret 1s steps(1) infinite; }
.term__done { color: var(--green); font-size: 12px; opacity: 0; transform: translateX(-4px); transition: opacity .4s var(--ease), transform .4s var(--ease); display: inline-flex; align-items: center; gap: 6px; }
.term__done::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.term.is-done .term__done { opacity: 1; transform: none; }
.term.is-done .term__caret { animation: none; opacity: 0; }
.term--static { color: var(--body); }
@keyframes caret { 50% { opacity: 0; } }

.stats { position: relative; margin: auto calc(-1 * var(--pad)) 0; padding-top: 72px; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 22px var(--pad) 26px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat dt { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0; margin-bottom: 8px; }
.stat dd { font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }

/* ---------- Word reveal: each word rises out of a soft blur ---------- */
.js [data-words] .w { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(.3em); transition: opacity .7s var(--ease), filter .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--wi, 0) * 45ms + var(--wd, 0ms)); }
.js [data-words].is-in .w { opacity: 1; filter: none; transform: none; }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(10px); filter: blur(2px); transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
.js [data-reveal].is-in { filter: none; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 01 Build ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.route { position: relative; aspect-ratio: 520 / 340; width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 16px 16px; container-type: inline-size; }
.route__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.route__lines path { fill: none; stroke: var(--blue-line); stroke-width: 1.4; stroke-dasharray: 4 5; animation: flow 1.6s linear infinite; }
.js .route__lines path { stroke-dashoffset: 400; }
@keyframes flow { to { stroke-dashoffset: -18; } }
.route__node { position: absolute; top: calc(var(--y) / 340 * 100%); translate: 0 -50%; font-family: var(--mono); font-size: clamp(10px, 2.3cqi, 12.5px); letter-spacing: 0; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 7px; padding: 5px 9px; white-space: nowrap; box-shadow: 0 1px 2px rgba(10, 15, 50, .05); transition: border-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease); }
.route__node--in { left: 2%; width: 16%; text-align: center; color: var(--muted); }
.route__node--out { left: 81%; color: var(--ink); }
.route__node.is-hit { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.route__hub { position: absolute; left: 50%; top: 50%; width: 12.5%; aspect-ratio: 1; translate: -50% -50%; border-radius: 22%; background: var(--paper); box-shadow: 0 0 0 1px var(--blue-line), 0 10px 30px rgba(1, 23, 190, .14); display: grid; place-items: center; }
.route__hub img { width: 72%; height: auto; }
.route__hub::after { content: ""; position: absolute; inset: -10px; border-radius: 30%; border: 1px solid var(--blue-line); animation: ping 2.8s var(--ease) infinite; }
@keyframes ping { 0% { opacity: .9; transform: scale(.86); } 100% { opacity: 0; transform: scale(1.35); } }
/* Pulses ride the paths with offset-path. Coordinates are in the 520 x 340 box, so the layer is scaled to fit. */
.route__pulse { position: absolute; left: 0; top: 0; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px rgba(1, 23, 190, .14); offset-path: var(--path); offset-rotate: 0deg; animation: travel 3.6s var(--ease-in-out) infinite; animation-delay: var(--d); opacity: 0; }
/* The pulse layer is drawn in the SVG's 520 x 340 units and scaled by JS to the figure width. */
.route__layer { position: absolute; left: 0; top: 0; width: 520px; height: 340px; transform-origin: 0 0; transform: scale(var(--s, 1)); pointer-events: none; }
@keyframes travel { 0% { offset-distance: 0%; opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.js .route:not(.is-in) .route__pulse { animation-play-state: paused; }
.js .route.is-in .route__lines path { animation: draw 1.6s var(--ease) forwards, flow 1.6s linear 1.6s infinite; }
@keyframes draw { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }

.code { position: relative; margin-top: 16px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--navy); color: #e6e8ff; border-radius: 12px; padding: 16px 20px; font-family: var(--mono); font-size: 13.5px; line-height: 1.7; letter-spacing: 0; box-shadow: 0 10px 30px rgba(10, 15, 50, .12); }
.code code { font: inherit; flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; }
.code__dots { display: flex; gap: 6px; align-self: flex-start; padding-top: 8px; }
.code__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.tok-k { color: #8f9bff; }
.tok-s { color: #7ee2b0; }
[data-model] { display: inline-block; transition: color .3s var(--ease); }
[data-model].is-hit { color: #fff; }
.code__note { font-size: 12px; color: rgba(255, 255, 255, .45); white-space: nowrap; }

.logos { display: flex; align-items: center; gap: 28px; margin: clamp(56px, 7vw, 96px) calc(-1 * var(--pad)) 0; padding: 22px var(--pad); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.logos__label { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; letter-spacing: 0; }
.logos__track { display: flex; overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logos__row { display: flex; gap: 56px; padding-right: 56px; flex: none; animation: marquee 32s linear infinite; }
.logos__row span { font-size: 20px; letter-spacing: -.03em; color: var(--faint); font-weight: 500; transition: color .3s var(--ease); }
.logos__track:hover .logos__row { animation-play-state: paused; }
.logos__row span:hover { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Customers: the names light up one by one ---------- */
.customers { margin-top: clamp(80px, 10vw, 128px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 18px 18px; }
.customers__head { padding: clamp(48px, 6vw, 80px) var(--pad) clamp(28px, 4vw, 44px); }
.customers__title { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -.03em; max-width: 22ch; }
.customers__wall { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.customers__wall li { padding: clamp(22px, 3vw, 36px) var(--pad); font-size: clamp(20px, 2.4vw, 30px); font-weight: 500; letter-spacing: -.035em; color: var(--ink); border-bottom: 1px solid var(--line); background: var(--paper); transition: color .7s var(--ease), background .4s var(--ease); transition-delay: calc(var(--n, 0) * 90ms); }
.customers__wall li:not(:nth-child(5n + 1)) { border-left: 1px solid var(--line); }
.js .customers__wall:not(.is-in) li { color: rgba(10, 15, 50, .14); }
.customers__wall li:hover { color: var(--blue); background: var(--blue-tint); transition-delay: 0ms; }
.customers__foot { padding: 22px var(--pad) 26px; color: var(--muted); font-size: 15px; max-width: 60em; }

/* ---------- Stories ---------- */
.stories { margin-top: clamp(48px, 6vw, 72px); }
.stories__label { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 16px; letter-spacing: 0; }
.stories__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.story { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 26px 28px 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 26px; overflow: hidden; transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.story::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.story:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(10, 15, 50, .07); }
.story:hover::before { transform: scaleX(1); }
.story p { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.3; letter-spacing: -.025em; }
.story footer { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0; }

/* ---------- 03 Open source: community panel ---------- */
.split--top { align-items: start; }
.community { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.community__stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.community__stats div { padding: 18px 20px; }
.community__stats div + div { border-left: 1px solid var(--line); }
.community__stats dt { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0; margin-bottom: 6px; }
.community__stats dd { font-size: 26px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.avatars { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 8px; padding: 20px; min-height: 120px; }
.avatars:empty { display: none; }
.avatars a { display: block; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--canvas); box-shadow: 0 0 0 1px var(--line); opacity: 0; transform: scale(.85); transition: opacity .5s var(--ease), transform .5s var(--ease), box-shadow .2s var(--ease); transition-delay: calc(var(--n, 0) * 18ms); }
.avatars.is-in a { opacity: 1; transform: none; }
.avatars img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .3s var(--ease); }
.avatars a:hover { box-shadow: 0 0 0 2px var(--blue); transform: scale(1.08); transition-delay: 0ms; }
.avatars a:hover img { filter: none; }
.community__foot { padding: 14px 20px 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* ---------- 04 Developers ---------- */
.channels { margin: clamp(40px, 5vw, 56px) calc(-1 * var(--pad)) 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.channel { padding: 22px var(--pad) 26px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--body); line-height: 1.5; transition: background .3s var(--ease); }
.channel + .channel { border-left: 1px solid var(--line); }
.channel:hover { background: var(--paper); }
.channel__k { font-family: var(--mono); font-size: 12px; color: var(--blue); letter-spacing: 0; }

/* ---------- 02 Work ---------- */
.work .heading { max-width: 20ch; }
.principles { margin: clamp(48px, 6vw, 72px) calc(-1 * var(--pad)) 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.principle { position: relative; padding: 28px var(--pad) 36px; border-bottom: 1px solid var(--line); background: transparent; transition: background .4s var(--ease); }
.principle:not(:nth-child(3n + 1)) { border-left: 1px solid var(--line); }
.principle::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.principle:hover { background: var(--paper); }
.principle:hover::before { transform: scaleX(1); }
.principle__n { font-family: var(--mono); font-size: 12px; color: var(--faint); display: block; margin-bottom: 36px; transition: color .3s var(--ease); }
.principle:hover .principle__n { color: var(--blue); }
.principle h3 { font-size: 20px; letter-spacing: -.025em; line-height: 1.25; margin-bottom: 10px; }
.principle p { color: var(--body); font-size: 15px; line-height: 1.6; }

.early { margin-top: clamp(56px, 7vw, 88px); }
.early__label { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 16px; letter-spacing: 0; }
.early__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.early__item { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 28px 28px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.early__item p { font-size: clamp(20px, 2vw, 26px); line-height: 1.25; letter-spacing: -.03em; }
.early__item footer { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0; }

/* ---------- 03 Dark band ---------- */
.dark { margin-top: clamp(80px, 11vw, 144px); padding-bottom: clamp(72px, 9vw, 112px); background: var(--navy); color: #fff; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 18px 18px; }
.issues { margin-top: 44px; border-top: 1px solid var(--navy-line); }
.issue { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--navy-line); }
.issue__state { font-family: var(--mono); font-size: 12px; color: #4ade80; display: inline-flex; align-items: center; gap: 8px; height: 26px; letter-spacing: 0; }
.issue__state i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid currentColor; position: relative; }
.issue__state i::after { content: ""; position: absolute; inset: 2.5px; border-radius: 50%; background: currentColor; }
.issue h3 { font-size: clamp(19px, 1.9vw, 24px); letter-spacing: -.025em; line-height: 1.3; }
.issue__n { color: rgba(255, 255, 255, .4); font-family: var(--mono); font-size: .75em; letter-spacing: 0; margin-right: 6px; }
.issue p { color: rgba(255, 255, 255, .62); margin-top: 8px; max-width: 46em; line-height: 1.6; font-size: 15.5px; }

/* ---------- 04 Fit ---------- */
.fit__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.fit__col { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 26px 28px 12px; }
.fit__col--muted { background: transparent; }
.fit__col h3 { font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--muted); letter-spacing: 0; margin-bottom: 8px; }
.checks li { position: relative; padding: 14px 0 14px 30px; border-top: 1px solid var(--line); font-size: 16.5px; line-height: 1.45; }
.checks li:first-child { border-top: 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: 18px; width: 16px; height: 16px; border-radius: 5px; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.checks--x li { color: var(--body); }
.checks--x li::before { background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 5.5l5 5M10.5 5.5l-5 5' fill='none' stroke='%236a7386' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat; box-shadow: inset 0 0 0 1px var(--line-strong); }

/* ---------- 05 Roles ---------- */
.roles__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: 32px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { font-size: 14px; color: var(--muted); padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); background: transparent; display: inline-flex; align-items: center; gap: 8px; transition: color .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease); }
.filter:hover { color: var(--ink); border-color: var(--line-strong); }
.filter[aria-selected="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }
.filter span { font-family: var(--mono); font-size: 11px; opacity: .6; }

.roles__list { margin: 0 calc(-1 * var(--pad)); border-top: 1px solid var(--line); }
.role { border-bottom: 1px solid var(--line); view-transition-class: role; }
.role__group { font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 28px var(--pad) 10px; letter-spacing: 0; border-bottom: 1px solid var(--line); }
.role__row { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr) 28px; gap: 20px; align-items: center; padding: 20px var(--pad); overflow: hidden; isolation: isolate; }
.role__row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease); }
.role__row::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--blue); transform: scaleY(0); transition: transform .45s var(--ease); }
.role__row:hover::before, .role__row:focus-visible::before { transform: scaleX(1); }
.role__row:hover::after, .role__row:focus-visible::after { transform: scaleY(1); }
.role__title { font-size: clamp(18px, 1.7vw, 21px); letter-spacing: -.025em; font-weight: 500; transition: transform .5s var(--ease), color .3s var(--ease); }
.role__row:hover .role__title { transform: translateX(6px); color: var(--blue); }
.role__where, .role__pay { font-size: 14.5px; color: var(--muted); }
.role__pay { font-family: var(--mono); font-size: 13px; letter-spacing: 0; color: var(--body); }
.role__go { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .4s var(--ease); justify-self: end; font-size: 14px; }
.role__row:hover .role__go { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateX(2px); }
.role--static .role__row { grid-template-columns: 1fr 28px; }
.roles__empty { padding: 28px var(--pad); color: var(--muted); }
.roles__foot { margin-top: 20px; font-size: 14px; color: var(--muted); }

/* Skeleton rows while Ashby answers. */
.role--loading .role__row > span { height: 14px; border-radius: 4px; background: linear-gradient(90deg, rgba(10, 15, 50, .06), rgba(10, 15, 50, .1), rgba(10, 15, 50, .06)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* View Transitions: rows glide to their new place when a filter changes. */
::view-transition-group(*.role) { animation-duration: .45s; animation-timing-function: var(--ease); }
::view-transition-old(*.role) { animation: .2s var(--ease) both vt-out; }
::view-transition-new(*.role) { animation: .35s var(--ease) .1s both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- 06 Hiring ---------- */
.steps { position: relative; margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-strong); }
.steps::after { background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 2.2s var(--ease); }
.steps.is-in::after { transform: scaleX(1); }
.step { position: relative; padding-top: 30px; opacity: .3; transition: opacity .8s var(--ease); }
.step::before { content: ""; position: absolute; top: -4px; left: 0; width: 9px; height: 9px; border-radius: 3px; background: var(--canvas); border: 1px solid var(--line-strong); transition: background .4s var(--ease), border-color .4s var(--ease); }
.steps.is-in .step { opacity: 1; }
.steps.is-in .step::before { background: var(--blue); border-color: var(--blue); }
.steps.is-in .step:nth-child(2), .steps.is-in .step:nth-child(2)::before { transition-delay: .5s; }
.steps.is-in .step:nth-child(3), .steps.is-in .step:nth-child(3)::before { transition-delay: 1s; }
.steps.is-in .step:nth-child(4), .steps.is-in .step:nth-child(4)::before { transition-delay: 1.5s; }
.step__n { font-family: var(--mono); font-size: 12px; color: var(--blue); display: block; margin-bottom: 20px; letter-spacing: 0; }
.step h3 { font-size: 20px; letter-spacing: -.025em; margin-bottom: 10px; }
.step p { color: var(--body); font-size: 15px; line-height: 1.6; }

/* ---------- 07 Basics ---------- */
.faq { margin: clamp(44px, 5vw, 64px) calc(-1 * var(--pad)) 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.faq__item { padding: 24px var(--pad) 32px; border-bottom: 1px solid var(--line); }
.faq__item:not(:nth-child(3n + 1)) { border-left: 1px solid var(--line); }
.faq dt { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 12px; letter-spacing: 0; }
.faq dd { font-size: 16.5px; line-height: 1.5; letter-spacing: -.015em; }

/* ---------- Close ---------- */
.close { position: relative; margin-top: clamp(80px, 11vw, 144px); border-top: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.close__content { position: relative; padding: clamp(88px, 12vw, 160px) var(--pad); display: flex; flex-direction: column; align-items: flex-start; }
.backers { margin-top: 18px; font-size: 15px; color: var(--muted); }
.backers strong { color: var(--ink); font-weight: 500; }
.close__pr { margin-top: 28px; font-size: 15px; color: var(--muted); }
.close__title { font-size: clamp(48px, 8vw, 112px); line-height: .98; letter-spacing: -.05em; color: var(--blue); margin-top: 24px; }

/* ---------- Footer (white logo on navy, per the guidelines) ---------- */
.foot { background: var(--navy); color: rgba(255, 255, 255, .6); }
.foot__inner { max-width: var(--max); margin: 0 auto; padding: 36px var(--pad); display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.foot__inner img { height: 22px; width: auto; margin-right: auto; }
.foot__links { display: flex; gap: 22px; font-size: 14px; }
.foot__links a:hover { color: #fff; }
.foot__meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav__links { display: none; }
  .split { grid-template-columns: 1fr; }
  .principles, .faq { grid-template-columns: 1fr 1fr; }
  .principle:not(:nth-child(3n + 1)), .faq__item:not(:nth-child(3n + 1)) { border-left: 0; }
  .principle:nth-child(2n), .faq__item:nth-child(2n) { border-left: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 28px; }
  .steps::before, .steps::after { display: none; }
  .step { border-top: 1px solid var(--line-strong); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
}
@media (max-width: 1000px) {
  .customers__wall { grid-template-columns: repeat(2, 1fr); }
  .customers__wall li:not(:nth-child(5n + 1)) { border-left: 0; }
  .customers__wall li:nth-child(2n) { border-left: 1px solid var(--line); }
  .channels { grid-template-columns: 1fr 1fr; }
  .channel:nth-child(3) { border-left: 0; }
  .channel:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 680px) {
  .nav__inner { height: 56px; }
  .stories__grid, .channels { grid-template-columns: 1fr; }
  .channel + .channel { border-left: 0; border-top: 1px solid var(--line); }
  .principles, .faq, .early__grid, .fit__cols { grid-template-columns: 1fr; }
  .principle:nth-child(2n), .faq__item:nth-child(2n) { border-left: 0; }
  .role__row { grid-template-columns: minmax(0, 1fr) 28px; gap: 4px 12px; }
  .role__title { grid-column: 1; }
  .role__where { grid-column: 1; grid-row: 2; }
  .role__pay { grid-column: 1; grid-row: 3; }
  .role__go { grid-column: 2; grid-row: 1 / span 3; }
  .issue { grid-template-columns: 1fr; gap: 8px; }
  .steps { grid-template-columns: 1fr; }
  .logos { flex-direction: column; align-items: flex-start; gap: 14px; }
  .logos__track { width: 100%; }
}

/* ---------- Reduced motion: everything is simply there ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .js [data-reveal], .js [data-words] .w { opacity: 1 !important; transform: none !important; filter: none !important; }
  .route__pulse, .route__hub::after { display: none; }
  .js .route__lines path { stroke-dashoffset: 0; }
  .logos__row { animation: none; }
  .step { opacity: 1; }
  .js .customers__wall li { color: var(--ink) !important; }
  .avatars a { opacity: 1; transform: none; }
}

/* =========================================================================
   Motion pass. GSAP + ScrollTrigger + Lenis (assets/js/motion.js) drive the
   set pieces below. Without them, or with reduced motion, every element here
   is simply visible in place.
   ========================================================================= */

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Floating nav: once you leave the hero it becomes a glass pill. */
.nav { transition: background .4s var(--ease), border-color .4s var(--ease); }
.nav__inner { transition: max-width .6s var(--ease), margin .6s var(--ease), height .6s var(--ease), border-radius .6s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease), padding .6s var(--ease); }
.nav.is-float { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav.is-float .nav__inner { max-width: 1000px; height: 56px; margin-top: 10px; padding: 0 10px 0 20px; border-radius: 14px; background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 0 0 1px var(--line), 0 10px 30px rgba(10, 15, 50, .08); }
.nav.is-float .progress { left: 50%; right: auto; width: min(980px, 92vw); transform-origin: left; translate: -50% 0; bottom: 0; }
.nav { position: fixed; left: 0; right: 0; }
.rails { padding-top: 64px; }

/* Provider logos inside the headline */
.heading--chips { max-width: 20ch; }
.chip { display: inline-grid; place-items: center; width: .95em; height: .95em; margin: 0 .08em 0 .16em; vertical-align: -.1em; border-radius: .22em; background: var(--paper); box-shadow: 0 0 0 1px var(--line-strong), 0 6px 18px rgba(10, 15, 50, .08); }
.chip img { width: 58%; height: 58%; object-fit: contain; }
.chip--brand { background: var(--blue-tint); box-shadow: 0 0 0 1px var(--blue-line), 0 6px 18px rgba(1, 23, 190, .16); }
.chip + .chip { margin-left: .06em; }

/* Customer logos */
.customers__wall li.logo { display: grid; place-items: center; min-height: clamp(96px, 11vw, 140px); padding: 24px; }
.logo img { height: var(--h, 30px); width: auto; max-width: 78%; filter: grayscale(1) contrast(1.1); opacity: .62; transition: filter .45s var(--ease), opacity .45s var(--ease), scale .45s var(--ease); }
.logo:hover img { filter: none; opacity: 1; scale: 1.06; }
.js .customers__wall:not(.is-in) li.logo { color: inherit; }

/* Agency lead: larger, words light up as you scroll. */
.body--lead { font-size: clamp(20px, 2vw, 28px); line-height: 1.4; letter-spacing: -.02em; color: var(--ink); max-width: 32em; }

/* Stacked story cards */
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack .story { position: sticky; top: calc(96px + var(--k, 0) * 14px); min-height: 220px; padding: clamp(28px, 4vw, 48px); transform-origin: 50% 0; box-shadow: 0 1px 0 var(--line), 0 18px 40px rgba(10, 15, 50, .06); }
.stack .story p { font-size: clamp(22px, 2.6vw, 34px); line-height: 1.22; max-width: 26em; }
.stack .story:nth-child(1) { --k: 0; }
.stack .story:nth-child(2) { --k: 1; }
.stack .story:nth-child(3) { --k: 2; }
.stack .story:nth-child(4) { --k: 3; }
.stack .story::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--canvas); opacity: var(--dim, 0); pointer-events: none; }

/* Commit heatmap, live from GitHub */
.heat { margin-top: clamp(56px, 7vw, 88px); padding: 0 var(--pad); }
.heat__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.heat__head .label { margin: 0; }
.heat__total { font-size: 15px; color: var(--muted); }
.heat__total span { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 500; }
.heat__grid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 3px; width: 100%; }
.heat__grid i { display: block; aspect-ratio: 1; border-radius: 2px; background: rgba(10, 15, 50, .06); }
.heat__grid i[data-l="1"] { background: #c7cdfb; }
.heat__grid i[data-l="2"] { background: #8d9af5; }
.heat__grid i[data-l="3"] { background: #4459e6; }
.heat__grid i[data-l="4"] { background: var(--blue); }

/* Dark band expands to full bleed. */
.dark { }

/* Split heading halves */
.heading--split { max-width: none; }
.heading--split .half { display: inline-block; }

/* Close line */
.close__title { transform-origin: 0 60%; will-change: transform; }

@media (max-width: 860px) {
  .nav.is-float .nav__inner { margin: 8px 10px 0; }
  .stack .story { position: relative; top: auto; }
  .heat__grid { gap: 2px; }
  .heat__grid i:nth-child(-n + 182) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .stack .story { position: relative; top: auto; }
}

/* While motion.js runs, the scroll timeline owns these transforms. */
.motion .principle[data-reveal], .motion .issue[data-reveal], .motion .channel[data-reveal] { opacity: 1; filter: none; transition: background .3s var(--ease); }
.hero-settled .hero [data-reveal] { transition: none; }
.stack .story { transition: box-shadow .3s var(--ease); }
.stack .story:hover { transform: none; }
.motion [data-zoom], .motion [data-split2] .half, .motion .route__node { transition-property: border-color, color, box-shadow; }

/* Pinned hiring steps */
.steps--gsap::after { display: none; }
.steps__bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; margin-top: -.5px; background: var(--blue); transform-origin: left; transform: scaleX(0); }
.steps.steps--gsap .step { transition: none; }
.steps.steps--gsap .step::before { background: var(--canvas); border-color: var(--line-strong); transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); transition-delay: 0s; }
.steps.steps--gsap .step.on::before { background: var(--blue); border-color: var(--blue); transform: scale(1.4); }

/* Reading rail: fills blue down the left hairline as you scroll. */
.rails { position: relative; }
.rail-fill { position: absolute; left: -1px; top: 0; bottom: 0; width: 1px; background: var(--blue); transform-origin: top; transform: scaleY(0); z-index: 5; pointer-events: none; }

/* Hero curtain: the next section slides up over the pinned hero. */
.hero::after { content: ""; position: absolute; inset: 0; background: var(--canvas); opacity: var(--shade, 0); pointer-events: none; z-index: 3; }
.motion .build { position: relative; z-index: 2; background: var(--canvas); border-radius: 28px 28px 0 0; border-top: 1px solid var(--line); box-shadow: 0 -30px 60px rgba(10, 15, 50, .07); }

/* Masked headings: the scroll timeline replaces the word blur. */
.motion .masked .w { opacity: 1 !important; filter: none !important; transform: none !important; transition: none !important; }

/* Colour wave across the customer wall */
.logo.pop img { filter: none; opacity: 1; scale: 1.08; }

/* Navy takeover: body and rails follow --canvas, which motion.js scrubs. */
body, .rails { transition: none; }

.logo__in { display: inline-flex; align-items: center; justify-content: center; }

/* Sections after the pinned hero sit above it, on an opaque canvas. */
.motion main > section:not(.hero) { position: relative; z-index: 2; }
.motion main > .section:not(.dark), .motion main > .heat { background-color: var(--canvas); }
.motion main > .heat { padding-top: clamp(56px, 7vw, 88px); margin-top: 0; }
/* Flying elements never widen the page. clip, unlike hidden, keeps sticky working. */
html { overflow-x: clip; }
.motion main > section, .motion main > .heat { overflow-x: clip; }

/* Plain labels: no eyebrows, no mono outside real code. */
.label { display: none; }
.badge, .stat dt, .community__stats dt, .faq dt, .fit__col h3, .stories__label, .role__group,
.step__n, .channel__k, .issue__state, .story footer, .early__item footer, .early__label, .logos__label,
.route__node, .filter span, .count, .foot__meta {
  font-family: var(--sans); letter-spacing: -.01em; text-transform: none;
}
.stat dt, .community__stats dt, .faq dt { font-size: 13px; }
.fit__col h3 { font-size: 15px; font-weight: 500; color: var(--ink); }
.stories__label { font-size: 15px; color: var(--muted); }
.role__group { font-size: 14px; font-weight: 500; color: var(--ink); }
.step__n { font-size: 14px; font-weight: 500; }
.channel__k { font-size: 15px; font-weight: 500; color: var(--ink); }
.issue__state { font-size: 13px; }
.story footer { font-size: 14px; }
.badge { font-size: 12px; font-weight: 500; }
.route__node { font-size: clamp(11px, 2.4cqi, 13px); }
.heat__head { justify-content: flex-start; }
.heat__total { font-size: 16px; }
/* Section openings keep their air without the eyebrow. */
.section > .heading:first-child, .section > .split:first-child, .section .dark__inner > .heading:first-child { margin-top: 0; }

/* ---------- Contributors, alive ----------
   Every face slowly morphs between a circle and softer squircle shapes, on
   its own clock. At random, one pops into colour, one turns brand blue, one
   snaps square and tilts; every few seconds two faces trade places. */
@keyframes morph {
  0%, 100% { border-radius: 50%; }
  25% { border-radius: 32% 50% 50% 32%; }
  50% { border-radius: 28%; }
  75% { border-radius: 50% 28% 50% 28%; }
}
.avatars a { animation: morph var(--dur, 7s) ease-in-out var(--delay, 0s) infinite; }
.avatars img { transition: filter .5s var(--ease); }
.avatars.is-in a.pop { animation: none; border-radius: 30%; transform: scale(1.2) rotate(-8deg); box-shadow: 0 0 0 2px var(--blue), 0 8px 20px rgba(1, 23, 190, .25); z-index: 2; position: relative; }
.avatars a.pop img { filter: none; }
.avatars a.tint img { filter: grayscale(1) sepia(1) hue-rotate(190deg) saturate(5) brightness(.9); }
.avatars.is-in a.square { animation: none; border-radius: 6px; transform: rotate(45deg) scale(.86); }
.avatars.is-in a.square img { transform: rotate(-45deg) scale(1.4); filter: none; }
.avatars img { transition: filter .5s var(--ease), transform .5s var(--ease); }
.avatars a { transition: opacity .5s var(--ease), transform .55s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s var(--ease), border-radius .5s var(--ease); }
.avatars li { position: relative; }
@media (prefers-reduced-motion: reduce) { .avatars a { animation: none; } }

/* Performance: no blur on scroll reveals, no frosted glass behind the stats,
   and only every other contributor face morphs. */
.js [data-reveal] { filter: none !important; }
.stat { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, .92); }
.avatars li:nth-child(2n) a { animation: none; }
.close { will-change: transform; }
.motion main > .section:not(.dark), .motion main > .heat, .motion .rails, .motion body { transition: none; }

/* ---------- Round five ---------- */
/* Story cards: four side by side. */
.stories__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stories__grid .story { position: relative; top: auto; min-height: 0; padding: 24px 22px 20px; gap: 22px; transform: none; box-shadow: 0 1px 2px rgba(10, 15, 50, .04); }
.stories__grid .story p { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.3; letter-spacing: -.02em; }
.stories__grid .story:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(10, 15, 50, .08); }
@media (max-width: 1000px) { .stories__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .stories__grid { grid-template-columns: 1fr; } }

/* Community links: icons only. */
.community__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.community__foot p { margin: 0; }
.community__links { display: flex; gap: 6px; flex: none; }
.icon-link { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); box-shadow: 0 0 0 1px var(--line); transition: color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease); }
.icon-link i { width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.icon-link:hover { color: #fff; background: var(--blue); transform: translateY(-1px); }

/* Contributor faces: always round. Photos cycle through the pool like a
   system at work; the slot that just changed gets a brief blue ring. */
.avatars a, .avatars li:nth-child(2n) a { animation: none !important; border-radius: 50% !important; }
.avatars img { transition: opacity .35s var(--ease), filter .3s var(--ease); transform: none !important; }
.avatars a.fade img { opacity: 0; }
.avatars a.tick { box-shadow: 0 0 0 2px var(--blue), 0 0 0 6px rgba(1, 23, 190, .12); }
.i-github { --icon: url(../icons/github.svg); }
.i-discord { --icon: url(../icons/discord.svg); }
.i-slack { --icon: url(../icons/slack.svg); }

/* ---------- Round six ---------- */
/* Customer logos: in full colour, still. */
.logo img, .js .logo img { filter: none; opacity: 1; }
.logo:hover img { scale: 1.05; }

/* How we work: one plain line under the headline. */
.body--lead { font-size: clamp(19px, 1.7vw, 23px); color: var(--body); max-width: 34em; }

/* One card that opens the open problems page. */
.hard { padding-bottom: 0; }
.hard__card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 6px 24px; align-items: center; padding: clamp(28px, 4vw, 44px); border-radius: 16px; background: var(--navy); color: #fff; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 18px 18px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.hard__card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(10, 15, 50, .22); }
.hard__k { font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; letter-spacing: -.03em; }
.hard__t { grid-column: 1; color: rgba(255, 255, 255, .66); font-size: 16px; line-height: 1.5; max-width: 44em; }
.hard__go { grid-column: 2; grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); font-size: 18px; transition: transform .25s var(--ease), background .25s var(--ease); }
.hard__card:hover .hard__go { transform: translateX(4px); background: var(--blue); }

/* The open problems page */
.subpage .nav__inner { gap: 12px; }
.subpage .dark { margin-top: 0; padding-top: clamp(64px, 8vw, 104px); }
.subpage__close { padding-bottom: clamp(80px, 10vw, 128px); }
.subpage__close .heading { margin-bottom: 8px; }
/* Hero fits the first screen, stats row included. */
.hero { min-height: calc(100svh - 64px); }
.hero { padding-top: clamp(64px, 8vw, 104px); }
.hero__title { margin-top: 0; }
.stats { padding-top: 36px; }

/* ---------- Round seven ---------- */
/* White everywhere. The hairline rails still frame the content. */
:root { --canvas: #ffffff; }
body, .rails { background: #ffffff; }
.hero { background: #ffffff; overflow-x: visible; overflow-y: clip; }
.hero canvas.grid { left: calc(50% - 50vw); right: auto; width: 100vw; }

/* Header: the litellm.ai bar. Logo and badge on the left, one button on the right. */
.nav, .nav.is-scrolled, .nav.is-float { background: rgba(246, 246, 246, .9); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(10, 15, 50, .08); }
.nav__inner, .nav.is-float .nav__inner { max-width: var(--max); height: 64px; margin: 0 auto; padding: 0 var(--pad); border-radius: 0; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav.is-float .progress { left: 0; right: 0; width: auto; translate: none; bottom: -1px; }
.nav__cta { height: 42px; padding: 0 18px; border-radius: 10px; font-size: 15px; background: linear-gradient(180deg, #1f33d6, #0117be); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(1, 23, 190, .35), 0 6px 16px rgba(1, 23, 190, .18); }
.nav__cta:hover { background: linear-gradient(180deg, #2a3ee0, #0014a8); }
.nav__links, .nav__pill { display: none !important; }

/* Headline logos: no tiles, just the marks inline with the words. */
.chip, .chip--brand { width: auto; height: .78em; margin: 0 .1em 0 .18em; vertical-align: -.06em; border-radius: 0; background: none; box-shadow: none; display: inline-flex; }
.chip img { width: auto; height: 100%; }
.chip + .chip { margin-left: .14em; }

/* Contributor faces: photos crossfade, nothing else. */
.avatars a { position: relative; overflow: hidden; }
.avatars a img { position: absolute; inset: 0; transition: opacity .6s var(--ease), filter .3s var(--ease); }
.avatars a img.in { opacity: 0; }
.avatars a.tick, .avatars a.fade { box-shadow: 0 0 0 1px var(--line); }
.avatars a.fade img { opacity: 1; }

/* ---------- Round eight ---------- */
/* No boxes behind small things: counts, arrows, icons. */
.count, .count--light { background: none; padding: 0; min-width: 0; border-radius: 0; line-height: inherit; font-size: .9em; font-weight: 500; }
.count { color: var(--blue); }
.count--light { color: rgba(255, 255, 255, .75); }
.role__go, .role__row:hover .role__go { width: auto; height: auto; border: 0; border-radius: 0; background: none; color: var(--muted); font-size: 18px; }
.role__row:hover .role__go { color: var(--blue); transform: translateX(4px); }
.icon-link, .icon-link:hover { width: 28px; height: 28px; border-radius: 0; box-shadow: none; background: none; }
.icon-link:hover { color: var(--blue); }
.icon-link i { width: 18px; height: 18px; }
.community__foot .link { font-size: 14px; }
.hard__go, .hard__card:hover .hard__go { width: auto; height: auto; border-radius: 0; background: none; font-size: 22px; }

/* Four straight answers, two by two. */
.faq--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.faq--four .faq__item:not(:nth-child(3n + 1)) { border-left: 0; }
.faq--four .faq__item:nth-child(2n) { border-left: 1px solid var(--line); }
@media (max-width: 680px) { .faq--four { grid-template-columns: 1fr; } .faq--four .faq__item:nth-child(2n) { border-left: 0; } }

/* A little less air between the community panel and the heatmap. */
.heat, .motion main > .heat { margin-top: 0; padding-top: clamp(36px, 4.5vw, 60px); }

/* ---------- Round nine ---------- */
/* How we work: plain cards with the key facts. */
.work .heading { margin-bottom: 0; }
.principle h3 { font-size: 19px; }
.principle p { font-size: 15.5px; }
.principle { padding-top: 26px; padding-bottom: 30px; }

/* ---------- Round ten: one button system ----------
   Primary: flat LiteLLM blue. Two sizes only: default (42px) and small (34px).
   No numbers, badges or boxes inside buttons. The header uses the small size. */
.btn--primary, .nav__cta { background: var(--blue); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 1px 2px rgba(1, 23, 190, .3); }
.btn--primary:hover, .nav__cta:hover { background: #0014a8; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 6px 16px rgba(1, 23, 190, .22); }
.nav__cta { height: 34px; padding: 0 14px; font-size: 14px; border-radius: 8px; }

/* ---------- Round eleven ---------- */
/* Practical answers: plain boxes, sentence only. */
.faq--plain { list-style: none; margin-top: 0; }
.faq--plain .faq__item { font-size: 17px; line-height: 1.5; letter-spacing: -.015em; color: var(--ink); padding-top: 28px; padding-bottom: 30px; }
.basics { padding-top: clamp(56px, 7vw, 96px); }

/* ---------- Round twelve ---------- */
/* Numbers sit in their own row under the hero and scroll with the page. */
.stats-row { position: relative; z-index: 2; background: #fff; border-bottom: 1px solid var(--line); }
.stats-row .stats { margin: 0; padding: 0; }
.stats-row .stat { background: #fff; border-top: 0; }
.hero { min-height: calc(100svh - 64px - 132px); border-bottom: 1px solid var(--line); padding-bottom: clamp(48px, 6vw, 80px); }
/* Faster photo swaps on the contributor wall. */
.avatars a img { transition: opacity .3s var(--ease), filter .3s var(--ease); }

/* ---------- Round thirteen ---------- */
/* Contributor faces are there when you arrive. Only the photos inside change. */
.avatars a, .js .avatars a, .avatars.is-in a { opacity: 1; transform: none; transition: box-shadow .2s var(--ease), transform .2s var(--ease); transition-delay: 0ms; }
.avatars a:hover { transform: scale(1.06); }

/* ---------- Round fourteen ---------- */
/* Sections slide over the hero on white, with a hairline and no shadow. */
.motion .build { border-radius: 0; box-shadow: none; }
.stats-row .stat { background: #fff; }

/* ---------- Round fifteen ---------- */
/* The hero scrolls normally: no curtain, no shade. */
.hero::after { content: none; }

/* ---------- Round seventeen ---------- */
/* How we work: the team's faces, then plain sentences. No card titles. */
.team { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 20px 12px; }
.person { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.person img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); background: var(--paper); }
.person__name { margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--ink); }
.person__role { margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.ways { list-style: none; margin: clamp(40px, 5vw, 56px) calc(-1 * var(--pad)) 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.ways li { padding: 22px var(--pad); border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.55; color: var(--ink); }
.ways li:nth-child(2n) { border-left: 1px solid var(--line); }
.ways li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 1000px) { .team { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .team { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 8px; }
  .person img { width: 56px; height: 56px; }
  .ways { grid-template-columns: 1fr; }
  .ways li:nth-child(2n) { border-left: 0; }
  .ways li { font-size: 16px; padding: 18px var(--pad); }
}

/* ---------- Round eighteen ---------- */
/* Team: larger faces on a slow, constant strip across the section. Two copies of
   the list slide left together, so the loop has no seam. Pauses on hover. */
.team { display: flex; overflow: hidden; grid-template-columns: none; gap: 0; margin: clamp(36px, 5vw, 56px) calc(-1 * var(--pad)) 0; padding: 4px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.team__track { list-style: none; margin: 0; padding: 0 28px 0 0; display: flex; gap: 28px; flex: none; animation: team-slide 55s linear infinite; will-change: transform; }
.team:hover .team__track { animation-play-state: paused; }
@keyframes team-slide { to { transform: translateX(-100%); } }
.team .person { width: 120px; flex: none; }
.team .person img { width: 96px; height: 96px; }
.person__name { font-size: 15px; margin-top: 12px; }
.person__role { font-size: 13px; }
@media (max-width: 640px) {
  .team__track { gap: 20px; padding-right: 20px; animation-duration: 45s; }
  .team .person { width: 96px; }
  .team .person img { width: 80px; height: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .team { -webkit-mask-image: none; mask-image: none; }
  .team__track { animation: none; flex-wrap: wrap; flex: 1; justify-content: center; padding: 0; row-gap: 20px; }
  .team__track[aria-hidden] { display: none; }
}

/* ---------- Round nineteen ---------- */
/* A little faster (about 45px a second). Names open LinkedIn. */
.team__track { animation-duration: 43s; }
a.person__name { color: var(--ink); text-decoration: none; transition: color .2s var(--ease); }
a.person__name:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (max-width: 640px) { .team__track { animation-duration: 34s; } }

/* ---------- Round twenty ---------- */
/* Sixteen people: a longer loop at the same speed (about 45px a second). */
.team__track { animation-duration: 53s; }
@media (max-width: 640px) { .team__track { animation-duration: 41s; } }

/* ---------- Round twenty one ---------- */
/* The close no longer opens on a tall empty band. */
.close__content { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(72px, 9vw, 120px); }
.close__title { margin-top: 0; }
/* Phones: the code gets the full width, the note goes. */
@media (max-width: 680px) {
  .code { padding: 14px 16px; gap: 12px; font-size: 12px; }
  .code__note { display: none; }
}
@media (max-width: 680px) { .code code { white-space: normal; overflow-wrap: anywhere; } }
.close { margin-top: clamp(56px, 7vw, 96px); }

/* ---------- Round twenty two ---------- */
/* Team strip a little faster (about 60px a second). */
.team__track { animation-duration: 40s; }
@media (max-width: 640px) { .team__track { animation-duration: 31s; } }
.person__photo { display: block; border-radius: 50%; }
.person__photo img { display: block; transition: transform .25s var(--ease); }
.person__photo:hover img { transform: scale(1.04); }
a.person__name { display: inline-flex; align-items: center; gap: 6px; }
.i-linkedin { display: inline-block; width: 13px; height: 13px; background: url(../icons/linkedin.svg) center / contain no-repeat; opacity: .85; flex: none; }
a.person__name:hover .i-linkedin { opacity: 1; }

/* How we work: three across, a plain one word title over one short line. */
.ways--grid { grid-template-columns: repeat(3, 1fr); }
.ways--grid li { padding: 26px var(--pad) 30px; font-size: 15.5px; color: var(--body); }
.ways--grid li:nth-child(2n) { border-left: 0; }
.ways--grid li:not(:nth-child(3n + 1)) { border-left: 1px solid var(--line); }
.ways--grid li:last-child:nth-child(odd) { grid-column: auto; }
.ways--grid h3 { font-size: 18px; font-weight: 500; letter-spacing: -.02em; color: var(--ink); margin-bottom: 6px; }
.ways--grid p { line-height: 1.55; }
@media (max-width: 1000px) {
  .ways--grid { grid-template-columns: 1fr 1fr; }
  .ways--grid li:not(:nth-child(3n + 1)) { border-left: 0; }
  .ways--grid li:nth-child(2n) { border-left: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .ways--grid { grid-template-columns: 1fr; }
  .ways--grid li:nth-child(2n) { border-left: 0; }
}

/* From the blog: four same size cards, then the link. */
.posts { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.posts li { display: flex; }
.post { position: relative; flex: 1; display: flex; flex-direction: column; gap: 10px; min-height: 168px; padding: 20px 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; transition: transform .25s var(--ease), border-color .25s var(--ease); }
.post:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.post time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.post__title { font-size: 17px; line-height: 1.35; letter-spacing: -.015em; padding-right: 18px; }
.post__go { position: absolute; top: 18px; right: 18px; font-size: 14px; color: var(--muted); transition: color .2s var(--ease); }
.post:hover .post__go { color: var(--blue); }
.blog__more { display: inline-block; margin-top: 24px; font-size: 15px; }
@media (max-width: 1000px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .posts { grid-template-columns: 1fr; } .post { min-height: 0; } }

/* ---------- Round twenty three ---------- */
/* Post cards open with the post's cover. */
.post { padding: 0 0 22px; overflow: hidden; min-height: 0; gap: 0; }
.post__cover { display: block; width: 100%; height: auto; aspect-ratio: 40 / 21; object-fit: cover; border-bottom: 1px solid var(--line); background: var(--paper); }
.post time { margin: 16px 20px 8px; }
.post__title { padding: 0 20px; }
.post__go { top: auto; bottom: 22px; right: 18px; }

/* ---------- Round twenty four ---------- */
/* Team strip a bit faster again (about 80px a second). */
.team__track { animation-duration: 30s; }
@media (max-width: 640px) { .team__track { animation-duration: 23s; } }

/* ---------- Round twenty five ---------- */
/* Careers next to the logo is plain blue text: no box. */
.badge { background: none; border: 0; padding: 0; border-radius: 0; font-size: 15px; font-weight: 500; color: var(--blue); }

/* Team strip: people without a public photo get their initial. */
.person__initial { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--blue-tint); color: var(--blue); font-size: 32px; font-weight: 600; box-shadow: 0 0 0 1px var(--line); margin: 0 auto; }
@media (max-width: 640px) { .team .person__initial { width: 80px; height: 80px; font-size: 28px; } }

/* Nineteen people: a longer loop at the same speed (about 80px a second). */
.team__track { animation-duration: 35s; }
@media (max-width: 640px) { .team__track { animation-duration: 27s; } }
/* No public photo: a solid brand blue circle. */
.person__initial { background: var(--blue); box-shadow: none; }
