/* Decision API home page. Deep space, big type, hairlines, one card style, one accent.
   No web fonts and no external resources; the page reads without JavaScript. */

:root {
  --bg: #000;
  --fg: #f5f5f7;
  --fg-2: #a1a1a6;
  --fg-3: #86868b;
  --line: rgba(255, 255, 255, .13);
  --line-2: rgba(255, 255, 255, .08);
  --card: rgba(20, 20, 22, .72);
  --well: rgba(0, 0, 0, .42);
  --red: #e91a22;
  --red-hover: #d0141c;
  --red-ring: #ed1c24;
  --ok: #30d158;
  --warn: #ffd60a;
  --bad: #ff6961;
  --r: 22px;
  --r-s: 12px;
  --wrap: 1120px;
  --gut: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Ubuntu, "Noto Sans", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Ubuntu Mono", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.5 var(--sans);
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd, ul, ol, pre { margin: 0; }
h2, h3 { font-weight: 600; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
p a, .fine a, .consent a, .legend a, .note a, .msg a { color: var(--fg); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: .2em; text-decoration-thickness: 1px; transition: text-decoration-color .2s; }
p a:hover, .fine a:hover, .consent a:hover, .legend a:hover, .note a:hover, .msg a:hover { text-decoration-color: currentColor; }
code, pre, kbd { font-family: var(--mono); font-size: .92em; letter-spacing: 0; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--red-ring); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(237, 28, 36, .5); color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.offscreen { position: fixed; left: -9999px; top: 0; opacity: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--fg); color: #000; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }

/* ------------------------------------------------------------------ navigation */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: 72px; border-bottom: 1px solid transparent; transition: background-color .5s var(--ease), border-color .5s var(--ease); }
.nav.solid { background: rgba(0, 0, 0, .7); border-bottom-color: var(--line-2); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.nav-in { width: min(100% - 2 * var(--gut), var(--wrap)); height: 100%; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { flex: none; display: flex; align-items: center; padding: 4px 0; }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14.5px; }
.nav-links a { color: var(--fg-2); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); }
.nav-links .nav-cta { color: #fff; background: var(--red); padding: 7px 15px; border-radius: 999px; font-weight: 500; transition: opacity .4s var(--ease), transform .5s var(--ease), background-color .2s; }
.nav-links .nav-cta:hover { color: #fff; background: var(--red-hover); }
.home .nav-links .nav-cta { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.home .nav.cta .nav-cta { opacity: 1; transform: none; pointer-events: auto; }
html:not(.home-js) .home .nav-links .nav-cta { display: none; }
.page .nav { background: rgba(0, 0, 0, .72); border-bottom-color: var(--line-2); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; min-height: max(640px, 100svh); display: flex; isolation: isolate; overflow: hidden; }
.hero-art { position: absolute; inset: 0 0 -12%; z-index: -2; overflow: hidden; will-change: transform; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 46%; transform-origin: 70% 46%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .3) 32%, rgba(0, 0, 0, 0) 56%),
              linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 22%); }
/* The text block sits level with the black hole; one quiet fact row closes the left column at the bottom. */
.hero-in { position: relative; width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; display: flex; flex-direction: column; padding: calc(72px + clamp(24px, 6vh, 72px)) 0 clamp(28px, 5.5vh, 60px); }
.hero-main { margin-block: auto; }
.hero-title { font-size: clamp(56px, 8.2vw, 136px); line-height: .95; font-weight: 700; letter-spacing: -.045em; }
.hero-title .hero-line { display: block; max-width: 23em; margin-top: clamp(16px, 2.4vh, 28px); font-size: clamp(21px, 2.15vw, 32px); line-height: 1.24; font-weight: 400; letter-spacing: -.02em; color: #e8e8ed; text-wrap: balance; }
/* Warm words take the accretion disk's light; the solid colour is the fallback. */
.hero-line .warm { font-weight: 600; white-space: nowrap; color: #f0c684; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-line .warm { background: linear-gradient(100deg, #fbf1dc 0%, #f3ca86 48%, #e3a35a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
}
@media (forced-colors: active) { .hero-line .warm { background: none; color: CanvasText; -webkit-text-fill-color: currentColor; } }
.hero-facts { display: flex; flex-wrap: wrap; align-items: center; row-gap: 6px; margin-top: clamp(32px, 5vh, 56px); font-size: 14px; line-height: 1.5; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.hero-facts li { white-space: nowrap; }
.hero-facts li + li::before { content: ""; display: inline-block; width: 1px; height: 13px; margin: 0 clamp(16px, 1.8vw, 26px); vertical-align: -2px; background: rgba(255, 255, 255, .2); }
.hero-facts b { font-weight: 500; color: var(--fg); }

/* ------------------------------------------------------------------ the key */
.key { margin-top: clamp(30px, 5vh, 48px); max-width: 46rem; }
.key-form { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; transition: opacity .26s ease, transform .4s var(--ease); }
.btn-primary { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 14rem; height: 56px; padding: 0 32px; border: 0; border-radius: 999px; background: var(--red); color: #fff; font-size: 17px; font-weight: 600; letter-spacing: -.012em; cursor: pointer; overflow: hidden; isolation: isolate; transition: transform .3s var(--ease), background-color .2s; -webkit-tap-highlight-color: transparent; }
.btn-primary:hover { background: var(--red-hover); }
.btn-primary:active { transform: scale(.97); }
.btn-primary > span { transition: opacity .25s ease, transform .45s var(--ease); }
.btn-primary .btn-label { position: relative; z-index: 1; }
.btn-primary .btn-busy, .btn-primary .btn-ok { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; opacity: 0; transform: translateY(10px); }
.btn-primary .btn-ok svg { width: 20px; height: 20px; transform: scale(.4) rotate(-20deg); transition: transform .5s var(--spring); }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, .3) 50%, transparent 75%); transform: translateX(-110%); }
.btn-primary[aria-busy="true"] { cursor: progress; }
.btn-primary[aria-busy="true"]:active { transform: none; }
.btn-primary[aria-busy="true"] .btn-label { opacity: 0; transform: translateY(-10px); }
.btn-primary[aria-busy="true"] .btn-busy { opacity: 1; transform: none; }
.btn-primary[aria-busy="true"]::after { animation: sweep 1.05s var(--ease-io) infinite; }
.btn-primary.ok .btn-busy { opacity: 0; transform: translateY(-10px); }
.btn-primary.ok .btn-ok { opacity: 1; transform: none; }
.btn-primary.ok .btn-ok svg { transform: none; }
.btn-primary.ok::after { animation: none; }
@keyframes sweep { to { transform: translateX(110%); } }
.consent { max-width: 15.5rem; font-size: 12.5px; line-height: 1.45; letter-spacing: -.003em; color: var(--fg-3); transition: opacity .3s; }
.consent a { color: var(--fg-2); text-decoration-color: rgba(255, 255, 255, .28); }
.key.busy .consent { opacity: .55; }
.key-nojs { margin-top: 12px; font-size: 14px; color: var(--fg-2); }
.key-status { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 15px; line-height: 1.45; color: var(--fg); animation: rise-s .5s var(--ease) both; }
.key-status::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); transform: translateY(-1px); }
.key-status .title { font-weight: 600; }
.key-status .detail { color: var(--fg-2); flex-basis: 100%; padding-left: 19px; }
.key-status .retry { margin-left: 19px; border: 0; padding: 0; background: none; color: var(--fg); font-size: 15px; text-decoration: underline; text-underline-offset: .2em; text-decoration-color: rgba(255, 255, 255, .4); cursor: pointer; }
.key-status .retry:hover { text-decoration-color: currentColor; }
.key.out .key-form { opacity: 0; transform: translateY(-12px) scale(.98); pointer-events: none; }
.key.done .key-form, .key.done .key-status { display: none; }
@keyframes rise-s { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* The one card style: the key panel and the manage dialog. */
.key-panel { position: relative; padding: clamp(20px, 2.6vw, 30px); outline: none; scroll-margin-top: 88px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); -webkit-backdrop-filter: blur(28px) saturate(150%); backdrop-filter: blur(28px) saturate(150%); box-shadow: 0 40px 120px rgba(0, 0, 0, .55); }
.key-panel.in { animation: rise .8s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px) scale(.98); } to { opacity: 1; transform: none; } }
.kp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kp-manage { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--fg-2); transition: color .2s; }
.kp-manage svg { width: 11px; height: 11px; transition: transform .35s var(--ease); }
.kp-manage:hover { color: var(--fg); }
.kp-manage:hover svg { transform: translate(2px, -2px); }
.kp-title { font-size: 12.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--fg-3); }
.kp-key { position: relative; margin-top: 12px; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: var(--r-s); background: var(--well); border: 1px solid var(--line-2); overflow: hidden; }
.kp-value { flex: 1; min-width: 0; font-size: clamp(13.5px, 1.3vw, 16px); line-height: 1.5; color: #fff; word-break: break-all; -webkit-user-select: all; user-select: all; }
.kp-key::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .16) 50%, rgba(255, 255, 255, 0) 100%); transform: translateX(-100%); }
.key-panel.in .kp-key::after { animation: glint 1.2s var(--ease-io) .35s both; }
@keyframes glint { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.kp-warn { margin-top: 12px; font-size: 15px; color: var(--fg); }
.kp-warn::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--warn); transform: translateY(-2px); }
.kp-call { margin-top: 24px; }
.kp-call-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.kp-call-head h3 { font-size: 12.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--fg-3); }
.kp-meta, .kp-log { margin-top: 16px; font-size: 13.5px; line-height: 1.5; color: var(--fg-2); }
.kp-log { margin-top: 6px; color: var(--fg-3); }
.kp-meta a, .kp-log a { color: var(--fg-2); }

.code { margin: 0; padding: 16px 18px; border-radius: var(--r-s); background: var(--well); border: 1px solid var(--line-2); overflow-x: auto; font-size: 12.5px; line-height: 1.6; color: #c7c7cc; tab-size: 2; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
.code code { font-size: inherit; }
.code .ln { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.code .k { color: #fff; }
.code .s { color: #f5c26b; }
.code .m { color: var(--fg-3); }

/* Copy buttons: the copy icon turns into a check. */
.copy { flex: none; position: relative; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 15px 0 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--fg); font-size: 13.5px; font-weight: 500; cursor: pointer; transition: background-color .2s, border-color .3s, transform .25s var(--ease); -webkit-tap-highlight-color: transparent; }
.copy:hover { background: rgba(255, 255, 255, .12); }
.copy:active { transform: scale(.94); }
.copy .ico { position: relative; width: 15px; height: 15px; }
.copy .ico svg { position: absolute; inset: 0; width: 15px; height: 15px; transition: opacity .2s, transform .5s var(--spring); }
.copy .ico .ok { opacity: 0; transform: scale(.3) rotate(-30deg); color: var(--ok); }
.copy.done { border-color: rgba(48, 209, 88, .5); }
.copy.done .ico .cp { opacity: 0; transform: scale(.3); }
.copy.done .ico .ok { opacity: 1; transform: none; }
.copy .txt { display: inline-grid; }
.copy .txt span { grid-area: 1 / 1; transition: opacity .2s, transform .4s var(--ease); }
.copy .txt .t2 { opacity: 0; transform: translateY(7px); }
.copy.done .txt .t1 { opacity: 0; transform: translateY(-7px); }
.copy.done .txt .t2 { opacity: 1; transform: none; }
.copy-sm { height: 30px; padding: 0 12px 0 10px; font-size: 12.5px; }

/* ------------------------------------------------------------------ sections */
.section { padding: clamp(110px, 18vh, 200px) 0 0; }
.h2 { font-size: clamp(38px, 5.6vw, 76px); line-height: 1.02; font-weight: 600; letter-spacing: -.038em; text-wrap: balance; }
.lede { margin-top: 18px; max-width: 42rem; text-wrap: balance; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.42; color: var(--fg-2); letter-spacing: -.016em; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--fg-3); }
.fine { margin-top: 28px; font-size: 13.5px; line-height: 1.5; color: var(--fg-3); }
.fine a { color: var(--fg-2); }

/* Answers: one probability bar per option (the live examples, the status page's model shares). */
.answer + .answer { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.answer .q { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.bars li { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr) 4.4rem; align-items: center; gap: 14px; font-size: 14px; }
.bars li + li { margin-top: 12px; }
.bars .opt { font-family: var(--mono); font-size: 13px; color: var(--fg-2); }
.bars .top .opt { color: var(--fg); }
.bars .bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bars .bar i { display: block; height: 100%; border-radius: 3px; background: rgba(255, 255, 255, .45); transform-origin: left center; transform: scaleX(var(--w, 0)); }
.bars .top .bar i { background: #f5f5f7; }
.bars .p { font-family: var(--mono); font-size: 13px; text-align: right; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.bars .top .p { color: var(--fg); }

/* One call: three live examples (text, image, video) that play in turn, each on one stage. */
.demo { margin-top: clamp(40px, 6vh, 64px); }
.demo .demo-tabs { display: flex; width: max-content; margin: 0 auto 28px; }
.demo-tabs button { position: relative; overflow: hidden; min-width: 104px; }
.demo-tabs .prog { position: absolute; left: 22px; right: 22px; bottom: 5px; height: 2px; border-radius: 1px; background: currentColor; opacity: .5; transform: scaleX(0); transform-origin: left center; }
.demo-tabs button[aria-selected="true"] .prog { opacity: .3; }
.demo-tabs.auto button[aria-selected="true"] .prog { transform: scaleX(1); transition: transform var(--dwell, 8s) linear; }
.demo-stage { display: grid; }
.ex { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-areas: "media ans" "req req"; gap: clamp(24px, 3vw, 40px) clamp(28px, 3.6vw, 52px); align-items: center; padding: clamp(18px, 2.2vw, 28px); border-radius: 30px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)); }
html:not(.home-js) .ex { grid-area: auto; }
html:not(.home-js) .ex + .ex { margin-top: 40px; }
html.js .ex { transition: opacity .55s var(--ease), visibility 0s; }
html.js .ex[aria-hidden="true"] { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s, visibility 0s .3s; }
.ex-media { grid-area: media; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 20px; background: #070708; box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 30px 80px rgba(0, 0, 0, .55); }
.ex-media img, .ex-media video { display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 60%; }
.ex-media-text { display: flex; align-items: center; padding: clamp(24px, 4vw, 56px); background: radial-gradient(120% 140% at 0% 0%, rgba(237, 28, 36, .14), rgba(0, 0, 0, 0) 55%), radial-gradient(120% 140% at 100% 100%, rgba(80, 120, 255, .12), rgba(0, 0, 0, 0) 55%), #0b0b0d; }
.ex-media-text blockquote { margin: 0; font-size: clamp(21px, 2.15vw, 31px); line-height: 1.32; font-weight: 500; letter-spacing: -.022em; color: var(--fg); text-wrap: pretty; }
.ex-ans { grid-area: ans; display: grid; gap: 30px; }
.ex-ans .answer .q { display: block; margin-bottom: 14px; font-size: 17px; line-height: 1.35; font-weight: 500; color: var(--fg); letter-spacing: -.012em; }
.ex-ans .bars li { grid-template-columns: minmax(5.4rem, auto) minmax(0, 1fr) 4.2rem; }
.ex-req { grid-area: req; align-self: stretch; padding-top: 20px; border-top: 1px solid var(--line-2); }
.ex-req .eyebrow { display: block; margin-bottom: 10px; }
.ex-code { margin: 0; padding: 0; border: 0; background: none; font-size: 12.4px; line-height: 1.6; color: #b9b9be; }
.demo .note { margin-top: 18px; text-align: center; font-size: 13px; color: var(--fg-3); }
.demo .note a { color: var(--fg-2); margin-left: 6px; }
.demo .note code { color: var(--fg-2); }
html.js .ex.pre .ln { opacity: 0; transform: translateY(5px); }
html.js .ex .ln { transition: opacity .35s ease, transform .5s var(--ease); }
html.js .ex.pre .ex-ans .answer { opacity: 0; transform: translateY(10px); }
html.js .ex .ex-ans .answer { transition: opacity .6s var(--ease), transform .7s var(--ease); }
html.js .ex.pre .ex-media { opacity: .001; transform: scale(.985); }
html.js .ex .ex-media { transition: opacity .7s var(--ease), transform .9s var(--ease); }
html.js .ex.play .ex-media img { transform: scale(1.045); transition: transform 9s cubic-bezier(.25, .1, .25, 1); }
html.home-js .demo .bars .bar i { transform: scaleX(0); transition: transform 1.2s var(--ease); }
html.home-js .demo .ex.play .bars .bar i { transform: scaleX(var(--w, 0)); }

/* Proof: the two scores and one figure with a board switch. */
.scores { margin-top: clamp(44px, 7vh, 72px); display: grid; grid-template-columns: repeat(4, max-content); gap: 24px clamp(40px, 6vw, 96px); }
.scores div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.scores dt { margin-top: 8px; font-size: 15px; color: var(--fg-2); }
.scores dd { font-size: clamp(48px, 5.6vw, 84px); line-height: 1; font-weight: 600; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.scores dd small { font-size: .5em; font-weight: 500; letter-spacing: -.02em; color: var(--fg-3); margin-left: .06em; }
.frontier { margin-top: clamp(48px, 7vh, 80px); max-width: 880px; }
.seg { position: relative; display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line-2); }
.seg button { position: relative; z-index: 1; min-width: 96px; height: 34px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--fg-2); font-size: 14px; font-weight: 500; cursor: pointer; transition: color .35s; }
.seg button:hover { color: var(--fg); }
.seg button[aria-selected="true"] { color: #000; }
.seg .thumb { position: absolute; z-index: 0; top: 3px; left: 3px; height: 34px; border-radius: 999px; background: var(--fg); box-shadow: 0 2px 10px rgba(0, 0, 0, .35); transition: transform .5s var(--ease); }
.seg:not(.ready) .thumb { transition: none; }
.stage { position: relative; margin-top: 22px; }
.board { margin: 0; }
.board img { width: 100%; height: auto; }
.board .cap { margin-top: 14px; font-size: 15px; color: var(--fg); }
html.home-js .stage { display: grid; }
html.home-js .stage .board { grid-area: 1 / 1; transition: opacity .6s var(--ease), transform .7s var(--ease); }
html.js .stage .board[aria-hidden="true"] { opacity: 0; transform: translateY(6px) scale(.99); pointer-events: none; visibility: hidden; transition: opacity .3s, transform .5s var(--ease), visibility 0s .3s; }
html:not(.home-js) .board + .board { margin-top: 48px; }
.legend { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 13px; color: var(--fg-3); }
.legend .k { display: inline-flex; align-items: center; gap: 8px; }
.legend .dot { width: 9px; height: 9px; border-radius: 50%; }
.legend .d3 { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .16); }
.legend .other { width: 7px; height: 7px; background: #636366; }
.legend .ln { width: 18px; height: 0; border-top: 1.5px solid rgba(255, 255, 255, .55); }
.legend .src { flex-basis: 100%; }

/* Models: one list. */
.mlist { margin-top: clamp(40px, 6vh, 60px); width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mlist th, .mlist td { padding: 20px 0; text-align: left; border-bottom: 1px solid var(--line-2); font-weight: 400; }
.mlist thead th, .mlist thead th.num { padding: 0 0 12px; font-size: 12.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--fg-3); border-bottom-color: var(--line); }
.mlist tbody th { font-size: clamp(19px, 1.8vw, 24px); font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.mlist .size { color: var(--fg-2); font-size: 17px; }
.mlist .num { text-align: right; font-size: 17px; color: var(--fg-2); }
.mlist .lead td.num { color: var(--fg); }
.mlist .end { text-align: right; width: 1%; white-space: nowrap; padding-left: clamp(16px, 4vw, 56px); }
.hf { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px 6px 8px; border-radius: 999px; font-size: 14px; color: var(--fg-2); transition: color .2s, background-color .2s; }
.hf img { flex: none; max-width: none; width: 20px; height: 20px; transition: transform .45s var(--spring); }
.hf:hover { color: var(--fg); background: rgba(255, 255, 255, .06); }
.hf:hover img { transform: scale(1.12) rotate(-6deg); }
.mfoot { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; }
.mfoot .fine { margin-top: 0; }
.hf-all { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--fg); transition: background-color .2s, border-color .2s; }
.hf-all img { flex: none; max-width: none; width: 22px; height: 22px; }
.hf-all span { color: var(--fg-2); transition: transform .35s var(--ease); }
.hf-all:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); }
.hf-all:hover span { transform: translateX(3px); }
.mlist .name { display: inline-flex; align-items: center; gap: 12px; }
.state { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .14); flex: none; transition: background-color .6s, box-shadow .6s; }
.state.ready { background: var(--ok); box-shadow: 0 0 0 4px rgba(48, 209, 88, .14); }
.state.down { background: var(--bad); box-shadow: 0 0 0 4px rgba(255, 105, 97, .14); }
html:not(.home-js) .state { display: none; }

/* Sponsors and footer. */
.credits { margin-top: clamp(120px, 18vh, 200px); padding: clamp(64px, 10vh, 104px) 0 clamp(60px, 9vh, 96px); border-top: 1px solid var(--line-2); background: radial-gradient(70% 90% at 50% 0%, rgba(255, 255, 255, .045), rgba(255, 255, 255, 0) 70%); }
.credits-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.credits-amd { display: block; margin-top: 28px; padding: 6px; border-radius: 10px; transition: opacity .2s; }
.credits-amd img { height: 50px; width: auto; }
.credits-amd:hover { opacity: .85; }
.credits-line { margin-top: 22px; font-size: clamp(17px, 1.4vw, 20px); color: var(--fg); letter-spacing: -.014em; }
.credits-rule { width: min(100%, 720px); height: 0; margin: clamp(48px, 7vh, 72px) 0; border: 0; border-top: 1px solid var(--line); }
.credits-items { margin-top: clamp(32px, 5vh, 48px); display: grid; grid-template-columns: repeat(2, minmax(0, 18rem)); gap: 40px clamp(48px, 9vw, 120px); justify-content: center; }
.credit { display: flex; flex-direction: column; align-items: center; }
.credit-logo { display: flex; align-items: center; justify-content: center; height: 44px; padding: 0 6px; border-radius: 10px; transition: opacity .2s; }
.credit-logo:hover { opacity: .8; }
.credit-logo img[src*="pytorch"] { height: 31px; width: auto; }
.credit-logo img.mono-invert { height: 32px; width: auto; filter: invert(1); }
.credit-logo.hf-mark { gap: 10px; color: #fff; font-size: 25px; font-weight: 500; letter-spacing: -.018em; white-space: nowrap; }
.credit .eyebrow { margin-top: 20px; }
.credit p:not(.eyebrow) { margin-top: 8px; max-width: 16rem; font-size: 14.5px; line-height: 1.5; color: var(--fg-2); }
.foot { border-top: 1px solid var(--line-2); padding: 28px 0 40px; font-size: 13px; color: var(--fg-3); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.foot-brand img { height: 32px; width: auto; opacity: .85; transition: opacity .2s; }
.foot-brand:hover img { opacity: 1; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot-links a { color: var(--fg-2); transition: color .2s; }
.foot-links a:hover { color: var(--fg); }

/* ------------------------------------------------------------------ inner pages: docs, status, terms, privacy, 404 */
.page main { padding-top: 72px; min-height: calc(100svh - 120px); }
.page-head { padding: clamp(64px, 11vh, 120px) 0 clamp(36px, 6vh, 56px); }
.page-head .eyebrow { display: block; margin-bottom: 14px; }
.page-head h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; font-weight: 600; letter-spacing: -.04em; }
.page-head p:not(.eyebrow) { margin-top: 16px; max-width: 40rem; font-size: clamp(18px, 1.55vw, 21px); line-height: 1.45; color: var(--fg-2); letter-spacing: -.015em; }
.docs { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-bottom: 40px; }
.toc { position: sticky; top: 104px; align-self: start; max-height: calc(100vh - 128px); overflow: auto; }
.toc h2 { margin-bottom: 12px; font-size: 12.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--fg-3); }
.toc ol { display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 12px; border-left: 1px solid var(--line); font-size: 14px; color: var(--fg-3); transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--fg); }
.toc a.active { color: var(--fg); border-left-color: var(--fg); }
.toc-mobile { display: none; margin-bottom: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toc-mobile summary { padding: 14px 0; cursor: pointer; font-weight: 600; font-size: 15px; list-style-position: inside; }
.toc-mobile ol { padding: 0 0 14px 20px; list-style: decimal; color: var(--fg-3); }
.toc-mobile li { padding: 3px 0; }
.toc-mobile a { color: var(--fg-2); }
.prose { min-width: 0; max-width: 46rem; font-size: 16.5px; line-height: 1.65; color: #d2d2d7; }
.prose > section + section, .prose > h2 { margin-top: clamp(56px, 8vh, 80px); }
.prose h2 { font-size: clamp(26px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -.028em; color: var(--fg); scroll-margin-top: 96px; }
.prose h3 { margin-top: 36px; font-size: 19px; letter-spacing: -.016em; color: var(--fg); scroll-margin-top: 96px; }
.prose p, .prose ul, .prose ol { margin-top: 14px; }
.prose ul { padding-left: 1.15em; list-style: disc; }
.prose ol { padding-left: 1.3em; list-style: decimal; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--fg-3); }
.prose strong { color: var(--fg); font-weight: 600; }
.prose a { color: var(--fg); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: .2em; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose :not(pre) > code { padding: .12em .38em; border-radius: 6px; background: rgba(255, 255, 255, .08); color: var(--fg); font-size: .86em; overflow-wrap: break-word; }
.prose pre { margin-top: 16px; padding: 16px 18px; border-radius: var(--r-s); background: rgba(255, 255, 255, .035); border: 1px solid var(--line-2); overflow-x: auto; font-size: 12.8px; line-height: 1.62; color: #c7c7cc; scrollbar-width: thin; }
.prose pre code { font-size: inherit; }
.prose pre .ln { display: block; white-space: pre-wrap; overflow-wrap: anywhere; padding-left: var(--hang, 2ch); text-indent: calc(-1 * var(--hang, 2ch)); }
.prose pre .ln:empty { min-height: 1.62em; }
.prose pre .c { color: var(--fg-3); }
.codeblock { margin-top: 16px; }
.codeblock .cap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border: 1px solid var(--line-2); border-bottom: 0; border-radius: var(--r-s) var(--r-s) 0 0; font-size: 12.5px; color: var(--fg-3); }
.codeblock .cap + pre { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.codeblock .copy { height: 30px; padding: 0 13px; font-size: 12.5px; }
.prose .muted { color: var(--fg-3); }
.prose .small, .prose .muted.small { font-size: 14px; }
.anchor { margin-left: 8px; color: var(--fg-3); font-weight: 400; text-decoration: none !important; opacity: 0; transition: opacity .15s; }
h2:hover .anchor, h3:hover .anchor, .anchor:focus { opacity: 1; }
.table-wrap { margin-top: 18px; overflow-x: auto; scrollbar-width: thin; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.prose th, .prose td { padding: 12px 14px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); font-weight: 400; }
.prose thead th { padding-top: 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); border-bottom-color: var(--line); }
.prose tbody th { color: var(--fg); }
.prose .num { text-align: right; }
.callout { margin-top: 20px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.callout p { margin-top: 6px; font-size: 15px; }
.callout p:first-child { margin-top: 0; }
.callout .title { color: var(--fg); font-weight: 600; }
.loading-line { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14.5px; color: var(--fg-3); }
.loading-line::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--fg-3); animation: breathe 1.2s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .3; } }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pill { display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; color: var(--fg-2); }
.pill b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.prose .state { display: inline-flex; align-items: center; gap: 8px; width: auto; height: auto; background: none; box-shadow: none; font-size: 13.5px; color: var(--fg-2); white-space: nowrap; }
.prose .state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #636366; }
.prose .state.ready::before { background: var(--ok); box-shadow: 0 0 0 3px rgba(48, 209, 88, .16); }
.prose .state.down::before { background: var(--bad); }
.prose .state.loading::before { animation: breathe 1.4s ease-in-out infinite; }
.updated { font-size: 14px; color: var(--fg-3); }
.legal main .wrap { width: min(100% - 2 * var(--gut), 44rem); }
.legal .prose { max-width: none; padding-bottom: 40px; }
.notfound { display: flex; align-items: center; min-height: calc(100svh - 200px); }
.notfound .page-head { padding-bottom: 0; }
.nf-links { margin-top: 32px !important; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.btn-primary.sm { min-width: 0; height: 46px; padding: 0 22px; font-size: 15.5px; }
.text-link { color: var(--fg); font-size: 15.5px; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: .2em; }
@media (max-width: 900px) {
  .docs { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .toc-mobile { display: block; }
}
@media (max-width: 600px) {
  .prose { font-size: 16px; }
  .prose pre { font-size: 12px; padding: 14px; }
  html.js .table-wrap.stack { overflow: visible; }
  html.js .stack table, html.js .stack tbody, html.js .stack tr, html.js .stack th, html.js .stack td { display: block; width: 100%; }
  html.js .stack thead { display: none; }
  html.js .stack tr { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
  html.js .stack th, html.js .stack td { padding: 3px 0; border: 0; text-align: left; }
  html.js .stack tbody th { padding-bottom: 6px; }
  html.js .stack td[data-label] { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); column-gap: 12px; align-items: baseline; }
  html.js .stack td[data-label]::before { content: attr(data-label); font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-3); }
  html.js .stack td.num { text-align: left; }
}

/* ------------------------------------------------------------------ status */
.st-head h1 { display: flex; align-items: center; gap: 18px; }
.st-dot { flex: none; position: relative; width: 16px; height: 16px; border-radius: 50%; background: #636366; transition: background-color .6s; }
.st-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; color: transparent; }
.st-dot.operational { background: var(--ok); color: var(--ok); }
.st-dot.degraded { background: var(--warn); color: var(--warn); }
.st-dot.down { background: var(--bad); color: var(--bad); }
.st-dot.operational::after, .st-dot.degraded::after, .st-dot.down::after { animation: ping 2.6s var(--ease) infinite; }
@keyframes ping { 0% { opacity: .5; transform: scale(.6); } 80%, 100% { opacity: 0; transform: scale(1.6); } }
.st-updated { margin-top: 10px !important; font-size: 14px !important; color: var(--fg-3) !important; font-variant-numeric: tabular-nums; }
.st-nojs { color: var(--fg-2); }
.st-section { margin-top: clamp(40px, 7vh, 72px); }
.st-sechead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.st-sechead h2 { font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -.025em; }
.st-key { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--fg-3); }
.st-key span { display: inline-flex; align-items: center; gap: 7px; }
.st-key .day { width: 8px; height: 14px; }
.st-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.day { display: block; border-radius: 2px; background: rgba(255, 255, 255, .1); transition: background-color .6s; }
.day.operational { background: rgba(48, 209, 88, .8); }
.day.degraded { background: var(--warn); }
.day.down { background: var(--bad); }
.day.partial { opacity: .5; }
.st-model { padding: 22px 0 18px; border-bottom: 1px solid var(--line-2); }
.st-row { display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(110px, .7fr) minmax(0, 2.4fr); align-items: center; gap: 12px 24px; }
.st-name { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.st-size { font-size: 14px; font-weight: 500; color: var(--fg-3); letter-spacing: 0; }
.st-state { width: 9px; height: 9px; border-radius: 50%; background: #636366; transition: background-color .6s, box-shadow .6s; }
.st-state.operational { background: var(--ok); box-shadow: 0 0 0 4px rgba(48, 209, 88, .14); }
.st-state.degraded { background: var(--warn); box-shadow: 0 0 0 4px rgba(255, 214, 10, .14); }
.st-state.down { background: var(--bad); box-shadow: 0 0 0 4px rgba(255, 105, 97, .16); }
.st-badge { font-size: 14.5px; color: var(--fg-2); }
.st-badge.degraded { color: var(--warn); }
.st-badge.down { color: var(--bad); }
.st-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; font-variant-numeric: tabular-nums; }
.st-metrics div { display: flex; flex-direction: column-reverse; gap: 2px; }
.st-metrics dt { font-size: 12px; color: var(--fg-3); }
.st-metrics dd { font-size: 17px; color: var(--fg); }
.st-src { margin-left: 2px; padding: 0 4px; border: 1px solid var(--line-2); border-radius: 4px; font-size: 10px; letter-spacing: .02em; text-transform: uppercase; color: var(--fg-3); }
.st-src:empty { display: none; }
.st-bars { margin-top: 16px; display: flex; gap: 2px; height: 30px; }
.st-bars .day { flex: 1; min-width: 0; height: 100%; transition: background-color .6s, transform .25s var(--ease); }
.st-bars .day:hover { transform: scaleY(1.12); }
.st-axis { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.st-usage { padding-top: 26px; }
.st-totals { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px 24px; font-variant-numeric: tabular-nums; }
.st-totals div { display: flex; flex-direction: column-reverse; gap: 6px; }
.st-totals dt { font-size: 14px; color: var(--fg-2); }
.st-totals dd { font-size: clamp(30px, 3.2vw, 46px); line-height: 1; font-weight: 600; letter-spacing: -.035em; }
.st-totals .st-fixed { padding-left: 24px; border-left: 1px solid var(--line-2); cursor: default; }
.st-scope { margin-left: 6px; padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 4px; font-size: 11px; letter-spacing: .02em; color: var(--fg-3); white-space: nowrap; }
.st-charts { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 56px); }
.st-chart figcaption { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 14px; color: var(--fg); }
.st-chart-unit { color: var(--fg-3); font-size: 13px; }
.st-plot { display: flex; align-items: flex-end; gap: 1px; height: 150px; border-bottom: 1px solid var(--line); }
.st-plot i { flex: 1; min-width: 0; height: 100%; border-radius: 2px 2px 0 0; background: rgba(255, 255, 255, .78); transform-origin: bottom center; transform: scaleY(0); transition: transform .9s var(--ease), background-color .2s; }
#chart-tokens .st-plot i { background: rgba(255, 255, 255, .42); }
.st-plot.grown i { transform: scaleY(var(--h, 0)); }
.st-plot i:hover { background: #fff; }
.st-day { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 56px); }
.st-day h3 { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 16px; font-size: 14px; font-weight: 500; color: var(--fg); }
.st-share .bars li { grid-template-columns: 5.2rem minmax(0, 1fr) 3.6rem 5rem; }
.st-share .bars .n { font-family: var(--mono); font-size: 12.5px; text-align: right; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.st-lat .bars li { grid-template-columns: 5.2rem minmax(0, 1fr) 6.4rem 4.4rem; }
.st-lat .bar { position: relative; }
.st-lat .bar i { position: absolute; inset: 0; }
.st-lat .bar .p90 { background: rgba(255, 255, 255, .2); }
.st-lat .bar .p50 { background: rgba(255, 255, 255, .62); }
.st-lat .src { text-align: right; }
.st-lat .src .st-src { margin-left: 0; }
.st-lat-key { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 400; color: var(--fg-3); }
.st-lat-key i { display: inline-block; width: 12px; height: 6px; border-radius: 3px; }
.st-lat-key i.p50 { background: rgba(255, 255, 255, .62); }
.st-lat-key i.p90 { margin-left: 8px; background: rgba(255, 255, 255, .2); }
html.js .st-day .bars .bar i { transform: scaleX(0); transition: transform 1s var(--ease); }
html.js .st-day .bars.grown .bar i { transform: scaleX(var(--w, 0)); }
.st-usage.empty .st-totals, .st-usage.empty .st-charts, .st-usage.empty .st-day { display: none; }
.st-empty { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 16px; color: var(--fg-2); }
.st-empty::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--fg-3); }
.st-incidents { margin-top: 6px; }
.st-incident { padding: 20px 0; border-bottom: 1px solid var(--line-2); }
.st-inc-head { display: flex; align-items: baseline; gap: 12px; }
.st-inc-head h3 { font-size: 18px; letter-spacing: -.015em; }
.sev { flex: none; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid currentColor; }
.sev.minor { color: var(--warn); }
.sev.major { color: #ff9f0a; }
.sev.critical { color: var(--bad); }
.st-inc-when { margin-top: 6px; font-size: 13.5px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.st-incident.open .st-inc-when { color: var(--warn); }
.st-inc-updates { margin-top: 12px; display: grid; gap: 8px; padding-left: 14px; border-left: 1px solid var(--line); }
.st-inc-updates li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 12px; font-size: 14.5px; color: var(--fg-2); }
.st-inc-updates time { color: var(--fg-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.tip { position: fixed; left: 0; top: 0; z-index: 90; padding: 6px 10px; border-radius: 8px; background: rgba(36, 36, 38, .96); border: 1px solid var(--line); font-size: 12.5px; color: var(--fg); white-space: nowrap; pointer-events: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
@media (max-width: 900px) {
  .st-row { grid-template-columns: minmax(0, 1fr) auto; }
  .st-metrics { grid-column: 1 / -1; }
  .st-totals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .st-charts, .st-day { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .st-head h1 { gap: 14px; }
  .st-dot { width: 12px; height: 12px; }
  .st-name { font-size: 18px; }
  .st-bars { height: 24px; gap: 1px; }
  .st-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-totals .st-fixed { grid-column: 1 / -1; padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line-2); }
  .st-share .bars li { grid-template-columns: 4.6rem minmax(0, 1fr) 3.2rem; }
  .st-share .bars .n { display: none; }
  .st-lat .bars li { grid-template-columns: 4.4rem minmax(0, 1fr) 6.6rem 3.8rem; gap: 10px; }
  .seg-long { display: none; }
  .st-window button, .st-hist button { min-width: 0; padding: 0 14px; }
  .st-inc-updates li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .st-plot i, html.js .st-day .bars .bar i { transition: none; }
  .st-dot::after { animation: none; }
}

/* ------------------------------------------------------------------ keys page */
.keys-page main .wrap { width: min(100% - 2 * var(--gut), 54rem); }
.input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: var(--r-s); border: 1px solid var(--line); background: rgba(0, 0, 0, .35); color: var(--fg); font: 14px var(--mono); transition: border-color .2s; }
.input::placeholder { color: var(--fg-3); }
.input:focus-visible { outline: 2px solid var(--red-ring); outline-offset: 1px; border-color: transparent; }
.btn-quiet, .btn-line, .btn-danger { height: 46px; padding: 0 20px; border-radius: var(--r-s); font-size: 14.5px; font-weight: 500; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, opacity .2s; }
.btn-quiet { border: 1px solid var(--line); background: rgba(255, 255, 255, .09); color: var(--fg); }
.btn-quiet:hover { background: rgba(255, 255, 255, .15); }
.btn-line { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--fg); font-size: 13.5px; }
.btn-line:hover { background: rgba(255, 255, 255, .08); }
.btn-line.danger { color: var(--bad); border-color: rgba(255, 105, 97, .35); }
.btn-line.danger:hover { background: rgba(255, 105, 97, .1); }
.btn-danger { height: 40px; border: 1px solid rgba(255, 105, 97, .45); border-radius: 999px; background: rgba(255, 105, 97, .16); color: #ff8a80; }
.btn-danger:hover { background: rgba(255, 105, 97, .26); }
.kadd button:disabled, .kcard button:disabled { opacity: .5; cursor: default; }
.msg { display: flex; flex-direction: column; gap: 3px; }
.msg b { font-weight: 600; }
.msg > span { color: var(--fg-2); }
.msg.err b::before, .msg.ok b::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--bad); transform: translateY(-1px); }
.msg.ok b::before { background: var(--ok); }
.msg.note b { font-weight: 400; color: var(--fg-2); }
.kadd { display: flex; gap: 10px; max-width: 40rem; }
.kadd .input { height: 52px; font-size: 15px; }
.kadd .btn-quiet { flex: none; height: 52px; padding: 0 24px; }
.kadd-hint { margin-top: 12px; max-width: 40rem; font-size: 13.5px; line-height: 1.5; color: var(--fg-3); }
.kstatus:not(:empty) { margin-top: 18px; max-width: 40rem; font-size: 14.5px; animation: rise-s .4s var(--ease) both; }
.kgroup { margin-top: clamp(28px, 5vh, 44px); }
.klist-title { display: none; margin-bottom: 14px; }
.keys-listed .klist-title { display: block; }
.klist { display: grid; gap: 18px; }
.klist:empty { display: none; }
.kcard { padding: clamp(20px, 2.6vw, 30px); border-radius: var(--r); border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)); outline: none; animation: rise .7s var(--ease) both; transition: border-color .3s, opacity .3s; }
.kcard:focus-visible { border-color: rgba(255, 255, 255, .32); }
.kcard.busy { opacity: .72; }
.k-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px 16px; }
.k-id { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.k-prefix { font-size: 18px; color: var(--fg); white-space: nowrap; }
.k-state { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--fg-2); }
.k-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #636366; transition: background-color .4s; }
.kcard.active .k-state::before { background: var(--ok); box-shadow: 0 0 0 3px rgba(48, 209, 88, .16); }
.kcard.forgotten .k-state::before { background: var(--warn); }
.kcard.invalid .k-state::before { background: var(--bad); }
.k-tools { flex: none; display: flex; gap: 2px; margin-right: -8px; }
.k-tool { height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--fg-2); font-size: 13px; cursor: pointer; transition: background-color .2s, color .2s; }
.k-tool:hover { background: rgba(255, 255, 255, .07); color: var(--fg); }
.k-meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 13.5px; }
.k-meta div { display: flex; gap: 8px; }
.k-meta dt { color: var(--fg-3); }
.k-meta dd { color: var(--fg-2); }
.k-meta code { font-size: 12.5px; }
.k-usage { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line-2); display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 24px clamp(28px, 4vw, 52px); }
.k-nums { margin-top: 12px; display: grid; gap: 14px; }
.k-nums b { display: block; font-size: 34px; line-height: 1.05; font-weight: 600; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.k-nums span { font-size: 13px; color: var(--fg-3); }
.k-note { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--fg-3); }
.k-note a { color: var(--fg-2); }
.k-table { margin-top: 6px; }
.k-table.narrow { display: none; }
.k-limits table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.k-limits th, .k-limits td { padding: 9px 0 9px 16px; text-align: left; border-bottom: 1px solid var(--line-2); font-weight: 400; white-space: nowrap; }
.k-limits th:first-child, .k-limits td:first-child { padding-left: 0; }
.k-limits thead th { padding-top: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
.k-limits .k-group th, .k-limits .k-group td { padding: 0 0 6px 16px; border-bottom: 0; text-align: center; letter-spacing: .04em; color: var(--fg-2); }
.k-limits .k-group th { background: linear-gradient(var(--line), var(--line)) 16px 100% / calc(100% - 16px) 1px no-repeat; }
.k-limits .num { text-align: right; }
.k-limits tbody th { color: var(--fg); }
.k-limits tbody td { color: var(--fg-2); }
.k-limits tbody tr:last-child > * { border-bottom: 0; }
.k-size { color: var(--fg-3); font-size: 12.5px; }
.k-actions { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-2); display: grid; gap: 12px; }
.act { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--fg-3); }
.act .btn-line { flex: none; min-width: 12.5rem; }
.k-confirm { margin-top: 22px; padding: 18px; border-radius: 16px; border: 1px solid rgba(255, 105, 97, .3); background: rgba(255, 105, 97, .06); font-size: 14px; color: var(--fg); animation: rise-s .4s var(--ease) both; }
.k-confirm .row { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.k-confirm .btn-quiet { height: 40px; border-radius: 999px; }
.k-msg { margin-top: 18px; font-size: 14px; animation: rise-s .4s var(--ease) both; }
.kempty { padding: 24px 26px; border-radius: var(--r); border: 1px dashed var(--line); font-size: 15px; color: var(--fg-2); }
.kadd-title { display: none; margin-bottom: 14px; font-size: 17px; letter-spacing: -.012em; }
.keys-listed .kadd-sec { margin-top: clamp(44px, 7vh, 72px); padding-top: clamp(26px, 4vh, 34px); border-top: 1px solid var(--line-2); }
.keys-listed .kadd-title { display: block; }
/* Until this browser's list has answered (or 1.6 s at most), so the form does not jump when the list appears. */
.kadd-sec, .kgroup, .knote { transition: opacity .35s var(--ease); }
html.js .keys-page:not(.keys-ready) :is(.kadd-sec, .kgroup, .knote) { opacity: 0; animation: keys-wait 0s linear 1.6s forwards; }
@keyframes keys-wait { to { opacity: 1; } }
.k-confirm.soft { border-color: var(--line); background: rgba(255, 255, 255, .035); }
.k-usage.per-model { grid-template-columns: minmax(0, 1fr); }
.k-usage.per-model .k-nums { grid-template-columns: repeat(2, max-content); gap: 40px; }
.knote { margin-top: 28px; padding-bottom: 48px; font-size: 14px; line-height: 1.6; color: var(--fg-3); }
.knote a { color: var(--fg-2); }

/* ------------------------------------------------------------------ motion */
.hero-art img { animation: hero-in 2.6s var(--ease) both, drift 30s ease-in-out 2.6s infinite alternate; }
@keyframes hero-in { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: none; } to { transform: scale(1.035); } }
.key, .hero-facts { animation: enter 1.2s var(--ease) both; }
.key { animation-delay: .28s; }
.hero-facts { animation-delay: .5s; }
@keyframes enter { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
html.home-js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
html.home-js [data-reveal].in { opacity: 1; transform: none; }
html.home-js [data-reveal="2"] { transition-delay: .1s; }
html.home-js .bars .bar i { transform: scaleX(0); transition: transform 1.4s var(--ease) .2s; }
html.home-js .in .bars .bar i { transform: scaleX(var(--w, 0)); }
html.home-js .in .bars li:nth-child(2) .bar i { transition-delay: .28s; }
html.home-js .in .bars li:nth-child(3) .bar i { transition-delay: .36s; }
html.home-js .in .answer + .answer .bar i { transition-delay: .5s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .hero-art img { animation: none; }
  html.home-js [data-reveal] { opacity: 1; transform: none; }
  html.home-js .bars .bar i, html.home-js .demo .bars .bar i { transform: scaleX(var(--w, 0)); }
  html.js .ex.pre .ln, html.js .ex.pre .ex-media, html.js .ex.pre .ex-ans .answer { opacity: 1; transform: none; }
  html.js .ex.play .ex-media img { transform: none; }
  .btn-primary[aria-busy="true"]::after { animation: none; transform: none; background: rgba(255, 255, 255, .14); }
}

/* ------------------------------------------------------------------ smaller screens */
@media (max-width: 1000px) {
  .scores { grid-template-columns: repeat(2, max-content); }
}
@media (max-width: 900px) {
  .k-usage { grid-template-columns: minmax(0, 1fr); }
  .k-nums { grid-template-columns: repeat(2, max-content); gap: 28px; }
  .ex { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "ans" "req"; border-radius: 24px; }
}
/* Portrait screens: a centred cover. The words and the button above, the black hole below them, the facts last. */
@media (max-aspect-ratio: 4/5) {
  /* The black hole sits at 65% of the art's height; this height puts it halfway between the consent line and the
     facts on phones from 320 x 568 to 430 x 932. */
  .hero-art { inset: 0 0 auto; height: calc(96% + 43px); }
  .hero-art img { object-position: 50% 50%; transform-origin: 50% 65%; }
  .hero::before { background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .25) 34%, rgba(0, 0, 0, 0) 50%), linear-gradient(0deg, #000 0%, rgba(0, 0, 0, .55) 9%, rgba(0, 0, 0, 0) 22%); }
  .hero-in { align-items: center; text-align: center; padding-top: calc(60px + clamp(24px, 5.5vh, 64px)); padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .hero-main { width: 100%; margin: 0; display: flex; flex-direction: column; align-items: center; }
  .hero-title .hero-line { margin-inline: auto; max-width: 19em; }
  .key { width: 100%; max-width: 46rem; margin-top: clamp(22px, 3.4vh, 34px); }
  .key-form { flex-direction: column; align-items: center; gap: 12px; }
  .consent { max-width: 21rem; text-align: center; }
  .key-status { display: block; text-align: center; }
  .key-status::before { display: inline-block; margin-right: 10px; vertical-align: 1px; transform: none; }
  .key-status .detail { display: block; margin-top: 2px; padding-left: 0; }
  .key-status .retry { margin: 8px 0 0; }
  .key-panel { text-align: left; }
  .hero-facts { margin-top: auto; padding-top: 28px; justify-content: center; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav { height: 60px; }
  .brand img { height: 32px; }
  .nav-links { gap: 18px; }
  .nav-links .nav-cta { padding: 5px 12px; font-size: 13px; }
  .hero-title { font-size: clamp(46px, 14.4vw, 64px); }
  .hero-facts { font-size: 12.5px; }
  .hero-facts li + li::before { height: 11px; margin: 0 11px; }
  .btn-primary { min-width: 15.5rem; height: 52px; }
  .consent { font-size: 12px; }
  .section { padding-top: clamp(84px, 13vh, 112px); }
  .h2 { font-size: clamp(34px, 9.6vw, 40px); }
  .lede { margin-top: 14px; font-size: 17px; }
  .credits { margin-top: clamp(88px, 13vh, 120px); }
  .scores { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
  .hf .lbl { display: none; }
  .hf { padding: 6px; }
  .key-panel { padding: 18px; border-radius: 18px; }
  .kp-key { flex-direction: column; align-items: stretch; padding: 14px; gap: 12px; }
  .kp-key .copy { align-self: flex-start; }
  .code { font-size: 11.5px; padding: 14px; }
  .ex-code { font-size: 11.2px; }
  .ex { padding: 14px; gap: 22px; }
  .ex-media { border-radius: 14px; }
  .ex-media-text { aspect-ratio: auto; min-height: 180px; padding: 24px; }
  .ex-ans .bars li { grid-template-columns: minmax(4.6rem, auto) minmax(0, 1fr) 3.8rem; }
  .credits-amd img { height: 40px; }
  .credits-items { grid-template-columns: minmax(0, 1fr); }
  .hero-title .hero-line { margin-top: 14px; font-size: clamp(19px, 5.3vw, 23px); }
  .mlist .size { font-size: 15px; }
  .mlist tbody th { font-size: 18px; }
  .mlist .num { font-size: 15px; }
  .mlist .end a .lbl { display: none; }
  .mlist .end { padding-left: 14px; }
  .bars li { grid-template-columns: 3.2rem minmax(0, 1fr) 4rem; gap: 10px; }
  .act { flex-direction: column; align-items: flex-start; gap: 6px; }
  .kadd .btn-quiet { padding: 0 18px; }
  .k-table.wide { display: none; }
  .k-table.narrow { display: grid; gap: 22px; }
  .k-prefix { font-size: 16px; }
  .k-more { display: none; }
  .k-tool { padding: 0 9px; }
}
@media (max-width: 420px) {
  .nav-links .nav-more { display: none; }
}
@media (max-width: 380px) {
  .hero-facts li:last-child { flex-basis: 100%; }
  .hero-facts li:last-child::before { display: none; }
}
@media (max-width: 340px) {
  .nav-in { gap: 16px; }
  .brand img { height: 28px; }
  .nav-links { gap: 12px; }
  .nav-links .nav-cta { padding: 5px 10px; }
}
@media (min-width: 1800px) {
  :root { --wrap: 1320px; }
  body { font-size: 18px; }
  .hero-title { font-size: clamp(136px, 7vw, 176px); }
  .hero-title .hero-line { font-size: clamp(32px, 1.55vw, 40px); }
  .consent { font-size: 13.5px; max-width: 17rem; }
  .hero-facts { font-size: 17px; }
  .hero-facts li + li::before { height: 15px; }
  .btn-primary { height: 60px; font-size: 18px; }
  .consent { font-size: 14px; }
  .nav { height: 80px; }
  .brand img { height: 44px; }
  .page main { padding-top: 80px; }
  .nav-links { font-size: 15px; }
}
