/* Sqwish site concept. Themes are CSS variables on <html data-theme>. Brand colours never change. */
:root {
  --pink: #E58ACD; --mint: #4ADE80; --amber: #F5A124; --night: #0B0E13; --night-ink: #F5F3F0; --night-muted: #A9AFBA; --night-line: #2A2F3A;
  --serif: 'Crimson Pro', Georgia, serif; --sans: 'Source Sans 3', system-ui, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
html[data-theme=paper] { --bg:#FCFBF8; --bg2:#F8F5EF; --card:#FFFFFF; --hero:#FBF3EA; --ink:#141820; --ink2:#363C48; --muted:#67707E; --line:#E3E5E9; --line2:#D5D8DD; --track:#F1EFEA; --pink-t:#FBEAF5; --mint-t:#E4F9EC; --amber-t:#FEF1DC; --grey-t:#EEF0F3; --pink-w:#F7D3EC; --mint-w:#C9F2D8; --amber-w:#FDE2B8; --glass:255,255,255; }
html[data-theme=sand]  { --bg:#EADFCB; --bg2:#E0D4BD; --card:#F6EFE1; --hero:#E5D8C1; --ink:#1B1E24; --ink2:#2B2F37; --muted:#4E5560; --line:#CFC3AB; --line2:#B9AC92; --track:#D6CBB5; --pink-t:#EBCBDD; --mint-t:#C3E3CD; --amber-t:#F1D5A6; --grey-t:#D9D0BF; --pink-w:#E3B3D3; --mint-w:#A8DCBC; --amber-w:#F0C587; --glass:246,239,225; }
/* Linen, the site's theme: Sand made lighter (+0.065 OKLCH lightness) with a third of its yellow (35% chroma). Every surface keeps
   its lightness step from the page, so bands and borders read as on Sand; tints keep 72% of their chroma so highlights stay calm. */
html[data-theme=linen] { --bg:#F9F5EE; --bg2:#EEEAE2; --card:#FFFDFA; --hero:#F3EEE6; --ink:#1B1E24; --ink2:#2B2F37; --muted:#4E5560; --line:#DDD9D0; --line2:#C6C1B8; --track:#E5E1D9; --pink-t:#FBE3F0; --mint-t:#DFF6E6; --amber-t:#FFECCD; --grey-t:#E9E6E0; --pink-w:#F0CDE4; --mint-w:#C8EED6; --amber-w:#FCDDB1; --glass:255,253,250; --art-paper:#FCFAF7; }
html[data-theme=mist]  { --bg:#E8EBEF; --bg2:#DEE2E7; --card:#F5F6F8; --hero:#E1E5EA; --ink:#14181F; --ink2:#2D333D; --muted:#505864; --line:#C7CDD5; --line2:#B4BBC5; --track:#D3D8DE; --pink-t:#EFD2E5; --mint-t:#C9EAD7; --amber-t:#F5DEB6; --grey-t:#D5DAE0; --pink-w:#E9BCDB; --mint-w:#AEE3C4; --amber-w:#F5CF96; --glass:245,246,248; }
html[data-theme=sanddark] { --bg:#141210; --bg2:#191715; --card:#1F1C19; --hero:#141210; --ink:#EFE5D3; --ink2:#CDC2AE; --muted:#9A907F; --line:#2D2924; --line2:#403A32; --track:#2D2924; --pink-t:#2C1B26; --mint-t:#17271D; --amber-t:#2F2513; --grey-t:#23201C; --pink-w:#3B2333; --mint-w:#1C3627; --amber-w:#3E3015; --glass:25,23,20; --night:#0C0B0A; --night-line:#2A2622; --night-ink:#EFE5D3; --night-muted:#9A907F; }
html[data-theme=dim]   { --bg:#1F232C; --bg2:#242933; --card:#292E39; --hero:#1B1F27; --ink:#F1EFEA; --ink2:#D0CCC4; --muted:#A2A9B5; --line:#383E4B; --line2:#4A5160; --track:#383E4B; --pink-t:#3C2538; --mint-t:#203C2D; --amber-t:#40321A; --grey-t:#2B303B; --pink-w:#4B2B43; --mint-w:#244B37; --amber-w:#4E3B1B; --glass:41,46,57; }
html[data-theme=dark]  { --bg:#0D1117; --bg2:#12151C; --card:#171B23; --hero:#0B0E13; --ink:#F5F3F0; --ink2:#C4C0B8; --muted:#9097A3; --line:#252A34; --line2:#353B47; --track:#252A34; --pink-t:#2A1826; --mint-t:#12281B; --amber-t:#2C2210; --grey-t:#1C2028; --pink-w:#3A1F33; --mint-w:#17382A; --amber-w:#3D2D12; --glass:18,21,28; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); } a:hover { opacity: .8; }
img, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .wrap { padding: 0 20px; } } /* a phone keeps the width for the words */
/* Spacing: a block has the same space above it as below it. --sec is that space for every section and band: 98px on a
   wide screen, the space every hero leaves under the nav, and less on a narrow one. Two sections of the same colour
   side by side share it rather than doubling it.
   Type: one size for every section heading (--h2), and one for the title of a card in a row of three (--card-title). */
:root { --sec: clamp(64px, 6.8vw, 98px); --h2: clamp(36px, 4.2vw, 54px); --card-title: clamp(22px, 2.2vw, 26px); }
.section { padding: var(--sec) 0; }
.band { background: var(--bg2); }
.section.band + .section.band, .section:not(.band) + .section:not(.band) { padding-top: 0; }
.display { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.02; }
h1.display { font-size: clamp(46px, 6.2vw, 88px); }
h1.display .sub { display: block; margin-top: 14px; font-size: .5em; line-height: 1.15; letter-spacing: -0.01em; color: var(--muted); }
h2.display { font-size: var(--h2); line-height: 1.05; }
h3.display { font-size: 30px; line-height: 1.1; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.lede { font-size: 19px; color: var(--ink2); max-width: 560px; }
.muted { color: var(--muted); } .mono { font-family: var(--mono); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { justify-content: space-between; align-items: end; gap: 24px; }
.grid { display: grid; gap: 24px; }
/* a column is never wider than the row it sits in, so a narrow phone gets one full-width column, not an overflow */
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
@media (max-width: 760px) { .g2 > span:empty { display: none; } } /* an empty cell holds a column on a wide screen; stacked, it would only add space */
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; } .mt32 { margin-top: 32px; } .mt48 { margin-top: 48px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; }
.btn.ghost { background: rgba(var(--glass), .8); color: var(--ink); }
.btn.small { min-height: 40px; padding: 8px 16px; font-size: 15px; }
@media (max-width: 400px) { .btn:not(.small) { padding-inline: 18px; } } /* two buttons share one row on a 375px phone */
.on-night .btn { background: var(--night-ink); color: var(--night); border-color: var(--night-ink); }
.on-night .btn.ghost { background: transparent; color: var(--night-ink); border-color: #5A606C; }
.pill { min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); font-size: 16px; }
.pill[aria-selected=true], .pill[aria-pressed=true] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip { display: inline-block; font-family: var(--mono); font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.t-pink { background: var(--pink-t); } .t-mint { background: var(--mint-t); } .t-amber { background: var(--amber-t); } .t-grey { background: var(--grey-t); }

@font-face { font-family: 'Chesna Grotesk'; font-weight: 600; font-display: swap; src: url(assets/fonts/chesna-grotesk-600.woff2) format('woff2'); }
.oh { font-family: 'Chesna Grotesk', var(--sans); font-weight: 600; letter-spacing: -0.01em; }
.btn.onehot { gap: 6px; padding-left: 10px; }
.btn.onehot img { height: 26px; width: auto; margin: -4px 0; }
.btn.onehot:not(.small) { gap: 8px; padding-left: 14px; } .btn.onehot:not(.small) img { height: 32px; margin: -8px 0; } /* the mark never makes the button taller than its neighbour */

/* nav */
.nav-shell { position: sticky; top: 0; z-index: 20; padding: 14px 20px; }
.nav { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; padding: 8px 8px 8px 18px; border-radius: 999px; background: rgba(var(--glass), .9); border: 1px solid var(--line); box-shadow: 0 8px 30px -18px rgba(0,0,0,.35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nav a { text-decoration: none; font-size: 15px; padding: 10px 12px; }
.nav a[aria-current=page] { font-weight: 600; }
.nav .logo { padding: 0; margin-right: 12px; display: flex; }
.nav .logo img { height: 26px; }
.nav .spacer { flex: 1; }
/* On a wide screen the menu's two wrappers are not drawn, so its links sit in the bar as before. */
.nav-links, .nav-list { display: contents; }
.nav-toggle { display: none; }
/* nav on a small screen: the logo, the OneHot button and a menu button in one bar. The bar keeps its place and an
   open menu drops over the page under it, with the links one per row (runtime.js opens and closes it). */
@media (max-width: 800px) {
  .nav-shell { height: 76px; padding: 10px 12px; }
  .nav-shell::before { content: ""; position: fixed; inset: 0; background: rgba(27, 30, 36, .22); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .nav { position: relative; gap: 0 6px; padding: 6px 6px 6px 16px; border-radius: 28px; }
  .nav .logo { margin-right: auto; padding: 9px 0; } /* the logo's tap area takes the bar's height */
  .nav .btn.onehot { order: 1; }
  .nav-toggle { order: 2; display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink); }
  .nav-toggle:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; }
  .nav-toggle span { position: relative; width: 18px; height: 10px; }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 1px; background: currentColor; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
  .nav-toggle span::before { top: 0; } .nav-toggle span::after { bottom: 0; }
  .nav-links { order: 3; flex: 0 0 100%; display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .3s cubic-bezier(.2, .7, .2, 1), visibility 0s .3s; }
  .nav-list { display: flex; flex-direction: column; min-height: 0; max-height: calc(100dvh - 96px); overflow: hidden auto; padding-right: 10px; }
  /* a quiet list, as light as the rest of the site: no rules between the links (the site has almost none), rows of
     44px (still a comfortable tap) at 17px, the current page marked by a small pink dot right after its name, and
     Log in set a little apart from the pages, as it sits apart in the wide bar */
  .nav .nav-list > a { display: flex; align-items: center; gap: 10px; flex: none; min-height: 44px; padding: 0 2px; font-size: 17px; }
  .nav .nav-list > a:first-child { margin-top: 10px; }
  .nav .nav-list > a:last-child { margin-bottom: 8px; }
  .nav .nav-list > a[aria-current]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }
  .nav .nav-list > a[aria-current] { font-weight: 600; } /* on Home, Platform (aria-current="true"), which the wide bar leaves plain */
  .nav-list > .spacer { flex: none; height: 8px; }
  html.nav-open .nav-shell::before { opacity: 1; pointer-events: auto; }
  html.nav-open .nav { background: rgb(var(--glass)); } /* an open menu is solid, so no page text shows through its links */
  html.nav-open .nav-links { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .3s cubic-bezier(.2, .7, .2, 1); }
  html.nav-open .nav-toggle span::before { transform: translateY(4px) rotate(45deg); }
  html.nav-open .nav-toggle span::after { transform: translateY(-4px) rotate(-45deg); }
}
@media (max-width: 600px) { .nav .btn.onehot .try { display: none; } } /* on a phone the bar's button is the product's name, with room around it */
@media (prefers-reduced-motion: reduce) { .nav-shell::before, .nav-links, .nav-toggle span::before, .nav-toggle span::after { transition: none; } }
.logo-chip { background: var(--night); border-radius: 10px; padding: 6px 10px; }
html[data-tone=dark] .logo-chip { background: transparent; padding: 0; }

.menu { position: relative; border-radius: 16px 16px 0 0; }
.menu:hover, .menu:focus-within { background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.menu .drop { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: var(--card); border-radius: 0 0 16px 16px; box-shadow: 0 0 0 1px var(--line), 0 18px 30px -18px rgba(0,0,0,.4); clip-path: inset(0 -30px 100% -30px); visibility: hidden; transition: clip-path .22s ease, visibility 0s .22s; }
.menu .drop::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 4px; background: var(--card); }
.menu:hover .drop, .menu:focus-within .drop { clip-path: inset(-2px -30px -40px -30px); visibility: visible; transition: clip-path .22s ease; }
.menu .drop a { display: block; position: relative; padding: 10px 12px 12px; }
.menu .drop a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* hero + waves */
:root { --band: clamp(170px, 21vw, 290px); }
.hero { position: relative; overflow: hidden; margin-top: -78px; padding: calc(78px + var(--sec)) 0 calc(var(--band) + 72px); background: var(--bg); } /* the heading starts a section's space under the 78px nav */
.hero > svg.waves, .cta > svg.waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: var(--band); }
.hero .wrap, .cta .wrap { position: relative; }
.hero .sticker { position: absolute; right: 9%; top: 150px; width: 200px; transform: rotate(-8deg); filter: drop-shadow(0 24px 30px rgba(0,0,0,.2)); }
@media (max-width: 1000px) { .hero .sticker { display: none; } }
.w-pink { fill: var(--pink-w); } .w-mint { fill: var(--mint-w); } .w-amber { fill: var(--amber-w); }
.l-pink { stroke: var(--pink); } .l-mint { stroke: var(--mint); } .l-amber { stroke: var(--amber); } .l-ink { stroke: var(--ink); stroke-opacity: .1; }
.cta { position: relative; overflow: hidden; background: var(--bg); padding: 98px 0; text-align: center; }
.cta .row { justify-content: center; }

.hero.orbit { display: flex; align-items: center; padding-bottom: 98px; } /* 98 below matches the 98 left under the nav */
.hero.orbit .wrap { width: 100%; }
@media (max-width: 760px) { .hero.orbit { min-height: 600px; } } /* on a phone the orbits sit under the headline and need the room */
.hero.orbit h1.display { font-size: clamp(60px, 9vw, 128px); }
/* the orbits are drawn whole: never taller than the hero, so no ring is cut or faded at its lower edge, and narrow
   enough to stay clear of the headline. They still run off the right edge of the page. */
.hero.orbit svg.orbits { position: absolute; right: -12%; top: 51%; width: min(700px, 56%); height: auto; transform: translateY(-50%); pointer-events: none; }
/* On a big screen the orbits grow with the window (45% of its width, up to 1150px). Taller than the hero then, they
   run on down beside the text that follows it, which stays a narrow column on the left, and end well above the
   sign-off, still drawn whole; the hero keeps its height. Wider than 2560px they stop moving right, keeping their gap
   to the headline. Below 1556px (where 45% is 700px) nothing changes. */
@media (min-width: 1556px) {
  .hero.orbit:has(> svg.orbits) { overflow: clip visible; }
  .hero.orbit svg.orbits { top: 0; transform: none; width: clamp(700px, 45vw, 1150px); right: max(-12%, calc(50% - 1587px)); }
}
@media (max-width: 760px) { .hero.orbit svg.orbits { width: 120%; right: -50%; top: 72%; opacity: .6; -webkit-mask-image: linear-gradient(to right, transparent, #000 32%); mask-image: linear-gradient(to right, transparent, #000 32%); } }
/* Careers hero: no label over the heading, which sits a little higher than on other pages (80% of a section's space
   under the nav); the buttons stand well apart from the words, twice the 48px of Home and Models (72px on a phone,
   twice its 36px). (The 404 page shares the orbit hero without its drawing, and keeps its own spacing.) */
.hero.orbit:has(> svg.orbits) { padding-top: calc(78px + var(--sec) * .8); }
.hero.orbit:has(> svg.orbits) .wrap > .row { margin-top: clamp(72px, 7vw, 96px); }
/* Careers, How it feels: a block as wide as the page's other rows, so its edges line up with the sign-off under it.
   Its label and the link to the team share the top line, at either end; under them the two paragraphs sit side by
   side in two equal halves (stacked below about 870px). On a big screen, where the orbits run on down beside this
   section, the block keeps to 900px so the outer ring stays 90px or more clear of the link and the second paragraph. */
.feel > .row { align-items: baseline; margin-bottom: 14px; }
.feel .eyebrow { margin: 0; }
.feel > .row a { font-weight: 600; text-underline-offset: 4px; }
.feel > .lede { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 18px 48px; max-width: none; text-wrap: pretty; }
@media (min-width: 1556px) { .feel { max-width: 900px; } }
@media (max-width: 760px) { .feel { margin-top: 24px; } } /* on a phone the orbits run down to it: a little more air under them */
/* Home: the heading, its subtitle and the button are one group, with at least a section's space between it and the
   nav above and the facts strip below; a section's space also separates the strip from the band under it. Together
   the hero and the strip fill the first screen (.first): the strip ends 28px above the fold (1032px down the page on a
   screen taller than 1060px) and the group sits centred in the room above it, so the more screen there is, the more
   air it gets above and below. --above is the nav bar's height, where .first begins. Where the group needs more room
   than the screen has, the spacing stays at those minimums. */
.first { --above: 89px; display: flex; flex-direction: column; min-height: calc(min(100svh, 1060px) - var(--above) - 28px + var(--sec)); }
@media (max-width: 800px) { .first { --above: 76px; } }
.first > .hero { flex: 1 0 auto; }
.first > .wrap, .hero.field .wrap { width: 100%; } /* a flex item with auto side margins would shrink to its content */
.hero.field { display: flex; flex-direction: column; justify-content: center; padding: calc(78px + var(--sec)) 0 var(--sec); }
/* The group, the same on Home and Models: a heading of 80px at most, so the button under it does not look small
   beside it; the subtitle a little under half that, 20px under the heading so it clears the heading's descenders; the
   button 48px under the subtitle (36px on a phone), as on every hero. */
:is(.hero.field, .hero.funnel) h1.display { font-size: clamp(46px, 5.6vw, 80px); }
:is(.hero.field, .hero.funnel) h1 .sub { margin-top: 20px; font-size: max(22px, .45em); }
:is(.hero.field, .hero.funnel) .wrap > .row { margin-top: 48px; }
@media (max-width: 760px) { :is(.hero.field, .hero.funnel) .wrap > .row { margin-top: 36px; } }
.hero.field canvas { position: absolute; top: 0; right: 0; bottom: 0; left: 30%; width: 70%; height: 100%; pointer-events: none; -webkit-mask-image: linear-gradient(to right, transparent calc(max(32px, (100vw - 1116px) / 2) + 700px - 30vw), #000 calc(max(32px, (100vw - 1116px) / 2) + 840px - 30vw)), linear-gradient(to top, transparent, #000 22%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent calc(max(32px, (100vw - 1116px) / 2) + 700px - 30vw), #000 calc(max(32px, (100vw - 1116px) / 2) + 840px - 30vw)), linear-gradient(to top, transparent, #000 22%); mask-composite: intersect; }
/* Up to 1000px the headline takes the hero's width, so the field sits under it, across the page, and fades out
   above the facts rather than stopping on a line. (Wider, beside the headline, it would be pushed off the screen.) */
@media (max-width: 1000px) { .hero.field canvas { left: 0; width: 100%; opacity: .7; -webkit-mask-image: linear-gradient(to bottom, transparent 56%, #000 78%, #000 86%, transparent); -webkit-mask-composite: source-over; mask-image: linear-gradient(to bottom, transparent 56%, #000 78%, #000 86%, transparent); mask-composite: add; } }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.pad { padding: 26px; }
.tint { border-radius: 18px; padding: 28px; background: var(--card) !important; border: 1px solid var(--line); border-top: 3px solid var(--line2); }
.tint.t-pink { border-top-color: var(--pink); } .tint.t-mint { border-top-color: var(--mint); } .tint.t-amber { border-top-color: var(--amber); } .tint.t-grey { border-top-color: var(--ink); }
.art { background: var(--bg2); border-bottom: 1px solid var(--line); }
.stripe { height: 6px; width: 32px; border-radius: 3px; }
.b-pink { background: var(--pink); } .b-mint { background: var(--mint); } .b-amber { background: var(--amber); } .b-ink { background: var(--ink); } .b-grey { background: var(--line2); }
.bar { flex: 1; height: 8px; border-radius: 4px; background: var(--track); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 4px; }
.prob { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.prob .name { width: 96px; } .prob .val { width: 48px; text-align: right; font-family: var(--mono); font-size: 13px; }
.quote-box { padding: 12px 14px; border-radius: 12px; background: var(--bg2); font-size: 16px; }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }

/* proof strip: three figures between two rules, each over what it means, the first flush with the rules' start. The
   JevBench figure links to the ranking it comes from: pointed at, its words darken and an arrow rises into its top
   right corner (on a touch screen the arrow is always there). Below 760px each figure sits beside its words, a row each. */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > * { position: relative; display: block; padding: 28px 28px 30px; border-left: 1px solid var(--line); color: inherit; text-decoration: none; }
.facts > :first-child { padding-left: 0; border-left: 0; }
.facts .big, .facts .cap { display: block; }
.facts .big { font-family: var(--serif); font-size: clamp(44px, 5.2vw, 60px); line-height: 1; }
.facts .cap { margin-top: 10px; font-size: 17px; color: var(--muted); transition: color .2s; }
.facts .go { position: absolute; top: 26px; right: 24px; width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: translate(-6px, 6px); transition: opacity .2s, transform .35s cubic-bezier(.2, .7, .2, 1); }
.facts a:hover { opacity: 1; }
.facts a:is(:hover, :focus-visible) .cap { color: var(--ink); }
.facts a:is(:hover, :focus-visible) .go { opacity: 1; transform: none; }
.facts a:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; border-radius: 4px; }
@media (hover: none) { .facts .go { opacity: .55; transform: none; } }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; }
  .facts > * { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts > :first-child { border-top: 0; }
  .facts > a { padding-right: 36px; } /* the arrow's room, so the words never run under it */
  .facts .big { flex: none; width: 128px; font-size: 40px; }
  .facts .cap { margin: 0; font-size: 16px; }
  .facts .go { top: 20px; right: 4px; }
}
@media (prefers-reduced-motion: reduce) { .facts .cap, .facts .go { transition: none; } }

/* loop demo */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: stretch; }
.part { display: flex; flex-direction: column; }
.part .console { flex: 1; display: flex; flex-direction: column; }
.part .console .body { flex: 1; }
.part .console .body > .check { margin-top: auto; }
@media (max-width: 900px) { .pair { grid-template-columns: 1fr; gap: 48px; } }
.part { border-top: 2px solid var(--ink); padding-top: 16px; }
.part .n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.part h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 40px); line-height: 1.08; letter-spacing: -0.01em; margin-top: 2px; }
.part .say { color: var(--ink2); font-size: 18px; margin-top: 10px; }
.kv { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px 12px; margin: 0; font-size: 16px; }
.kv dt { color: var(--muted); font-size: 15px; } .kv dd { margin: 0; }
.console .body > .label { margin-top: 6px; }
.console { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 60px -40px rgba(0,0,0,.45); overflow: hidden; }
.console .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.console .body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.qrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; }
.qrow.hot { border-color: var(--amber); background: var(--amber-t); }
.qrow .grow { flex: 1; min-width: 0; }
.check { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.dot { width: 10px; height: 10px; border-radius: 5px; flex: none; }

/* media */
.frame { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--card); aspect-ratio: 16 / 10; }
.frame video { width: 100%; height: 100%; object-fit: cover; }
/* The film's buttons sit over its lower corners: Sound on the left and, once the film has played through, Replay on
   the right (Play, where the browser would not start it). The film's closing frame keeps both corners empty. On a
   phone the buttons are round and show only their icons, which keeps them clear of the closing line. */
.frame:has(.sound) { position: relative; }
:is(.sound, .replay) { position: absolute; bottom: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(11, 14, 19, .62); color: #F5F3F0; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sound { left: 14px; } .replay { right: 14px; }
:is(.sound, .replay):hover { background: rgba(11, 14, 19, .8); }
:is(.sound, .replay):focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
.sound .s-on, .sound[aria-pressed=true] .s-off { display: none; }
.sound[aria-pressed=true] .s-on { display: inline; }
.replay { opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.frame:is(.ended, .blocked) .replay { opacity: 1; visibility: visible; transition: opacity .3s; }
.replay :is(.i-play, .t-play), .frame.blocked .replay :is(.i-replay, .t-replay) { display: none; }
.frame.blocked .replay :is(.i-play, .t-play) { display: inline; }
@media (max-width: 600px) {
  :is(.sound, .replay) { bottom: 10px; width: 40px; padding: 0; }
  .sound { left: 10px; } .replay { right: 10px; }
  :is(.sound, .replay) > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* still read out */
}
@media (prefers-reduced-motion: reduce) { .replay { transition: none; } }
.thumb { display: block; border-radius: 18px; border: 1px solid var(--line); background-color: #FCFAF7; background-repeat: no-repeat; background-size: contain; background-position: center; aspect-ratio: 4 / 3; }
.thumb.wide { aspect-ratio: auto; min-height: 360px; border-radius: 0; border: 0; }
/* Post artwork is drawn on off-white paper, #FCFAF7, and a square drawing leaves bands either side of it in its box. On
   a light theme the box is the card's colour and the drawing is darkened onto it, so the paper takes the card's colour
   wherever the card is the darker of the two (Sand). Linen's card is lighter than the paper, which darkening cannot
   reach, so there the box takes the paper's colour (--art-paper) and picture and bands are one shade. */
html[data-tone=light] .thumb { background-color: var(--art-paper, var(--card)); background-blend-mode: darken; }
.thumb.inset { padding: 9%; background-origin: content-box; } /* a heavier drawing, shown a little smaller (build.py, ART_INSET) */
.post-card > .muted { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
/* Home, From the blog: the posts in a row that scrolls sideways with no scroll bar. On a wide screen it shows three, on
   the columns of the rows of three above it; narrower, two; on a phone, one and the edge of the next. Two round arrows
   sit on the row's edges, level with the middle of the pictures, and page through it; each shows only while there is
   more on its side (runtime.js). A touch screen swipes instead. */
.rail { position: relative; container-type: inline-size; }
.scroller { display: flex; gap: 48px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { flex: 0 0 var(--cw); scroll-snap-align: start; }
.rail > * { --cw: calc((100cqw - 96px) / 3); }
@container (width < 900px) { .rail > * { --cw: calc((100cqw - 48px) / 2); } }
@container (width < 600px) { .rail > * { --cw: 82cqw; } .scroller { gap: 20px; } }
.rail-btn { position: absolute; top: calc(var(--cw) * .375); z-index: 2; translate: 0 -50%; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 1px solid var(--line2); background: var(--card); color: var(--ink); box-shadow: 0 10px 24px -12px rgba(0,0,0,.4); transition: opacity .2s, visibility .2s, background-color .15s, border-color .15s, color .15s; }
.rail-btn.prev { left: -24px; } .rail-btn.next { right: -24px; }
@media (max-width: 600px) { .rail-btn.prev { left: -14px; } .rail-btn.next { right: -14px; } } /* inside a phone's 20px gutter, 6px from the screen's edge */
.rail-btn svg { width: 20px; height: 20px; }
.rail-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.rail-btn:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
.rail-btn.off { opacity: 0; visibility: hidden; }
@media (hover: none) and (pointer: coarse) { .rail-btn { display: none; } }
/* a post's category: a small chip, its dot in the category's colour */
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 7px; border-radius: 999px; background: var(--card); border: 1px solid var(--line2); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--pink); }
.tag[data-kind=Engineering]::before { background: var(--mint); } .tag[data-kind=Company]::before { background: var(--amber); }
@media (max-width: 800px) { .tag { font-size: 10px; padding: 4px 9px 4px 8px; } }
.thumb { position: relative; } .thumb > .tag { position: absolute; top: 10px; left: 10px; }
/* Blog page: the featured post, its picture beside its text, or above it once there is no room for both */
.feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); overflow: hidden; text-decoration: none; }
.feature-text { padding: 40px; display: flex; flex-direction: column; gap: 14px; }
.feature-title { font-size: 40px; line-height: 1.06; text-wrap: balance; }
@media (max-width: 600px) {
  .feature .thumb.wide { min-height: 0; aspect-ratio: 4 / 3; }
  .feature-text { padding: 22px 22px 26px; gap: 12px; }
  .feature-title { font-size: 30px; line-height: 1.08; }
}
/* The featured post answers the pointer like the rows under it: only on its picture and its words (tag and date,
   title, summary, byline), not on the card's padding or the space between them, and pointing at them underlines the
   title. It stays one link. */
.feature { pointer-events: none; }
.feature > .thumb, .feature-text > * { pointer-events: auto; }
.feature:hover .feature-title { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
/* Blog page: one post per row, its picture on the left and its text on the right */
.post-list { display: grid; }
.post-row { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 40px; align-items: center; padding: 32px 0; border-top: 1px solid var(--line); text-decoration: none; }
.post-row:first-child { border-top: 0; padding-top: 0; }
.post-text { display: flex; flex-direction: column; gap: 12px; max-width: 620px; }
.post-row h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.1; text-wrap: balance; }
.post-row:hover h3 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
/* A row stays one link, for keyboards and screen readers, but only its picture and its words answer the pointer. The
   row runs the page's width, so its empty stretch right of the words, and the space around them, used to underline
   the title and open the post too. */
.post-row { pointer-events: none; }
.post-row > * { pointer-events: auto; }
.post-sum { font-size: 17px; color: var(--ink2); }
@media (max-width: 760px) { .post-row { grid-template-columns: 1fr; gap: 18px; } }
.post-card { text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.post-card h3 { font-family: var(--serif); font-weight: 500; font-size: var(--card-title); line-height: 1.15; text-wrap: balance; }

/* tables + code */
.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th, .table td { padding: 16px 20px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.table thead th { border-top: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); font-weight: 500; text-transform: uppercase; }
.table .hl { background: var(--mint-t); }
.scroll-x { overflow-x: auto; }
pre.code { margin: 0; padding: 22px; border-radius: 16px; background: var(--night); color: #E8E6E1; font-family: var(--mono); font-size: 13.5px; line-height: 1.65; overflow-x: auto; white-space: pre; }

/* Models hero: a funnel of lines behind the heading, in the same key as the Careers orbits; its words are the Home
   hero's group (styled with it, above). With the heading on one line here the group is short, so the button stands
   further off the subtitle: --gap, 80px on a wide screen and 48px on a phone (Home: 48 and 36). The hero takes more
   room than the others, so the funnel and the words have space around them: --air more above the heading (on top of
   the section's space every hero leaves under the nav) and as much more under the button, 88px each on a wide screen
   less half the extra gap. So the heading rises and the button drops by the same amount, the group keeps its centre,
   and the table stays a row lower than it first sat. On a phone --air is about 22px. */
.hero.funnel { --gap: clamp(56px, 5.4vw, 80px); --air: calc(clamp(16px, 5.8vw, 88px) - (var(--gap) - 48px) / 2); display: flex; align-items: center; padding-top: calc(78px + var(--sec) + var(--air)); padding-bottom: calc(98px + var(--air)); min-height: 500px; }
.hero.funnel .wrap > .row { margin-top: var(--gap); }
@media (max-width: 760px) { .hero.funnel { --gap: 48px; } }
/* Models: under the button the hero keeps 98px and its --air (above 860px the table's column labels fill 32px of the
   98, so the hero leaves 82). The table then ends like every other section, a section's space above the band under it. */
.section.ladder-sec { padding: 0 0 var(--sec); }
@media (min-width: 861px) { .hero.funnel { padding-bottom: calc(82px + var(--air)); } }
.hero.funnel .wrap { width: 100%; }
/* the lines fade in below the nav rather than running up behind it */
.hero.funnel svg.flow { position: absolute; top: 0; right: 0; width: min(920px, 68%); height: 100%; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, transparent 78px, #000 190px, #000 62%, transparent 96%), linear-gradient(to right, transparent, #000 30%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, transparent 78px, #000 190px, #000 62%, transparent 96%), linear-gradient(to right, transparent, #000 30%); mask-composite: intersect; }
@media (max-width: 900px) { .hero.funnel svg.flow { width: 110%; right: -45%; opacity: .6; } } /* the funnel's neck stays clear of a one-line heading */

/* Blog hero: wavy threads behind the heading, in the same key as the Careers orbits and the Models funnel */
.hero.threads { display: flex; align-items: center; padding: calc(78px + var(--sec)) 0 56px; } /* the heading a section's space under the nav, as on every page; 56 to the featured post, which opens the list */
.hero.threads .wrap { width: 100%; position: relative; }
/* the threads fade out along the hero's lower edge, like the Models funnel, rather than stopping on a line */
.hero.threads svg.threads { position: absolute; top: 0; right: 0; width: min(920px, 68%); height: 100%; pointer-events: none; -webkit-mask-image: linear-gradient(to right, transparent, #000 32%), linear-gradient(to bottom, #000 58%, transparent 98%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 32%), linear-gradient(to bottom, #000 58%, transparent 98%); mask-composite: intersect; }
@media (max-width: 760px) { .hero.threads svg.threads { width: 110%; right: -45%; opacity: .6; } }

/* Home, OneHot: heading beside the logo, whose animation follows the scroll (assets/onehot-ignition/scroll.js). The
   band takes a section's space above and below, like every band, and its heading the size of every section heading.
   The text column is the wider of the two, so each sentence of the heading keeps a line of its own. */
.ignite { padding: var(--sec) 0; }
.ignite .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.ignite h2 > span { display: block; text-wrap: balance; }
.ignite canvas { display: block; width: 100%; aspect-ratio: 4 / 1; color: var(--ink); }
/* stacked, the logo leads the section, centred over the words, as the drawing is centred in its canvas, with room
   enough under it that the band does not read as crowded between the sections next to it */
@media (max-width: 860px) { .ignite .wrap { grid-template-columns: 1fr; gap: 40px; } .ignite canvas { order: -1; max-width: 340px; margin: 0 auto; } }
@media (max-width: 600px) { .ignite canvas { max-width: none; } } /* a phone shows the animation at the column's full width (was 272px), in the band's room above the words */
/* On a phone each sentence keeps one line: the heading follows its column's width (the longer sentence is 11.25em wide
   in Crimson Pro, 11.5 leaves a little slack), so it keeps the page's heading size wherever that fits and shrinks only
   below about 460px. Without container units it keeps the heading size and wraps. */
@media (max-width: 600px) { .ignite .wrap > div { container-type: inline-size; } .ignite h2 { font-size: min(var(--h2), 100cqi / 11.5); } }

/* Home, Our models: the three points sit open on the page, a drawing over a rule and its text */
.open3 { gap: 40px 48px; }
.open3 > .card { background: none; border: 0; border-radius: 0; }
.open3 .art { --h: 200px; height: var(--h); background: none; border: 0; border-bottom: 1px solid var(--line2); }
/* One under another (up to 691px the three do not fit two to a row), each point is its drawing with its words right
   under it, and a rule closes the point. A rule between a drawing and its words left the words floating between two
   drawings, unclear which they belonged to. */
@media (max-width: 691px) {
  .open3.mt48 { margin-top: 28px; }
  .open3 { row-gap: 0; }
  .open3 > .card { padding-bottom: 28px; border-bottom: 1px solid var(--line2); }
  .open3 > .card + .card { padding-top: 28px; }
  .open3 > .card:last-child { padding-bottom: 0; border-bottom: 0; }
  .open3 .art { border-bottom: 0; }
  .open3 .pad { padding-top: 14px !important; }
  /* Each drawing leaves its own empty margin inside its box (in its 400 x 220 units, top and bottom: orbits 29 and
     25, waves 18.5 and 0, bars 39 and 18). Taken back here, every drawing sits the same 56px under the line above it
     and the same 28px over its words, which is where the waves already sat over theirs. Redrawing one means measuring
     its margins again. */
  .open3 > .card:nth-child(1) .art { margin: calc(28px - var(--h) * 29 / 220) 0 calc(var(--h) * -25 / 220); }
  .open3 > .card:nth-child(2) .art { margin-top: calc(28px - var(--h) * 18.5 / 220); }
  .open3 > .card:nth-child(3) .art { margin: calc(28px - var(--h) * 39 / 220) 0 calc(var(--h) * -18 / 220); }
}
/* on a phone a drawing keeps some air either side of it */
@media (max-width: 600px) { .open3 .art { --h: 164px; } }
.open3 .pad { padding: 18px 0 0 !important; }
.open3 h3 { font-family: var(--serif); font-weight: 500; font-size: var(--card-title) !important; line-height: 1.15; text-wrap: balance; }
.open3 p { color: var(--ink2); } /* the text under a card's title is the same colour in every row of three */

/* night sections + footer */
.night { background: var(--night); color: var(--night-ink); }
.night .eyebrow, .night .muted { color: var(--night-muted); }
.night a { color: var(--night-ink); }
/* footer: the logo's three waves along the top, then the links on the last wave's colour so nothing runs behind the text */
footer.site-foot { --fw: calc(var(--band) * .7); position: relative; overflow: hidden; background: linear-gradient(to bottom, var(--bg) calc(var(--fw) - 1px), var(--amber-w) 0); color: var(--ink); padding: calc(var(--fw) + 24px) 0 30px; font-size: 16px; font-weight: 500; line-height: 1.35; }
/* a page that ends on the darker band keeps that colour behind the waves */
main:has(> section.band:last-child) + footer.site-foot { background: linear-gradient(to bottom, var(--bg2) calc(var(--fw) - 1px), var(--amber-w) 0); }
footer.site-foot > svg.waves { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: var(--fw); overflow: visible; } /* the amber band's lower line dips a little below the strip mid-page: it runs on behind the links instead of stopping */
footer.site-foot .wrap { position: relative; }
footer.site-foot .muted, footer.site-foot .muted a { color: var(--ink); }
footer.site-foot .legal { margin-top: 32px; font-size: 14px; }
footer .cols { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; }
footer .col { display: flex; flex-direction: column; gap: 5px; }
footer .col a { color: var(--ink); text-decoration: none; }
footer .col a:hover { text-decoration: underline; text-underline-offset: 4px; }
footer .col strong { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; font-weight: 600; margin-bottom: 5px; }
/* on a touch screen each link gets a taller row to tap; on a phone the three lists sit two to a row under the logo */
@media (max-width: 800px) {
  footer .col { gap: 0; }
  footer .col a { padding: 8px 0; }
  footer .col strong { margin-bottom: 4px; }
}
@media (max-width: 600px) {
  footer .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  footer .cols > :first-child { grid-column: 1 / -1; }
  footer.site-foot .legal { line-height: 1.6; }
}

/* blog post */
/* its heading: the text beside the post's drawing, the same drawing as on the Blog page */
.post-head { max-width: 900px; padding-top: 56px; padding-bottom: 56px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: center; }
.post-head h1 { font-size: clamp(38px, 4.4vw, 58px); }
.post-head .lede { max-width: none; }
.post-head .thumb { aspect-ratio: 1; }
@media (max-width: 800px) { .post-head { grid-template-columns: 1fr; gap: 28px; } .post-head .thumb { width: min(240px, 70%); } }
.prose { max-width: 720px; margin: 0 auto; font-size: 19px; line-height: 1.7; color: var(--ink2); }
.prose > * + * { margin-top: 22px; }
.prose > :first-child { margin-top: 0; } /* a post that opens on a heading starts 56px under the rule, like any other */
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 36px; line-height: 1.15; color: var(--ink); margin-top: 56px; scroll-margin-top: 100px; }
.prose h3 { font-family: var(--serif); font-weight: 500; font-size: 27px; color: var(--ink); margin-top: 40px; scroll-margin-top: 100px; }
.prose ul, .prose ol { padding-left: 24px; } .prose li + li { margin-top: 10px; }
.prose code { font-family: var(--mono); font-size: .85em; background: var(--bg2); padding: 2px 6px; border-radius: 6px; }
/* Figures in a post. Every kind (a drawn diagram, a picture, a live chart) sits on the site's card and runs the
   width of the heading above it, 836px, while the text and the captions keep the 720px column. */
.prose { --media: min(836px, 100vw - 64px); }
@media (max-width: 600px) { .prose { --media: 100%; } } /* on a phone the text already runs the page's width */
.prose figure { margin: 40px 0; }
.prose > figure, .prose > .router-figure { margin-inline: min(0px, (100% - var(--media)) / 2); }
.prose > .router-figure[data-figure="routing-question-contrast"] { margin-inline: 0; } /* two lines of text, not a picture: it keeps the text column */
/* The router post's two widest charts have no phone drawing of their own: on a phone they keep a width their words
   can be read at and scroll sideways inside their frame. (Its 3D plot is turned by dragging, so it is left whole.) */
@media (max-width: 640px) {
  .router-figure:is([data-figure=router-frontier], [data-figure=layer-routability]) .rounded-\[18px\]:has(> svg) { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .router-figure:is([data-figure=router-frontier], [data-figure=layer-routability]) .rounded-\[18px\]:has(> svg)::-webkit-scrollbar { display: none; }
  .router-figure[data-figure=router-frontier] .rounded-\[18px\] > svg { min-width: 680px; }
  .router-figure[data-figure=layer-routability] .rounded-\[18px\] > svg { min-width: 520px; }
}
.prose figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.prose > figure > figcaption, .prose > .router-figure figure > figcaption { max-width: 720px; margin-inline: auto; }
.plate { border: 1px solid var(--line); border-radius: 18px; background: var(--card); overflow: hidden; isolation: isolate; }
.prose .plate { padding: 28px 24px; }
.prose .plate img { margin: 0 auto; }
@media (max-width: 640px) { .prose .plate { padding: 18px 14px; } }
/* a picture drawn on white or off-white takes the card's colour instead of sitting on a white plate */
html[data-tone=light] .plate img { mix-blend-mode: darken; }
.prose .fig .plate { padding: 22px 24px; font-size: 15px; line-height: 1.55; }
.prose .fig .more { font-weight: 600; text-underline-offset: 4px; }
/* drawn diagrams (build.py, DIAGRAMS): ink lines, the logo's colours as tints, the site's three typefaces */
.diagram .plate { overflow-x: auto; }
.diagram svg { display: block; width: 100%; min-width: 540px; height: auto; margin: 0 auto; }
.diagram text { text-anchor: middle; }
.diagram .n { fill: var(--bg); stroke: var(--ink); stroke-width: 1.5; }
.diagram .n.pink { fill: var(--pink-t); } .diagram .n.mint { fill: var(--mint-t); } .diagram .n.amber { fill: var(--amber-t); } .diagram .n.quiet { fill: var(--grey-t); }
.diagram .p { fill: var(--ink); }
.diagram .t { font-family: var(--serif); font-size: 24px; fill: var(--ink); }
.diagram .s { font-family: var(--sans); font-size: 13.5px; fill: var(--muted); }
.diagram .pt { font-family: var(--sans); font-size: 15px; font-weight: 600; fill: var(--bg); }
.diagram .t.on { font-size: 22px; fill: var(--bg); } .diagram .s.on { font-size: 12.5px; fill: var(--bg); opacity: .78; }
.diagram .w { font-family: var(--serif); font-style: italic; font-size: 21px; fill: var(--muted); }
.diagram .a { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.diagram .a.dash { stroke: var(--muted); stroke-dasharray: 2 6; } .diagram .a.soft { stroke: var(--muted); }
/* charts drawn for a post (build.py, CHARTS), in the key of the Models page: our fine-tune is the pink dot in an ink
   ring, kettei fat the mint one, base chub the open ring, every other model grey; words and numbers stay in ink */
.chart .plate { padding: 22px 24px 18px; overflow-x: auto; }
.ch-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 0 0 18px; font-family: var(--mono); font-size: 11px; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.chart svg { display: block; width: 100%; min-width: 640px; height: auto; }
.chart .nm { font-family: var(--sans); font-size: 15px; fill: var(--muted); } .chart .nm.us { fill: var(--ink); font-weight: 600; }
.chart .sb { font-family: var(--mono); font-size: 11.5px; fill: var(--muted); }
.chart .pt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; fill: var(--ink2); }
.chart .tk { font-family: var(--mono); font-size: 12px; fill: var(--muted); text-anchor: middle; }
.chart .g { stroke: var(--line); } .chart .zero { stroke: var(--line2); }
.chart .v { font-family: var(--mono); font-size: 14px; fill: var(--muted); } .chart .v.us { fill: var(--ink); }
.chart .vb { font-family: var(--serif); font-size: 26px; fill: var(--ink); }
.chart .d, .chart .b { fill: var(--line2); }
.chart .d.ft, .chart .d.ft1, .chart .d.fat, .chart .d.base { stroke: var(--ink); stroke-width: 2; }
.chart .ft { fill: var(--pink); } .chart .ft1 { fill: var(--pink-w); } .chart .fat { fill: var(--mint); } .chart .base { fill: var(--card); }
.chart .b.base { stroke: var(--ink); stroke-width: 1.5; }
/* A chart or diagram drawn twice (build.py: rowchart, DIAGRAMS) shows its phone drawing wherever the wide one
   would have to scroll inside its card. The chart keeps to the card's left edge, under its title; a diagram is centred. */
@media (max-width: 760px) {
  :is(.chart, .diagram) .wide-only { display: none !important; }
  :is(.chart, .diagram) .narrow-only { display: block !important; }
  .chart svg.narrow-only { min-width: 0; max-width: 440px; }
  .diagram svg.narrow-only { min-width: 0; max-width: 380px; }
  /* in a card wider than the drawing (a small tablet), its title and the drawing share one centred column */
  .chart .plate:has(> svg.narrow-only) > :is(.ch-top, svg.narrow-only) { max-width: 440px; margin-inline: auto; }
}
.chart svg.narrow-only .vb { font-size: 22px; }
/* names and values cross the gridlines on a phone's chart: a halo in the card's colour keeps them clean */
.chart svg.narrow-only :is(.nm, .sb, .v, .vb, .pt) { paint-order: stroke; stroke: var(--card); stroke-width: 5px; stroke-linejoin: round; }
/* a small table of results: a figure in the display face, a line under it */
.ptable { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.3; }
.ptable th, .ptable td { padding: 14px 16px; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
.ptable thead th { padding-top: 0; border-top: 0; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.ptable tbody th { padding-left: 0; font-weight: 400; color: var(--muted); white-space: nowrap; } .ptable tr.us th, .ptable tr.ft th { font-weight: 600; color: var(--ink); }
.ptable td b { display: block; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.05; color: var(--ink); }
.ptable td small { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.ptable td.on { background: var(--pink-t); } .ptable td.on small { color: var(--ink2); } /* trained on this, or our fine-tune's row */
.ptable .sum { border-left: 1px solid var(--line2); }
.ptable td.ref b { font-size: 20px; color: var(--ink2); } /* the baseline a row of gains is measured from: quieter than the gains */
.chart .ch-block + .ch-block { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); } /* two charts in one figure, each read on its own */
/* On a phone, where the table would have to scroll, each row becomes a card: the model's name over its results,
   two to a row, each named by its column. A total runs the card's width, set apart by its rule. */
@media (max-width: 560px) {
  .ptable { display: block; min-width: 0; }
  .ptable thead { display: none; }
  .ptable tbody { display: block; }
  .ptable tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; padding: 16px 0; border-top: 1px solid var(--line); }
  .ptable tr:first-child { border-top: 0; padding-top: 0; }
  .ptable tr:last-child { padding-bottom: 0; }
  .ptable tbody th { grid-column: 1 / -1; padding: 0 0 4px; border: 0; white-space: normal; font-size: 15px; }
  .ptable td { display: flex; flex-direction: column; justify-content: flex-end; padding: 8px 10px 10px; border: 0; border-radius: 10px; } /* figures line up across a row when one column's name takes two lines */
  .ptable td::before { content: attr(data-l); display: block; margin-bottom: 4px; font-family: var(--mono); font-size: 10.5px; line-height: 1.35; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .ptable td b { font-size: 24px; }
  .ptable td small { white-space: normal; }
  .ptable .sum { grid-column: 1 / -1; margin-top: 4px; padding-top: 12px; border: 0; border-top: 1px solid var(--line2); border-radius: 0; }
  .ptable .sum.on { margin-top: 8px; padding-top: 8px; border-top: 0; border-radius: 10px; } /* a tinted total is set apart by its tint */
}
.prose blockquote { margin: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--pink); font-family: var(--serif); font-size: 26px; line-height: 1.3; color: var(--ink); }
.prose blockquote cite { display: block; margin-top: 10px; font-family: var(--mono); font-size: 12px; font-style: normal; color: var(--muted); }
.prose .cta { background: var(--mint-t); border-radius: 18px; padding: 26px; text-align: left; }
.prose .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.prose a.go { display: inline-block; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; font-size: 16px; }
.prose a.go.quiet { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.prose ol.refs, .prose .kettei-references ol, .prose ol.list-decimal { font-size: 14px; line-height: 1.5; color: var(--muted); word-break: break-word; }
html[data-tone=dark] .only-light, html[data-tone=light] .only-dark { display: none; }


/* single-page Home: anchor offsets and the section dots */
section[id] { scroll-margin-top: 84px; }
#sq-dots { position: fixed; left: 12px; top: 50%; transform: translateY(-50%); z-index: 15; display: flex; flex-direction: column; gap: 4px; }
#sq-dots a { display: flex; align-items: center; gap: 10px; box-sizing: border-box; width: 15px; padding: 6px 4px; text-decoration: none; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
#sq-dots i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--line2); transition: transform .2s, background .2s; }
#sq-dots span { opacity: 0; padding: 3px 8px; border-radius: 999px; background: var(--ink); color: var(--bg); transition: opacity .15s; pointer-events: none; white-space: nowrap; }
#sq-dots a:hover span, #sq-dots a:focus-visible span { opacity: 1; }
#sq-dots a.on i { background: var(--ink); transform: scale(1.5); }
#sq-dots a:hover { opacity: 1; }
@media (max-width: 1000px) { #sq-dots { display: none; } }

/* Models page: one card per model */
/* Models: the family as one table, a row per model */
.lhead, .lrow { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(5, minmax(0, 1fr)) 88px; gap: 18px; align-items: center; }
.lhead { padding: 0 28px 12px; font-family: var(--mono); font-size: 13px; line-height: 20px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ladder { overflow: hidden; } .lrow { padding: 24px 28px; } .lrow + .lrow { border-top: 1px solid var(--line); }
.lrow h3 { font-family: var(--mono); font-weight: 500; font-size: 19px; letter-spacing: -.01em; white-space: nowrap; }
/* one spec per cell: a small scale or figure, and a word for it underneath */
.spec { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.spec > b { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 20px; color: var(--ink); }
.pips, .bolts, .ins { display: flex; align-items: center; gap: 5px; height: 20px; }
.pips i { width: 11px; height: 11px; border-radius: 50%; background: var(--line2); opacity: .55; } .pips i.on { background: var(--pink); opacity: 1; }
.bolts span { display: flex; } .bolts svg { width: 10px; height: 14px; fill: var(--line2); opacity: .55; } .bolts .on svg { fill: var(--ink); opacity: 1; }
.ins { gap: 7px; } .ins span { display: flex; } .ins svg { width: 20px; height: 20px; fill: none; stroke: var(--line2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .6; } .ins .on svg { stroke: var(--ink); opacity: 1; }
.ins .half svg { stroke: var(--ink); stroke-dasharray: 2.5 2.5; opacity: 1; } .ins .half svg path { stroke-dasharray: none; }
/* Fine-tunable: a soft mint tick where OneHot fine-tunes it today (fine-tuning is mint, as on Home; the full brand mint
   was too loud beside the table's other marks), an empty dashed ring where it is not generally available (fat in early
   preview, dot on your own device) */
.spec[data-l="Fine-tunable"] .ins .on svg circle { fill: var(--mint-w); }
/* where to get it: the OneHot mark for the API, the Hugging Face mark for open weights, each on a raised white disc
   that lifts when pointed at */
.gets { display: grid; grid-template-columns: 40px 40px; gap: 8px; } .get.hf { grid-column: 2; } /* each mark keeps its own column */
.get { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line2); background: var(--card); box-shadow: 0 6px 14px -9px rgba(27, 30, 36, .4); transition: transform .2s, box-shadow .2s, border-color .2s; }
.get img { width: 27px; height: 27px; object-fit: contain; } .get.hf img { width: 24px; height: 24px; }
.get:hover { opacity: 1; border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 18px -8px rgba(27, 30, 36, .5); }
.get:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .get { transition: none; } }
/* one chart at a time behind a small switch: radio buttons, no script */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tabs input { position: absolute; opacity: 0; pointer-events: none; }
.tabs label { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line2); font-size: 14px; font-weight: 600; cursor: pointer; color: var(--muted); }
.tabs input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tabs .pane { display: none; flex: 0 0 100%; padding-top: 18px; }
.tabs input:nth-of-type(1):checked ~ .pane:nth-of-type(1), .tabs input:nth-of-type(2):checked ~ .pane:nth-of-type(2), .tabs input:nth-of-type(3):checked ~ .pane:nth-of-type(3), .tabs input:nth-of-type(4):checked ~ .pane:nth-of-type(4) { display: block; }
@media (max-width: 860px) { .lhead { display: none; } .lrow { grid-template-columns: 1fr 1fr; gap: 20px 16px; } .lrow h3 { grid-column: 1 / -1; } .spec::before { content: attr(data-l); font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; } }
@media (max-width: 860px) and (min-width: 601px) { .lrow { grid-template-columns: repeat(3, minmax(0, 1fr)); } } /* a tablet fits three specs to a row */
@media (max-width: 860px) { .gets { row-gap: 8px; } .gets::before { content: "Try it"; grid-column: 1 / -1; font-family: var(--mono); font-size: 10.5px; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); } }
@media (max-width: 600px) { .lrow { padding: 22px 20px; } }
/* On a phone each model is a compact card: its name at the top left; at the top right what it reads (the input icons,
   no words, which stay for screen readers) and where to get it (the discs, which need not line up from card to card
   here, so a model without the API leaves no gap for it); then two rows of two, intelligence and speed, price and
   fine-tuning. It is a wrapping flex row, ::before breaking the line before the specs: where a narrow phone cannot fit
   name, icons and discs on one line, the discs drop to the right of the next line instead of overflowing. */
@media (max-width: 600px) {
  .lrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
  .lrow h3 { flex: 1 1 auto; font-size: 18px; } /* at 18px the longest header, kettei-core with both discs, fits a 360px phone */
  .lrow .spec[data-l="Input"] { order: 1; }
  .lrow .spec[data-l="Input"]::before { content: none; }
  .lrow .spec[data-l="Input"] > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* the discs a step smaller beside the 18px name and 20px icons (36px, marks scaled with them; a 44px tap area kept
     round each), in a box two discs wide at the right, so the input icons keep one column from card to card */
  .lrow .gets { order: 2; flex: none; display: flex; justify-content: flex-end; gap: 6px; width: 78px; margin-left: auto; }
  .lrow .get { position: relative; width: 36px; height: 36px; }
  .lrow .get::after { content: ""; position: absolute; inset: -4px; }
  .lrow .get img { width: 24px; height: 24px; } .lrow .get.hf img { width: 21px; height: 21px; }
  .lrow .gets::before { content: none; }
  .lrow::before { content: ""; order: 3; flex-basis: 100%; }
  .lrow .spec:not([data-l="Input"]) { order: 4; flex: 0 0 calc(50% - 6px); align-self: start; }
  .lrow .spec:is([data-l="Price"], [data-l="Fine-tunable"]) { margin-top: 8px; }
}
figure.kettei-figure.on-page { margin: 0; }
figure.kettei-figure.on-page figcaption { display: none; } /* the post keeps its captions; pages show the chart alone */

.vs { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.vs strong { font-family: var(--mono); font-weight: 500; color: var(--ink2); }

.rise { width: 100%; height: auto; display: block; }

.console .plain { font-size: 16px; }

/* Results: chub against Opus, one small bar chart per measure */
.cmp { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 22px; }
.cmp-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cmp-row .who { font-size: 15px; color: var(--muted); }
.cmp-row .val { font-family: var(--serif); font-size: 24px; line-height: 1; color: var(--muted); white-space: nowrap; }
.cmp-row .track { display: block; height: 10px; margin-top: 10px; border-radius: 5px; background: var(--track); overflow: hidden; }
.cmp-row .track i { display: block; height: 100%; min-width: 10px; border-radius: 5px; background: var(--muted); opacity: .45; }
.cmp-row.us .who { color: var(--ink); font-weight: 600; }
.cmp-row.us .val { font-size: 44px; color: var(--ink); }
.cmp-row.us .track i { background: var(--mint); opacity: 1; }


/* use cases (Home): each column explains its test. Pointing at one widens it into its results
   chart while the other two shrink back. --rest is a column's width at rest, so the setup text
   keeps that width and is scaled, never re-wrapped. The results are one picture, laid out at
   --open, the open column's width, and scaled to fit its column, which is 2/3 of that at rest and
   1/2 beside an open one. Opening, the picture fades in at once and grows with its column, on the
   same curve, as the column's setup fades out; nothing inside it moves on its own. */
.uc-row { display: flex; gap: 0 48px; align-items: stretch; container-type: inline-size; --rest: calc((100cqw - 96px) / 3); --open: calc((100cqw - 96px) / 2); --t: .45s cubic-bezier(.3, .7, .2, 1); }
.uc-col { position: relative; flex: 1 1 0; min-width: 0; transition: flex-grow var(--t); }
.uc-row .uc { display: flex; flex-direction: column; width: var(--rest); height: 100%; padding: 0; background: none; border: 0; border-radius: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; transform-origin: 0 0; transition: transform var(--t), opacity .3s; }
.uc-art { display: block; border-bottom: 1px solid var(--line2); }
.uc-art svg { display: block; width: 100%; height: auto; }
.uc-body { display: flex; flex-direction: column; flex: 1; padding: 18px 0 4px; }
.uc-num { font-family: var(--serif); font-weight: 500; font-size: var(--card-title); line-height: 1.15; color: var(--ink); text-wrap: balance; }
.uc-cap { margin-top: 10px; font-size: 16px; color: var(--ink2); }
.ucd { position: absolute; top: 0; bottom: 0; left: 0; width: var(--open); display: flex; flex-direction: column; opacity: 0; pointer-events: none; transform: scale(.6667); transform-origin: 0 0; transition: opacity .2s, transform var(--t); }
.ucd-top { display: flex; flex-direction: column; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.ucd-top .label { font-size: clamp(13px, 1.55cqw, 17px); font-weight: 600; color: var(--ink); }
.mrows { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; padding: 10px 0; }
.mrow { display: grid; grid-template-columns: minmax(0, 43%) minmax(0, 1fr); gap: 18px; align-items: center; }
/* One colour per use case, in its art, its results and its legend: legal pink, support mint, safety amber. */
.uc-col { --c: var(--pink); --ct: var(--pink-t); } .uc-col:nth-child(2) { --c: var(--mint); --ct: var(--mint-t); } .uc-col:nth-child(3) { --c: var(--amber); --ct: var(--amber-t); }
.mrow > b { font-family: var(--serif); font-weight: 400; font-size: clamp(19px, 2.5cqw, 29px); line-height: 1.1; white-space: nowrap; }
.mb { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; align-items: center; }
.mb i { display: block; min-width: 12px; height: clamp(8px, 1.05cqw, 12px); border-radius: 6px; background: var(--line2); } .mb i.us { background: var(--c); } /* each bar drawn at its value (its inline width) */
.mb em { font-style: normal; font-family: var(--mono); font-size: clamp(12px, 1.3cqw, 14.5px); line-height: 1; text-align: right; color: var(--muted); white-space: nowrap; } .mb em.us { font-size: clamp(14px, 1.65cqw, 18px); color: var(--ink); font-weight: 600; }
/* 100 clean emails as dots, every one let through */
.mdots { grid-row: span 2; display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 3px; }
.mdots span { aspect-ratio: 1; border-radius: 50%; background: var(--c); }
.mb em.meq { grid-row: span 2; font-size: clamp(22px, 2.6cqw, 30px); font-weight: 400; }
.mleg { display: flex; gap: 16px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.mleg span::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--line2); } .mleg .us::before { background: var(--c); }
.mleg .us { color: var(--ink); }
/* one column is open: it grows to 1.5 columns, the other two drop to .75 and dim */
.uc-row.has-on .uc-col { flex-grow: .75; }
.uc-row.has-on .uc-col.on { flex-grow: 1.5; }
.uc-row.has-on .uc-col:not(.on) .uc { transform: scale(.75); opacity: .45; }
.uc-row.has-on .uc-col:not(.on) .ucd { transform: scale(.5); }
.uc-col.on .uc { opacity: 0; transition: transform var(--t), opacity .18s; }
.uc-col.on .ucd { opacity: 1; transform: none; transition: opacity .3s .05s, transform var(--t); }
.uc:focus-visible { outline: 2px solid var(--pink); outline-offset: 6px; }
/* stacked on a narrow screen: no pointing, so each test shows its setup and then its results */
@media (max-width: 860px) {
  .uc-row { flex-direction: column; gap: 56px; }
  .uc-row .uc { width: 100%; height: auto; cursor: default; pointer-events: none; opacity: 1 !important; transform: none !important; }
  .uc-art svg { max-width: 420px; margin: 0 auto; }
  .ucd-top .label { display: none; }
  .ucd { position: static; width: auto; opacity: 1; transform: none !important; margin-top: 16px; gap: 0; }
  /* the description leads straight into the results, and the key closes them at the right, with no rule anywhere
     between: a rule there read as the start of a new section */
  .ucd-top { order: 2; align-items: flex-end; padding: 0; border-bottom: 0; }
  .mrows { gap: 18px; padding: 0 0 20px; } /* the key sits as far under the results as the results sit under the description */
  .mrow > b { font-size: 21px; } .mb em { font-size: 13px; } .mb em.us { font-size: 15px; } .mb i { height: 9px; }
}
@media (max-width: 600px) { .uc-art svg { max-width: 280px; } }
/* under the use cases, at the section's lower right: the fine-tuning post and OneHot, the same pair as on the Models
   page's fine-tuning chapter; stacked, they follow the last result at the left, where the reading ends */
.uc-links { justify-content: flex-end; margin-top: 24px; } /* close under the cards: the tallest card's text already ends a line lower */
@media (max-width: 860px) { .uc-links { justify-content: flex-start; margin-top: 32px; } .uc-links .more { order: 1; } } /* set at the left, the button leads */
@media (prefers-reduced-motion: reduce) { .uc-col, .uc-row .uc, .ucd { transition: none !important; } }


/* Models page: compact bar panels, and the passage from the release post */
.panels { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 16px; }
.panel { padding: 22px 24px 24px; }
.panel h3 { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.1; }
.panel h3 a { font-family: var(--sans); font-size: 14px; font-weight: 600; }
.panel .label { display: block; margin-top: 6px; }
/* [[bars]]: vertical bars, value on top and name underneath */
.vbars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; margin-top: 22px; }
.vbar { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; text-align: center; color: var(--muted); }
.vbar .t { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; width: 100%; height: 160px; }
.vbar .t i { display: block; width: min(44px, 78%); min-height: 6px; border-radius: 8px 8px 3px 3px; background: var(--line2); }
.vbar .v { font-family: var(--mono); font-size: 14px; line-height: 1; }
.vbar .n { font-size: 13px; line-height: 1.25; min-height: 2.5em; overflow-wrap: anywhere; }
.vbar.us { color: var(--ink); font-weight: 600; } .vbar.us .t i { background: var(--pink); }
.panel:nth-child(3n+2) .vbar.us .t i { background: var(--mint); } .panel:nth-child(3n) .vbar.us .t i { background: var(--amber); } /* one logo colour per chart */
.panel .vbar.us[data-n="chub"] .t i { background: var(--amber); } /* chub is told apart from fat by colour */
.vbar.na .v { font-family: var(--sans); font-size: 12px; font-weight: 400; padding-bottom: 6px; border-bottom: 1px dashed var(--line2); width: 78%; }
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 56px; align-items: center; }
.why h2 { font-size: clamp(30px, 3.4vw, 44px); }
.why-sub { margin-top: 10px; font-size: 17px; color: var(--ink2); text-wrap: pretty; } /* no word left alone on a line */
.why-links { gap: 12px 22px; }
/* Home's Why System One and Models' Continual learning end alike: the Try OneHot button and the section's post link
   side by side under the heading. The button sits at the row's outer edge, first in a row set at the left, as on the
   heroes (and last in one set at the right, as under Home's use cases). */
.why-cta { margin-top: 32px; }
/* In one column the drawing (and its key) comes straight under the heading, and the button and link close the
   section under it: the text block's two parts, heading and links, become the column's own items. */
@media (max-width: 800px) { .why > div:has(> .why-cta) { display: contents; } .why-cta { order: 1; margin-top: 4px; } } /* with the column's 28px gap, 32px under the drawing's key, as under the use cases and the fine-tuning examples */
/* On a phone the pair stays one row, as on wide screens and in the OneHot band: the button, then its link, shorter
   (.t-short in place of .t-long) and a step smaller, so it reads as the second choice and fits beside the button from
   a 360px screen (narrower, it wraps under it). The link's bold-width placeholder goes: it would hold the long
   label's width, and on a touch screen the link does not turn bold. */
.t-short { display: none; }
@media (max-width: 600px) {
  .t-long { display: none; } .t-short { display: inline; }
  .row.why-links { gap: 10px 14px; } /* the longest pair, Try OneHot and "Read the manifesto →", needs 316px: a 360px phone has 320 */
  .row.why-links .more { font-size: 15px; }
  .row.why-links .more::after { content: none; }
  .row.why-links .more:is(:hover, :focus-visible) { font-weight: inherit; }
}
/* Two examples in a row, each text left and chart right, so their charts stack in one column on one axis: 16px apart
   side by side, which with the charts' own insets leaves about 56px between one's axis and the next one's gridlines;
   stacked, a chart sits right above the next heading and needs 64px. */
.why + .why { margin-top: 16px; }
@media (max-width: 1000px) { .why + .why { margin-top: 64px; } }
/* Side by side, an example's text is centred on its chart, as in the page's other text-and-chart sections. */
/* Each example wears its use case's colour from Home, set as --case (contracts pink, support mint): a dot before its
   heading, like the result dot in its chart, and a line under its gain, like the chart's arrow. */
.why.case h3::before { content: ""; display: inline-block; width: 12px; height: 12px; margin: 0 12px 0 1px; border: 2px solid var(--ink); border-radius: 50%; background: var(--case, var(--pink)); vertical-align: .08em; }
.why.case .ftstats div:first-child dt { text-decoration: underline var(--case, var(--pink)) .16em; text-underline-offset: .14em; text-decoration-skip-ink: none; }
.why.case h3 { font-size: clamp(24px, 2.2vw, 30px); } /* always a step below the chapter heading */
:is(.why, .why-links) .more { display: inline-grid; color: var(--muted); text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - 1px) / 0 1.5px; transition: color .15s, background-size .3s cubic-bezier(.2, .7, .2, 1); } /* the underline draws itself in on hover */
:is(.why, .why-links) .more::after { content: attr(data-t); height: 0; overflow: hidden; visibility: hidden; font-weight: 600; } /* holds the bold width, so nothing shifts on hover */
:is(.why, .why-links) .more:hover, :is(.why, .why-links) .more:focus-visible { color: var(--ink); font-weight: 600; opacity: 1; background-size: 100% 1.5px; }
@media (prefers-reduced-motion: reduce) { :is(.why, .why-links) .more { transition: none; } }
/* the small score-against-latency chart ([[pareto]]) */
.pareto { margin: 0; padding: 22px 22px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.pareto svg { display: block; width: 100%; height: auto; overflow: visible; }
.pareto .g { stroke: var(--line); stroke-width: 1; }
.pareto .ax { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; fill: var(--muted); }
.pareto .fam { fill: none; stroke: var(--pink); stroke-width: 2; stroke-dasharray: .1 6; stroke-linecap: round; }
.pareto .riv { fill: var(--card); stroke: var(--line2); stroke-width: 1.8; }
.pareto .rl { font-family: var(--sans); font-size: 11.5px; fill: var(--muted); }
.pareto .us { fill: var(--pink); stroke: var(--card); stroke-width: 1.5; }
.pareto .ul { font-family: var(--sans); font-size: 14px; font-weight: 600; fill: var(--ink); }
.pareto figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
/* System One against System Two, under the chart */
/* Models: what fine-tuning did for chub, drawn open on the page */
/* An example's figures: a column of numbers, each followed on its line by what it means, most important first. The
   numbers share a width so their words start level, in both examples. */
.ftstats { display: grid; gap: 10px; margin: 20px 0 0; }
.ftstats > div { display: flex; align-items: baseline; gap: 14px; }
.ftstats dt { flex: none; min-width: 3.2em; font-family: var(--serif); font-size: 26px; line-height: 1.1; white-space: nowrap; }
.ftstats dd { margin: 0; font-size: 16px; color: var(--ink2); text-wrap: pretty; }
@media (max-width: 760px) { .ftstats dt { font-size: 22px; } } /* a step below the example's heading, which is 24px here */
.ftplot { margin: 0; } .ftplot svg { display: block; width: 100%; height: auto; } .ftplot .m { font-family: var(--mono); }
.ftplot figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.why.systems { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line2); }
.why.systems svg { width: 100%; height: auto; }
@media (max-width: 800px) { .why { grid-template-columns: 1fr; gap: 28px; } }
/* an example's text needs about 440px for its figures to sit in one row: below 1000px it goes above its chart */
@media (max-width: 1000px) { .why.case { grid-template-columns: 1fr; gap: 28px; } .why.case > figure { max-width: 640px; } }
/* Home's closing statement takes the size of the page's other section headings, on two even columns so that it still
   sets in two lines beside its drawing */
#why .why h2 { font-size: var(--h2); }
@media (min-width: 801px) { #why .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .panels { grid-template-columns: 1fr; } }
/* A chart drawn twice (build.py: pareto, dots): the wide drawing, and one at a phone's own width whose words keep
   their size. A drawing with words only around it (the .say labels) swaps them for a key under it (.why-key). */
.narrow-only { display: none !important; }
@media (max-width: 560px) {
  .wide-only { display: none !important; }
  .narrow-only { display: block !important; }
  .why svg .say { display: none; }
  .pareto svg.narrow-only { max-width: 440px; margin: 0 auto; }
  /* without their labels these drawings leave empty canvas above and below them: trimmed, the key sits under the lines */
  .why > svg.sys { margin: -11% 0 -7%; }
  .why > svg.learn { margin: -7% 0 -7.5%; }
}
.why-key { margin-top: -8px; font-family: var(--mono); font-size: 11px; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.why-key span { display: block; } .why-key span + span { margin-top: 8px; }
.why-key span::before { content: ""; display: inline-block; vertical-align: middle; width: 20px; height: 2px; margin: -2px 10px 0 0; border-radius: 1px; background: var(--ink); }
.why-key .k-pink::before { background: var(--pink); } .why-key .k-amber::before { background: var(--amber); }
/* the Models page's fine-tuning charts on a phone ([[dots]]), in the wide chart's key */
.dotplot { width: 100%; max-width: 440px; height: auto; margin: 0 auto; font-family: var(--sans); }
.dotplot .g { stroke: var(--line); }
.dotplot .tk, .dotplot .sb { font-family: var(--mono); font-size: 11.5px; fill: var(--muted); }
.dotplot .nm { font-size: 15px; fill: var(--muted); } .dotplot .nm.us { fill: var(--ink); font-weight: 600; }
.dotplot .v { font-family: var(--mono); font-size: 13.5px; fill: var(--muted); } .dotplot .v.us { fill: var(--ink); }
.dotplot .vb { font-family: var(--serif); font-size: 25px; fill: var(--ink); }
.dotplot .gain { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; fill: var(--ink2); }
.dotplot .ar { fill: none; stroke: var(--case, var(--pink)); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dotplot .base { fill: var(--bg); stroke: var(--ink); stroke-width: 2; }
.dotplot .ft { fill: var(--case, var(--pink)); stroke: var(--ink); stroke-width: 2; }
.dotplot .fat { fill: var(--ink); stroke: var(--ink); stroke-width: 2; }
.dotplot .riv { fill: var(--line2); }
.dotplot :is(.nm, .v, .vb, .gain, .sb) { paint-order: stroke; stroke: var(--bg); stroke-width: 5px; stroke-linejoin: round; } /* clear of the gridlines */

/* the heading that opens a chapter of a page, above its first example: the chapter's links level with the heading,
   a line under both. The heading is the size of the page's other section headings; each example under it has a
   smaller heading of its own. On a phone the links go last. */
/* The head sits close above the first example: its 20px margin and the chart's own top inset put the chart about
   40px under the subtitle, two and a half times the 16px between title and subtitle. Stacked, the first example's
   heading comes straight after the head and needs 40px. */
.chapter-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title links" "lede lede"; align-items: center; column-gap: 32px; margin-bottom: 20px; }
@media (max-width: 1000px) { .chapter-head { margin-bottom: 40px; } }
.chapter-head h2 { grid-area: title; font-size: clamp(30px, 3.4vw, 44px); }
.chapter-head .why-links { grid-area: links; }
.chapter-head .lede { grid-area: lede; margin-top: 16px; max-width: 680px; text-wrap: balance; } /* what fine-tuning gets you, which the examples under it show */
/* In one column the examples follow the heading and its lede, and the button and link close the section under the last
   one, the button first. */
@media (max-width: 800px) { .wrap:has(> .chapter-head) { display: flex; flex-direction: column; } .chapter-head { display: contents; } .chapter-head .lede { margin-bottom: 40px; } .chapter-head .why-links { order: 1; margin-top: 32px; } .chapter-head .why-links .more { order: 1; } }
