/* ==========================================================================
   Nova Stack — landing
   Palette + rhythm tuned to a dark, mono-labelled "infra" aesthetic.
   ========================================================================== */

:root {
  --bg:            #070707;
  --bg-raised:     #0d0d0d;
  --line:          rgba(255, 255, 255, 0.11);
  --line-strong:   rgba(255, 255, 255, 0.20);
  --text:          #f2f2f0;
  --text-muted:    rgba(242, 242, 240, 0.62);
  --text-faint:    rgba(242, 242, 240, 0.42);
  --accent-green:  #55d67a;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: "Instrument Serif", Georgia, serif;

  --shell: 1400px;
  --gutter: 24px;
  --header-h: 64px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Shared mono label treatment ---------------------------------------------- */
.eyebrow,
.nav-seg,
.nav-link,
.btn,
.cell-tag,
.backers-label,
.cmd code,
.install {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* ── Announcement bar ────────────────────────────────────────────────────── */
.announce {
  position: relative;
  z-index: 30;
  background: #050505;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 34px;
  padding: 6px var(--gutter);
  flex-wrap: wrap;
}

.announce-link {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: var(--text);
  transition: color 0.18s ease;
}
.announce-link:hover { color: #fff; }
.announce-link .arrow { color: var(--text-faint); }

.cmd {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 3px 8px 3px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.cmd:hover {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.cmd code {
  font-size: 11.5px;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.cmd-copy { display: flex; }
.cmd-copy svg { width: 13px; height: 13px; }

.cmd-toast {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  padding: 0 6px;
  height: 18px;
  background: var(--text);
  color: #050505;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.cmd.is-copied .cmd-toast { opacity: 1; }

/* ── Hero shell ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 640px;
  height: calc(100svh - 34px);
  max-height: 900px;
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 45%;
}

/* Three stacked scrims: left ramp for copy legibility, top + bottom fades. */
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4,4,4,0.94) 0%, rgba(4,4,4,0.78) 28%, rgba(4,4,4,0.28) 58%, rgba(4,4,4,0.10) 100%),
    linear-gradient(180deg, rgba(4,4,4,0.85) 0%, rgba(4,4,4,0.10) 22%, rgba(4,4,4,0.00) 45%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7,7,7,0.55) 14%, rgba(7,7,7,0.00) 38%);
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: relative;
  z-index: 20;
  flex: none;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  margin-right: 12px;
}
.brand-logo {
  width: auto;
  height: 30px;
}
.site-footer .brand-logo { height: 34px; }

/* Segmented primary nav */
.nav-primary {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  height: 30px;
}
.nav-seg {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 0 13px;
  white-space: nowrap;
  color: var(--text-muted);
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-seg:last-child { border-right: 0; }
.nav-seg b { font-weight: 400; color: var(--text-faint); }
.nav-seg:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.nav-seg.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.nav-secondary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  height: 30px;
  white-space: nowrap;
  color: var(--text-muted);
  transition: color 0.18s ease;
}
.nav-link:hover { color: var(--text); }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 15px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 9.5px;
  color: var(--text-faint);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 30px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn .chev { font-size: 13px; line-height: 1; opacity: 0.8; }

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: var(--line-strong);
}

.btn-solid {
  background: var(--text);
  border-color: var(--text);
  color: #060606;
}
.btn-solid:hover { background: #fff; border-color: #fff; }

.btn-lg { height: 38px; padding: 0 17px; font-size: 11.5px; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
  width: 34px;
  height: 30px;
  padding: 0 7px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
}
.burger span { display: block; height: 1px; background: var(--text); }

/* ── Hero content ────────────────────────────────────────────────────────── */
.hero-inner {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 44px;
}

.hero-copy {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--text-muted);
}

.hero-title {
  margin: 0 0 22px;
  font-size: clamp(36px, 3.3vw, 47px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.hero-lede {
  margin: 0 0 30px;
  max-width: 470px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(242, 242, 240, 0.78);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.install {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(242, 242, 240, 0.85);
}
.install .dollar { color: var(--accent-green); margin-right: 6px; }

.hero-backers {
  flex: 0 1 auto;
  min-width: 0;
  padding-bottom: 6px;
}
.backers-label {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(242, 242, 240, 0.80);
}
.backers-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 0;
  font-size: 14.5px;
  color: rgba(242, 242, 240, 0.88);
}
.backers-list i { font-style: normal; color: var(--text-faint); }
.backers-list span { transition: color 0.18s ease; }

/* ── Logo wall ───────────────────────────────────────────────────────────── */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.012);
}

.logo-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  padding: 26px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: rgba(242, 242, 240, 0.72);
  transition: background 0.2s ease, color 0.2s ease;
}
.logo-cell:nth-child(5n) { border-right: 0; }
.logo-cell:nth-last-child(-n + 5) { border-bottom: 0; }
a.logo-cell:hover { background: rgba(255, 255, 255, 0.045); color: var(--text); }

.cell-tag {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 21px;
  padding: 0 8px;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 9.5px;
}
.cell-tag em { font-style: normal; color: var(--text-faint); }
a.logo-cell:hover .cell-tag { color: var(--text); }

.logo { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; }

/* Real brand marks: white-filtered for the dark ground, dimmed until hover. */
.logo-img {
  height: 26px;
  width: auto;
  max-width: 78%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.72;
  transition: opacity 0.2s ease;
}
/* Inline brand glyphs: fill follows currentColor, so no image filter needed. */
.logo-svg {
  height: 28px;
  width: auto;
  flex: none;
  color: rgba(242, 242, 240, 0.85);
}
.logo-cell:hover .logo-svg { color: #fff; }
/* Thin script wordmark — needs more height to hold its own beside the rest. */
.logo-img.wide { height: 36px; max-width: 88%; }
/* Logos drawn on padded canvases need extra height for the artwork to read. */
.logo-img.tall { height: 58px; max-width: none; }
.logo-cell:hover .logo-img { opacity: 1; }
.logo-pair {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  color: rgba(242, 242, 240, 0.72);
}
.logo-pair .track { letter-spacing: 0.16em; font-size: 17px; }
.logo-pair .stacked { font-size: 15px; line-height: 1.15; letter-spacing: 0.01em; text-align: left; }
.logo-pair .logo-img.glyph { height: 26px; max-width: none; flex: none; }
a.logo-cell:hover .logo-pair { color: var(--text); }
.logo-wordmark { font-weight: 500; letter-spacing: -0.01em; }
.logo-wordmark i { font-style: normal; font-size: 14px; opacity: 0.75; }
.logo-strong { font-weight: 600; letter-spacing: 0.02em; font-size: 21px; }
.logo-thin { font-weight: 400; font-size: 19px; letter-spacing: -0.005em; }
.logo-track { font-weight: 400; letter-spacing: 0.16em; font-size: 17px; }
.logo-serif { font-family: var(--serif); font-size: 25px; letter-spacing: 0.01em; }
.logo-stack em {
  font-style: normal;
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-align: left;
}
.glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 3px;
  background: var(--text);
  color: #060606;
  font-size: 12px;
  font-weight: 600;
}

/* ══ Definition + module grid ════════════════════════════════════════════ */
.define { padding: 44px 24px 34px; border-bottom: 1px solid var(--line); }
.define-h {
  margin: 0 0 20px;
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 400;
  letter-spacing: -0.015em;
}
.define-lede {
  margin: 0 0 18px;
  max-width: 860px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: rgba(242, 242, 240, 0.68);
}
.define-lede strong { font-weight: 400; color: var(--text); }
.define-sub {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(242, 242, 240, 0.42);
}

/* Slim index: one line per module, two columns. Only the in-house pair
   carries a sentence — the rest are industry-standard categories. */
.modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.module {
  display: grid;
  grid-template-columns: 40px auto minmax(0, 1fr);
  column-gap: 14px;
  align-items: baseline;
  min-width: 0;
  padding: 15px 24px;
  border-bottom: 1px solid var(--line);
  transition: background 0.18s ease;
}
.module:hover { background: rgba(255, 255, 255, 0.025); }
.module:nth-child(odd) { border-right: 1px solid var(--line); }
.module:nth-last-child(-n + 2) { border-bottom: 0; }
.m-num {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(242, 242, 240, 0.3);
}
.module.is-own .m-num { color: #6ee7a8; }
.module-h {
  margin: 0;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
/* Separate element, not a nested span — so the acronym and its expansion
   stay distinct when a crawler or answer engine flattens the page to text. */
.module-full {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-align: right;
  color: rgba(242, 242, 240, 0.42);
}
.module-p {
  grid-column: 2 / -1;
  margin: 7px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(110, 231, 168, 0.75);
}

/* ══ Lab ═════════════════════════════════════════════════════════════════ */
.lab { margin-top: 84px; }

.panel {
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}

/* Matrix banner ----------------------------------------------------------- */
.panel-hero {
  position: relative;
  min-height: 330px;
  padding: 26px 24px 30px;
}
.matrix {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.panel-head { position: relative; }

.panel-title {
  margin: 0 0 22px;
  max-width: 800px;
  font-size: clamp(21px, 2.1vw, 29px);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: rgba(242, 242, 240, 0.55);
}
.panel-title em { font-style: normal; color: var(--text); }

.panel-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Four-up feature grid ---------------------------------------------------- */
.lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

/* min-width:0 throughout — grid/flex items default to min-content width and
   would otherwise refuse to shrink below the figures they contain. */
.lab-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 24px 26px;
  border-top: 1px solid var(--line);
}
.fig,
.fig-art,
.lab-copy > * { min-width: 0; }
.lab-block:nth-child(odd) { border-right: 1px solid var(--line); }

/* Figure frame ------------------------------------------------------------ */
.fig {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 -24px;
  padding: 34px 24px 26px;
  min-height: 400px;
}
.fig figcaption {
  position: absolute;
  top: 14px;
  left: 24px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(242, 242, 240, 0.30);
}
.fig-art { width: 100%; max-width: 480px; }

/* FIG.1 — CLI loop diagram */
.diagram .halo circle { fill: none; stroke: rgba(255, 255, 255, 0.07); }
.diagram .rail { fill: none; stroke: rgba(255, 255, 255, 0.30); stroke-width: 1; }
.diagram .tick { stroke: rgba(255, 255, 255, 0.30); stroke-width: 1; }
.diagram .node { fill: #0a0a0a; stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.2; }
.diagram .d-name {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  fill: var(--text);
}
.diagram .d-cmd {
  font-family: var(--mono);
  font-size: 11px;
  fill: rgba(110, 231, 168, 0.72);
}

/* FIG.2 — eval table + environment cards */
.evals { position: relative; max-width: 520px; }

.score-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(242, 242, 240, 0.42);
}
.score-table th {
  padding: 0 0 10px;
  font-weight: 400;
  text-align: left;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 9.5px;
  color: rgba(242, 242, 240, 0.28);
}
.score-table td { padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); }
/* Wide ID column parks the completion text clear of the floating cards. */
.score-table .col-id { width: 56%; }
.score-table .col-score { width: 56px; text-align: right; }
.score-table .sort { opacity: 0.5; }
.s-hi  { color: #6ee7a8; }
.s-mid { color: #e5b567; }
.s-lo  { color: #ef6a6a; }

/* The card stack floats over the table, starting just past the ID column. */
.env-stack {
  position: absolute;
  top: 4px;
  left: 42px;
  width: 52%;
  min-width: 210px;
}
.env-card {
  padding: 11px 12px 12px;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: #0b0b0b;
}
.env-card:last-child { border-bottom: 1px solid var(--line); }
.env-card.is-lead {
  background: #101010;
  border-color: rgba(255, 255, 255, 0.18);
}
.env-name {
  margin: 0 0 7px;
  font-size: 12.5px;
  color: rgba(242, 242, 240, 0.55);
}
.env-name span { color: rgba(242, 242, 240, 0.45); }
.env-name b { font-weight: 600; color: var(--text); }
.env-card:not(.is-lead) .env-name { color: rgba(242, 242, 240, 0.45); }
.env-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(242, 242, 240, 0.28);
}
.env-run {
  display: block;
  width: 100%;
  margin-top: 11px;
  padding: 6px 0;
  border: 0;
  border-radius: 2px;
  background: var(--text);
  color: #060606;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease;
}
.env-run:hover { background: #fff; }

/* FIG.3 — reward curve + run params */
.train {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  max-width: 560px;
}
.train-chart { display: flex; flex-direction: column; gap: 16px; }
.train .chart { width: 100%; overflow: visible; }
.chart .axis text {
  font-family: var(--mono);
  font-size: 9px;
  fill: rgba(242, 242, 240, 0.32);
}
.chart .grid line { stroke: rgba(255, 255, 255, 0.07); }
.chart .reward-line {
  fill: none;
  stroke: var(--text);
  stroke-width: 1;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.chart-label {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}
.chart-label b { margin-left: 10px; font-weight: 500; color: #6ee7a8; }

.params {
  margin: 0;
  max-width: 230px;
  font-family: var(--mono);
  font-size: 11px;
}
.params > div {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 0;
}
.params dt {
  color: rgba(242, 242, 240, 0.38);
  white-space: nowrap;
}
.params dd {
  margin: 0;
  color: var(--text);
  white-space: nowrap;
}
/* Dotted leader between the key and its value. */
.params > div::after {
  content: "";
  order: 1;
  flex: 1;
  height: 1px;
  margin-bottom: 3px;
  background-image: linear-gradient(90deg, rgba(255,255,255,0.22) 0 1px, transparent 1px 4px);
  background-size: 4px 1px;
}
.params dd { order: 2; }

/* FIG.4 — deployment mesh */
.deploy { max-width: 520px; }
.deploy-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: rgba(242, 242, 240, 0.22);
}
.deploy-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.deploy-tab:first-child,
.deploy-tab:last-child { flex: 0 1 26%; }
.deploy-tab.is-active { flex: 1 1 auto; color: rgba(242, 242, 240, 0.72); }
.deploy-tab i { font-style: normal; }
.deploy-tab .live {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6ee7a8;
  flex: none;
}
.globe { width: 100%; }
.globe .mesh path { fill: none; stroke: rgba(255, 255, 255, 0.10); }
.globe .links path { fill: none; stroke: rgba(255, 255, 255, 0.45); }
.globe .pins rect { fill: var(--text); }

/* Copy under each figure -------------------------------------------------- */
.lab-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  padding-top: 4px;
}
.lab-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: 400;
}
.lab-num {
  font-family: var(--mono);
  font-size: 15px;
  color: rgba(242, 242, 240, 0.42);
}
.lab-lede p {
  margin: 0;
  max-width: 320px;
  font-size: 17px;
  line-height: 1.45;
  color: rgba(242, 242, 240, 0.62);
}
.lab-list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.lab-list li {
  display: flex;
  gap: 14px;
  padding: 5px 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(242, 242, 240, 0.82);
}
.lab-list span {
  flex: none;
  width: 22px;
  font-family: var(--mono);
  font-size: 11px;
  padding-top: 2px;
  color: rgba(242, 242, 240, 0.32);
}
.lab-cta { margin-top: 30px; }

/* ══ Quotes ══════════════════════════════════════════════════════════════ */
.quotes {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 40px;
  margin-bottom: 80px;
}
.quote {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 34px;
  margin: 0;
  padding: 30px 32px 28px;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.quote-text {
  position: relative;
  margin: 0;
  max-width: 640px;
  font-size: clamp(19px, 1.7vw, 25px);
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--text);
}
.quote-by {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 242, 240, 0.45);
}
.quote-by b { font-weight: 500; color: rgba(242, 242, 240, 0.8); }

.quote-accent {
  background: #d3ee4a;
  border-color: #d3ee4a;
  color: #0b0f02;
}
.quote-accent .quote-text { color: #0b0f02; }
.quote-accent .quote-by { color: rgba(11, 15, 2, 0.55); }
.quote-accent .quote-by b { color: rgba(11, 15, 2, 0.85); }
.quote-deco {
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: 300px;
  opacity: 0.35;
}
.quote-deco path { fill: none; stroke: #0b0f02; stroke-width: 1; }

.quote-by .avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(11, 15, 2, 0.85);
  color: #d3ee4a;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}
.quote-logo {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text);
}
.quote-by .who {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}
.quote-by .who b { font-weight: 400; }
.quote-by .who i { font-style: normal; opacity: 0.62; }
.quote-by .chev {
  margin-left: auto;
  font-size: 17px;
  opacity: 0.5;
}
.quote-accent .quote-by .who i { color: rgba(11, 15, 2, 0.6); }

/* ══ Environment Hub ═════════════════════════════════════════════════════ */
.hub { margin-top: 40px; }

.hub-main {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
}

.hub-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: 60px 42px 60px 24px;
  /* Faint pin-board texture, same language as the Lab matrix. */
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
}
.hub-title {
  margin: 0 0 18px;
  font-size: clamp(20px, 1.8vw, 25px);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.hub-lede {
  margin: 0 0 32px;
  max-width: 460px;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.5;
  color: rgba(242, 242, 240, 0.62);
}

/* Product UI mock — deliberately bleeds off the right edge of the panel. */
.hub-app {
  min-width: 0;
  border-left: 1px solid var(--line);
  overflow: hidden;
}
.hub-tabs {
  display: flex;
  gap: 26px;
  padding: 18px 24px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: rgba(242, 242, 240, 0.45);
}
.hub-tab { padding-bottom: 10px; border-bottom: 1px solid transparent; }
.hub-tab.is-active { color: var(--text); border-bottom-color: var(--text); }

.hub-body { padding: 22px 0 26px 24px; }
.hub-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13.5px;
  color: var(--text);
}
.hub-head b { font-weight: 400; }
.hub-head a { font-size: 12px; color: rgba(242, 242, 240, 0.55); }
.hub-head a:hover { color: var(--text); }

.hub-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 122%;
  margin-bottom: 26px;
}
.env {
  padding: 12px 14px 11px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.018);
}
.env p { margin: 0; }
.env-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px !important;
  font-size: 11px;
  color: rgba(242, 242, 240, 0.45);
}
.env-top b { font-weight: 400; }
.env h4 {
  margin: 0 0 5px;
  font-size: 13.5px;
  font-weight: 400;
}
.env-desc {
  margin-bottom: 12px !important;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(242, 242, 240, 0.50);
}
.env-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px !important; }
.env-tags span {
  padding: 2px 6px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 10.5px;
  color: rgba(242, 242, 240, 0.55);
}
.env-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10.5px;
  color: rgba(242, 242, 240, 0.38);
}
.env-foot b { font-weight: 400; }

/* Three resource cells across the bottom of the panel -------------------- */
.hub-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.hub-link {
  min-width: 0;
  padding: 22px 24px 28px;
  border-right: 1px solid var(--line);
}
.hub-link:last-child { border-right: 0; }
.hub-link-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 16px;
  color: var(--text);
}
.hub-link-title .chev { opacity: 0.55; }
.hub-link-desc {
  margin: 22px 0 0;
  max-width: 420px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(242, 242, 240, 0.62);
}

.code-card {
  position: relative;
  display: flex;
  min-height: 244px;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.022);
  overflow: hidden;
}
.code-copy {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(242, 242, 240, 0.35);
  cursor: pointer;
}
.code-copy svg { width: 14px; height: 14px; }
.code-copy:hover { color: var(--text); }

.code {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.55;
  color: rgba(242, 242, 240, 0.62);
  white-space: pre;
}
.code-mid { margin: auto 0 auto 34%; }
.c-kw  { color: #6ee7a8; }
.c-ok  { color: #6ee7a8; }
.c-fn  { color: var(--text); font-weight: 500; }
.c-arg { color: rgba(242, 242, 240, 0.55); }

/* Gutter line numbers, generated rather than typed into the markup. */
.numbered code { counter-reset: ln; }
.numbered i { display: block; font-style: normal; }
.numbered i::before {
  counter-increment: ln;
  content: counter(ln);
  display: inline-block;
  width: 26px;
  margin-right: 10px;
  text-align: right;
  color: rgba(242, 242, 240, 0.28);
}

.sandboxes {
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 22px 12px;
}
.sbx {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 14px 12px 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--mono);
  opacity: 0.34;
}
.sbx.is-active {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  opacity: 1;
}
.sbx p { margin: 0; }
.sbx-dot {
  position: absolute;
  top: 14px;
  right: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}
.sbx-dot.is-live { background: #6ee7a8; }
.sbx-name {
  margin-bottom: 8px !important;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text);
}
.sbx-img {
  font-size: 9px;
  letter-spacing: 0.06em;
  color: rgba(242, 242, 240, 0.5);
}
.sbx-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

/* ══ Shared section scaffolding (Inference / Compute / Research) ═════════ */
.band { margin-top: 40px; }

.plain-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px 24px 30px;
}
.plain-head .panel-title { margin: 0; }
.plain-title {
  margin: 0;
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Two-up copy / figure rows --------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid var(--line);
}
.split-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: 54px 40px 54px 24px;
}
.split-fig {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 46px 24px;
  border-left: 1px solid var(--line);
}
.split-flip .split-copy { order: 2; border-left: 1px solid var(--line); padding-left: 40px; }
.split-flip .split-fig { order: 1; border-left: 0; }

.mega-lede {
  margin: 0;
  max-width: 560px;
  font-size: clamp(21px, 2.1vw, 29px);
  line-height: 1.34;
  letter-spacing: -0.015em;
  /* Cool-to-warm wash, matching the tinted headline treatment. */
  background: linear-gradient(96deg, #9fb6d8 0%, #e9e9e6 42%, #cbb6e2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.split-title {
  margin: 0 0 14px;
  font-size: clamp(20px, 1.9vw, 27px);
  font-weight: 400;
  letter-spacing: -0.015em;
}
.split-title.sm { font-size: clamp(18px, 1.5vw, 21px); }
.split-desc {
  margin: 0 0 26px;
  max-width: 500px;
  font-size: 15.5px;
  line-height: 1.5;
  color: rgba(242, 242, 240, 0.62);
}
.split-desc.lg { font-size: 17px; color: rgba(242, 242, 240, 0.78); }

.step-list {
  width: 100%;
  max-width: 640px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}
.step-list li { padding: 16px 0; border-top: 1px solid var(--line); }
.step-list li:first-child { border-top: 0; }
.step-head {
  display: flex;
  gap: 12px;
  margin: 0 0 8px;
  font-size: 14.5px;
  color: var(--text);
}
.step-head span {
  flex: none;
  width: 22px;
  font-family: var(--mono);
  font-size: 11px;
  padding-top: 2px;
  color: rgba(242, 242, 240, 0.42);
}
.step-desc {
  margin: 0 0 0 34px;
  max-width: 380px;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(242, 242, 240, 0.50);
}

/* Three-up feature row --------------------------------------------------- */
.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.trio-cell {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 30px 24px 34px;
  border-right: 1px solid var(--line);
}
.trio-cell:last-child { border-right: 0; }
.trio-title { margin: 0 0 14px; font-size: 18px; font-weight: 400; }
.trio-desc {
  margin: 0 0 28px;
  max-width: 400px;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(242, 242, 240, 0.62);
}
.trio-cell .iso { margin-top: auto; }

/* ══ Scrollytelling: the AutoSecOps chip ═════════════════════════════════ */
/* The shared .panel clips overflow, which disables position:sticky for
   everything inside it — this panel must stay unclipped. */
#architecture .panel { overflow: visible; }

.scrolly {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  border-top: 1px solid var(--line);
}

.scrolly-steps { padding: 8vh 8px 10vh 24px; }
.step {
  max-width: 360px;
  padding: 26vh 0;
  opacity: 0.28;
  transition: opacity 0.4s ease;
  cursor: pointer;
}
.step:first-child { padding-top: 12vh; }
.step:last-child { padding-bottom: 14vh; }
.step.on { opacity: 1; }
.step-k {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(110, 231, 168, 0.8);
}
.step h3 {
  margin: 0 0 12px;
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.step-p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(242, 242, 240, 0.6);
}

.scrolly-stage {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--line);
  overflow: hidden;
}
.scrolly-stage svg { width: min(100%, 1400px); max-height: 94%; height: auto; }
.scrolly-stage text { font-family: var(--mono); }

/* ── chip furniture ─────────────────────────────────────────────────────── */
.ch-top {
  fill: #141414;
  stroke: rgba(242, 242, 240, 0.55);
  stroke-width: 1.3;
}
.ch-l { fill: #0d0d0d; stroke: rgba(242, 242, 240, 0.35); }
.ch-r { fill: #090909; stroke: rgba(242, 242, 240, 0.25); }
.brand {
  font-size: 18px;
  letter-spacing: 0.32em;
  fill: rgba(242, 242, 240, 0.6);
  transition: fill 0.5s ease;
}
.brand.glyph { font-size: 15px; fill: rgba(110, 231, 168, 0.7); }

.socket {
  fill: none;
  stroke: rgba(242, 242, 240, 0.15);
  stroke-dasharray: 4 5;
}

.key .k-side { fill: #202020; stroke: rgba(242, 242, 240, 0.35); }
.key .k-top { fill: #1b1b1b; stroke: rgba(242, 242, 240, 0.62); }
.key .k-lbl {
  font-size: 19px;
  letter-spacing: 0.04em;
  fill: rgba(242, 242, 240, 0.94);
  text-anchor: middle;
}
.g-left .k-lbl, .g-out .k-lbl { font-size: 17px; }
.key.own .k-top { stroke: rgba(110, 231, 168, 0.8); }
.key.own .k-lbl { fill: rgba(110, 231, 168, 0.98); }

.utile rect { fill: none; stroke: rgba(242, 242, 240, 0.22); stroke-dasharray: 5 6; }
.u-lbl { font-size: 15px; letter-spacing: 0.08em; fill: rgba(242, 242, 240, 0.55); text-anchor: middle; }

.trace { fill: none; stroke: rgba(242, 242, 240, 0.17); }
.tpulse {
  fill: none;
  stroke: rgba(242, 242, 240, 0.92);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 12 100;
  stroke-dashoffset: 112;
  opacity: 0;
}
.tpulse.own { stroke: #6ee7a8; }
.tpulse.red { stroke: #ef6a6a; }

.kr { fill: none; stroke: rgba(110, 231, 168, 0.9); stroke-width: 1.6; opacity: 0; }


/* trace arrowheads: direction at a glance */
.tah { fill: rgba(242, 242, 240, 0.6); opacity: 0; transition: opacity 0.4s ease 0.35s; }
.tah.own { fill: #6ee7a8; }
.scrolly[data-state="1"] .g-tin .tah,
.scrolly[data-state="2"] .g-tin .tah,
.scrolly[data-state="3"] .g-tin .tah,
.scrolly[data-state="4"] .g-tin .tah { opacity: 1; }
.scrolly[data-state="3"] .g-tout .tah,
.scrolly[data-state="4"] .g-tout .tah { opacity: 1; }

/* left-column zone captions */
.zlbl {
  font-size: 17px;
  letter-spacing: 0.18em;
  fill: rgba(242, 242, 240, 0.78);
  opacity: 0;
  transition: opacity 0.5s ease 0.15s;
}
.zlbl.own { fill: rgba(110, 231, 168, 0.95); }
.zbadge rect {
  fill: rgba(242, 242, 240, 0.04);
  stroke: rgba(242, 242, 240, 0.28);
  opacity: 0;
  transition: opacity 0.5s ease 0.15s;
}
.zbadge.own rect {
  fill: rgba(110, 231, 168, 0.07);
  stroke: rgba(110, 231, 168, 0.5);
}

/* mini source trays under the satellite keycaps */
.ms-top {
  fill: #101010;
  stroke: rgba(242, 242, 240, 0.42);
  stroke-width: 1.2;
}
.ms-side { fill: #0b0b0b; stroke: rgba(242, 242, 240, 0.28); }
.ms-side.dk { fill: #080808; stroke: rgba(242, 242, 240, 0.2); }
.mslab { opacity: 0; transition: opacity 0.55s ease; }
.tray-b .ms-top { stroke: rgba(110, 231, 168, 0.4); }
.tray-b .ms-side { stroke: rgba(110, 231, 168, 0.26); }
.tray-b .ms-side.dk { stroke: rgba(110, 231, 168, 0.18); }
.shred { font-size: 19px; font-weight: 700; letter-spacing: 0.08em; fill: #ef6a6a; opacity: 0; }
.shred.s2nd { fill: #6ee7a8; }
.l-lbl { font-size: 17px; letter-spacing: 0.1em; fill: rgba(110, 231, 168, 0.85); text-anchor: middle; opacity: 0; }

/* ── choreography ───────────────────────────────────────────────────────── */
.g-left .key, .g-keys .key, .g-out .key {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-box: fill-box;
  transform-origin: center;
}
.g-tin .trace, .g-tout .trace {
  opacity: 0;
  transition: opacity 0.5s ease 0.3s;
}
.g-under .utile {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transform-box: fill-box;
  transform-origin: center;
}
.g-atk .trace, .g-atk .shred, .g-loop .trace, .g-loop .l-lbl {
  transition: opacity 0.4s ease;
}
.g-atk .trace, .g-loop .trace { opacity: 0; }
.g-left, .g-keys, .g-under { transition: opacity 0.5s ease; }

@keyframes chip-pulse {
  from { stroke-dashoffset: 112; opacity: 1; }
  to { stroke-dashoffset: -12; opacity: 1; }
}
@keyframes kr-chase {
  0% { opacity: 0; }
  6% { opacity: 1; }
  14% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes kr-red {
  0% { opacity: 0; }
  46% { opacity: 0; }
  52% { opacity: 1; }
  60% { opacity: 0.15; }
  66% { opacity: 0.9; }
  78% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes key-glow {
  50% { filter: drop-shadow(0 0 8px rgba(110, 231, 168, 0.5)); }
}

/* beat 1 — sources plug in */
.scrolly[data-state="1"] .g-left .key,
.scrolly[data-state="2"] .g-left .key,
.scrolly[data-state="3"] .g-left .key,
.scrolly[data-state="4"] .g-left .key { opacity: 1; transform: none; }
.scrolly[data-state="1"] .g-left .key:nth-of-type(1) { transition-delay: 0.05s; }
.scrolly[data-state="1"] .g-left .key:nth-of-type(2) { transition-delay: 0.13s; }
.scrolly[data-state="1"] .g-left .key:nth-of-type(3) { transition-delay: 0.21s; }
.scrolly[data-state="1"] .g-left .key:nth-of-type(4) { transition-delay: 0.29s; }
.scrolly[data-state="1"] .g-left .key:nth-of-type(5) { transition-delay: 0.37s; }
.scrolly[data-state="1"] .zlbl, .scrolly[data-state="1"] .zbadge rect,
.scrolly[data-state="2"] .zlbl, .scrolly[data-state="2"] .zbadge rect,
.scrolly[data-state="3"] .zlbl, .scrolly[data-state="3"] .zbadge rect,
.scrolly[data-state="4"] .zlbl, .scrolly[data-state="4"] .zbadge rect { opacity: 1; }
.scrolly[data-state="1"] .mslab,
.scrolly[data-state="2"] .mslab,
.scrolly[data-state="3"] .mslab,
.scrolly[data-state="4"] .mslab { opacity: 1; }
.scrolly[data-state="1"] .g-tin .trace,
.scrolly[data-state="2"] .g-tin .trace,
.scrolly[data-state="3"] .g-tin .trace,
.scrolly[data-state="4"] .g-tin .trace { opacity: 1; }
.scrolly[data-state="1"] .g-tin .tpulse,
.scrolly[data-state="2"] .g-tin .tpulse,
.scrolly[data-state="3"] .g-tin .tpulse,
.scrolly[data-state="4"] .g-tin .tpulse { animation: chip-pulse 2.3s linear infinite; }
.g-tin .tpulse.p2 { animation-delay: 0.45s !important; }
.g-tin .tpulse.p3 { animation-delay: 0.9s !important; }
.g-tin .tpulse.p4 { animation-delay: 1.35s !important; }
.g-tin .tpulse.p5 { animation-delay: 1.8s !important; }

/* beat 2 — the ten module keys land */
.scrolly[data-state="2"] .g-keys .key,
.scrolly[data-state="3"] .g-keys .key,
.scrolly[data-state="4"] .g-keys .key { opacity: 1; transform: none; }
.scrolly[data-state="2"] .g-keys .key:nth-of-type(1) { transition-delay: 0.04s; }
.scrolly[data-state="2"] .g-keys .key:nth-of-type(2) { transition-delay: 0.1s; }
.scrolly[data-state="2"] .g-keys .key:nth-of-type(3) { transition-delay: 0.16s; }
.scrolly[data-state="2"] .g-keys .key:nth-of-type(4) { transition-delay: 0.22s; }
.scrolly[data-state="2"] .g-keys .key:nth-of-type(5) { transition-delay: 0.28s; }
.scrolly[data-state="2"] .g-keys .key:nth-of-type(6) { transition-delay: 0.34s; }
.scrolly[data-state="2"] .g-keys .key:nth-of-type(7) { transition-delay: 0.4s; }
.scrolly[data-state="2"] .g-keys .key:nth-of-type(8) { transition-delay: 0.46s; }
.scrolly[data-state="2"] .g-keys .key:nth-of-type(9) { transition-delay: 0.52s; }
.scrolly[data-state="2"] .g-keys .key:nth-of-type(10) { transition-delay: 0.58s; }
.scrolly[data-state="2"] .brand,
.scrolly[data-state="3"] .brand,
.scrolly[data-state="4"] .brand { fill: rgba(242, 242, 240, 0.85); }

/* beat 3 — the engine computes, verdicts leave */
.scrolly[data-state="3"] .g-under .utile,
.scrolly[data-state="4"] .g-under .utile { opacity: 1; transform: none; }
.scrolly[data-state="3"] .g-under .utile:nth-of-type(1) { transition-delay: 0.08s; }
.scrolly[data-state="3"] .g-under .utile:nth-of-type(2) { transition-delay: 0.18s; }
.scrolly[data-state="3"] .g-under .utile:nth-of-type(3) { transition-delay: 0.28s; }
.scrolly[data-state="3"] .g-out .key,
.scrolly[data-state="4"] .g-out .key { opacity: 1; transform: none; }
.scrolly[data-state="3"] .g-out .key:nth-of-type(1) { transition-delay: 0.5s; }
.scrolly[data-state="3"] .g-out .key:nth-of-type(2) { transition-delay: 0.6s; }
.scrolly[data-state="3"] .g-out .key:nth-of-type(3) { transition-delay: 0.7s; }
.scrolly[data-state="3"] .g-tout .trace,
.scrolly[data-state="4"] .g-tout .trace { opacity: 1; }
.scrolly[data-state="3"] .g-tout .tpulse,
.scrolly[data-state="4"] .g-tout .tpulse { animation: chip-pulse 2.1s linear infinite 0.3s; }
.g-tout .tpulse.q2 { animation-delay: 0.9s !important; }
.g-tout .tpulse.q3 { animation-delay: 1.5s !important; }
.scrolly[data-state="3"] .kr { animation: kr-chase 2s linear infinite; }
.scrolly[data-state="3"] .kr1 { animation-delay: 0s; }
.scrolly[data-state="3"] .kr2 { animation-delay: 0.18s; }
.scrolly[data-state="3"] .kr3 { animation-delay: 0.36s; }
.scrolly[data-state="3"] .kr4 { animation-delay: 0.54s; }
.scrolly[data-state="3"] .kr5 { animation-delay: 0.72s; }
.scrolly[data-state="3"] .kr6 { animation-delay: 0.9s; }
.scrolly[data-state="3"] .kr7 { animation-delay: 1.08s; }
.scrolly[data-state="3"] .kr8 { animation-delay: 1.26s; }
.scrolly[data-state="3"] .kr9 { animation-delay: 1.44s; }
.scrolly[data-state="3"] .kr10 { animation-delay: 1.62s; }
.scrolly[data-state="3"] .g-out .key.own,
.scrolly[data-state="4"] .g-out .key.own { animation: key-glow 2.6s ease-in-out 1s infinite; }

/* beat 4 — the strike dies on the chip; the loop learns */
.scrolly[data-state="4"] .g-left { opacity: 0.5; }
.scrolly[data-state="4"] .g-keys .key { opacity: 0.45; }
.scrolly[data-state="4"] .g-keys .key.mk10 { opacity: 1; }
.scrolly[data-state="4"] .g-atk .trace { opacity: 1; }
.scrolly[data-state="4"] .g-atk .tpulse { animation: chip-pulse 2.4s linear infinite; }
.scrolly[data-state="4"] .krb {
  stroke: #ef6a6a;
  animation: kr-red 2.4s linear infinite;
}
.scrolly[data-state="4"] .shred { opacity: 1; transition-delay: 0.4s; }
.scrolly[data-state="4"] .shred.s2nd { transition-delay: 0.9s; }
.scrolly[data-state="4"] .g-loop .trace { opacity: 1; transition-delay: 0.5s; }
.scrolly[data-state="4"] .g-loop .tpulse { animation: chip-pulse 2.4s linear infinite 1.2s; }
.scrolly[data-state="4"] .g-loop .l-lbl { opacity: 1; transition-delay: 1s; }

@media (prefers-reduced-motion: reduce) {
  .g-tin .tpulse, .g-tout .tpulse, .g-atk .tpulse, .g-loop .tpulse,
  .scrolly .kr, .scrolly[data-state="4"] .krb,
  .scrolly[data-state="3"] .g-out .key.own,
  .scrolly[data-state="4"] .g-out .key.own { animation: none; }
}

@media (max-width: 980px) {
  .scrolly { grid-template-columns: 1fr; }
  .scrolly-stage {
    position: sticky;
    top: 0;
    order: -1;
    height: 52vh;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    z-index: 2;
  }
  .scrolly-steps { padding: 6vh 24px 8vh; }
  .step { padding: 16vh 0; }
  .step:first-child { padding-top: 6vh; }
}

/* GPU marketplace mock --------------------------------------------------- */
.gpu-mock { width: 100%; max-width: 620px; }
.gpu-toggle {
  display: flex;
  width: 62%;
  margin: 0 auto 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  font-size: 12.5px;
}
.gpu-toggle span {
  flex: 1;
  padding: 7px 0;
  text-align: center;
  color: rgba(242, 242, 240, 0.45);
}
.gpu-toggle .is-active { background: rgba(255, 255, 255, 0.09); color: var(--text); }

.gpu-cols { display: grid; grid-template-columns: 0.7fr 1.05fr 0.7fr; gap: 10px; align-items: start; }
.gpu-col.is-side { opacity: 0.28; }
.gpu-col.is-main { border: 1px solid var(--line-strong); border-radius: 2px; }
.gpu {
  padding: 11px 13px 13px;
  border-bottom: 1px solid var(--line);
}
.gpu:last-child { border-bottom: 0; }
.gpu p { margin: 0; }
.gpu-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px !important;
  font-size: 14px;
}
.gpu-top b { font-weight: 400; }
.gpu-top em { font-style: normal; font-size: 13px; }
.gpu-avail {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px !important;
  font-size: 10.5px;
  color: #6ee7a8;
}
.gpu-avail i { font-style: normal; color: rgba(242, 242, 240, 0.42); margin-left: 6px; }
.gpu-avail .spot { font-style: normal; color: #6ee7a8; }
.gpu-spec {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: rgba(242, 242, 240, 0.42);
}
.gpu-spec b { color: rgba(242, 242, 240, 0.82); font-weight: 500; }

/* Reserved-cluster calculator ------------------------------------------- */
.quote-calc {
  width: 100%;
  max-width: 500px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #0b0b0b;
}
.calc-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: rgba(242, 242, 240, 0.42);
}
.calc-search { cursor: text; }
.calc-search:focus-within { border-bottom-color: var(--line-strong); }
.calc-ico { flex: none; }
.calc-input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-search b {
  margin-left: auto;
  flex: none;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.calc-body { padding: 18px 16px 16px; }
.calc-body p { margin: 0; }
.calc-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 15px;
}
.calc-top em { font-style: normal; font-size: 13px; color: rgba(242, 242, 240, 0.55); }
.calc-top em span { font-size: 21px; color: var(--text); }
.calc-total {
  margin-bottom: 12px !important;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-align: right;
  color: rgba(242, 242, 240, 0.42);
}
.calc-total b { color: var(--text); font-weight: 400; }
.calc-name { margin: 0 0 16px; font-size: 21px; font-weight: 400; letter-spacing: -0.01em; }
/* Plan / term selectors -------------------------------------------------- */
.calc-opts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.chipset { display: flex; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.chip {
  padding: 6px 11px;
  border: 0;
  border-right: 1px solid var(--line);
  background: none;
  color: rgba(242, 242, 240, 0.5);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}
.chip:last-child { border-right: 0; }
.chip:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.chip.is-on { background: rgba(255, 255, 255, 0.12); color: var(--text); }
.chip:focus-visible { outline: 1px solid var(--text); outline-offset: -1px; }

.calc-bar { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.calc-bar i { height: 8px; background: var(--text); transition: width 0.25s ease; }
.calc-bar i.dim { background: rgba(255, 255, 255, 0.20); }
.calc-legend {
  display: flex;
  gap: 18px;
  margin-bottom: 16px !important;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(242, 242, 240, 0.42);
}
.calc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.calc-legend i { width: 9px; height: 8px; background: var(--text); }
.calc-legend i.dim { background: rgba(255, 255, 255, 0.20); }

.calc-rows { margin: 0; font-size: 13.5px; }
.calc-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.calc-rows dt { color: rgba(242, 242, 240, 0.48); }
.calc-rows dt b { font-weight: 400; }
.calc-rows dd { margin: 0; color: rgba(242, 242, 240, 0.85); font-variant-numeric: tabular-nums; }
.calc-profit {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 17px;
}
.calc-profit b { font-weight: 400; color: #6ee7a8; font-variant-numeric: tabular-nums; }
.calc-profit b.is-negative { color: #ef6a6a; }
.calc-note {
  margin: 16px 0 0 !important;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  line-height: 1.5;
  color: rgba(242, 242, 240, 0.34);
}

/* ══ Research ════════════════════════════════════════════════════════════ */
.research {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  border-top: 1px solid var(--line);
}
.paper { margin: 0; min-width: 0; }
.paper-art {
  position: relative;
  height: 300px;
  background: #060606;
  overflow: hidden;
}
.paper-art .tag { position: absolute; top: 14px; left: 14px; }
.tag {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: rgba(242, 242, 240, 0.72);
}
.paper-copy { padding: 26px 24px 30px; }
.paper-title { margin: 0 0 12px; font-size: 19px; font-weight: 400; }
.paper-desc {
  margin: 0 0 20px;
  max-width: 440px;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(242, 242, 240, 0.58);
}
.paper-copy .cmd { margin-bottom: 18px; padding: 7px 10px 7px 12px; }
.paper-copy .btn { display: inline-flex; }

.paper-list { display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.paper-item {
  flex: 1;
  padding: 24px 24px 26px;
  border-bottom: 1px solid var(--line);
  transition: background 0.18s ease;
}
.paper-item:hover { background: rgba(255, 255, 255, 0.03); }
.paper-item h4 {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}
.paper-item .out {
  flex: none;
  margin-left: auto;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 11px;
  color: rgba(242, 242, 240, 0.6);
}
.paper-item p {
  margin: 0;
  max-width: 320px;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(242, 242, 240, 0.50);
}
.paper-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 26px 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text);
}
.paper-more b { font-weight: 400; }

/* Latest research cards --------------------------------------------------- */
.posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.post {
  min-width: 0;
  padding-bottom: 60px;
  border-right: 1px solid var(--line);
}
.post:last-child { border-right: 0; }
.post-art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 212px;
  overflow: hidden;
}
.post-art span {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.14em;
  color: #fff;
  mix-blend-mode: difference;
}
/* Stand-in cover art: three distinct generative-looking treatments. */
.art-plot {
  background:
    repeating-linear-gradient(90deg, rgba(0,255,120,0.16) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(0deg, rgba(0,255,120,0.16) 0 1px, transparent 1px 26px),
    linear-gradient(72deg, rgba(255,0,120,0.5) 0 1px, transparent 1px),
    #050505;
}
.art-glitch {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.10) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(90deg, rgba(220,255,60,0.14) 0 3px, transparent 3px 41px),
    radial-gradient(120% 80% at 25% 30%, rgba(255,255,255,0.30), transparent 60%),
    #050505;
}
.art-wave {
  background:
    repeating-linear-gradient(0deg, rgba(0,255,190,0.13) 0 1px, transparent 1px 9px),
    radial-gradient(60% 45% at 22% 62%, rgba(255,0,140,0.55), transparent 70%),
    radial-gradient(50% 40% at 74% 28%, rgba(0,200,255,0.45), transparent 70%),
    #050505;
}
.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 16px;
  padding: 0 24px;
}
.post-meta time {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  color: rgba(242, 242, 240, 0.42);
}
.post-title {
  margin: 0;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

/* Customer stories -------------------------------------------------------- */
.story-row {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  border-top: 1px solid var(--line);
}
.story {
  position: relative;
  display: block;
  min-width: 0;
  height: 250px;
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.story:last-child { border-right: 0; }
.story .matrix { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Scrim so the headline stays readable over the busy field. */
.story::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 6, 6, 0.94) 0%, rgba(6, 6, 6, 0.72) 22%, rgba(6, 6, 6, 0) 52%);
}
.story-logo,
.story-foot { z-index: 1; }
.story-logo {
  position: absolute;
  top: 22px;
  left: 22px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}
.story-logo i { font-style: normal; font-size: 15px; opacity: 0.8; }
.story-foot {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.story-title {
  max-width: 420px;
  font-size: 17px;
  line-height: 1.4;
  color: var(--text);
}
.story { height: 300px; }

/* ══ FAQ ═════════════════════════════════════════════════════════════════ */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
  transition: background 0.16s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: rgba(255, 255, 255, 0.03); }
.faq-item summary h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.005em;
}
/* Plus that becomes a minus when the answer is open. */
.faq-mark {
  position: relative;
  flex: none;
  margin-left: auto;
  width: 13px;
  height: 13px;
}
.faq-mark::before,
.faq-mark::after {
  content: "";
  position: absolute;
  inset: 6px 0 auto;
  height: 1px;
  background: rgba(242, 242, 240, 0.6);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.faq-mark::after { transform: rotate(90deg); }
.faq-item[open] .faq-mark::after { transform: rotate(0deg); opacity: 0; }
.faq-item > p {
  margin: 0;
  padding: 0 90px 26px 24px;
  max-width: 900px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(242, 242, 240, 0.62);
}

/* ══ Hiring ══════════════════════════════════════════════════════════════ */
.hiring {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 24px;
  padding: 34px 24px 40px;
}
.hiring-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
}
.hiring-copy .eyebrow { margin-bottom: 96px; }
.hiring-title {
  margin: 0 0 20px;
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 400;
  letter-spacing: -0.015em;
}
.hiring-desc {
  margin: 0 0 62px;
  max-width: 420px;
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(242, 242, 240, 0.62);
}

/* Sparse team wall. Tiles are placed on an 11×5 grid, deliberately gappy. */
.crew {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  grid-template-rows: repeat(5, auto);
  gap: 6px;
  min-width: 0;
}
.crew i,
.crew-add {
  aspect-ratio: 1;
  border-radius: 1px;
  background:
    linear-gradient(150deg,
      hsl(var(--h, 200) 45% 42%) 0%,
      hsl(calc(var(--h, 200) + 40) 30% 18%) 62%,
      #101010 100%);
  opacity: 0.85;
}
.crew-add {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 20px;
  font-weight: 300;
}

/* ══ Footer ══════════════════════════════════════════════════════════════ */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: #0d0d0d;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding-top: 52px;
  padding-bottom: 52px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 200px));
  gap: 32px;
}
.footer-cols div { display: flex; flex-direction: column; gap: 11px; }
.footer-head {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(242, 242, 240, 0.38);
}
.footer-cols a {
  font-size: 14px;
  color: rgba(242, 242, 240, 0.72);
  transition: color 0.18s ease;
}
.footer-cols a:hover { color: var(--text); }

/* Plain-language summary for crawlers and answer engines. */
.footer-legal {
  padding-bottom: 26px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.footer-legal p {
  margin: 0;
  max-width: 940px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(242, 242, 240, 0.42);
}
.footer-legal strong { font-weight: 400; color: rgba(242, 242, 240, 0.72); }

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 34px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 242, 240, 0.38);
}
.footer-bar p { margin: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bar a:hover { color: var(--text); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1440px) {
  .header-inner { gap: 14px; }
  .nav-seg { gap: 14px; padding: 0 11px; }
  .nav-link { padding: 0 6px; }
  .brand { margin-right: 4px; }
}

@media (max-width: 1300px) {
  .nav-seg { gap: 10px; padding: 0 9px; }
  .nav-seg b { display: none; }
  .nav-link { padding: 0 4px; letter-spacing: 0.05em; }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 34px; }
  .hero-backers { padding-bottom: 0; }
}

@media (max-width: 1120px) {
  .nav-secondary .nav-link:nth-child(4) { display: none; }
}

@media (max-width: 980px) {
  .nav-primary,
  .nav-secondary { display: none; }
  .burger { display: flex; }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .logo-cell:nth-child(5n) { border-right: 1px solid var(--line); }
  .logo-cell:nth-child(3n) { border-right: 0; }
  .logo-cell:nth-last-child(-n + 5) { border-bottom: 1px solid var(--line); }
  .logo-cell:nth-last-child(-n + 1) { border-bottom: 0; }
}

@media (max-width: 760px) {
  /* The install snippet cannot wrap, so it would force horizontal overflow. */
  .cmd { display: none; }
  .announce-inner { min-height: 30px; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .hero { height: auto; min-height: 0; max-height: none; }
  .hero-inner { padding-block: 90px 40px; }
  .hero-media img { object-position: 65% 40%; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .logo-cell { min-height: 86px; }
  .logo-cell:nth-child(3n) { border-right: 1px solid var(--line); }
  .logo-cell:nth-child(2n) { border-right: 0; }
}

/* ── Lab / quotes responsive ─────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .lab-copy { grid-template-columns: 1fr; gap: 22px; }
  .lab-lede p { max-width: none; }
  .train { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 820px) {
  .modules { grid-template-columns: 1fr; }
  .module:nth-child(odd) { border-right: 0; }
  .module:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .module { grid-template-columns: 34px auto minmax(0, 1fr); padding: 13px 18px; }
  .module-full { font-size: 11px; }
}

@media (max-width: 1080px) {
  .hub-main { grid-template-columns: 1fr; }
  .hub-app { border-left: 0; border-top: 1px solid var(--line); }
  .hub-intro { padding: 40px 24px; }
  .research { grid-template-columns: 1fr; }
  .paper-list { border-left: 0; border-top: 1px solid var(--line); }
  .story-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .lab, .band, .hub { margin-top: 56px; }
  .define { padding: 32px 24px 26px; }
  .lab-grid { grid-template-columns: 1fr; }
  .lab-block { border-right: 0 !important; }
  .fig { min-height: 320px; }
  .quotes { grid-template-columns: 1fr; margin-bottom: 56px; }

  .split { grid-template-columns: 1fr; }
  .split-copy { padding: 40px 24px; order: 1 !important; border-left: 0 !important; }
  .split-fig { padding: 34px 24px; border-left: 0; border-top: 1px solid var(--line); order: 2 !important; }
  .trio, .posts, .hub-links { grid-template-columns: 1fr; }
  .trio-cell, .post, .hub-link {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .trio-cell:last-child, .post:last-child, .hub-link:last-child { border-bottom: 0; }
  .post { padding-bottom: 34px; }
  .gpu-cols { grid-template-columns: 1fr; }
  .gpu-col.is-side { display: none; }
  .story-row { grid-template-columns: 1fr; }
  .story { border-right: 0; border-bottom: 1px solid var(--line); }
  .story:last-child { border-bottom: 0; }
  .hiring { grid-template-columns: 1fr; }
  .hiring-copy .eyebrow { margin-bottom: 28px; }
  .hiring-desc { margin-bottom: 30px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
}

@media (max-width: 640px) {
  .panel-hero { min-height: 260px; padding: 20px 18px 24px; }
  .lab-block { padding: 0 18px 22px; }
  .fig { margin: 0 -18px; padding: 30px 18px 22px; min-height: 260px; }
  .fig figcaption { left: 18px; }
  .evals { font-size: 10px; }
  .env-stack { position: static; width: 100%; margin-bottom: 20px; }
  .score-table { display: none; }
  .quote { padding: 24px 20px; min-height: 0; }
}

/* ══ Problem stat band ═══════════════════════════════════════════════════ */
.statband { padding: 34px 24px 26px; }
.stat-lede {
  margin: 0 0 26px;
  max-width: 760px;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: rgba(242, 242, 240, 0.85);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 22px 24px 24px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat b {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat span {
  font-size: 13.5px;
  line-height: 1.4;
  color: rgba(242, 242, 240, 0.55);
}
.stat-src {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 242, 240, 0.3);
}

@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}

/* ══ Polish layer: entrances, micro-interactions, idle life ══════════════ */
html { scroll-behavior: smooth; scroll-padding-top: 18px; }

/* Scroll-reveal: .rv is only ever added by JS, so no-JS keeps everything
   visible. Stagger comes per-element through --rvd. */
.rv {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s ease var(--rvd, 0s),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--rvd, 0s);
}
.rv.in { opacity: 1; transform: none; }

/* Hero entrance — one cascading sequence on load */
.hero-copy > * {
  animation: hero-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.15s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.25s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.35s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.45s; }
.hero-backers { animation: hero-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both; }
@keyframes hero-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Terminal caret for the typed install line */
.install .caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 3px;
  vertical-align: -2px;
  background: rgba(110, 231, 168, 0.9);
  animation: caret-blink 1.05s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* Buttons: chevron nudge + gentle lift */
.btn { transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.2s ease; }
.btn .chev { display: inline-block; transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.btn:hover .chev { transform: translateX(3px); }
.btn-solid:hover { transform: translateY(-1px); }
.btn-solid:active { transform: translateY(0); }

/* Scrolly steps: progress rail + kicker state */
.step {
  border-left: 1px solid var(--line);
  padding-left: 22px;
  transition: opacity 0.4s ease, border-color 0.4s ease;
}
.step .step-k { color: rgba(242, 242, 240, 0.35); transition: color 0.35s ease; }
.step.on { border-left-color: rgba(110, 231, 168, 0.75); }
.step.on .step-k { color: rgba(110, 231, 168, 0.9); }

/* FAQ answers slide open */
.faq-item[open] > p { animation: faq-in 0.32s ease both; }
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: none; }
}

/* Count-up bump on the calculator's headline number */
[data-saved].bump { animation: num-bump 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); display: inline-block; }
@keyframes num-bump {
  35% { transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .hero-copy > *, .hero-backers { animation: none; }
  .install .caret { animation: none; }
  .faq-item[open] > p { animation: none; }
  [data-saved].bump { animation: none; }
}
