/* =========================================================
   Graybx / WeightsLab: site styles
   Design idea: the black → gray → white spectrum, with a cyan
   "focus frame" marking the part that matters.
   ========================================================= */

/* Self-hosted fonts (Geist + Geist Mono, SIL OFL 1.1, see assets/fonts/OFL.txt).
   Served from this site so no visitor IP is sent to a font CDN. Latin + Latin-Extended subsets. */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/geist-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #0a0a0b;
  --ink-2: #111114;
  --ink-3: #1a1a1e;
  --line-d: #26262b;
  --paper: #f6f6f2;
  --tint: #eeeee9;
  --white: #fff;
  --g100: #ececea;
  --g200: #dcdcd8;
  --g300: #c4c4c0;
  --muted: #5f5f66;       /* text on light */
  --muted-d: #a4a4ac;     /* text on dark */
  --focus: #4dc7ff;       /* brand cyan (from the pitch deck + current site) */
  --focus-ink: #0a6a99;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --max: 1200px;
  --gut: clamp(16px, 4vw, 32px);
  --r: 18px;
  --nav-h: 67px;          /* sticky nav: 66px bar + 1px border */
  /* surfaces that change in dark mode (see "dark mode" at the end); --dark is dark in both modes */
  --dark: #0a0a0b;
  --card: #fff;
  --ink-soft: #34343a;
  --glass: rgba(255, 255, 255, .6);
  --nav-bg: rgba(246, 246, 242, .82);
  --usebar-bg: rgba(246, 246, 242, .9);
  --btn-hover: #26262b;
  --btn-split: #3a3a40;
  --shot-bar: #f1f1ee;
  --shot-dot: #d5d5d1;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
code, pre { font-family: var(--mono); }
em { font-style: normal; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: calc(var(--max) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--dark); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 4.6vw, 4.1rem); line-height: 1.06; letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.07; }
h3 { font-size: 1.25rem; line-height: 1.25; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 34em; margin-top: 1.5rem; }
.body { font-size: 1.125rem; color: var(--muted); max-width: 40em; margin-top: 1.25rem; }
.fine { font-size: .8rem; color: var(--muted); margin-top: .75rem; line-height: 1.5; }

.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font: 500 .75rem/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.25rem; }
.eyebrow--light { color: var(--muted-d); }
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--focus); box-shadow: 0 0 0 4px rgba(77, 199, 255, .22); }

/* The signature element: a cyan frame around the words that matter */
.frame {
  display: inline-block; white-space: nowrap; line-height: 1.04;
  padding: .02em .16em .09em; margin-block: .04em; border: .045em solid var(--focus); border-radius: .26em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.3rem;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: 999px;
  font-size: .98rem; font-weight: 500; line-height: 1.2; text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .55); }
.btn svg { transition: transform .2s; }
.btn:hover svg { transform: translateX(2px); }
.btn--sm { padding: .55rem 1rem; font-size: .9rem; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--g300); }
.btn--ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn--light { background: #f6f6f2; color: #0a0a0b; border-color: #f6f6f2; }
.btn--ghost-light { background: transparent; color: #f6f6f2; border-color: #4a4a50; }
.btn--ghost-light:hover { border-color: #f6f6f2; box-shadow: none; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid transparent; transition: border-color .25s; }
.nav.is-scrolled { border-bottom-color: var(--g200); }
.nav__inner { position: relative; display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav__brand { display: inline-flex; align-items: center; }
.nav__word { height: 36px; width: auto; filter: invert(1); } /* wordmark file is white (made for dark backgrounds) */
.nav__menu { display: flex; align-items: center; flex: 1; min-width: 0; margin-left: clamp(1.5rem, 3.5vw, 3rem); font-size: .93rem; }
/* two groups: the site's pages next to the logo, then the tools (Docs, GitHub, dark mode, join) on the right */
.nav__pages, .nav__tools { display: flex; align-items: center; }
.nav__pages { gap: 1.75rem; }
.nav__tools { gap: 1.15rem; margin-left: auto; }
:is(.nav__pages, .nav__tools) > a:not(.btn):not(.nav__gh) { text-decoration: none; color: var(--ink-soft); position: relative; }
:is(.nav__pages, .nav__tools) > a:not(.btn):not(.nav__gh)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
:is(.nav__pages, .nav__tools) > a:not(.btn):not(.nav__gh):hover::after { transform: scaleX(1); }
.nav__gh { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; color: var(--ink-soft); }
.nav__stars { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .5rem; border: 1px solid var(--g200); border-radius: 999px; font: 500 .72rem var(--mono); color: var(--ink-soft); transition: border-color .2s, color .2s; }
.nav__stars b { font-weight: 500; }
.nav__gh:hover .nav__stars { border-color: var(--ink); color: var(--ink); }

/* header CTA: a split button. The left part does the chosen action ("Book a demo" or "Join early
   access"); the arrow opens the menu that picks it. The pill lifts as a whole, and the hovered part
   lightens so it is clear which one a click hits. */
.nav__cta { position: relative; display: inline-flex; border-radius: 999px; transition: transform .2s, box-shadow .2s; }
.nav__cta:hover:not(.is-open) { transform: translateY(-1px); box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .55); }
.nav__cta > .btn:hover { transform: none; box-shadow: none; background: var(--btn-hover); border-color: var(--btn-hover); }
.nav__cta-main { border-radius: 999px 0 0 999px; padding-right: .9rem; }
.nav__cta-arrow { border-radius: 0 999px 999px 0; padding: .55rem .8rem .55rem .7rem; border-left-color: var(--btn-split); cursor: pointer; }
.nav__cta-arrow:hover .nav__chev { transform: none; }          /* .btn:hover svg would nudge it sideways */
.nav__cta.is-open .nav__chev { transform: rotate(180deg); }
.nav__cta-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; width: 300px; padding: 6px; background: var(--card); border: 1px solid var(--g200); border-radius: 16px; box-shadow: 0 34px 70px -32px rgba(0, 0, 0, .5); }
.nav__cta-menu[hidden] { display: none; }
.nav__cta-menu button { display: flex; align-items: flex-start; gap: .6rem; width: 100%; padding: .7rem .75rem; border: 0; border-radius: 10px; background: none; font: inherit; text-align: left; color: var(--ink); cursor: pointer; transition: background .15s; }
.nav__cta-menu button:hover, .nav__cta-menu button:focus-visible { background: var(--paper); outline: none; }
.nav__cta-menu b { display: block; font-size: .93rem; font-weight: 600; letter-spacing: -.01em; }
.nav__cta-menu small { display: block; margin-top: .15rem; font-size: .82rem; line-height: 1.45; color: var(--muted); }
.nav__cta-tick { flex: none; margin-top: .1rem; color: var(--focus-ink); visibility: hidden; }
.nav__cta-menu [aria-checked="true"] .nav__cta-tick { visibility: visible; }

/* header menu: use cases, each with a short summary (anchored to the nav bar) */
.nav__btn { position: relative; display: inline-flex; align-items: center; gap: .35rem; padding: 0; border: 0; background: none; font: inherit; color: var(--ink-soft); cursor: pointer; }
.nav__btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav__btn:hover::after, .nav__item.is-open .nav__btn::after { transform: scaleX(1); }
.nav__btn:focus-visible { outline: 2px solid var(--focus-ink); outline-offset: 6px; border-radius: 4px; }
.nav__chev { transition: transform .25s; }
.nav__item.is-open .nav__chev { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% - 6px); right: 0; z-index: 60; width: min(780px, 100%); padding: 14px; background: var(--card); border: 1px solid var(--g200); border-radius: 18px; box-shadow: 0 34px 70px -32px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }   /* keeps the hover continuous between the button and the panel */
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mega__grid li:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* an odd count: the last card takes the full row */
.mega__card { display: flex; flex-direction: column; gap: .4rem; height: 100%; padding: 1rem 1.1rem; background: var(--paper); border: 1px solid var(--g200); border-radius: 12px; text-decoration: none; transition: border-color .2s, background .2s; }
.mega__card:hover, .mega__card:focus-visible { border-color: var(--ink); background: var(--card); }
.mega__card--hi { border-color: rgba(77, 199, 255, .65); background: linear-gradient(180deg, rgba(77, 199, 255, .12), rgba(77, 199, 255, 0) 70%), var(--paper); }
.mega__k { font: 600 .98rem var(--font); letter-spacing: -.015em; color: var(--ink); }
.mega__s { font-size: .86rem; line-height: 1.5; color: var(--muted); }
.mega__go { margin-top: auto; padding-top: .35rem; display: inline-flex; align-items: center; gap: .35rem; font-size: .84rem; font-weight: 500; color: var(--focus-ink); }
.mega__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; margin: 12px 4px 2px; font-size: .84rem; color: var(--muted); }
.mega__foot a { color: var(--ink); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--g300); }

/* ---------- use-case switcher (sticky, under the nav) ---------- */
.usebar { position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 49; background: var(--usebar-bg); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--g200); box-shadow: 0 10px 24px -22px rgba(0, 0, 0, .5);
  visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s; }
.usebar.is-on { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.usebar__in { display: flex; align-items: center; gap: .9rem; height: 46px; }
.usebar__label { flex: none; font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.usebar__list { position: relative; display: flex; gap: .4rem; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.usebar__list::-webkit-scrollbar { display: none; }
.usebar__list li { flex: none; }
.usebar__list a { display: block; flex: none; white-space: nowrap; padding: .32rem .85rem; font-size: .86rem; line-height: 1.4; text-decoration: none; background: var(--glass); border: 1px solid var(--g300); border-radius: 999px; transition: background .2s, color .2s, border-color .2s; }
.usebar__list a:hover { border-color: var(--ink); background: var(--card); }
.usebar__list a.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.uc { scroll-margin-top: 44px; }   /* with html scroll-padding: the chapter lands just under nav + switcher */
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .25s, top .25s; }
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 25px; }
.nav--open .nav__toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav--open .nav__toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto 40%; height: 90%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(77, 199, 255, .16), transparent 70%);
}
.hero > .container { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(36px, 6vw, 80px) clamp(36px, 5vw, 56px); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.installs { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.installs .install { margin-top: 0; }
.install { display: inline-flex; align-items: center; gap: .75rem; margin-top: 1.25rem; padding: .5rem .5rem .5rem 1rem; background: var(--card); border: 1px solid var(--g200); border-radius: 12px; font-size: .9rem; }
.install code { white-space: nowrap; }
.install__p { color: var(--focus-ink); margin-right: .4rem; }
.install__btn, .code__copy, .plug__copy { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--g200); background: var(--paper); border-radius: 8px; color: var(--ink); transition: background .2s, border-color .2s; }
.install__btn:hover { border-color: var(--ink); }
.install__btn .i-check, .code__copy .i-check, .plug__copy .i-check { display: none; color: var(--focus-ink); }
.is-copied .i-copy { display: none; }
.is-copied .i-check { display: block; }
.hero__for { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2rem; font-size: .9rem; }
.hero__for-label { font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-right: .25rem; }
.hero__for a { text-decoration: none; padding: .4rem .85rem; border: 1px solid var(--g300); border-radius: 999px; background: var(--glass); transition: border-color .2s, background .2s; }
.hero__for a:hover { border-color: var(--ink); background: var(--card); }

/* proof strip */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--g200); border-bottom: 1px solid var(--g200); margin-top: 8px; margin-bottom: clamp(40px, 6vw, 72px); }
.proof li { padding: 1.4rem 1.25rem; display: flex; flex-direction: column; gap: .15rem; }
.proof li + li { border-left: 1px solid var(--g200); }
.proof strong { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; }
.proof span { font-size: .9rem; color: var(--muted); }

/* ---------- interactive run illustration ---------- */
.run { background: #0c0c0f; color: #ececee; border: 1px solid #25252a; border-radius: 22px; overflow: hidden; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .03) inset; }
.run__bar { display: flex; align-items: center; gap: .65rem; padding: .85rem 1.1rem; border-bottom: 1px solid #1f1f24; font: 500 .78rem var(--mono); }
.run__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--focus); box-shadow: 0 0 0 0 rgba(77, 199, 255, .6); animation: pulse 1.8s infinite; }
.run[data-phase="diagnose"] .run__dot, .run[data-phase="status"] .run__dot { animation: none; background: #8a8a92; }
.run__name { color: #c9c9ce; }
.run__status { margin-left: auto; color: var(--focus); }
.run[data-phase="diagnose"] .run__status, .run[data-phase="status"] .run__status { color: #b0b0b8; }
.run__body { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.1rem; padding: 1.1rem; }
.run__label { font: 500 .68rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #7e7e86; margin-bottom: .55rem; display: flex; justify-content: space-between; gap: .5rem; }
.run__legend { text-transform: none; letter-spacing: 0; color: #5f5f66; transition: opacity .4s; }
.run[data-phase="status"] .run__legend { opacity: 0; }
.run__chart svg { width: 100%; height: auto; overflow: visible; }
.curve { fill: none; stroke-linecap: round; stroke-width: 3; }
.curve--prev { stroke: var(--c); stroke-width: 1.8; opacity: 0; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s cubic-bezier(.3, .7, .2, 1) var(--d, 0s), opacity .4s; }
.curve--base { stroke: #ececee; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.3, .7, .2, 1); }
.curve--ghost { stroke: #6a6a72; stroke-width: 2; stroke-dasharray: .018 .022; opacity: 0; transition: opacity .5s .6s; }
.curve--fix { stroke: var(--focus); stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.3, .7, .2, 1) .3s; }
.curve--fix-area { stroke: none; opacity: 0; transition: opacity .9s .6s; }
.run__runs { display: grid; grid-template-columns: repeat(2, max-content); justify-content: start; gap: .35rem 1.4rem; margin-top: .7rem; font: 500 .68rem var(--mono); color: #8e8e96; }
.run__runs li { display: inline-flex; align-items: center; gap: .4rem; }
.run__runs i { display: block; width: 14px; height: 3px; border-radius: 2px; background: var(--c); }
.run__runs li { transition: opacity .6s; }
.run__runs li:last-child { color: #d8d8dd; transition-delay: .5s; }
.run[data-phase="idle"] .run__runs li { opacity: 0; }
.run[data-phase="status"] .run__runs li:last-child { opacity: 0; transition-delay: 0s; }
.run__runs li:not(:last-child) i { opacity: .55; }
.run__ckpt { opacity: 0; transition: opacity .5s; }
.run:not([data-phase="idle"]) .curve--prev { stroke-dashoffset: 0; }
.run[data-phase="status"] .curve--prev { opacity: .85; }
.run[data-phase="observe"] .curve--prev, .run[data-phase="diagnose"] .curve--prev { opacity: .42; }
.run[data-phase="intervene"] .curve--prev { opacity: .26; }
.run[data-phase="observe"] .curve--base, .run[data-phase="diagnose"] .curve--base, .run[data-phase="intervene"] .curve--base { stroke-dashoffset: 0; }
.run[data-phase="observe"] .curve--ghost, .run[data-phase="diagnose"] .curve--ghost, .run[data-phase="intervene"] .curve--ghost { opacity: 1; }
.run[data-phase="intervene"] .curve--ghost { opacity: .35; transition-delay: 0s; }
.run[data-phase="intervene"] .curve--fix { stroke-dashoffset: 0; }
.run[data-phase="intervene"] .curve--fix-area { opacity: 1; }
.run[data-phase="intervene"] .run__ckpt { opacity: 1; }

.run__grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.tile { position: relative; aspect-ratio: 1; border-radius: 4px; background: #222227; transition: background .5s, opacity .45s, transform .45s, box-shadow .3s; transition-delay: var(--d, 0s); }
.run[data-phase="observe"] .tile, .run[data-phase="diagnose"] .tile, .run[data-phase="intervene"] .tile { background: hsl(0 0% calc(14% + var(--l) * 76%)); }
.tile::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; font: 600 .55rem var(--mono); color: #5c5c64; opacity: 0; transition: opacity .5s; }
.run[data-phase="status"] .tile::after { opacity: 1; }
.run[data-phase="diagnose"] .tile.is-flag { box-shadow: 0 0 0 2px var(--focus), 0 0 14px rgba(77, 199, 255, .55); transition-delay: calc(var(--k, 0) * 60ms); animation: flag 1.6s ease-in-out infinite; }
.run[data-phase="intervene"] .tile.is-flag { opacity: .1; transform: scale(.55); box-shadow: none; transition-delay: calc(var(--k, 0) * 70ms); }
.run__note { margin-top: .7rem; min-height: 1.2em; font: 500 .72rem var(--mono); color: var(--focus); opacity: 0; transition: opacity .4s; }
.run[data-phase="diagnose"] .run__note, .run[data-phase="intervene"] .run__note, .run[data-phase="status"] .run__note { opacity: 1; }
.run[data-phase="status"] .run__note { color: #8a8a92; }

.run__foot { padding: 1rem 1.1rem 1.15rem; border-top: 1px solid #1f1f24; }
.run__steps { display: flex; gap: .5rem; flex-wrap: wrap; }
.run__steps button { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .85rem .45rem .5rem; border: 1px solid #2c2c32; background: transparent; color: #b8b8bf; border-radius: 999px; font-size: .85rem; transition: background .25s, color .25s, border-color .25s, opacity .25s; }
.run__steps b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #1f1f24; font: 600 .7rem var(--mono); }
.run__steps button:hover { border-color: #55555c; color: #fff; }
.run__steps .run__before, .run__steps .run__with { padding-left: .85rem; }
.run__with::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--focus); transition: background .25s; }
.run[data-phase="observe"] .run__with, .run[data-phase="diagnose"] .run__with, .run[data-phase="intervene"] .run__with { background: var(--focus); color: var(--dark); border-color: var(--focus); }
.run[data-phase="observe"] .run__with::before, .run[data-phase="diagnose"] .run__with::before, .run[data-phase="intervene"] .run__with::before { background: var(--dark); }
.run[data-phase="idle"] [data-phase="observe"], .run[data-phase="idle"] [data-phase="diagnose"], .run[data-phase="idle"] [data-phase="intervene"],
.run[data-phase="status"] [data-phase="observe"], .run[data-phase="status"] [data-phase="diagnose"], .run[data-phase="status"] [data-phase="intervene"] { opacity: .55; }
.run__br { flex-basis: 100%; height: 0; }
.run[data-phase="status"] [data-phase="status"],
.run[data-phase="observe"] [data-phase="observe"],
.run[data-phase="diagnose"] [data-phase="diagnose"],
.run[data-phase="intervene"] [data-phase="intervene"] { background: #f6f6f2; color: var(--dark); border-color: #f6f6f2; }
.run[data-phase="observe"] [data-phase="observe"] b,
.run[data-phase="diagnose"] [data-phase="diagnose"] b,
.run[data-phase="intervene"] [data-phase="intervene"] b { background: var(--focus); color: var(--dark); }
.run__caption { margin-top: .9rem; min-height: 3.1em; font-size: .93rem; line-height: 1.5; color: #a8a8b0; }
.run.no-tr *, .run.no-tr *::before { transition: none !important; animation: none !important; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(77, 199, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(77, 199, 255, 0); } }
@keyframes flag { 50% { box-shadow: 0 0 0 2px var(--focus), 0 0 22px rgba(77, 199, 255, .85); } }

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section--dark { background: var(--dark); color: #ececee; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .body { color: var(--muted-d); }
.section--tint { background: var(--tint); }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* why */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.costs { margin-top: 2.25rem; display: grid; gap: 1.5rem; }
.costs li { display: grid; grid-template-columns: 2.6rem 1fr; align-items: start; }
.costs__n { font: 500 .8rem var(--mono); color: var(--focus); padding-top: .25rem; }
.costs h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.costs p { color: var(--muted-d); font-size: 1rem; }
.tail { background: var(--ink-2); border: 1px solid var(--line-d); border-radius: var(--r); padding: clamp(16px, 2.5vw, 28px); }
.tail svg { width: 100%; height: auto; }
.tail__ax { fill: #84848c; font: 11px var(--mono); }
.tail__pt circle { fill: #f6f6f2; stroke: var(--ink-2); stroke-width: 3; }
.tail__pt text { fill: #ececee; font: 500 13px var(--font); }
.tail__pt .tail__sub { fill: #84848c; font: 11px var(--font); }
.tail__pt .tail__sub--cy { fill: var(--focus); }
.tail__pt--rare circle { fill: var(--focus); }
.tail figcaption { margin-top: 1rem; font-size: .95rem; color: var(--muted-d); max-width: 36em; }
.tail figcaption em { color: #fff; }

/* the march of nines: what is left to fix at each level of accuracy */
.nines { margin-top: clamp(36px, 5vw, 60px); background: var(--ink-2); border: 1px solid var(--line-d); border-radius: var(--r); padding: clamp(22px, 3.5vw, 44px); }
.nines__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.nines__title { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.2; }
.nines__sub { margin-top: .35rem; font-size: .85rem; color: #84848c; }
.nines__list { margin-top: 1.75rem; display: grid; gap: 1.5rem; }
.nine { display: grid; grid-template-columns: 6rem minmax(0, 1fr); column-gap: 1.1rem; row-gap: .5rem; align-items: center; }
.nine__pct { grid-row: 1 / span 2; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; color: #fff; }
.nine__bar { height: 10px; border-radius: 99px; background: #1f1f24; }
.nine__bar i { display: block; height: 100%; width: var(--w); min-width: 6px; border-radius: 99px; background: var(--c, #f6f6f2); transition: width 1.2s cubic-bezier(.2, .7, .2, 1); }
.nine:nth-child(2) { --c: #8a8a90; }
.nine:nth-child(3) { --c: var(--focus); }
.nine:nth-child(2) .nine__bar i { transition-delay: .15s; }
.nine:nth-child(3) .nine__bar i { transition-delay: .3s; box-shadow: 0 0 14px rgba(77, 199, 255, .7); }
.js .nines.reveal:not(.in) .nine__bar i { width: 0; min-width: 0; }
.nine__left { font-size: .92rem; color: var(--muted-d); }
.nine__left b { color: #fff; font-weight: 600; }
.nines__foot { margin-top: 1.75rem; color: var(--muted-d); max-width: 34em; }

/* where the last nines matter: three "islands", one per domain, each with its own small drawing */
.apps { margin-top: clamp(48px, 7vw, 88px); }
.apps__head { max-width: 40em; }
.apps__title { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.2; }
.apps__sub { margin-top: .5rem; color: var(--muted-d); }
.isles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); margin-top: 2rem; align-items: start; }
.isle { display: flex; flex-direction: column; padding: 14px 14px 24px; background: linear-gradient(180deg, #16161b, var(--ink-2)); border: 1px solid var(--line-d); border-radius: 24px; box-shadow: 0 40px 60px -40px rgba(77, 199, 255, .22), 0 24px 40px -30px rgba(0, 0, 0, .9); transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .25s; }
.isle:nth-child(2) { margin-top: 32px; }   /* the islands sit at different heights */
.isle:hover { transform: translateY(-4px); border-color: rgba(77, 199, 255, .45); }
.isle__art, .post__art { border-radius: 14px; padding: 6px; border: 1px solid #1f1f24; background: radial-gradient(#2a2a30 1px, transparent 1.2px) 0 0 / 14px 14px, radial-gradient(120% 90% at 50% 0%, #1c1c22, #0e0e11); }
.isle__art svg, .post__art svg { display: block; width: 100%; height: auto; }
.post__art img { display: block; width: 100%; height: auto; aspect-ratio: 240 / 140; object-fit: cover; border-radius: 9px; }
.isle__t { font: 500 10px var(--mono); letter-spacing: .04em; fill: var(--focus); }
.isle__t--s { font-size: 6px; }   /* inside a viewBox that is shown at about 2x */
/* full-bleed halftone picture (the same illustration style as graybx.com) */
.isle__art--img { position: relative; padding: 0; overflow: hidden; background: #0b0b0d; }
.isle__art--img img { display: block; width: 100%; height: auto; aspect-ratio: 175 / 191; object-fit: cover; }
.isle__art .isle__box { position: absolute; inset: 0; width: 100%; height: 100%; }
.isle__k { margin: 1.15rem .5rem 0; font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--focus); }
.isle h4 { margin: .45rem .5rem 0; font-size: 1.25rem; line-height: 1.2; letter-spacing: -.02em; color: #fff; }
.isle > p:not(.isle__k) { margin: .6rem .5rem 0; color: var(--muted-d); font-size: .96rem; }
.isle__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem .5rem 0; }
.isle__tags li { font: .7rem var(--mono); padding: .25rem .65rem; border-radius: 999px; background: #1a1a1e; color: #c9c9ce; border: 1px solid #28282d; }
.isle__go { align-self: flex-start; display: inline-flex; align-items: center; gap: .35rem; margin: 1.1rem .5rem 0; font-size: .92rem; font-weight: 500; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); padding-bottom: 1px; transition: color .2s, border-color .2s; }
.isle__go:hover, .isle__go:focus-visible { color: var(--focus); border-color: var(--focus); }

/* blog: three islands, one per article (not published yet: a click opens the "coming soon" note) */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); align-items: stretch; }
.posts li { display: flex; }
.posts li > .post { flex: 1; }
.post { display: flex; flex-direction: column; padding: 14px 14px 24px; background: var(--card); border: 1px solid var(--g200); border-radius: 24px; color: var(--ink); text-decoration: none; box-shadow: 0 30px 50px -38px rgba(0, 0, 0, .45); transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .25s, box-shadow .35s; }
.post:hover, .post:focus-visible { transform: translateY(-4px); border-color: var(--focus); box-shadow: 0 40px 60px -36px rgba(77, 199, 255, .5); }
.post__art { position: relative; }
.post__pill { position: absolute; top: 14px; left: 14px; font: 500 .62rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--focus); background: rgba(10, 10, 11, .75); border: 1px solid rgba(77, 199, 255, .5); border-radius: 999px; padding: .25rem .6rem; }
.post__k { margin: 1.15rem .5rem 0; font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--focus-ink); }
.post h3 { margin: .45rem .5rem 0; font-size: 1.3rem; line-height: 1.2; letter-spacing: -.02em; }
.post__teaser { margin: .6rem .5rem 0; color: var(--muted); font-size: .96rem; }
.post__go { display: inline-flex; align-items: center; gap: .4rem; margin: 1.1rem .5rem 0; font-weight: 500; font-size: .92rem; }
.post__go svg { transition: transform .2s; }
.post:hover .post__go svg { transform: translateX(3px); }

/* "coming soon" note shown when an unpublished article is opened */
.soon { width: min(460px, calc(100vw - 24px)); padding: 0; border: 1px solid var(--g200); border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .55); }
.soon[open] { animation: fadeUp .3s ease; }
.soon::backdrop { background: rgba(10, 10, 11, .55); backdrop-filter: blur(4px); }
.soon__box { padding: 1.4rem 1.5rem 1.5rem; }
.soon__top { display: flex; justify-content: space-between; align-items: center; }
.soon h2 { margin-top: 1.1rem; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.02em; }
.soon p { margin-top: .75rem; color: var(--muted); }
.soon__btns { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.soon__rel { font-size: .92rem; }
.soon__rel a { color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--g300); text-decoration: none; }
.soon__rel a:hover { border-color: var(--ink); }

/* early-access pop-up (header "Join"): the #contact signup card, shown in a dialog */
.join { width: min(480px, calc(100vw - 24px)); padding: 0; border: 0; border-radius: 22px; background: transparent; box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .55); }
.join[open] { animation: fadeUp .3s ease; }
.join::backdrop { background: rgba(10, 10, 11, .55); backdrop-filter: blur(4px); }
.join .signup { position: relative; }
.join h3 { padding-right: 2.75rem; }
.join .join__x { position: absolute; top: 16px; right: 16px; background: var(--dark); border-color: #3a3a40; color: #fff; }
.join .join__x:hover { border-color: #fff; }

.stakes { margin-top: clamp(40px, 6vw, 72px); }
.stakes__title { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.2; }
.stakes__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: 1.75rem; align-items: start; max-width: 52em; }
.punch { margin-bottom: clamp(32px, 4.5vw, 56px); }
.punch h2 { max-width: 15em; }   /* same size as the Problem 2 headline: the site's standard h2 */
.punch__stats { display: flex; flex-wrap: wrap; gap: clamp(28px, 6vw, 88px); margin-top: clamp(26px, 4vw, 44px); }
.punch__stats li { display: flex; flex-direction: column; gap: .4rem; padding-left: clamp(16px, 2vw, 26px); border-left: 2px solid var(--focus); }
.punch__stats b { font-size: clamp(3.4rem, 10vw, 7rem); font-weight: 600; letter-spacing: -.055em; line-height: .92; color: #fff; }
.punch__stats span { font: 500 clamp(.85rem, 1.5vw, 1.1rem) var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted-d); }
.section__head--sub { margin-bottom: 0; }
.prob--2 { margin-top: clamp(72px, 10vw, 128px); padding-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line-d); }
.nines--train .costs { margin-top: 1.5rem; }
.nines--train .tail { background: none; border: 0; padding: 0; }
@media (min-width: 901px) { .nines--train .nines__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; } }
.stat { display: flex; flex-direction: column; gap: .35rem; }
.stat__k { font: 500 .68rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--focus); }
.stat__n { font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; color: #fff; }
.stat__t { color: #d0d0d5; max-width: 20em; }
.stat__src { font-size: .8rem; color: #7e7e86; }
.quote { border-left: 2px solid var(--focus); padding-left: 1.5rem; }
.quote p { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.35; font-weight: 500; letter-spacing: -.02em; color: #fff; }
.quote footer { margin-top: .9rem; font-size: .85rem; color: var(--muted-d); }
.quote footer span { color: #7e7e86; }

/* how: tabs */
.tabs { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.tabs__list { display: flex; flex-direction: column; gap: .5rem; }
.tabs__tab { display: grid; grid-template-columns: 2.4rem 1fr; text-align: left; padding: 1.25rem 1.25rem 1.25rem 1.1rem; background: transparent; border: 1px solid transparent; border-radius: 16px; color: var(--muted); transition: background .25s, border-color .25s, box-shadow .25s, color .25s; }
.tabs__tab strong { display: block; font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); margin-bottom: .2rem; }
.tabs__tab em { display: block; font-size: 1rem; line-height: 1.5; }
.tabs__n { font: 500 .8rem var(--mono); padding-top: .55rem; color: var(--muted); }
.tabs__tab { position: relative; overflow: hidden; }
.tabs__prog { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--focus); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.tabs.is-auto .tabs__tab[aria-selected="true"] .tabs__prog { animation: tabProg var(--auto, 7s) linear forwards; }
.tabs.is-auto.is-paused .tabs__tab[aria-selected="true"] .tabs__prog { animation-play-state: paused; }
@keyframes tabProg { to { transform: scaleX(1); } }
.tabs__tab:hover { background: var(--glass); }
.tabs__tab[aria-selected="true"] { background: var(--card); border-color: var(--g200); box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .35); color: var(--ink-soft); }
.tabs__tab[aria-selected="true"] .tabs__n { color: var(--focus-ink); }
.tabs__stage { min-width: 0; display: grid; } /* panels share one cell, so the stage never changes height between tabs */
.tabs__stage > .mock { grid-area: 1 / 1; }

.mock { background: var(--dark); color: #ececee; border: 1px solid #1d1d21; border-radius: 20px; padding: 1.25rem 1.4rem 1rem; min-height: 380px; display: flex; flex-direction: column; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .55); }
.mock:not([hidden]) { animation: fadeUp .45s ease; }
.mock[hidden] { display: flex; visibility: hidden; pointer-events: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
.mock__bar { display: flex; justify-content: space-between; align-items: center; padding-bottom: .9rem; margin-bottom: 1rem; border-bottom: 1px solid #1f1f24; font: 500 .8rem var(--mono); color: #c9c9ce; }
.mock__chip { padding: .15rem .6rem; border: 1px solid #333339; border-radius: 999px; font-size: .7rem; color: #a4a4ac; }
.mock__chip--cy { color: var(--focus); border-color: rgba(77, 199, 255, .5); }
.mock__row { display: flex; justify-content: space-between; align-items: baseline; }
.mock__h { font-weight: 500; color: #fff; }
.mock__meta { font: .72rem var(--mono); color: #7e7e86; }
.evt { width: 100%; height: auto; margin-top: .8rem; overflow: visible; }
.evt .b { fill: #46464d; }
.evt .t { fill: rgba(77, 199, 255, .62); }
.evt__zone { fill: rgba(77, 199, 255, .06); stroke: rgba(77, 199, 255, .5); stroke-width: 1; stroke-dasharray: 3 4; }
.evt__line { fill: none; stroke: #ececee; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.evt__t { font: 500 9px "Geist Mono", monospace; }
.evt__m { fill: #0b0b0d; stroke: #ececee; stroke-width: 2; }
.evt__ring { fill: rgba(77, 199, 255, .2); }
.evt__dot { fill: var(--focus); }
.mock:not([hidden]) .evt .b, .mock:not([hidden]) .evt .t { transform-box: fill-box; transform-origin: 50% 100%; animation: barIn .7s cubic-bezier(.3, .7, .2, 1) both; animation-delay: calc(var(--i) * 22ms); }
.mock:not([hidden]) .evt__line { stroke-dasharray: 1; animation: lineIn 1.4s .3s cubic-bezier(.3, .7, .2, 1) both; }
.mock:not([hidden]) .evt__zone, .mock:not([hidden]) .evt__t, .mock:not([hidden]) .evt__m, .mock:not([hidden]) .evt__ring, .mock:not([hidden]) .evt__dot { animation: evtFade .6s 1s ease both; }
@keyframes barIn { from { transform: scaleY(0); } }
@keyframes lineIn { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes evtFade { from { opacity: 0; } }
.evt__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: 1rem; }
.evt__card { display: flex; flex-direction: column; gap: .25rem; padding: .7rem .85rem; border: 1px solid #28282d; border-radius: 12px; background: #131316; font-size: .8rem; line-height: 1.4; color: #a4a4ac; }
.evt__card b { display: flex; align-items: center; gap: .5rem; font-weight: 500; color: #fff; }
.evt__card b::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; border: 2px solid #ececee; background: #0b0b0d; }
.evt__card--fail { border-color: rgba(77, 199, 255, .4); background: rgba(77, 199, 255, .05); }
.evt__card--fail b::before { border-color: var(--focus); background: var(--focus); box-shadow: 0 0 0 3px rgba(77, 199, 255, .25); }
.hist__axis { display: flex; justify-content: space-between; font: .68rem var(--mono); color: #7e7e86; margin-top: .35rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.25rem; }
.chips li { font: .72rem var(--mono); padding: .3rem .7rem; border-radius: 999px; background: #1a1a1e; color: #c9c9ce; border: 1px solid #28282d; }
.chips .chips__custom { color: var(--focus); border-color: rgba(77, 199, 255, .35); background: rgba(77, 199, 255, .06); }
.chat { display: flex; flex-direction: column; gap: .85rem; }
.chat__u { align-self: flex-end; max-width: 80%; background: var(--focus); color: var(--dark); padding: .65rem 1rem; border-radius: 16px 16px 4px 16px; font-size: .95rem; font-weight: 500; }
.chat__a { align-self: flex-start; max-width: 92%; background: #17171b; border: 1px solid #26262b; padding: .85rem 1.05rem; border-radius: 16px 16px 16px 4px; font-size: .95rem; line-height: 1.55; color: #d6d6da; }
.chat__a b { color: #fff; }
.chat__actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .75rem; }
.chat__actions span { font-size: .78rem; padding: .3rem .7rem; border: 1px solid rgba(77, 199, 255, .5); border-radius: 999px; color: var(--focus); }
.chat__actions code { font-size: .95em; }
.chat__a--typing { display: inline-flex; gap: 5px; padding: .85rem 1.05rem; }
.chat__a--typing i { width: 6px; height: 6px; border-radius: 50%; background: #7e7e86; animation: dots 1.2s infinite; }
.chat__a--typing i:nth-child(2) { animation-delay: .15s; }
.chat__a--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 40% { transform: translateY(-4px); background: #fff; } }
.acts { display: grid; gap: .6rem; }
.acts li { display: grid; grid-template-columns: 22px 1fr auto; gap: .7rem; align-items: center; padding: .75rem .9rem; background: #141417; border: 1px solid #222227; border-radius: 12px; font-size: .95rem; }
.acts svg { color: var(--focus); }
.acts code { font-size: .72rem; padding: .15rem .55rem; border-radius: 6px; background: #1f1f24; color: #b8b8bf; }
.resume { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.25rem; padding: 1rem 1.1rem; border: 1px dashed rgba(77, 199, 255, .55); border-radius: 14px; background: rgba(77, 199, 255, .05); }
.resume b { display: block; color: #fff; font-weight: 500; }
.resume span:not(.resume__btn) { font-size: .85rem; color: var(--muted-d); }
.resume__btn { display: inline-flex; align-items: center; gap: .4rem; background: var(--focus); color: var(--dark); padding: .5rem 1rem; border-radius: 999px; font-weight: 600; font-size: .9rem; }

/* use cases */
.uc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--g300); }
.uc:first-of-type { border-top: 0; padding-top: 0; }
.uc--flip .uc__copy { order: 2; }
.uc__n { font: 500 .78rem var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--focus-ink); margin-bottom: 1rem; }
.uc h3 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.1; letter-spacing: -.03em; }
.uc__copy > p:not(.uc__n):not(.uc__links) { margin-top: 1.1rem; color: var(--muted); max-width: 34em; }
.ticks { margin-top: 1.5rem; display: grid; gap: .65rem; }
.ticks li { position: relative; padding-left: 2rem; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .15em; width: 20px; height: 20px; border-radius: 50%; background: var(--dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-6.5' fill='none' stroke='%234dc7ff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ticks--light li { color: #d6d6da; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.5rem; }
.tags li { font: .76rem var(--mono); padding: .3rem .75rem; border: 1px solid var(--g300); border-radius: 999px; background: var(--glass); }
.uc__links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.5rem; }
.uc__links a { display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; font-size: .95rem; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.uc__links a:hover { color: var(--focus-ink); }
.uc__links--light a:hover { color: var(--focus); }

.cover, .llm, .scans { background: var(--dark); color: #ececee; border-radius: 20px; padding: 1.4rem 1.5rem 1.2rem; box-shadow: 0 40px 70px -44px rgba(0, 0, 0, .6); }
.cover__head { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .9rem; border-bottom: 1px solid #1f1f24; font: .68rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #7e7e86; }
.cover__row { display: grid; grid-template-columns: 1.15fr 1fr 7.4em; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid #1a1a1e; font-size: .95rem; }
.cover__bar { height: 10px; border-radius: 99px; background: #222227; overflow: hidden; }
.cover__bar i { display: block; height: 100%; width: var(--w); background: #cfcfd4; border-radius: 99px; }
.cover__bar i.is-flag, .llm__bar i.is-flag { background: var(--focus); }
.cover__row b { font: .68rem var(--mono); color: #84848c; font-weight: 500; text-align: right; min-width: 6.4em; }
.cover__row b.is-flag { color: var(--focus); }
.cover__foot { margin-top: 1rem; font-size: .88rem; color: var(--muted-d); }
.llm__row { display: grid; grid-template-columns: 1fr 70px 9.5em; gap: .9rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid #1a1a1e; }
.llm__row p { font-size: .85rem; line-height: 1.45; color: #d6d6da; }
.llm__row em, .llm__row small { color: #7e7e86; font-size: .95em; }
.llm__bar { height: 8px; border-radius: 99px; background: #222227; overflow: hidden; }
.llm__bar i { display: block; height: 100%; width: var(--w); background: #55555c; border-radius: 99px; }
.llm__row.is-flag .llm__bar i { background: var(--focus); }
.llm__row b { font: .66rem var(--mono); color: #84848c; font-weight: 500; text-align: right; }
.llm__row.is-flag b { color: var(--focus); }
/* medical imaging: a grid of scan tiles with a per-sample loss bar under each */
.scans__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem .8rem; padding-top: 1.1rem; }
.scan { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.scan__img { position: relative; display: block; aspect-ratio: 120 / 131; border-radius: 10px; overflow: hidden; background: #000; }
.scan__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.scan__img em { position: absolute; left: var(--x); top: var(--y); width: var(--s, 30%); aspect-ratio: 1; transform: translate(-50%, -50%); border: 1.5px solid var(--focus); border-radius: 4px; box-shadow: 0 0 0 3px rgba(77, 199, 255, .18); }
.scan.is-flag .scan__img { box-shadow: 0 0 0 1.5px var(--focus); }
.scan__bar { display: block; height: 6px; border-radius: 99px; background: #222227; overflow: hidden; }
.scan__bar i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: #55555c; }
.scan.is-flag .scan__bar i { background: var(--focus); }
.scan b { font: 500 .62rem/1.25 var(--mono); color: #6e6e76; overflow-wrap: anywhere; }
.scan.is-flag b { color: var(--focus); }
.llm__act { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; margin-top: 1rem; font-size: .78rem; }
.llm__act span { padding: .35rem .8rem; border: 1px solid #333339; border-radius: 999px; color: #c9c9ce; white-space: nowrap; }
.llm__act .llm__resume { background: var(--focus); color: var(--dark); border-color: var(--focus); font-weight: 600; }

.shot { border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--g300); box-shadow: 0 40px 80px -44px rgba(0, 0, 0, .45); }
.shot__bar { display: flex; align-items: center; gap: 6px; padding: .6rem .9rem; background: var(--shot-bar); border-bottom: 1px solid var(--g200); font: .7rem var(--mono); color: var(--muted); }
.shot__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--shot-dot); }
.shot__bar span { margin-left: .6rem; }
.shot img { width: 100%; height: auto; }
.shot--dark { background: #0c0c0f; border-color: #26262b; box-shadow: 0 60px 120px -50px rgba(77, 199, 255, .25); }
.shot--dark .shot__bar { background: #121215; border-color: #1f1f24; color: #7e7e86; }
.shot--dark .shot__bar i { background: #2a2a30; }

/* product */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(32px, 4vw, 56px); }
.trio li { padding-top: 1.25rem; border-top: 1px solid var(--line-d); }
.trio h3 { margin: 0 0 .35rem; }
.trio p { color: var(--muted-d); }
.dev { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(64px, 9vw, 120px); }
.dev h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.12; }
.dev__copy > p { margin-top: 1rem; color: var(--muted-d); }
.plug { margin-top: 1.5rem; display: grid; gap: .85rem; }
.plug li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .65rem; align-items: start; color: #d6d6da; line-height: 1.5; }
.plug b { display: grid; place-items: center; width: 32px; height: 22px; margin-top: .1rem; border: 1px solid #3a3a40; border-radius: 999px; font: 500 .7rem var(--mono); color: var(--focus); }
.plug strong { color: #fff; font-weight: 600; }
.plug__copy { display: inline-grid; width: 26px; height: 26px; margin-left: .5rem; vertical-align: middle; background: #17171b; border-color: #2a2a30; color: #c9c9ce; cursor: pointer; }
.plug__copy:hover { border-color: var(--focus); color: #fff; }
.plug code { padding: .1em .4em; background: #17171b; border-radius: 6px; font: .84em var(--mono); color: #e6e6ea; overflow-wrap: anywhere; }
.dev__copy .plug__fit { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: 1.5rem; }
.plug__fit span { margin-right: .35rem; font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .09em; color: #84848c; }
.plug__fit a { padding: .2rem .7rem; border: 1px solid #34343a; border-radius: 999px; font-size: .85rem; color: #e6e6ea; text-decoration: none; transition: border-color .2s, color .2s; }
.plug__fit a:hover { border-color: var(--focus); color: #fff; }
.dev__copy .plug__mig { font-size: .9rem; }
.plug__mig a { color: #fff; text-decoration: none; border-bottom: 1px solid #55555c; }
.plug__mig a:hover { border-color: var(--focus); }

/* built-in agent: bring your own LLM */
.byo { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(40px, 6vw, 72px); padding: clamp(22px, 3.5vw, 40px); border: 1px solid rgba(77, 199, 255, .4); border-radius: 22px; background: radial-gradient(110% 150% at 0% 0%, rgba(77, 199, 255, .09), transparent 55%), var(--ink-2); }
.byo__k { font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--focus); margin-bottom: .8rem; }
.byo h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.12; }
.byo__copy > p:not(.byo__k) { margin-top: .9rem; color: var(--muted-d); max-width: 36em; }
.byo__copy strong { color: #fff; font-weight: 600; }
.byo__copy > p a { color: #fff; text-decoration: none; border-bottom: 1px solid #55555c; }
.byo__copy > p a:hover { border-color: var(--focus); }
.byo__g { margin-top: 1.4rem; font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .09em; color: #84848c; }
.byo__side > .byo__g:first-child { margin-top: 0; }
.byo__chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .7rem; }
.byo__chips a { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .95rem; border: 1px solid #34343a; border-radius: 999px; background: rgba(255, 255, 255, .03); font-size: .93rem; color: #e6e6ea; text-decoration: none; transition: border-color .2s, color .2s, background .2s; }
.byo__chips a:hover, .byo__chips a:focus-visible { border-color: var(--focus); color: #fff; background: rgba(77, 199, 255, .08); }
.byo__chips .is-more a { border-style: dashed; border-color: rgba(77, 199, 255, .6); color: var(--focus); }
.byo__note { margin-top: 1.1rem; font-size: .9rem; line-height: 1.5; color: var(--muted-d); max-width: 32em; }
.code { background: #0e0e11; border: 1px solid var(--line-d); border-radius: 16px; overflow: hidden; }
.code__bar { display: flex; justify-content: space-between; align-items: center; padding: .55rem .6rem .55rem 1.1rem; border-bottom: 1px solid #1d1d21; font: .75rem var(--mono); color: #84848c; }
.code__copy { background: #17171b; border-color: #2a2a30; color: #c9c9ce; width: 30px; height: 30px; }
.code pre { margin: 0; padding: 1.25rem 1.25rem 1rem; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #2a2a30 transparent; font-size: .82rem; line-height: 1.75; color: #d6d6da; }
.code__foot { padding: .8rem 1.25rem 1rem; border-top: 1px solid #1d1d21; font: .82rem var(--mono); color: #d6d6da; }
.c-k { color: var(--focus); } .c-f { color: #fff; font-weight: 500; } .c-s { color: #f0c987; } .c-c { color: #62626a; } .c-p { color: var(--focus); }

/* results: sandbox cards */
.sbx { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.sbx__card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--g200); border-radius: 22px; overflow: hidden; transition: transform .3s, box-shadow .3s; }
.sbx__card:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .35); }
.sbx__viz { position: relative; display: grid; place-items: center; min-height: 210px; padding: 1.5rem 1.25rem; background: var(--dark); color: #ececee; }
.sbx__viz--img { padding: 0; place-items: stretch; background: #0c0c0f; }
.sbx__viz--img img { display: block; width: 100%; height: auto; }   /* shown whole: no sideways crop at any width */
.sbx__body { display: flex; flex: 1; flex-direction: column; padding: 1.4rem 1.5rem 1.5rem; }
.sbx__tag { font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--focus-ink); margin-bottom: .7rem; }
.sbx__body h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -.025em; }
.sbx__subject { margin-top: .6rem; color: var(--muted); font-size: .97rem; line-height: 1.55; }
.sbx__do { margin-top: 1rem; display: grid; gap: .45rem; font-size: .95rem; }
.sbx__do li { position: relative; padding-left: 1.4rem; line-height: 1.5; }
.sbx__do li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--focus-ink); }
.sbx__links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: auto; padding-top: 1.25rem; }
.sbx__links a { display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; font-size: .93rem; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.sbx__links a:hover { color: var(--focus-ink); }
.sbx__soon { display: inline-flex; align-items: center; gap: .5rem; font: 500 .68rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--focus-ink); border: 1px solid currentColor; border-radius: 999px; padding: .3rem .7rem; }
.sbx__soon::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sbx__gate { margin: 1.1rem 0 clamp(40px, 6vw, 72px); font-size: .9rem; color: var(--muted); }

/* LLM preference */
.pref { width: min(100%, 360px); }
.pref__q { font-size: .92rem; line-height: 1.45; color: #d6d6da; padding-bottom: .9rem; border-bottom: 1px solid #26262b; }
.pref__row { display: grid; grid-template-columns: 1.4rem 1fr 4.6rem; gap: .7rem; align-items: center; margin-top: .8rem; font: .75rem var(--mono); color: #b4b4bb; }
.pref__bar { height: 9px; border-radius: 99px; background: #26262b; overflow: hidden; }
.pref__bar i { display: block; height: 100%; width: var(--w); background: #6a6a72; border-radius: 99px; }
.pref__bar i.is-flag { background: var(--focus); }
.pref__row small { font-size: .7rem; color: #84848c; text-align: right; }
.pref__row small.is-flag { color: var(--focus); }
.pref__note { margin-top: 1rem; font-size: .82rem; color: var(--focus); }

/* results: the goal we build toward */
.evid__card { background: var(--card); border: 1px solid var(--g200); border-radius: 22px; padding: clamp(24px, 3vw, 40px); }
.evid__tag { font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--focus-ink); margin-bottom: .9rem; }
.evid h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.15; letter-spacing: -.025em; }
.evid__card p:not(.evid__tag):not(.fine) { margin-top: .8rem; color: var(--muted); max-width: 36em; }
.evid__card--goal { background: var(--dark); border-color: var(--dark); color: #ececee; }
.evid__card--goal h3 { color: #fff; }
.evid__card--goal .evid__tag { color: var(--focus); }
.evid__card--goal p:not(.evid__tag):not(.fine) { color: var(--muted-d); }

/* story / spectrum */

.founders { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.founders__intro h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.1; letter-spacing: -.03em; }
.founders__intro p:not(.eyebrow) { margin-top: 1.1rem; color: var(--muted); max-width: 32em; }
.founders__cards { display: grid; gap: 1rem; }
.person { display: grid; grid-template-columns: 96px 1fr; gap: 1.25rem; padding: 1.25rem; background: var(--card); border: 1px solid var(--g200); border-radius: var(--r); }
.person img { width: 96px; height: 120px; object-fit: cover; border-radius: 12px; filter: grayscale(1) contrast(1.05); transition: filter .4s; }
.person:hover img { filter: none; }
.person h4 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; }
.person__role { font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--focus-ink); margin: .2rem 0 .6rem; }
.person p:last-child { font-size: .97rem; color: var(--muted); line-height: 1.55; }

/* on-prem + licence */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.tiers--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tier { display: flex; flex-direction: column; padding: clamp(22px, 2.6vw, 32px); background: var(--ink-2); border: 1px solid var(--line-d); border-radius: var(--r); }
.tier--ent { border-color: rgba(77, 199, 255, .5); background: linear-gradient(180deg, rgba(77, 199, 255, .07), transparent 60%), var(--ink-2); }
.tier__k { font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--focus); margin-bottom: .8rem; }
.tier h3 { font-size: 1.45rem; }
.tier > p:not(.tier__k) { margin-top: .6rem; color: var(--muted-d); font-size: 1rem; }
.tier ul { margin: 1.25rem 0 1.5rem; display: grid; gap: .5rem; font-size: .95rem; color: #d0d0d5; }
.tier li { position: relative; padding-left: 1.4rem; }
.tier li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 2px; background: var(--focus); }
.link { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; color: #fff; font-weight: 500; text-decoration: none; border-bottom: 1px solid #55555c; align-self: flex-start; padding-bottom: 1px; transition: border-color .2s; }
.link:hover { border-color: var(--focus); }
/* the licence: what every licence includes, and how to get started */
.lic { margin-top: clamp(14px, 2vw, 24px); padding: clamp(24px, 4vw, 48px); border: 1px solid rgba(77, 199, 255, .5); border-radius: 22px; background: radial-gradient(120% 140% at 0% 0%, rgba(77, 199, 255, .1), transparent 55%), var(--ink-2); }
.lic__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.lic h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.12; }
.lic__main > p:not(.tier__k) { margin-top: .9rem; color: var(--muted-d); max-width: 30em; }
.lic__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.lic__incl { padding: clamp(18px, 2.6vw, 28px); background: rgba(255, 255, 255, .03); border: 1px solid var(--line-d); border-radius: 16px; }
.lic__h { font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .09em; color: #84848c; }
.lic__incl .ticks { margin-top: 1.1rem; gap: .8rem; }
.lic__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); margin-top: clamp(28px, 4vw, 44px); padding-top: clamp(20px, 3vw, 32px); border-top: 1px solid var(--line-d); }
.lic__steps li { display: grid; gap: .25rem; align-content: start; }
.lic__steps b { font: 500 .78rem var(--mono); color: var(--focus); }
.lic__steps strong { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.lic__steps span { font-size: .95rem; color: var(--muted-d); }
.partners { margin-top: clamp(56px, 8vw, 96px); padding-top: 2rem; border-top: 1px solid var(--line-d); }
.partners > p { font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .09em; color: #7e7e86; }
.partners ul { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem clamp(4px, 1.5vw, 20px); margin-top: .75rem; }
.partners img { height: 88px; width: auto; opacity: .72; transition: opacity .25s; } /* source PNGs carry generous padding */
.partners a:hover img { opacity: 1; }

/* faq */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.faq__head { position: sticky; top: 100px; }
.faq__head .body a { color: var(--ink); }
.faq__list details { border-bottom: 1px solid var(--g200); }
.faq__list details:first-child { border-top: 1px solid var(--g200); }
.faq__list summary { list-style: none; cursor: pointer; padding: 1.4rem 2.5rem 1.4rem 0; font-size: 1.15rem; font-weight: 500; letter-spacing: -.015em; position: relative; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat; transition: transform .3s; }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list p { padding: 0 2.5rem 1.5rem 0; color: var(--muted); max-width: 40em; }
.faq__list code { font-size: .9em; background: var(--g100); padding: .1em .4em; border-radius: 5px; }

/* cta */
.cta { position: relative; overflow: hidden; background: var(--dark); color: #fff; padding-block: clamp(72px, 10vw, 128px); }
.cta::before { content: ""; position: absolute; top: -30%; right: -8%; width: 64%; height: 160%; background: radial-gradient(closest-side, rgba(77, 199, 255, .17), transparent 72%); pointer-events: none; }
.cta__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.cta h2 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; letter-spacing: -.045em; color: #fff; }
.cta .body { color: var(--muted-d); }
.signup { background: var(--ink-2); border: 1px solid var(--line-d); border-radius: 22px; padding: clamp(22px, 3vw, 34px); }
.signup h3 { color: #fff; }
.signup > p:not(.signup__msg) { margin-top: .4rem; color: var(--muted-d); font-size: .98rem; }
.signup__row { display: flex; gap: .6rem; margin-top: 1.25rem; }
.signup input, .signup select { width: 100%; background: var(--dark); border: 1px solid #333339; color: #fff; padding: .85rem 1rem; border-radius: 12px; transition: border-color .2s; }
.signup input::placeholder { color: #6b6b72; }
.signup input:hover, .signup select:hover { border-color: #55555c; }
.signup input:focus-visible, .signup select:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(77, 199, 255, .25); }
.signup select { margin-top: .6rem; color: #b8b8bf; }
.signup .btn { flex: none; }
.signup__msg { margin-top: .9rem; min-height: 1.4em; font-size: .92rem; color: var(--focus); }
.signup__msg.is-err { color: #ff8f80; }

/* footer */
.footer { background: #060607; color: #a4a4ac; padding-top: clamp(48px, 6vw, 72px); font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 3rem; }
.footer__logo { display: inline-flex; align-items: center; gap: .6rem; }
.footer__logo img { height: 26px; width: auto; }
.footer__mark { filter: invert(1); }
.footer__brand p { margin-top: 1rem; line-height: 1.5; }
.footer__social { display: flex; gap: .9rem; margin-top: 1.25rem; }
.footer__social a { color: #a4a4ac; transition: color .2s; }
.footer__social a:hover { color: #fff; }
.footer h4 { font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .09em; color: #6b6b72; margin-bottom: 1rem; }
.footer nav { display: flex; flex-direction: column; gap: .55rem; }
.footer a { text-decoration: none; transition: color .2s; }
.footer nav a:hover, .footer__legal a:hover { color: #fff; }
.footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding-block: 1.5rem; border-top: 1px solid #1a1a1e; font-size: .85rem; color: #6b6b72; }
.footer__legal > span:last-child { display: flex; gap: 1.5rem; }

/* ---------- consent banner + preferences ---------- */
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: none; transition: color .2s; }
.footer .linklike:hover { color: #fff; }

.consent { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: min(420px, calc(100vw - 32px)); padding: 1.25rem 1.35rem 1.1rem; background: var(--dark); color: #d6d6da; border: 1px solid #2c2c32; border-radius: 18px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(14px); transition: opacity .3s ease, transform .3s ease; }
.consent[hidden] { display: none; }
.consent.is-in { opacity: 1; transform: none; }
.consent__t { font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em; color: #fff; }
.consent__d { margin-top: .5rem; font-size: .9rem; line-height: 1.55; color: #b4b4bb; }
.consent__btns { display: flex; gap: .5rem; margin-top: 1rem; }
.consent__btns .btn { flex: 1; justify-content: center; padding-inline: .5rem; }   /* equal weight: accept and reject */
.consent__more { margin-top: .85rem; font-size: .82rem; color: #84848c; display: flex; gap: .5rem; align-items: center; }
.consent__more .linklike, .consent__more a { color: #b4b4bb; text-decoration: underline; text-underline-offset: 3px; }
.consent__more .linklike:hover, .consent__more a:hover { color: #fff; }

.prefs { width: min(580px, calc(100vw - 24px)); max-height: min(88vh, 760px); padding: 0; border: 1px solid var(--g200); border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .55); overflow: hidden; }
.prefs[open] { display: flex; flex-direction: column; animation: fadeUp .3s ease; }
.prefs::backdrop { background: rgba(10, 10, 11, .55); backdrop-filter: blur(4px); }
.prefs__head { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem 1rem; border-bottom: 1px solid var(--g200); }
.prefs__head h2 { font-size: 1.35rem; letter-spacing: -.02em; }
.prefs__x { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--g200); background: var(--card); border-radius: 50%; color: var(--ink); transition: border-color .2s; }
.prefs__x:hover { border-color: var(--ink); }
.prefs__body { overflow-y: auto; padding: .5rem 1.5rem; }
.prefs__cat { padding: 1.1rem 0; }
.prefs__cat + .prefs__cat { border-top: 1px solid var(--g200); }
.prefs__row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.prefs__row h3 { font-size: 1.05rem; letter-spacing: -.01em; }
.prefs__always { font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: .25rem .6rem; border: 1px solid var(--g300); border-radius: 999px; }
.prefs__cat > p { margin-top: .5rem; font-size: .93rem; line-height: 1.55; color: var(--muted); }
.prefs code { font-size: .88em; background: var(--g100); padding: .1em .4em; border-radius: 5px; }
.prefs__what { margin-top: .75rem; font-size: .9rem; }
.prefs__what summary { cursor: pointer; font-weight: 500; }
.prefs__what dl { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; margin: .75rem 0 0; padding: .9rem 1rem; background: var(--card); border: 1px solid var(--g200); border-radius: 12px; }
.prefs__what dt { font: 500 .78rem var(--mono); color: var(--ink); padding-top: .12rem; }
.prefs__what dd { margin: 0; color: var(--muted); line-height: 1.5; }
.prefs__what > p { margin-top: .6rem; color: var(--muted); }
.prefs__foot { padding: 1rem 1.5rem 1.25rem; border-top: 1px solid var(--g200); background: var(--card); }
.prefs__btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.prefs__links { margin-top: .8rem; font-size: .82rem; color: var(--muted); }
.prefs__links a { text-decoration: underline; text-underline-offset: 3px; }

.switch { position: relative; flex: none; display: inline-block; width: 48px; height: 28px; cursor: pointer; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch__ui { position: absolute; inset: 0; border-radius: 99px; background: var(--g300); transition: background .25s; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .25s, background .25s; }
.switch input:checked + .switch__ui { background: var(--ink); }
.switch input:checked + .switch__ui::after { transform: translateX(20px); background: var(--focus); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--focus); outline-offset: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero__grid, .split, .nines__grid, .lic__top, .byo, .tabs, .uc, .dev, .founders, .faq, .cta__inner { grid-template-columns: minmax(0, 1fr); }
  .uc--flip .uc__copy { order: 0; }
  .faq__head { position: static; }
  .tiers, .trio, .sbx { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .tabs__list { flex-direction: row; overflow-x: auto; gap: .5rem; padding-bottom: .25rem; }
  .tabs__tab { min-width: 260px; }
}
@media (max-width: 1100px) {   /* the header folds into the burger menu */
  .nav__toggle { display: block; }
  .nav__menu { display: none; position: absolute; top: 66px; left: 0; right: 0; flex: none; margin-left: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--g200); padding: .5rem var(--gut) 1.5rem; }
  .nav--open .nav__menu { display: flex; }
  .nav__pages, .nav__tools { flex-direction: column; align-items: stretch; gap: 0; margin-left: 0; }
  .nav__tools { margin-top: 1.1rem; }   /* a gap between the site's pages and the tools */
  :is(.nav__pages, .nav__tools) > a { padding: .85rem 0; border-bottom: 1px solid var(--g200); font-size: 1.05rem; }
  :is(.nav__pages, .nav__tools) > a::after { display: none; }
  .nav__menu .btn { margin-top: 1rem; justify-content: center; border-bottom: 1px solid var(--ink); }
  .nav__cta { display: flex; flex-wrap: wrap; margin-top: 1rem; }
  .nav__cta:hover:not(.is-open) { transform: none; box-shadow: none; }
  .nav__menu .nav__cta .btn { margin-top: 0; }
  .nav__cta-main { flex: 1 1 0; }
  .nav__cta-arrow { padding-left: 1.1rem; padding-right: 1.2rem; }
  .nav__cta-menu { position: static; width: 100%; margin-top: .5rem; box-shadow: none; }   /* in the flow: the scrolling burger menu would clip a pop-over */
  .nav__menu { max-height: calc(100vh - 66px); overflow-y: auto; }
  .nav__item { border-bottom: 1px solid var(--g200); }
  .nav__btn { width: 100%; justify-content: space-between; padding: .85rem 0; font-size: 1.05rem; }
  .nav__btn::after { display: none; }
  .mega { position: static; width: auto; padding: 0; background: none; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; display: none; }
  .mega::before { display: none; }
  .nav__item.is-open .mega { display: block; padding-bottom: 1rem; }
  .mega__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 800px) {
}
@media (max-width: 640px) {
  .frame { white-space: normal; }   /* long framed phrases may wrap instead of overflowing the screen */
  .consent { right: 12px; left: 12px; bottom: 12px; width: auto; }
  .prefs__what dl { grid-template-columns: 1fr; gap: .15rem; }
  .prefs__what dd { margin-bottom: .5rem; }
  .prefs__btns .btn { flex: 1 1 100%; justify-content: center; }
  .proof { grid-template-columns: 1fr 1fr; }
  .proof li + li { border-left: 0; }
  .proof li:nth-child(even) { border-left: 1px solid var(--g200); }
  .proof li:nth-child(n+3) { border-top: 1px solid var(--g200); }
  .run__body { grid-template-columns: minmax(0, 1fr); }
  .stakes__grid { grid-template-columns: minmax(0, 1fr); }
  .isles, .posts { grid-template-columns: minmax(0, 1fr); max-width: 30rem; }
  .isle:nth-child(2) { margin-top: 0; }
  .nine { grid-template-columns: 4.6rem minmax(0, 1fr); column-gap: .85rem; }
  .lic__steps { grid-template-columns: minmax(0, 1fr); }
  .lic__cta .btn { flex: 1 1 100%; justify-content: center; }
  .cover__row { grid-template-columns: 1fr auto; }
  .cover__bar { grid-column: 1 / -1; order: 3; }
  .llm__row { grid-template-columns: 1fr 56px; }
  .llm__row b { grid-column: 1 / -1; text-align: left; }
  .person { grid-template-columns: 76px 1fr; }
  .person img { width: 76px; height: 96px; }
  .signup__row { flex-direction: column; }
  .signup__row .btn { justify-content: center; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .hero__for-label { width: 100%; }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .nines.reveal:not(.in) .nine__bar i { width: var(--w); min-width: 6px; }
}

/* no-JS: show the run illustration in its final state */
html:not(.js) .run .curve--base, html:not(.js) .run .curve--fix, html:not(.js) .run .curve--prev { stroke-dashoffset: 0; }
html:not(.js) .run .curve--prev { opacity: .26; }
html:not(.js) .run .curve--ghost { opacity: .35; }
html:not(.js) .run .run__runs li { opacity: 1; }
html:not(.js) .run .curve--fix-area, html:not(.js) .run .run__ckpt { opacity: 1; }

/* legal pages (privacy-policy/, cookies-policy/) */
.legal-top { border-bottom: 1px solid var(--g200); background: var(--paper); }
.legal-top__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 16px; }
.legal-top__back { font-size: .92rem; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.legal { max-width: 46rem; margin-inline: auto; padding-block: clamp(40px, 6vw, 80px); }
.legal h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.08; letter-spacing: -.03em; }
.legal__meta { margin-top: .75rem; font: .75rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.legal h2 { margin-top: 2.5rem; font-size: 1.3rem; line-height: 1.25; letter-spacing: -.02em; }
.legal p, .legal li { color: var(--ink-soft); line-height: 1.65; }
.legal p { margin-top: .9rem; }
.legal ul { margin-top: .75rem; padding-left: 1.2rem; list-style: disc; display: grid; gap: .5rem; }
.legal a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
.legal code { padding: .1em .4em; background: var(--g100); border-radius: 6px; font: .88em var(--mono); overflow-wrap: anywhere; }
.legal__scroll { margin-top: 1rem; overflow-x: auto; }
.legal__table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .92rem; }
.legal__table th, .legal__table td { padding: .75rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--g200); color: var(--ink-soft); }
.legal__table th { font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.footer--slim { padding-top: 0; }

/* production failures: from a failed sample back to the training data */
.pf .body + .body { margin-top: .9rem; }
.pf { align-items: start; }
.pf__copy .body:first-child { margin-top: 0; }
@media (min-width: 901px) { .pf { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.pf__copy .uc__links { margin-top: 1.6rem; }
.trace { background: var(--dark); color: #ececee; border: 1px solid #1d1d21; border-radius: 20px; padding: clamp(22px, 3vw, 32px); box-shadow: 0 40px 70px -44px rgba(0, 0, 0, .6); }
.trace li { position: relative; padding: 0 0 1.6rem 2.3rem; }
.trace li:last-child { padding-bottom: 0; }
.trace li::before { content: ""; position: absolute; left: 0; top: .15rem; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #55555c; background: var(--dark); }
.trace li::after { content: ""; position: absolute; left: 5px; top: 1.35rem; bottom: .15rem; width: 2px; background: #2a2a30; }
.trace li:last-child::after { display: none; }
.trace__wl::before { border-color: var(--focus); background: var(--focus); box-shadow: 0 0 0 4px rgba(77, 199, 255, .22); }
.trace__k { font: 500 .68rem var(--mono); text-transform: uppercase; letter-spacing: .09em; color: #84848c; }
.trace__wl .trace__k { color: var(--focus); }
.trace p.trace__t { margin-top: .35rem; font-size: 1.12rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; color: #fff; }
.trace p.trace__d { margin-top: .35rem; font-size: .93rem; line-height: 1.5; color: #a8a8b0; }
.trace__chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .85rem; }
.trace__chips span { padding: .28rem .7rem; border: 1px solid #2c2c32; border-radius: 999px; background: #17171b; font: .72rem var(--mono); color: #c9c9ce; }
.trace__chips .is-cy { color: var(--focus); border-color: rgba(77, 199, 255, .45); background: rgba(77, 199, 255, .06); }
.trace__chips .trace__go { background: var(--focus); border-color: var(--focus); color: var(--dark); font-weight: 600; }
.prob--2 .pf { margin-top: clamp(56px, 8vw, 96px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-d); }
.pf__title { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.2; }
.pf__copy .eyebrow { margin-bottom: 1rem; }
.section--dark .trace { background: var(--ink-2); border-color: var(--line-d); box-shadow: none; }
.trace__board { position: relative; margin-top: .85rem; padding: 6px; background: #0b0b0d; border: 1px solid #26262b; border-radius: 12px; }
.trace__tag { position: absolute; top: 9px; left: 11px; font: 500 .62rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #6b6b72; }
.trace__map { display: block; width: 100%; height: auto; }
.trace__map .t1 { fill: #6c6c74; }
.trace__map .t2 { fill: #85858d; }
.trace__map .t3 { fill: #55555c; }
.trace__map .nf { fill: #b4b4bb; }
.trace__map .f { fill: var(--focus); }
.trace__map .ring { fill: rgba(77, 199, 255, .07); stroke: var(--focus); stroke-width: 1.2; stroke-dasharray: 3 3; }
.trace__map text { font: 500 9.5px var(--mono); }
.trace__map text.f { fill: var(--focus); }
.trace__map text.nf { fill: #a8a8b0; }

/* production example: cost strip, two-case tabs with auto-advance */
.stat__src a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.stat__src a:hover { color: #fff; }
.stakes__more { margin-top: 1.75rem; }
.trace__cost { display: grid; gap: .65rem; margin-top: .9rem; padding: .9rem 1rem; border: 1px solid #2c2c32; border-radius: 12px; background: #0e0e11; }
.trace p.trace__fig { display: grid; grid-template-columns: 4.7rem minmax(0, 1fr); align-items: baseline; gap: .7rem; margin: 0; }
.trace__fig b { font-size: 1.45rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; color: #fff; }
.trace__fig span { font-size: .85rem; line-height: 1.4; color: #a8a8b0; }
.trace p.trace__src { margin: 0; font-size: .75rem; color: #7e7e86; }
.trace__src a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.trace__src a:hover { color: #fff; }
.ctabs { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .85rem; }
.ctab { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: .5rem; padding: .42rem .85rem .5rem .5rem; border: 1px solid #2c2c32; border-radius: 999px; background: #131316; color: #b8b8bf; font-size: .82rem; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.ctab b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #1f1f24; font: 600 .65rem var(--mono); }
.ctab:hover { border-color: #55555c; color: #fff; }
.ctab[aria-selected="true"] { background: #f6f6f2; border-color: #f6f6f2; color: var(--dark); }
.ctab[aria-selected="true"] b { background: var(--focus); color: var(--dark); }
.ctab__prog { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--focus); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.trace.is-auto .ctab[aria-selected="true"] .ctab__prog { animation: tabProg var(--auto, 6.5s) linear forwards; }
.trace.is-auto.is-paused .ctab[aria-selected="true"] .ctab__prog { animation-play-state: paused; }
.cpanels { display: grid; }
.cpanel { grid-area: 1 / 1; min-width: 0; }
.cpanel:not([hidden]) { animation: fadeUp .45s ease; }
.cpanel[hidden] { display: block; visibility: hidden; pointer-events: none; }
.trace[data-case="a"] .case-b, .trace[data-case="b"] .case-a { display: none; }

/* ---------- inner pages: product, use cases, sandbox, resources, about ---------- */
/* The first section of an inner page holds the page's h1, sized like the h2s of the sections below it. */
.section h1 { font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.07; letter-spacing: -0.03em; }
.section--dark h1 { color: #fff; }
.founders__intro h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.1; }

/* header: the page you are on keeps its underline; Docs leaves the site */
:is(.nav__pages, .nav__tools) > a:not(.btn):not(.nav__gh)[aria-current="page"]::after, .nav__btn[aria-current="page"]::after { transform: scaleX(1); }
.nav__docs, .nav__lbl { display: inline-flex; align-items: center; gap: .3rem; }   /* "Docs ↗" and "GitHub ↗" */
.nav__docs svg, .nav__lbl svg { opacity: .55; }

/* dark blocks that follow each other (product, on-prem, call to action) are told apart by a thin rule */
.section--dark + .section--dark, .section--dark + .cta { border-top: 1px solid var(--line-d); }
.section--slim { padding-block: clamp(36px, 5vw, 56px); }
.partners--solo { margin-top: 0; padding-top: 0; border-top: 0; }

/* link cards: a row of destinations (home "where to look next", resources) */
.linkcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.linkcard { display: flex; flex-direction: column; gap: .55rem; height: 100%; padding: clamp(20px, 2.4vw, 28px); background: var(--card); border: 1px solid var(--g200); border-radius: var(--r); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.linkcard:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 16px 32px -20px rgba(0, 0, 0, .4); }
.linkcard__k { font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--focus-ink); }
.linkcard h3 { font-size: 1.25rem; }
.linkcard p { color: var(--muted); font-size: .97rem; line-height: 1.55; }
.linkcard__go { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: .9rem; font-weight: 500; font-size: .95rem; }
.linkcard__go svg { transition: transform .2s; }
.linkcard:hover .linkcard__go svg { transform: translateX(3px); }
@media (max-width: 1000px) { .linkcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .linkcards { grid-template-columns: minmax(0, 1fr); } }

/* resources: press sits under the case studies in the same tile style; a video tile has a play panel, an empty tile is a placeholder */
.resgroup { margin-top: clamp(36px, 4.5vw, 56px); }
.resgroup .eyebrow { margin-bottom: 1.25rem; }
.post__stage { display: block; aspect-ratio: 240 / 140; border-radius: 9px; }
/* a video tile: the video's own thumbnail (assets/img/press/) with a play button on top */
.post__play { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(10, 10, 11, .85); color: var(--focus); box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .5); transition: transform .2s; }
.post__art--play .post__play { position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; }   /* in the corner: the thumbnail's own title stays readable */
.post__play svg { margin-left: 3px; }
.post:hover .post__play { transform: scale(1.08); }
.post--empty { background: transparent; border-style: dashed; box-shadow: none; }
.post--empty:hover { transform: none; border-color: var(--g200); box-shadow: none; }
.post--empty .post__art { background: none; border-color: var(--g300); border-style: dashed; }

/* header: the dark mode button (an icon on the bar, a labelled row in the burger menu) */
.theme { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; border: 1px solid var(--g200); border-radius: 50%; background: transparent; color: var(--ink-soft); transition: border-color .2s, color .2s; }
.theme:hover { border-color: var(--ink); color: var(--ink); }
.theme .i-sun, [data-theme="dark"] .theme .i-moon { display: none; }
[data-theme="dark"] .theme .i-sun { display: block; }
.theme__txt { display: none; }
@media (max-width: 1100px) {
  .theme { display: flex; justify-content: flex-start; gap: .65rem; width: 100%; height: auto; padding: .85rem 0; border: 0; border-bottom: 1px solid var(--g200); border-radius: 0; font-size: 1.05rem; }
  .theme:hover { border-color: var(--g200); }
  .theme__txt { display: inline; }
}

/* ---------- dark mode ----------
   The header button sets data-theme="dark" on <html> and saves it as gb_theme; the head of every page applies it
   before the first paint. The light surfaces take dark values here; blocks that are dark in both modes use
   --dark and keep their colours. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f2f2ee;
  --paper: #101013;
  --tint: #16161a;
  --g100: #1d1d22;
  --g200: #2a2a30;
  --g300: #3c3c44;
  --muted: #a6a6ae;
  --focus-ink: #4dc7ff;
  --card: #18181d;
  --ink-soft: #d2d2d7;
  --glass: rgba(255, 255, 255, .05);
  --nav-bg: rgba(16, 16, 19, .82);
  --usebar-bg: rgba(16, 16, 19, .9);
  --btn-hover: #d8d8d3;
  --btn-split: #b4b4af;
  --shot-bar: #1b1b20;
  --shot-dot: #34343a;
}
[data-theme="dark"] .nav__word { filter: none; }        /* the wordmark file is white */
[data-theme="dark"] .ticks li::before { box-shadow: 0 0 0 1px var(--g300); }

/* header items never wrap; a little tighter between 1100 and 1240px, where the two groups get close */
:is(.nav__pages, .nav__tools) > a, .nav__btn, .nav__cta .btn, .nav__gh { white-space: nowrap; }
@media (min-width: 1101px) and (max-width: 1240px) { .nav__pages { gap: 1.35rem; } .nav__tools { gap: .85rem; } }

/* header: the wordmark and the join button share the links' baseline. The wordmark file has its baseline at 27/35 of its
   height, which sits about 4.7px below the links' baseline when the box is simply centred; the button text is set at the
   links' size (it was .9rem against .93rem, 0.7px off). On the phone header (logo and burger only) the logo stays centred. */
.nav__cta .btn { font-size: .93rem; }
.legal-top .nav__word { position: relative; top: -5.6px; }   /* that header is 1.3px taller */
@media (min-width: 1101px) { .nav__brand .nav__word { position: relative; top: -4.7px; } }

/* header: hovering (or focusing) the GitHub button underlines its label, the way the other links are, whether the pointer is on the text or the stars */
.nav__lbl { position: relative; }
.nav__lbl::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav__gh:hover .nav__lbl::after, .nav__gh:focus-visible .nav__lbl::after { transform: scaleX(1); }
@media (max-width: 1100px) { .nav__lbl::after { display: none; } }

/* a press tile ends with who published it and when */
.post__foot { margin-top: auto; padding: 1.25rem .5rem 0; }
.post__meta { display: flex; justify-content: space-between; gap: 1rem; padding-top: .8rem; border-top: 1px solid var(--g200); font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
