/* p99lab: a full-width site in white and blue, set in Newsreader and Geist. */

@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-latin.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 400 500; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  /* white with a tint of blue; navy ink; accent from the reference blues (#236eb9) */
  --paper: #f6f9fc;
  --paper-2: #ffffff;
  --ink: #0b1a2e;
  --ink-rgb: 11, 26, 46;
  --ink-2: #2c3b50;          /* 11:1 on white */
  --muted: #586a80;          /* 5.6:1 on white */
  --line: #6f88a6;           /* 3.6:1 on white, passes for borders */
  --hair: rgba(11, 26, 46, 0.1);
  --grid: rgba(35, 110, 185, 0.05);
  --grid-major: rgba(35, 110, 185, 0.09);
  --ember: #236eb9;          /* 5.3:1 on white */
  --ember-ink: #1a5a9c;      /* 7:1 on white */
  --ours: rgba(35, 110, 185, 0.08);
  --error: #b42318;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono: "Geist Mono", "SF Mono", ui-monospace, Menlo, monospace;
  --pad: max(20px, min(5vw, 72px), calc((100vw - 1400px) / 2));
  --vpad: clamp(56px, 8vw, 120px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--ink-2); font-size: 16px; line-height: 1.55; background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: rgba(var(--ink-rgb), 0.35); }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 50; }
.mono { font-family: var(--mono); }

/* page heads: plain paper with a hairline */
.hero-wrap { border-bottom: 1px solid var(--hair); }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(246, 249, 252, 0.82); backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--hair); }
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px var(--pad); }
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo { display: block; height: 32px; width: auto; }
.wavemark { width: 21px; height: 25px; display: block; }
.wordmark { font: 500 28px/1 var(--serif); letter-spacing: -0.015em; }
.lockup .sub { font: 11px/1 var(--mono); letter-spacing: 0.08em; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 22px; font-size: 14.5px; }
.nav a { text-decoration: none; color: var(--ink); }
.nav a .n { font: 11px/1 var(--mono); color: var(--muted); margin-right: 5px; }
.nav a:hover { text-decoration: underline; }
.navright { display: flex; align-items: center; gap: 16px; }

/* pill buttons with a round arrow */
.pill { display: inline-flex; align-items: center; gap: 12px; font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  background: var(--ink); color: var(--paper-2); border: 1px solid var(--ink); border-radius: 999px; padding: 5px 5px 5px 18px; }
.pill .ar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--paper-2); color: var(--ink);
  font: 14px/1 var(--mono); transition: transform 0.2s ease; }
.pill:hover .ar { transform: translateX(2px); }
.pill.line { background: transparent; color: var(--ink); }
.pill.line .ar { background: var(--ink); color: var(--paper-2); }
.pill[disabled] { opacity: 0.6; cursor: progress; }
.navbar .pill { font-size: 14px; }

.tag { display: inline-flex; align-items: center; gap: 12px; font: 11.5px/1 var(--mono); letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.tag .id { color: var(--ink); border: 1px solid var(--ink); border-radius: 3px; padding: 5px 7px; letter-spacing: 0.04em; }

/* hero: headline left, short paragraph and actions right */
.hero { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 4vw, 80px); align-items: end;
  padding: clamp(56px, 8vw, 132px) var(--pad) clamp(32px, 3.6vw, 56px); }
.hero h1 { color: var(--ink); font: 400 clamp(46px, 5vw, 96px)/1 var(--serif); letter-spacing: -0.028em; }
@media (max-width: 920px) { .br-lg { display: none; } }
.hero h1 .dot { color: var(--ember); }
.hero-aside { padding-bottom: 8px; }
.hero .subline { font-size: clamp(17px, 1.2vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 34ch; }
.byline { margin-top: 14px; font: 12.5px/1.5 var(--mono); color: var(--muted); }
.byline .name { color: var(--ink); }
.actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.actions .pill.line { padding: 5px 18px; min-height: 42px; }

/* the plate: one large painted panel carrying the numbers */
.plate { position: relative; isolation: isolate; overflow: hidden; margin: 0 var(--pad) clamp(40px, 5vw, 80px); border-radius: 22px; background: #1a395d;
  min-height: clamp(440px, 42vw, 660px); display: grid; place-items: center; padding: clamp(18px, 4vw, 72px); }
.plate-bg { position: absolute; inset: -12%; z-index: -2; }
.plate-bg i { position: absolute; display: block; border-radius: 50%; filter: blur(70px); animation: float 40s ease-in-out infinite alternate; }
.plate-bg i:nth-child(1) { width: 62%; height: 80%; left: -8%; top: -12%; background: #236eb9; }
.plate-bg i:nth-child(2) { width: 56%; height: 70%; right: -6%; top: -4%; background: #d6e6f5; animation-duration: 52s; }
.plate-bg i:nth-child(3) { width: 70%; height: 60%; left: 22%; bottom: -14%; background: #e3fdfd; opacity: 0.85; animation-duration: 46s; }
.plate-bg i:nth-child(4) { width: 46%; height: 56%; left: -6%; bottom: -10%; background: #0b1a2e; opacity: 0.9; animation-duration: 58s; }
.plate::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); opacity: 0.22; mix-blend-mode: overlay; }
@keyframes float { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(4%, -3%, 0) scale(1.08); } }
.platecard { position: relative; width: min(100%, 1000px); background: rgba(255, 255, 255, 0.94); border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px; box-shadow: 0 40px 90px -30px rgba(11, 26, 46, 0.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.pc-head, .pc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding: 14px clamp(16px, 2vw, 26px); }
.pc-head { border-bottom: 1px solid var(--hair); font: 11.5px/1.4 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.pc-head b { color: var(--ink); font-weight: 500; }
.pc-foot { border-top: 1px solid var(--hair); font-size: 14.5px; color: var(--ink-2); }
.pill.sm { font-size: 14px; padding: 4px 4px 4px 14px; gap: 10px; }
.pill.sm .ar { width: 26px; height: 26px; }
.platecap { display: flex; align-items: center; gap: 10px; padding: 16px calc(var(--pad) + 6px) clamp(36px, 4vw, 64px); font: 12.5px/1.5 var(--mono); color: var(--muted); }
.platecap .name { color: var(--ink); }
.dotb { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); flex: none; }

/* numbers inside the plate */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: clamp(22px, 2.6vw, 36px) clamp(4px, 0.8vw, 10px); }
.stat { padding: 0 clamp(12px, 1.6vw, 22px); min-width: 0; }
.stat + .stat { border-left: 1px solid var(--hair); }
.stat .big { display: block; font: 400 clamp(38px, 4vw, 62px)/1 var(--serif); letter-spacing: -0.025em; color: var(--ink); }
.stat .big small { font-size: 0.42em; color: var(--muted); letter-spacing: 0; margin-left: 5px; }
.stat .lbl { display: block; margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--ink-2); max-width: 22ch; }

/* a call, step by step (explainer post) */
.callsteps { list-style: none; margin: 18px 0 22px; padding: 0; border-left: 1px solid var(--line); }
.callsteps li { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 2px 14px; padding: 12px 0 12px 18px; position: relative; }
.callsteps li::before { content: ""; position: absolute; left: -4px; top: 20px; width: 7px; height: 7px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); }
.callsteps .who { font: 11.5px/2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.callsteps q { font: 400 21px/1.35 var(--serif); color: var(--ink); }
.callsteps .act { grid-column: 2; font-size: 14.5px; color: var(--muted); }
.callsteps .act.on { color: var(--ember-ink); }
.post .body .callsteps li { margin: 0; font-size: inherit; }

/* content rows: a drawing sheet beside its notes */
.row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3.4vw, 56px); align-items: center;
  padding: var(--vpad) var(--pad); border-top: 1px solid var(--hair); }
.row.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.row.flip .sheet { order: 2; }
.sheet { position: relative; border: 1px solid var(--hair); background: var(--paper-2); min-width: 0; border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(11, 26, 46, 0.04); }
.sheet .sh { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; padding: 18px clamp(18px, 2vw, 26px) 0;
  font-size: 15px; font-weight: 500; color: var(--ink); }
.sheet .sh > span + span { font-size: 13px; font-weight: 400; color: var(--muted); }
.sheet .sh b { font-weight: 500; }
.sheet .sb { padding: 10px clamp(18px, 2vw, 26px) 20px; }
.notes .chip { display: inline-flex; align-items: center; gap: 10px; font: 11px/1 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.notes .chip .id { color: var(--ink); border: 1px solid var(--ink); border-radius: 999px; padding: 4px 8px; }
.notes h2 { color: var(--ink); font: 400 clamp(38px, 4.4vw, 66px)/1.02 var(--serif); letter-spacing: -0.02em; margin: 16px 0 18px; }
.notes p { font-size: clamp(16.5px, 1.15vw, 19px); line-height: 1.6; max-width: 46ch; }
.notes p + p { margin-top: 12px; }
.kv { margin-top: 22px; border-top: 1px solid var(--line); }
.kv div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--hair); }
.kv dt { font: 10.5px/1.7 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.kv dd { font: 13px/1.6 var(--mono); color: var(--ink); }

/* tables */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; min-width: 560px; }
thead th { text-align: left; font: 400 12.5px/1.35 var(--sans); color: var(--muted); border-bottom: 1px solid var(--hair); padding: 10px 10px; vertical-align: bottom; }
tbody td { padding: 14px 10px; border-bottom: 1px solid var(--hair); color: var(--ink); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
th:first-child, td:first-child { padding-left: 0; width: 30%; }
th:last-child, td:last-child { padding-right: 0; }
th:not(:first-child), td:not(:first-child) { text-align: right; }
tr.ours td { background: var(--ours); }
tr.ours td:first-child { font-weight: 600; padding-left: 12px; border-radius: 8px 0 0 8px; }
tr.ours td:last-child { padding-right: 12px; border-radius: 0 8px 8px 0; }
tbody tr.ours td { border-bottom: 4px solid var(--paper-2); }
figure { margin: 0; }
.tablecap { font-size: 13px; line-height: 1.55; color: var(--muted); margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hair); }
.tablecap b { font-weight: 500; color: var(--ink-2); }

/* model spec sheets */
.specpair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.spec { padding: clamp(14px, 2vw, 24px); min-width: 0; }
.spec + .spec { border-left: 1px solid var(--line); }
.spec h3 { font: 400 28px/1.1 var(--serif); letter-spacing: -0.015em; color: var(--ink); }
.spec h3 .m { font: 11px/1 var(--mono); letter-spacing: 0.06em; color: var(--ember-ink); margin-left: 8px; vertical-align: 4px; text-transform: uppercase; }
.spec p { margin-top: 12px; font-size: 14.5px; line-height: 1.55; }
.links { padding: 12px 14px; border-top: 1px solid var(--line); font: 12px/1.9 var(--mono); color: var(--muted); }

/* pipeline drawing */
.pipe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; padding: clamp(18px, 2.6vw, 30px); position: relative; }
.pipe .box { position: relative; border: 1px solid var(--line); background: var(--paper-2); padding: 12px 12px 14px; min-height: 120px; }
.pipe .box + .box::before { content: "→"; position: absolute; left: -22px; top: 50%; transform: translateY(-50%); font: 15px/1 var(--mono); color: var(--ink); }
.pipe .box .k { font: 10.5px/1 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.pipe .box strong { display: block; margin-top: 12px; color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; line-height: 1.25; }
.pipe .box.us { border: 1.5px solid var(--ember); box-shadow: 4px 4px 0 rgba(35, 110, 185, 0.2); }
.pipe .box.us .k { color: var(--ember-ink); }

/* waitlist form */
.form { display: grid; gap: 16px; }
.field label { display: block; font: 10.5px/1.2 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.field .opt { color: var(--muted); }
.field input, .field textarea { width: 100%; font: 16px/1.4 var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--line);
  border-radius: 0; padding: 12px 13px; }
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--ember); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: inset 3px 0 0 var(--error); }
.field .error { display: block; min-height: 1.3em; font-size: 13px; color: var(--error); margin-top: 5px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .fine { font-size: 13px; color: var(--muted); }
.status { font-size: 15px; color: var(--ink); min-height: 1.5em; }
.status.bad { color: var(--error); }

/* document pages */
.pagehead { padding: clamp(28px, 4vw, 52px) var(--pad) clamp(26px, 3.4vw, 44px); }
.pagehead h1 { color: var(--ink); font: 400 clamp(44px, 6.4vw, 96px)/1 var(--serif); letter-spacing: -0.025em; margin-top: 22px; }
.pagehead h1 .dot { color: var(--ember); }
.pagehead p { margin-top: 18px; font-size: 18px; max-width: 54ch; }
.doc { display: grid; grid-template-columns: calc(var(--pad) + 240px) minmax(0, 1fr); border-top: 1px solid var(--line); }
.doc .toc { padding: 26px 28px 26px var(--pad); border-right: 1px solid var(--line); font: 12px/2.1 var(--mono); }
.doc .toc nav { position: sticky; top: 96px; }
.doc .toc a { display: block; text-decoration: none; color: var(--muted); }
.doc .toc a:hover { color: var(--ink); }
.doc .body { padding: 26px var(--pad) 56px clamp(28px, 4vw, 64px); max-width: calc(860px + var(--pad)); }
.doc h2 { color: var(--ink); font: 400 30px/1.15 var(--serif); letter-spacing: -0.015em; margin: 34px 0 10px; scroll-margin-top: 96px; }
.doc h2:first-child { margin-top: 0; }
.doc p { margin-bottom: 12px; font-size: 16.5px; max-width: 68ch; }

/* footer: a title strip */
.linkbutton { font: inherit; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline;
  text-decoration-color: rgba(var(--ink-rgb), 0.35); text-underline-offset: 3px; }

/* analytics consent */
.consent { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: min(400px, calc(100vw - 32px)); background: var(--paper-2);
  border: 1px solid var(--line); padding: 0; font-size: 14px; color: var(--ink-2); box-shadow: 0 18px 40px rgba(11, 26, 46, 0.14); }
.consent[hidden] { display: none; }
.consent .sh { display: flex; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--line);
  font: 10.5px/1.3 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.consent p { padding: 12px 12px 0; }
.consent .rowb { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px; }
.consent .pill { font-size: 14px; padding: 9px 16px; }

@media (max-width: 920px) {
  .hero, .row, .row.flip, .doc { grid-template-columns: minmax(0, 1fr); }
  .row.flip .sheet { order: 0; }
  .doc .toc { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px var(--pad) 14px; }
  .doc .body { padding-left: var(--pad); }
  .doc .toc nav { position: static; display: flex; flex-wrap: wrap; gap: 0 18px; }
  .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipe .box:nth-child(3)::before { content: none; }
}
@media (max-width: 680px) {
  .nav .hide-sm { display: none; }
  .lockup .sub { display: none; }
  .specpair { grid-template-columns: minmax(0, 1fr); }
  .spec + .spec { border-left: 0; border-top: 1px solid var(--line); }
  .kv div { grid-template-columns: 7.5em minmax(0, 1fr); }
}
@media (max-width: 440px) {
  .pipe { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .pipe .box + .box::before { content: "↓"; left: 50%; top: -18px; transform: translateX(-50%); }
  .pipe .box:nth-child(3)::before { content: "↓"; }
  .navbar .pill { padding-left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plate-bg i { animation: none; }
}

/* blog cards (home and /blog) */
.blogrow { padding: var(--vpad) var(--pad); border-top: 1px solid var(--hair); }
.blogrow .top { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(18px, 2.4vw, 28px); }
.blogrow h2 { color: var(--ink); font: 400 clamp(38px, 4.4vw, 66px)/1.02 var(--serif); letter-spacing: -0.02em; margin-top: 14px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--hair); background: var(--paper-2); border-radius: 14px; overflow: hidden; color: inherit;
  text-decoration: none; min-width: 0; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -28px rgba(11, 26, 46, 0.45); }
.card .sh { display: flex; justify-content: space-between; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--hair);
  font: 10.5px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.card .sh b { color: var(--ink); font-weight: 400; }
.card .art { height: 200px; position: relative; overflow: hidden; background: #0b1019; }
.tile::after { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); opacity: 0.22; mix-blend-mode: overlay; }
.card .cb { padding: 16px 14px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { color: var(--ink); font: 400 25px/1.15 var(--serif); letter-spacing: -0.01em; }
.card p { font-size: 14.5px; line-height: 1.55; }
.card .more { margin-top: auto; padding-top: 6px; font: 12px/1 var(--mono); letter-spacing: 0.04em; color: var(--ink); }
.card .more span { color: var(--ember-ink); }

/* blog post */
.post .meta { font: 12px/1.9 var(--mono); color: var(--muted); }
.post .meta b { color: var(--ink); font-weight: 400; display: block; }
.post .meta + nav { margin-top: 18px; }
.post .body h2 { font-size: 32px; }
.post .body ul { padding-left: 20px; margin-bottom: 12px; }
.post .body li { margin-bottom: 8px; font-size: 16.5px; }
.post .body .figure { margin: 22px 0 26px; padding: 14px; border: 1px solid var(--line); background: var(--paper-2); }
.post .body .sheet { margin: 18px 0 24px; }
.post .body .lead { font-size: 19px; line-height: 1.5; color: var(--ink); }

@media (max-width: 920px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
}


@media (max-width: 920px) {
  .hero { align-items: start; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .stat:nth-child(3) { border-left: 0; }
  .plate { min-height: 0; border-radius: 18px; }
}
@media (max-width: 520px) {
  .plate { margin: 0 12px; padding: 14px; }
  .platecap { padding-left: 18px; padding-right: 18px; }
  .stat .big { font-size: 34px; }
  .callsteps li { grid-template-columns: minmax(0, 1fr); }
  .callsteps .act { grid-column: 1; }
}

/* announcement bar */
.announce { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 9px var(--pad); background: var(--ink); color: #e3fdfd;
  font-size: 13.5px; text-decoration: none; text-align: center; }
.announce .new { font: 10.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); background: #d6e6f5;
  border-radius: 999px; padding: 4px 8px; }
.announce .ar { transition: transform 0.2s ease; }
.announce:hover .ar { transform: translateX(3px); }

/* painted tile (audrey) */
.tile { position: relative; overflow: hidden; border-radius: 18px; min-height: clamp(380px, 34vw, 500px); background: #1a395d; }
.tone-mic { background: radial-gradient(60% 70% at 15% 10%, #236eb9, transparent 70%), radial-gradient(70% 80% at 95% 100%, #d6e6f5, transparent 70%), #1a395d; }

/* audrey copy */
.notes .lead { font: 400 clamp(22px, 1.9vw, 28px)/1.3 var(--serif); color: var(--ink); margin-bottom: 14px; }
.ticks { list-style: none; margin: 18px 0 4px; padding: 0; border-top: 1px solid var(--hair); max-width: 52ch; }
.ticks li { position: relative; padding: 10px 0 10px 22px; border-bottom: 1px solid var(--hair); font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); }
.bellnote { margin-top: 22px !important; font: 12.5px/1.6 var(--mono) !important; color: var(--muted); max-width: 52ch; }
.namenote { padding: 0 var(--pad) var(--vpad); }
.namenote p { max-width: 60ch; font: 400 clamp(20px, 1.7vw, 26px)/1.45 var(--serif); color: var(--ink-2); border-top: 1px solid var(--hair); padding-top: 28px; }
@media (max-width: 680px) { .announce { font-size: 12.5px; } .tile { min-height: 340px; } }
.audtable th:nth-child(2), .audtable td:nth-child(2) { text-align: left; }

/* blog card art: figlet lettering behind a chrome loop */
.card .fig, .ink-tile .fig-x { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; font: 6px/1.05 var(--mono); letter-spacing: -0.02em;
  white-space: pre; color: rgba(214, 230, 245, 0.42); pointer-events: none; user-select: none; }
.card .chrome { position: absolute; inset: -6% -4%; width: 108%; height: 112%; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55)); }
.card:hover .chrome { transform: rotate(-2deg) scale(1.02); transition: transform 0.6s ease; }

/* audrey: chrome cochlea over the lettering, same language as the blog cards */
.tile { display: grid; place-items: center; }
.ink-tile { background: #0b1019; }
.ink-tile::after { content: none !important; }
.ink-tile .fig { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; font: 7px/1.05 var(--mono);
  letter-spacing: -0.02em; white-space: pre; color: rgba(214, 230, 245, 0.42); pointer-events: none; user-select: none; }
.ink-tile .chrome { position: absolute; inset: 4%; width: 92%; height: 92%; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.6)); }

/* word error rate bars */
.wer { display: inline-block; vertical-align: middle; width: 120px; height: 6px; margin-right: 14px; border-radius: 999px; background: var(--hair); overflow: hidden; }
.wer i { display: block; width: 0; height: 100%; border-radius: 999px; background: var(--ember); }

/* home: dark brand plate with chrome over the lettering */
.plate.ink { background: #0b1019; display: block; padding: 0; min-height: clamp(340px, 34vw, 540px); }
.plate.ink::after { opacity: 0.08; }
.plate.ink .fig { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; font: clamp(14px, 1.9vw, 30px)/1.02 var(--mono);
  letter-spacing: -0.02em; white-space: pre; color: rgba(214, 230, 245, 0.22); pointer-events: none; user-select: none; }
.plate.ink .chrome { position: absolute; inset: 2% 3%; width: 94%; height: 96%; filter: drop-shadow(0 30px 36px rgba(0, 0, 0, 0.6)); }

/* proof line */
.proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0; padding: 0 var(--pad) clamp(48px, 6vw, 96px); font-size: 14.5px; color: var(--ink-2); }
.proof span { padding: 0 clamp(14px, 1.6vw, 26px); }
.proof span + span { border-left: 1px solid var(--line); }

/* products */
.products { padding: var(--vpad) var(--pad); border-top: 1px solid var(--hair); }
.products .top { margin-bottom: clamp(24px, 3vw, 40px); }
.products .chip { font: 11px/1 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.products h2 { color: var(--ink); font: 400 clamp(38px, 4.4vw, 66px)/1.02 var(--serif); letter-spacing: -0.02em; margin-top: 14px; }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.product { display: flex; flex-direction: column; border: 1px solid var(--hair); background: var(--paper-2); border-radius: 18px; overflow: hidden; }
.part { position: relative; display: block; height: clamp(260px, 24vw, 360px); background: #0b1019; overflow: hidden; }
.part .fig { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; font: 7px/1.05 var(--mono);
  letter-spacing: -0.02em; white-space: pre; color: rgba(214, 230, 245, 0.42); pointer-events: none; user-select: none; }
.part .chrome { position: absolute; inset: 2%; width: 96%; height: 96%; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.6)); transition: transform 0.6s ease; }
.product:hover .chrome { transform: rotate(-2deg) scale(1.03); }
.pbody { padding: clamp(20px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pbody h3 { font: 400 clamp(34px, 3vw, 48px)/1.05 var(--serif); letter-spacing: -0.02em; margin-top: 6px; }
.pbody h3 a { color: var(--ink); text-decoration: none; }
.pbody .lead { font: 400 clamp(19px, 1.5vw, 23px)/1.35 var(--serif); color: var(--ink); }
.pbody p { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); max-width: 48ch; }
.pbody .actions { margin-top: auto; padding-top: 12px; }
@media (max-width: 920px) { .pgrid { grid-template-columns: minmax(0, 1fr); } .proof { justify-content: flex-start; } .proof span { padding-left: 0; } .proof span + span { border-left: 0; } .proof { flex-direction: column; } }

/* footer: dark, columns, and a large faint wordmark */
.footer { background: #0b1019; color: #c9d5e3; padding: clamp(48px, 6vw, 80px) var(--pad) 0; overflow: hidden; }
.ftop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 40px; }
.fbrand .logo { filter: brightness(0) invert(1); height: 30px; }
.fbrand p { margin-top: 16px; font-size: 15px; color: #c9d5e3; max-width: 30ch; }
.fbrand .base { margin-top: 10px; font-size: 13.5px; color: #7d8ea3; }
.fcols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.fcols div { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.fcols .k { font-size: 14px; font-weight: 600; color: #ffffff; margin-bottom: 4px; }
.fcols a, .fcols .linkbutton { font: 14.5px/1.3 var(--sans); color: #c9d5e3; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.fcols a:hover, .fcols .linkbutton:hover { color: #ffffff; }
.fword { font: 400 clamp(110px, 21vw, 340px)/0.8 var(--serif); letter-spacing: -0.04em; color: rgba(214, 230, 245, 0.06);
  margin-top: clamp(40px, 6vw, 90px); white-space: nowrap; user-select: none; transform: translateY(10%); }
@media (max-width: 920px) { .ftop { grid-template-columns: minmax(0, 1fr); } .fcols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* capability blocks (model pages) */
.caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-top: 22px; max-width: 560px; }
.caps div { padding: 16px 0; border-top: 1px solid var(--hair); }
.caps b { display: block; font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.caps span { display: block; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
@media (max-width: 520px) { .caps { grid-template-columns: minmax(0, 1fr); } }

/* leaderboard placements (shown only once live) */
.rankline { display: flex; align-items: center; gap: 8px; font-size: 14.5px !important; color: var(--ink) !important; }
.ranks { padding: 0 var(--pad) clamp(40px, 5vw, 72px); }
.ranks .chip { font: 11px/1 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.rgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.rgrid div { border: 1px solid var(--hair); background: var(--paper-2); border-radius: 14px; padding: 20px 22px; }
.rgrid b { display: block; font: 400 clamp(40px, 4vw, 60px)/1 var(--serif); color: var(--ink); letter-spacing: -0.02em; }
.rgrid span { display: block; margin-top: 8px; font-size: 15px; }
.card .cfoot { margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card .cfoot .more { margin-top: 0; padding-top: 0; }
.card .author { font-size: 13px; color: var(--muted); }
@media (max-width: 1180px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .specpair { grid-template-columns: minmax(0, 1fr); } .spec + .spec { border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 720px) { .cards { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 680px) {
  .navbar { flex-wrap: wrap; row-gap: 6px; }
  .nav { order: 3; width: 100%; justify-content: center; gap: 26px; padding: 4px 0 2px; border-top: 1px solid var(--hair); padding-top: 10px; }
  .navbar .logo { height: 28px; }
}

/* product and blog art: the hero's painted blue instead of near-black */
.part, .card .art { background:
    radial-gradient(70% 90% at 12% 8%, #236eb9 0%, transparent 70%),
    radial-gradient(60% 80% at 92% 18%, #d6e6f5 0%, transparent 70%),
    radial-gradient(60% 70% at 70% 105%, #c8e4ec 0%, transparent 70%),
    radial-gradient(55% 70% at 4% 100%, #0b1a35 0%, transparent 72%),
    #2f6fae; }
.pgrid .product:nth-child(2) .part, .cards .card:nth-child(2) .art { background:
    radial-gradient(70% 90% at 88% 10%, #236eb9 0%, transparent 70%),
    radial-gradient(60% 80% at 10% 20%, #d6e6f5 0%, transparent 70%),
    radial-gradient(60% 70% at 30% 105%, #c8e4ec 0%, transparent 70%),
    radial-gradient(55% 70% at 98% 100%, #0b1a35 0%, transparent 72%),
    #2f6fae; }
.cards .card:nth-child(3) .art { background:
    radial-gradient(70% 90% at 50% 0%, #236eb9 0%, transparent 70%),
    radial-gradient(60% 80% at 100% 70%, #d6e6f5 0%, transparent 70%),
    radial-gradient(60% 70% at 0% 40%, #0b1a35 0%, transparent 72%),
    #2f6fae; }
.part .fig, .card .art .fig { color: rgba(255, 255, 255, 0.38); }

/* hero: centred and stacked */
.hero { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: clamp(18px, 2vw, 28px);
  padding-top: clamp(64px, 8vw, 128px); padding-bottom: clamp(40px, 4.4vw, 64px); }
.hero h1 { max-width: none; }
.hero-aside { display: flex; flex-direction: column; align-items: center; padding-bottom: 0; }
.hero .subline { max-width: 46ch; margin: 0 auto; }
.hero .actions { justify-content: center; }

/* blog cards: white panel, dark lettering */
.cards .card .art, .cards .card:nth-child(2) .art, .cards .card:nth-child(3) .art { background: #ffffff; border-bottom: 1px solid var(--hair); }
.cards .card .art .fig { color: rgba(11, 26, 46, 0.55); }
.cards .card:hover .art .fig { color: rgba(11, 26, 46, 0.8); }

/* product panels: one large name, its own shade, a small caption */
.part .fig.one { font: clamp(9px, 0.95vw, 14px)/1.05 var(--mono); color: rgba(255, 255, 255, 0.92); letter-spacing: -0.01em;
  text-shadow: 0 1px 12px rgba(11, 26, 53, 0.35); }
.part .ptag { position: absolute; left: 18px; bottom: 16px; font: 11.5px/1 var(--mono); letter-spacing: 0.04em; color: #0b1a2e;
  background: rgba(255, 255, 255, 0.86); border-radius: 999px; padding: 7px 11px; }
.pgrid .product .part.p-audrey { background:
    radial-gradient(70% 90% at 12% 8%, #3a8ee0 0%, transparent 70%),
    radial-gradient(60% 80% at 92% 18%, #d6e6f5 0%, transparent 70%),
    radial-gradient(55% 70% at 4% 100%, #1a4f8f 0%, transparent 72%),
    #2a72c0; }
.pgrid .product .part.p-turn { background:
    radial-gradient(60% 80% at 85% 15%, #c8e4ec 0%, transparent 65%),
    radial-gradient(70% 90% at 10% 100%, #050b18 0%, transparent 70%),
    radial-gradient(60% 70% at 30% 10%, #1a395d 0%, transparent 70%),
    #0f2440; }
.part .fig.one { font: clamp(3.4px, 0.32vw, 4.8px)/1 var(--mono); letter-spacing: 0; text-shadow: none; color: rgba(255, 255, 255, 0.95); }

/* product panels, final pass: equal-strength names, glow behind the word, a little smaller */
.part .fig.one { font-size: clamp(3px, 0.27vw, 4.1px); color: #ffffff; text-shadow: 0 0 14px rgba(214, 236, 245, 0.35); }
.pgrid .product .part.p-turn { background:
    radial-gradient(42% 55% at 50% 48%, rgba(170, 214, 228, 0.55) 0%, transparent 70%),
    radial-gradient(70% 90% at 10% 100%, #050b18 0%, transparent 70%),
    radial-gradient(70% 80% at 90% 0%, #1a395d 0%, transparent 70%),
    #0d2038; }
.pgrid .product .part.p-audrey { background:
    radial-gradient(42% 55% at 50% 48%, rgba(214, 230, 245, 0.45) 0%, transparent 70%),
    radial-gradient(70% 90% at 10% 5%, #3a8ee0 0%, transparent 70%),
    radial-gradient(55% 70% at 4% 100%, #1a4f8f 0%, transparent 72%),
    #2a72c0; }

/* blog cards: one fine word in ink on white */
.cards .card .art .fig.one { font: clamp(2.8px, 0.24vw, 3.6px)/1 var(--mono); letter-spacing: 0; color: #0b1a2e; }
.cards .card .art { background: radial-gradient(60% 70% at 50% 50%, #f1f6fb 0%, #ffffff 70%) !important; }
.cards .card:hover .art .fig.one { color: #236eb9; }
.cards .card .art .fig.one { font-size: 2.1px; line-height: 1; }

/* API docs */
.apidoc h3 { color: var(--ink); font: 500 15px/1.3 var(--sans); margin: 22px 0 8px; }
.apidoc code { font: 0.88em/1.5 var(--mono); color: var(--ink); background: rgba(35, 110, 185, 0.07); border-radius: 4px; padding: 1px 5px; }
.apidoc .ep { display: inline-block; font-size: 14px; padding: 6px 10px; overflow-wrap: anywhere; }
.apidoc .ep b { color: var(--ember-ink); font-weight: 500; margin-right: 8px; }
.apidoc .callout { max-width: none; margin-bottom: 30px; padding: 14px 16px; border: 1px solid var(--hair); border-left: 3px solid var(--ember);
  background: var(--paper-2); border-radius: 0 10px 10px 0; font-size: 15px; }
.apidoc .callout b { color: var(--ink); font-weight: 600; }
.apidoc .steps { margin: 4px 0 16px; padding-left: 22px; max-width: 68ch; }
.apidoc .steps li { margin-bottom: 8px; font-size: 16px; }
.apidoc .steps b { color: var(--ink); font-weight: 600; }
.codewrap { position: relative; margin: 8px 0 18px; }
pre.code { margin: 8px 0 18px; padding: 16px 18px; overflow-x: auto; background: #0b1019; color: #d6e6f5; border-radius: 12px;
  font: 13px/1.65 var(--mono); tab-size: 4; }
.codewrap pre.code { margin: 0; padding-right: 72px; }
pre.code code { font: inherit; color: inherit; background: none; padding: 0; border-radius: 0; }
.copy { position: absolute; top: 10px; right: 10px; font: 11px/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer;
  color: #c9d5e3; background: rgba(214, 230, 245, 0.08); border: 1px solid rgba(214, 230, 245, 0.18); border-radius: 6px; padding: 6px 8px; }
.copy:hover { color: #ffffff; border-color: rgba(214, 230, 245, 0.4); }
.codegroup { margin: 8px 0 18px; }
.cg-tabs { display: none; gap: 4px; margin-bottom: 6px; }
.js .cg-tabs { display: flex; flex-wrap: wrap; }
.cg-tabs button { font: 12px/1 var(--mono); color: var(--muted); background: none; border: 1px solid transparent; border-radius: 999px; padding: 7px 12px; cursor: pointer; }
.cg-tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--line); background: var(--paper-2); }
.cg-label { display: block; margin-top: 10px; font: 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.js .cg-label { display: none; }
.codegroup .codewrap, .codegroup pre.code { margin: 0; }
.apidoc .tablewrap { margin: 8px 0 18px; }
table.ptable { min-width: 520px; font-size: 14.5px; }
.ptable th, .ptable td { text-align: left !important; white-space: normal; vertical-align: top; padding: 11px 12px 11px 0; }
.ptable th:first-child, .ptable td:first-child { width: auto; min-width: 9em; }
.ptable td { color: var(--ink-2); }
.ptable td code { white-space: nowrap; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--ember); text-decoration-thickness: 2px; }

/* API docs: a full-size side navigation that stays beside the text */
.doc.apidocs { grid-template-columns: calc(var(--pad) + 272px) minmax(0, 1fr); }
.apidocs .toc { padding: 0 0 0 var(--pad); font: inherit; }
.apidocs .toc nav.sidenav { position: sticky; top: 67px; max-height: calc(100vh - 67px); overflow-y: auto; overscroll-behavior: contain;
  padding: 30px 20px 40px 0; display: flex; flex-direction: column; gap: 26px; scrollbar-width: thin; }
.sidenav .grp { display: flex; flex-direction: column; gap: 2px; }
.sidenav .gl { font: 11px/1 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); padding: 0 0 10px 14px; }
.apidocs .toc .sidenav a { display: block; font: 15px/1.35 var(--sans); color: var(--ink-2); text-decoration: none; padding: 7px 12px;
  border-left: 2px solid var(--hair); border-radius: 0 8px 8px 0; transition: color 0.15s ease, background-color 0.15s ease; }
.apidocs .toc .sidenav a:hover { color: var(--ink); background: rgba(35, 110, 185, 0.05); }
.apidocs .toc .sidenav a[aria-current="location"] { color: var(--ink); font-weight: 500; border-left-color: var(--ember); background: rgba(35, 110, 185, 0.08); }
.apidocs .body { padding-top: 34px; }
.apidocs h2 { scroll-margin-top: 92px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--hair); }
.apidocs .body > .callout + h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.apidocs .body > h2:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 920px) {
  .doc.apidocs { grid-template-columns: minmax(0, 1fr); }
  .apidocs .toc { padding: 0 var(--pad); border-bottom: 1px solid var(--line); }
  .apidocs .toc nav.sidenav { position: static; max-height: none; overflow: visible; padding: 22px 0 24px;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; }
  .apidocs .body { padding-top: 26px; }
}
@media (max-width: 680px) { .apidocs h2 { scroll-margin-top: 124px; } }
@media (max-width: 400px) { .apidocs .toc nav.sidenav { grid-template-columns: minmax(0, 1fr); } }

/* docs home */
.tag .crumb { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.dochub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); padding: clamp(32px, 4vw, 56px) var(--pad) 24px; }
.docprod { display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 2.6vw, 34px); border: 1px solid var(--hair); border-radius: 18px; background: var(--paper-2);
  color: inherit; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.docprod:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -28px rgba(11, 26, 46, 0.45); }
.dp-tag { font: 11px/1 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.dp-name { font: 400 clamp(34px, 3vw, 46px)/1.05 var(--serif); letter-spacing: -0.02em; color: var(--ink); }
.dp-text { font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 46ch; }
.dp-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.dp-links span { font-size: 13px; color: var(--ink-2); background: var(--paper); border: 1px solid var(--hair); border-radius: 999px; padding: 5px 10px; }
.dp-go { margin-top: auto; padding-top: 10px; font-weight: 500; color: var(--ink); }
.dp-go span { color: var(--ember); }
.dochelp { padding: 0 var(--pad) var(--vpad); }
.dochelp p { font-size: 15px; color: var(--muted); }
@media (max-width: 820px) { .dochub { grid-template-columns: minmax(0, 1fr); } }

/* docs: shared tab bar */
.doctabs { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); padding: 0 var(--pad); border-bottom: 1px solid var(--hair); background: var(--paper-2); overflow-x: auto; }
.doctabs a, .dt-name { padding: 14px 0 12px; font-size: 14.5px; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.dt-name { font-weight: 600; color: var(--ink); padding-right: clamp(8px, 1.5vw, 20px); border-right: 1px solid var(--hair); padding-top: 12px; padding-bottom: 12px; }
.doctabs a:hover { color: var(--ink); }
.doctabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 500; }

/* docs home: index | content | on this page */
.dochome { display: grid; grid-template-columns: 240px minmax(0, 1fr) 200px; gap: clamp(24px, 3vw, 56px); padding: 0 var(--pad); align-items: start; background: var(--paper-2); }
.dh-nav, .dh-toc { position: sticky; top: 112px; display: grid; gap: 2px; padding: 28px 0 40px; }
.dh-nav { border-right: 1px solid var(--hair); padding-right: 18px; margin-right: -18px; }
.dh-nav p, .dh-toc p { margin: 18px 10px 6px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.dh-toc p { margin-top: 4px; font-weight: 500; color: var(--muted); }
.dh-nav a { padding: 7px 10px; border-radius: 8px; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.dh-nav a:hover { background: var(--paper); color: var(--ink); }
.dh-nav .dh-on { background: #edf2f8; color: var(--ink); font-weight: 600; }
.dh-toc a { padding: 5px 0 5px 14px; border-left: 1px solid var(--hair); font-size: 13.5px; color: var(--muted); text-decoration: none; }
.dh-toc a:hover { color: var(--ink); border-left-color: var(--ink); }
.dh-main { padding: 44px 0 72px; min-width: 0; max-width: 820px; }
.dh-main h1 { font: 400 clamp(38px, 3.6vw, 52px)/1.05 var(--serif); letter-spacing: -0.02em; color: var(--ink); }
.dh-lead { margin-top: 14px; font-size: 18px; line-height: 1.55; color: var(--ink-2); padding-bottom: 28px; border-bottom: 1px solid var(--hair); }
.dh-main h2 { margin: 44px 0 16px; font: 400 28px/1.15 var(--serif); letter-spacing: -0.015em; color: var(--ink); scroll-margin-top: 120px; }
.dh-main p, .dh-main li { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.dh-main ul { padding-left: 20px; display: grid; gap: 10px; margin-top: 12px; }
.dh-main b { color: var(--ink); font-weight: 600; }

.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.path { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-height: 250px; padding: 22px; border-radius: 14px; text-decoration: none; color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease; }
.path:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -28px rgba(11, 26, 46, 0.6); }
.path::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 70% at 110% 110%, rgba(255, 255, 255, 0.35), transparent 60%); }
.p-blue { background: radial-gradient(80% 90% at 0% 0%, #3a8ee0, transparent 70%), linear-gradient(160deg, #236eb9, #5c9bd8 70%, #9cc8f2); }
.p-navy { background: radial-gradient(80% 90% at 100% 0%, #2f6fae, transparent 70%), linear-gradient(160deg, #0b1a35, #1a395d 70%, #3f6c9c); }
.p-ice { background: linear-gradient(160deg, #d6e6f5, #e9f3fb 60%, #c8e4ec); color: var(--ink); }
.p-kind { font: 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.p-name { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.p-text { font-size: 14.5px; line-height: 1.55; opacity: 0.92; }
.p-btn { position: relative; z-index: 1; margin-top: auto; align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; padding: 9px 14px; border-radius: 999px;
  background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; }
.p-btn.p-dark { background: var(--ink); color: #fff; }

.dh-tablewrap { overflow-x: auto; }
.dh-table { min-width: 560px; }
.dh-table td, .dh-table th { text-align: left !important; white-space: normal; }
.dh-table td:first-child a { color: var(--ink); font-weight: 500; }

@media (max-width: 1180px) { .dochome { grid-template-columns: 220px minmax(0, 1fr); } .dh-toc { display: none; } }
@media (max-width: 860px) {
  .dochome { grid-template-columns: minmax(0, 1fr); }
  .dh-nav { position: static; border-right: 0; margin: 0; padding: 18px 0 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dh-nav p { grid-column: 1 / -1; }
  .paths { grid-template-columns: minmax(0, 1fr); }
  .path { min-height: 0; }
}

/* docs: the site bar and the docs tab bar both stay put; side columns stick below them */
.doctabs { position: sticky; top: 67px; z-index: 25; }
.dh-nav, .dh-toc { top: 118px; max-height: calc(100vh - 118px); overflow-y: auto; }
.dh-main h2 { scroll-margin-top: 140px; }
@media (max-width: 860px) { .doctabs { top: 0; position: relative; } }
@media (min-width: 861px) {
  .apidocs .toc nav.sidenav { top: 118px; max-height: calc(100vh - 118px); }
  .apidocs h2 { scroll-margin-top: 140px; }
}

/* docs home: site pills on the path cards */
.path .pill { position: relative; z-index: 1; margin-top: auto; align-self: flex-start; font-size: 14px; }
.pill.on-dark { background: #fff; color: var(--ink); border-color: #fff; }
.pill.on-dark .ar { background: var(--ink); color: #fff; }

/* meet the models: cards, not a table */
.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.model { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--hair); border-radius: 14px; background: var(--paper-2);
  color: inherit; text-decoration: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.model:hover { border-color: var(--line); box-shadow: 0 18px 40px -28px rgba(11, 26, 46, 0.45); }
.m-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.m-kind { font: 11px/1 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.m-status { font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 999px; }
.m-status.pre { background: rgba(35, 110, 185, 0.1); color: var(--ember-ink); }
.m-status.rel { background: rgba(26, 127, 55, 0.1); color: #1a7f37; }
.m-name { font: 400 28px/1.1 var(--serif); letter-spacing: -0.015em; color: var(--ink); }
.m-text { font-size: 14.5px !important; line-height: 1.55; color: var(--ink-2); }
.m-specs { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--hair); display: grid; gap: 6px; }
.m-specs span { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink); }
.m-specs b { font-weight: 400; color: var(--muted); }
@media (max-width: 1100px) { .models { grid-template-columns: minmax(0, 1fr); } }
.p-name { font: 400 30px/1.1 var(--serif); letter-spacing: -0.015em; }

/* method badges */
.mth { display: inline-block; min-width: 38px; margin-right: 8px; padding: 2px 5px; border-radius: 5px; border: 1px solid var(--hair);
  font: 600 10.5px/1.3 var(--mono); letter-spacing: 0.03em; text-align: center; vertical-align: 1px; }
.mth.post { color: var(--ember-ink); background: rgba(35, 110, 185, 0.08); border-color: rgba(35, 110, 185, 0.22); }
.mth.wss { color: #6b4fbb; background: rgba(107, 79, 187, 0.08); border-color: rgba(107, 79, 187, 0.22); }

/* collapsible groups in the docs index */
.dh-nav details { margin-top: 10px; }
.dh-nav summary { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 8px; cursor: pointer; list-style: none;
  font-size: 13.5px; font-weight: 600; color: var(--ink); }
.dh-nav summary::-webkit-details-marker { display: none; }
.dh-nav summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform 0.2s ease; }
.dh-nav details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.dh-nav summary:hover { background: var(--paper); }
.dh-nav details a { display: flex; align-items: center; margin-left: 10px; padding-left: 12px; border-left: 1px solid var(--hair); border-radius: 0 8px 8px 0; }
@media (max-width: 860px) { .dh-nav { grid-template-columns: minmax(0, 1fr); } .dh-nav details a { margin-left: 0; } }

/* integrations page */
.intro-int { padding: clamp(32px, 4vw, 56px) var(--pad) var(--vpad); max-width: calc(1100px + 2 * var(--pad)); }
.int-group { font: 400 26px/1.15 var(--serif); letter-spacing: -0.015em; color: var(--ink); margin: 0 0 16px; scroll-margin-top: 140px; }
.int-group + .ints { margin-bottom: 44px; }
.ints { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.int { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--hair); border-radius: 14px; background: var(--paper-2); scroll-margin-top: 140px; }
.int h3 { font: 400 28px/1.1 var(--serif); letter-spacing: -0.015em; color: var(--ink); }
.int p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.int .pill { margin-top: auto; align-self: flex-start; font-size: 14px; }
.int-eps { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.int-eps a { display: inline-flex; align-items: center; padding: 6px 10px; border: 1px solid var(--hair); border-radius: 999px; font: 13px var(--mono); color: var(--ink); text-decoration: none; }
.int-ask { font-size: 15px; color: var(--muted); }
.apidocs .sidenav a .mth { margin-right: 8px; }
@media (max-width: 760px) { .ints { grid-template-columns: minmax(0, 1fr); } }

/* turn-1 page: full-width sections, cards and tables in the site style */
.pagehead .actions { margin-top: 26px; }
.pagehead .byline { margin-top: 22px; }
.t1-sec { padding: clamp(48px, 6vw, 88px) var(--pad) 0; display: grid; gap: 24px; }
.t1-sec:last-child { padding-bottom: var(--vpad); }
.t1-head { display: grid; gap: 12px; max-width: 760px; }
.t1-head .chip { font: 11px/1 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.t1-head h2 { font: 400 clamp(34px, 3.6vw, 52px)/1.04 var(--serif); letter-spacing: -0.02em; color: var(--ink); scroll-margin-top: 90px; }
.t1-head p { font-size: 16.5px; line-height: 1.65; color: var(--ink-2); }
.t1-models { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.t1-models .model { padding: 26px; gap: 12px; }
.t1-models .m-name { font-size: 34px; }
.t1-models .m-text { font-size: 15px !important; }
.t1-models .m-specs span { font-size: 13.5px; }
.t1-models .pill { margin-top: 8px; align-self: flex-start; font-size: 13.5px; }
.t1-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--hair); border-radius: 14px; background: var(--paper-2); }
.t1-stats > div { padding: 22px 24px; display: grid; gap: 8px; }
.t1-stats > div + div { border-left: 1px solid var(--hair); }
.t1-stats .big { font: 400 clamp(34px, 3.4vw, 48px)/1 var(--serif); letter-spacing: -0.02em; color: var(--ink); }
.t1-stats .big small { font-size: 0.42em; color: var(--muted); margin-left: 5px; letter-spacing: 0; }
.t1-stats .lbl { font-size: 14px; color: var(--ink-2); }
.t1-table { border: 1px solid var(--hair); border-radius: 14px; background: var(--paper-2); padding: 6px 24px 20px; }
.t1-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); border-top: 1px solid var(--hair); margin-top: clamp(48px, 6vw, 88px); }
.t1-cols h2 { font: 400 28px/1.15 var(--serif); letter-spacing: -0.015em; color: var(--ink); margin-bottom: 12px; scroll-margin-top: 90px; }
.t1-cols p { font-size: 16px; line-height: 1.65; color: var(--ink-2); margin-bottom: 10px; max-width: 58ch; }
@media (max-width: 900px) {
  .t1-models, .t1-cols { grid-template-columns: minmax(0, 1fr); }
  .t1-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t1-stats > div:nth-child(3) { border-left: 0; }
  .t1-stats > div:nth-child(n+3) { border-top: 1px solid var(--hair); }
}
