/* ============================================================
   Quartz Labs — Design tokens
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600&family=Geist+Mono:wght@400;500&family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;1,6..72,300;1,6..72,400&display=swap');

:root {
  /* Dark theme */
  --bg-base: #08080a;
  --bg-surface: #0f0f12;
  --bg-elevated: #16161b;
  --border-hairline: #1c1c22;
  --border-line: #262630;
  --text-primary: #f0eee8;
  --text-secondary: #9b9b9f;
  --text-muted: #646469;
  --accent: #1e40af;
  --accent-60: rgba(30, 64, 175, 0.60);
  --accent-12: rgba(30, 64, 175, 0.12);
  --accent-08: rgba(30, 64, 175, 0.08);

  /* Light editorial */
  --bg-paper: #f3efe6;
  --text-ink: #1a1a1d;
  --text-ink-secondary: #52525b;
  --border-paper: #d6d2c8;

  /* Type families */
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-serif: "Newsreader", "Times New Roman", serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* ============================================================
   Type scale
   ============================================================ */
.display-hero {
  font-size: 112px;
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0;
}
.display-section {
  font-size: 80px;
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 0;
}
.editorial-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 64px;
  line-height: 1.08;
  font-weight: 300;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--text-primary);
}
h2, .h2 {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 0;
}
h3, .h3 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  margin: 0;
}
.body-large {
  font-size: 22px;
  line-height: 1.45;
  font-weight: 400;
  color: var(--text-secondary);
}
.body { font-size: 17px; line-height: 1.55; color: var(--text-secondary); }
.body-small { font-size: 14px; line-height: 1.55; color: var(--text-secondary); }
.mono-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.stat-mega {
  font-size: 144px;
  line-height: 0.92;
  font-weight: 500;
  letter-spacing: -0.04em;
}

/* ============================================================
   Layout primitives
   ============================================================ */
.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
.section { padding: 120px 0; }
.section-tight { padding: 80px 0; }

.facet-divider {
  height: 1px;
  background: var(--border-hairline);
  transform: skewY(-0.18deg);
  margin: 0;
  border: none;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 13px 22px;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
  background: transparent;
  color: var(--text-primary);
}
.btn-primary {
  background: var(--accent);
  color: #f0eee8;
  border-color: var(--accent);
}
.btn-primary:hover { background: #2a52cf; border-color: #2a52cf; }
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-line);
}
.btn-secondary:hover { border-color: var(--text-secondary); }
.btn-ghost { padding: 0; border: none; color: var(--text-primary); }
.btn-ghost:hover { color: var(--accent-60); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 160ms ease, color 160ms ease;
}
.link-arrow:hover { border-color: var(--accent-60); }

/* ============================================================
   Hex monogram
   ============================================================ */
.hex-mono {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: -3px;
}
.hex-mono-lg { width: 36px; height: 36px; }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(8, 8, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-hairline);
  z-index: 100;
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  margin-right: 32px;
}
.nav-link {
  position: relative;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.003em;
  padding: 8px 0;
  transition: color 160ms ease;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link.has-dropdown { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 280px;
  margin-top: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 4px;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 110;
}
/* Invisible bridge fills the gap between trigger and dropdown */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}
/* Show on hover OR when JS sets .is-open */
.nav-link.has-dropdown:hover .nav-dropdown,
.nav-dropdown:hover,
.nav-link.has-dropdown.is-open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
/* Increase hit-target on the trigger itself */
.nav-link.has-dropdown { padding: 16px 0; margin: -8px 0; }
.nav-dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: 2px;
}
.nav-dropdown a:hover { background: var(--bg-elevated); color: var(--text-primary); }
.nav-dropdown .nav-dd-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  padding: 8px 14px 4px;
  text-transform: uppercase;
}

.nav-cta {
  font-size: 14px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 2px;
  border: 1px solid var(--border-line);
  color: var(--text-primary);
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 160ms ease, border-color 160ms ease;
}
.nav-cta:hover { background: var(--bg-elevated); border-color: var(--text-secondary); }

.nav-burger { display: none; background: none; border: none; color: var(--text-primary); padding: 6px; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 168px 0 96px;
  overflow: hidden;
}
.hero-radial {
  position: absolute;
  top: 80px;
  left: -10%;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--accent-08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 64px;
  align-items: start;
  position: relative;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.hero-sub {
  margin-top: 32px;
  max-width: 620px;
}
.hero-ctas {
  margin-top: 48px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   Ticker (hero right column)
   ============================================================ */
.ticker {
  background: rgba(15, 15, 18, 0.5);
  border: 1px solid var(--border-hairline);
  padding: 20px;
  border-radius: 2px;
}
.ticker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-hairline);
}
.ticker-head .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.ticker-head .live {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-primary);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: live-pulse 2s infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.ticker-row { padding: 14px 0; border-bottom: 1px solid var(--border-hairline); }
.ticker-row:last-child { border-bottom: none; }
.ticker-row .date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.ticker-row .body {
  font-size: 14px;
  color: var(--text-primary);
  margin-top: 4px;
  font-weight: 500;
}
.ticker-row .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* ============================================================
   Section header
   ============================================================ */
.section-head {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  margin-bottom: 64px;
  align-items: end;
}
.section-head .lead {
  max-width: 620px;
}

/* ============================================================
   Modalities matrix (2x2)
   ============================================================ */
.mod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-hairline);
  border: 1px solid var(--border-hairline);
  border-radius: 2px;
}
.mod-grid.mod-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1100px) {
  .mod-grid.mod-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .mod-grid.mod-grid-4 { grid-template-columns: 1fr; }
}
.mod-cell {
  background: var(--bg-surface);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
  transition: background 200ms ease, border-color 200ms ease;
}
.mod-grid-4 .mod-cell { padding: 28px 24px; min-height: 260px; gap: 12px; }
.mod-grid-4 .mod-cell .mod-body { font-size: 15px; }
.mod-grid-4 .mod-icon { width: 32px; height: 32px; margin-bottom: 16px; }
.mod-cell:hover { background: var(--bg-elevated); }
.mod-cell .mod-head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-primary);
  text-transform: uppercase;
}
.mod-status {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.mod-status.live { background: var(--accent); }
.mod-status.active { background: transparent; border: 1px solid var(--accent); }
.mod-status.onreq { background: transparent; border: 1px dashed var(--text-muted); box-sizing: border-box; }
.mod-cell .mod-body {
  font-size: 18px;
  line-height: 1.4;
  color: var(--text-primary);
  font-weight: 400;
  letter-spacing: -0.005em;
  flex: 1;
}
.mod-cell .link-arrow {
  margin-top: auto;
  color: var(--text-secondary);
  font-size: 14px;
}
.mod-cell:hover .link-arrow { color: var(--text-primary); }

/* ============================================================
   Sample data card
   ============================================================ */
.sample-wrap {
  position: relative;
  padding: 40px 0;
}
.sample-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--accent-08) 0%, transparent 70%);
  pointer-events: none;
}
.sample-card {
  position: relative;
  background: rgba(15, 15, 18, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-hairline);
  border-radius: 2px;
}
.sample-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border-hairline);
  background: rgba(8, 8, 10, 0.4);
}
.sample-strip .item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sample-strip .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.sample-strip .v {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}
.sample-strip .pill {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border: 1px solid var(--accent-60);
  color: var(--text-primary);
  text-transform: uppercase;
  border-radius: 2px;
  background: var(--accent-12);
}

.waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 32px 28px 12px;
  height: 130px;
}
.wave-bar {
  flex: 1;
  border-radius: 1px;
  min-height: 4px;
}
.wave-s1 { background: var(--text-primary); opacity: 0.85; }
.wave-s2 { background: var(--accent); }

.time-axis {
  display: flex;
  justify-content: space-between;
  padding: 0 28px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-hairline);
}

.transcript {
  padding: 24px 28px;
}
.transcript .line {
  display: grid;
  grid-template-columns: 76px 100px 1fr;
  gap: 16px;
  padding: 6px 0;
  align-items: baseline;
}
.transcript .ts {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.transcript .spk {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}
.transcript .spk-1 { color: var(--text-primary); }
.transcript .spk-2 { color: #6489d6; }
.transcript .text { color: var(--text-secondary); font-size: 15px; line-height: 1.55; }

.sample-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 20px 28px;
  border-top: 1px solid var(--border-hairline);
  background: rgba(8, 8, 10, 0.3);
}
.sample-foot .manifest {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  line-height: 1.6;
  max-width: 60%;
}
.sample-foot .ctas {
  display: inline-flex;
  gap: 14px;
}

/* ============================================================
   Annotated step list
   ============================================================ */
.steps {
  border-top: 1px solid var(--border-hairline);
}
.step-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-hairline);
  align-items: baseline;
}
.step-row .step-name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text-primary);
}
.step-row .step-body { color: var(--text-secondary); font-size: 17px; line-height: 1.55; max-width: 560px; }

/* ============================================================
   Editorial 2-col case glimpse
   ============================================================ */
.case-glimpse {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: 96px;
  align-items: start;
}
.case-glimpse .left h3.mono-label { margin-bottom: 24px; display: block; }
.case-glimpse .quote-attrib {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: 32px;
}

/* ============================================================
   Closing dual-CTA
   ============================================================ */
.dual-cta {
  text-align: center;
  padding: 120px 0;
  border-top: 1px solid var(--border-hairline);
}
.dual-cta .head {
  font-size: 56px;
  letter-spacing: -0.025em;
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 48px;
  color: var(--text-primary);
}
.dual-cta .actions {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--border-hairline);
  padding: 80px 0 48px;
  background: var(--bg-base);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 0 0 20px;
  font-weight: 500;
}
.footer-col a, .footer-col p {
  display: block;
  color: #b8b8bd;
  font-size: 14px;
  margin: 0 0 10px;
  text-decoration: none;
  transition: color 160ms ease;
}
.footer-col a:hover { color: var(--text-primary); }
/* Email links stand out clearly */
.footer-col a[href^="mailto:"] {
  color: #6f9bff;
}
.footer-col a[href^="mailto:"]:hover { color: #9bbcff; }
.footer-sig {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ============================================================
   Data tables
   ============================================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table thead th {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--border-line);
  font-weight: 500;
}
.data-table tbody td {
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  vertical-align: top;
}
.data-table tbody tr:hover td { color: var(--text-primary); }
.data-table tbody tr.highlight td {
  background: var(--accent-12);
  color: var(--text-primary);
}
.data-table tbody td.primary { color: var(--text-primary); font-weight: 500; }
.data-table tbody td.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; }
.tier-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--border-line);
  border-radius: 2px;
  color: var(--text-secondary);
  display: inline-block;
}
.tier-tag.tier-1 { color: var(--text-primary); border-color: var(--accent-60); background: var(--accent-12); }
.tier-tag.tier-2 { color: var(--text-secondary); }
.tier-tag.tier-3 { color: var(--text-muted); }

.status-dot {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em;
}
.status-dot::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
}
.status-dot.live::before { background: var(--accent); }
.status-dot.onboarding::before { background: transparent; box-shadow: inset 0 0 0 1px var(--accent); }
.status-dot.selective::before { background: var(--text-muted); }

/* ============================================================
   Modal (cal-like)
   ============================================================ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(8, 8, 10, 0.7);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: 100%; max-width: 560px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 4px;
  padding: 40px;
  position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--text-muted);
  font-size: 20px; padding: 6px; line-height: 1;
}
.modal-close:hover { color: var(--text-primary); }
.modal h3 { margin: 0 0 8px; font-size: 24px; }
.modal p { color: var(--text-secondary); margin: 0 0 24px; }
.cal-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 24px; }
.cal-slot {
  padding: 12px;
  text-align: center;
  border: 1px solid var(--border-line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 2px;
  background: transparent;
  color: var(--text-primary);
  transition: background 160ms ease, border-color 160ms ease;
}
.cal-slot:hover { background: var(--bg-elevated); border-color: var(--accent-60); }
.cal-slot.selected { background: var(--accent); border-color: var(--accent); color: #f0eee8; }

/* ============================================================
   Forms
   ============================================================ */
.form {
  display: grid; gap: 20px;
  max-width: 640px;
}
.form-field { display: grid; gap: 8px; }
.form label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form input[type=text], .form input[type=email], .form textarea, .form select {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  border-radius: 2px;
  outline: none;
  transition: border-color 160ms ease;
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--accent-60); }
.form textarea { min-height: 100px; resize: vertical; }
.form .radios, .form .checks { display: flex; flex-wrap: wrap; gap: 8px; }
.form .radios label, .form .checks label {
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-secondary);
  padding: 8px 14px;
  border: 1px solid var(--border-hairline);
  border-radius: 2px;
  cursor: pointer;
  background: var(--bg-surface);
  transition: all 160ms ease;
}
.form .radios label.selected, .form .checks label.selected {
  border-color: var(--accent);
  background: var(--accent-12);
  color: var(--text-primary);
}
.form .radios input, .form .checks input { display: none; }
.form button[type=submit] { margin-top: 8px; width: max-content; }

.form-card {
  background: rgba(15, 15, 18, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-hairline);
  padding: 40px;
  border-radius: 2px;
  position: relative;
}
.form-card-wrap { position: relative; }
.form-card-bg {
  position: absolute; inset: -40px;
  background: radial-gradient(ellipse at center, var(--accent-08) 0%, transparent 70%);
  pointer-events: none;
}

/* ============================================================
   Right-column engagement card (/labs hero)
   ============================================================ */
.engage-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  padding: 32px;
  border-radius: 2px;
}
.engage-card h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 24px;
  font-weight: 500;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-hairline);
}
.engage-row { margin-bottom: 24px; }
.engage-row:last-child { margin-bottom: 0; }
.engage-row .title { font-size: 16px; font-weight: 500; color: var(--text-primary); margin-bottom: 6px; }
.engage-row .text { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* ============================================================
   /network value props
   ============================================================ */
.value-list { display: grid; gap: 28px; padding: 8px 0; }
.value-row { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.value-row .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.04em;
  padding-top: 2px;
}
.value-row .title { font-size: 17px; font-weight: 500; color: var(--text-primary); margin-bottom: 4px; }
.value-row .text { font-size: 14px; color: var(--text-secondary); }

/* ============================================================
   Operator pool table (/labs#robotics, #eval)
   ============================================================ */
.pool-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  padding: 32px;
  border-radius: 2px;
}
.pool-card h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-hairline);
}
.pool-row { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border-hairline); }
.pool-row:last-child { border-bottom: none; }
.pool-row .k { color: var(--text-primary); font-size: 15px; font-weight: 500; }
.pool-row .v { color: var(--text-secondary); font-size: 14px; line-height: 1.5; }

/* ============================================================
   Modality detail blocks (/labs)
   ============================================================ */
.mod-detail {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  padding: 96px 0;
  border-bottom: 1px solid var(--border-hairline);
  align-items: start;
}
.mod-detail:last-of-type { border-bottom: none; }
.mod-detail .mod-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.mod-detail h2 { margin-bottom: 24px; }
.mod-detail .body { font-size: 17px; color: var(--text-secondary); }
.mod-detail .body p { margin: 0 0 16px; }

/* ============================================================
   Process flow (/labs)
   ============================================================ */
.flow {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  gap: 0;
  align-items: stretch;
}
.flow-col { padding: 32px; background: var(--bg-surface); border: 1px solid var(--border-hairline); }
.flow-arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 18px;
}
.flow-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
  font-weight: 500;
}
.flow-col h3 { font-size: 22px; margin: 0 0 12px; }
.flow-col p { color: var(--text-secondary); font-size: 14px; line-height: 1.55; margin: 0 0 20px; }
.flow-col .sub {
  padding-top: 16px;
  margin-top: 20px;
  border-top: 1px solid var(--border-hairline);
}
.flow-col .sub-k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.flow-col .sub-v { color: var(--text-secondary); font-size: 13px; }

/* ============================================================
   Case tile (/cases)
   ============================================================ */
.case-tile {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  padding: 56px 0;
  border-bottom: 1px solid var(--border-hairline);
  align-items: end;
}
.case-tile:first-of-type { border-top: 1px solid var(--border-hairline); }
.case-tile .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.case-tile h2 { margin-bottom: 16px; }
.case-tile p { color: var(--text-secondary); max-width: 720px; }
.case-tile .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ============================================================
   Light editorial theme (/cases/01)
   ============================================================ */
.paper {
  background: var(--bg-paper);
  color: var(--text-ink);
}
.paper .display-section,
.paper h2, .paper h3 { color: var(--text-ink); }
.paper .body, .paper p { color: var(--text-ink-secondary); }
.paper .mono-label, .paper .mono-meta { color: var(--text-ink-secondary); }
.paper .border-rule { border-color: var(--border-paper); }

.paper-hero {
  background: var(--bg-paper);
  padding: 160px 0 96px;
}
.paper-hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 96px;
  align-items: start;
}
.paper-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 56px;
  line-height: 1.05;
  color: var(--text-ink);
  margin: 0;
  letter-spacing: -0.01em;
}
.paper-attrib {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-ink-secondary);
  letter-spacing: 0.04em;
  margin-top: 32px;
}
.paper-section {
  background: var(--bg-paper);
  padding: 96px 0;
  border-top: 1px solid var(--border-paper);
}
.paper-work-grid {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: 96px;
  align-items: start;
}
.paper-block { margin-bottom: 48px; }
.paper-block h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--text-ink);
}
.paper-block p { color: var(--text-ink-secondary); font-size: 17px; line-height: 1.6; }

.stat-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 48px;
}
.stat-cell .num {
  font-size: 144px;
  line-height: 0.92;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--text-ink);
  font-family: var(--font-sans);
  margin-bottom: 16px;
}
.stat-cell .lab {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-ink-secondary);
  text-transform: uppercase;
}

.paper-close {
  background: linear-gradient(to bottom, var(--bg-paper) 0%, var(--bg-paper) 60%, var(--bg-base) 100%);
  padding: 120px 0;
  text-align: center;
}
.paper-close .head {
  font-size: 48px;
  letter-spacing: -0.02em;
  color: var(--text-ink);
  margin-bottom: 40px;
}
.paper-close .actions { display: inline-flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.paper-close .btn-secondary { color: var(--text-ink); border-color: var(--border-paper); }
.paper-close .btn-secondary:hover { border-color: var(--text-ink); background: rgba(0,0,0,0.04); }

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 900px) {
  .shell { padding: 0 24px; }
  .section { padding: 80px 0; }
  .display-hero { font-size: 56px; }
  .display-section { font-size: 40px; }
  .editorial-quote { font-size: 32px; }
  h2 { font-size: 28px; }
  .body-large { font-size: 18px; }
  .stat-mega, .stat-cell .num { font-size: 72px; }

  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-cta { padding: 8px 12px; font-size: 13px; }
  .nav-inner { padding: 0 24px; }

  .hero { padding: 120px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .mod-grid { grid-template-columns: 1fr; }
  .mod-cell { min-height: 0; padding: 28px; }
  .case-glimpse { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .step-row { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }

  .mod-detail { grid-template-columns: 1fr; gap: 32px; padding: 56px 0; }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { display: none; }
  .case-tile { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }

  .paper-hero { padding: 120px 0 64px; }
  .paper-hero-grid, .paper-work-grid { grid-template-columns: 1fr; gap: 40px; }
  .paper-quote { font-size: 36px; }
  .stat-pair { grid-template-columns: 1fr 1fr; gap: 24px; }

  .sample-strip { gap: 16px; padding: 14px 18px; }
  .waveform { padding: 24px 18px 12px; height: 96px; }
  .time-axis { padding: 0 18px 12px; }
  .transcript { padding: 18px; }
  .transcript .line { grid-template-columns: 64px 72px 1fr; gap: 8px; }
  .sample-foot { padding: 16px 18px; flex-direction: column; align-items: flex-start; }
  .sample-foot .manifest { max-width: 100%; }

  .dual-cta .head { font-size: 32px; }
  .paper-close .head { font-size: 28px; }
}

/* ============================================================
   V4 EXTENSIONS — added 2026-05-29
   Motion package, new components, warm theme variant
   ============================================================ */

/* --------- Motion package: scroll-fade, hover lifts, count-up --------- */
/* IMPORTANT: .reveal only hides when body.js-loaded is set, so if JS fails
   the content remains visible. Prevents blank-page bug. */
@media (prefers-reduced-motion: no-preference) {
  body.js-loaded .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
  }
  body.js-loaded .reveal.is-visible { opacity: 1; transform: translateY(0); }
  body.js-loaded .reveal[data-delay="1"] { transition-delay: 80ms; }
  body.js-loaded .reveal[data-delay="2"] { transition-delay: 160ms; }
  body.js-loaded .reveal[data-delay="3"] { transition-delay: 240ms; }
  body.js-loaded .reveal[data-delay="4"] { transition-delay: 320ms; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* Hex monogram micro-interaction */
.hex-mono path:nth-child(2) { transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1); transform-origin: 50% 50%; }
.nav-brand:hover .hex-mono path:nth-child(2) { transform: rotate(30deg); }

/* Card lift on hover */
.lift { transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms ease, background 220ms ease; }
.lift:hover { transform: translateY(-2px); }

/* Link arrow glides */
.link-arrow span { transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1); display: inline-block; }
.link-arrow:hover span { transform: translateX(4px); }
.btn span { transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1); display: inline-block; }
.btn:hover span { transform: translateX(3px); }

/* --------- News ticker (bloomberg-style, fixed below nav) --------- */
.news-ticker {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  height: 32px;
  z-index: 99;
  background: rgba(8, 8, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  overflow: hidden;
}
.news-ticker .nt-tag {
  flex-shrink: 0;
  padding: 0 16px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border-right: 1px solid var(--border-hairline);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-primary);
  font-weight: 500;
}
.news-ticker .nt-tag .live-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); animation: live-pulse 2s infinite; }
.news-ticker .nt-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
}
.news-ticker .nt-scroll {
  display: inline-flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  animation: nt-scroll 50s linear infinite;
  will-change: transform;
}
.news-ticker .nt-group {
  display: inline-flex;
  align-items: center;
  height: 100%;
  flex-shrink: 0;
}
.news-ticker .nt-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 32px;
  position: relative;
}
.news-ticker .nt-row + .nt-row::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}
.news-ticker .nt-modality { color: var(--accent); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; margin-right: 8px; }
.news-ticker .nt-body { color: var(--text-primary); }
@keyframes nt-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.has-ticker .nav { top: 0; }
.has-ticker .hero { padding-top: 200px; }
.has-ticker .paper-hero { padding-top: 192px; }
.has-ticker .news-ticker:hover .nt-scroll { animation-play-state: paused; }

/* --------- Stats bar (4-up with count-up animation) --------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 64px 0;
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}
.stats-bar .stat {
  padding: 0 32px;
  border-left: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stats-bar .stat:first-child { border-left: none; padding-left: 0; }
.stats-bar .stat .n {
  font-size: 64px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.035em;
  color: var(--text-primary);
}
.stats-bar .stat .n .unit { font-size: 0.42em; vertical-align: 0.55em; letter-spacing: 0; color: var(--text-secondary); margin-left: 2px; }
.stats-bar .stat .l {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* --------- Logo strip ("Built by operators from") — CREAM BAND + marquee --------- */
.logo-strip {
  background: var(--bg-paper);
  color: var(--text-ink);
  padding: 72px 0;
  border-top: 1px solid var(--border-paper);
  border-bottom: 1px solid var(--border-paper);
  position: relative;
  overflow: hidden;
}
.logo-strip .lab {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-ink-secondary);
  text-transform: uppercase;
  margin-bottom: 40px;
  text-align: center;
  padding: 0 48px;
}
.logo-strip .row {
  position: relative;
  overflow: hidden;
  width: 100%;
  /* fade edges for marquee effect */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.logo-strip .row-scroll {
  display: inline-flex;
  align-items: center;
  gap: 56px;
  animation: logo-marquee 55s linear infinite;
  padding-right: 56px;
  will-change: transform;
}
.logo-strip:hover .row-scroll { animation-play-state: paused; }
@keyframes logo-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
/* Each img wrapped in a uniform-sized cell for visual consistency */
.logo-strip .row .logo-cell {
  flex-shrink: 0;
  width: 150px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.logo-strip .row .logo-cell img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(100%) contrast(1.2) brightness(0.35);
  transition: opacity 280ms ease, filter 280ms ease;
}
.logo-strip .row .logo-cell img:hover {
  opacity: 1;
  filter: grayscale(0%) contrast(1) brightness(1);
}
/* Legacy img-direct fallback */
.logo-strip .row > img {
  height: 28px;
  width: 140px;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(100%) contrast(1.2) brightness(0.35);
  flex-shrink: 0;
}
@media (prefers-reduced-motion: reduce) {
  .logo-strip .row-scroll { animation: none; }
}
.warm .logo-strip { background: #ebe7dd; border-color: #d6d2c8; }

/* --------- Cycling artifact card (homepage centerpiece) --------- */
.artifact-cycler {
  position: relative;
  padding: 40px 0;
}
.artifact-tabs {
  display: inline-flex;
  gap: 0;
  margin-bottom: 24px;
  border: 1px solid var(--border-hairline);
  border-radius: 2px;
  background: var(--bg-surface);
  padding: 4px;
}
.artifact-tab {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  transition: background 200ms ease, color 200ms ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.artifact-tab:hover { color: var(--text-primary); }
.artifact-tab.is-active { background: var(--bg-elevated); color: var(--text-primary); }
.artifact-tab .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); }
.artifact-tab.is-active .dot { background: var(--accent); }
.artifact-tab[data-status="live"] .dot { background: var(--accent); }
.artifact-tab[data-status="pilot"] .dot { background: transparent; box-shadow: inset 0 0 0 1px var(--text-secondary); }

.artifact-panels { position: relative; min-height: 460px; }
.artifact-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 480ms cubic-bezier(0.22, 1, 0.36, 1);
}
.artifact-panel.is-active { opacity: 1; pointer-events: auto; }

/* Robotics artifact card */
.robo-card { background: rgba(15, 15, 18, 0.6); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid var(--border-hairline); border-radius: 2px; }
.robo-grid { display: grid; grid-template-columns: 6fr 4fr; gap: 0; min-height: 460px; }
.robo-frame {
  position: relative;
  background: linear-gradient(135deg, #0c0c10 0%, #14141b 100%);
  border-right: 1px solid var(--border-hairline);
  overflow: hidden;
}
.robo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-hairline) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  opacity: 0.6;
}
.robo-frame .scene {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
}
.robo-frame .scene .arm {
  width: 200px; height: 200px;
  position: relative;
}
.robo-frame .scene svg { width: 100%; height: 100%; }
.robo-frame .scene .arm path,
.robo-frame .scene .arm line { stroke: var(--accent); stroke-width: 2; fill: none; }
.robo-frame .scene .arm circle { fill: var(--accent); }
.robo-frame .scene .target { width: 28px; height: 28px; border: 1px solid var(--text-primary); border-radius: 2px; opacity: 0.6; animation: pulse-target 3s ease-in-out infinite; }
@keyframes pulse-target { 0%, 100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 0.85; transform: scale(1.05); } }
.robo-frame .scene .caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: absolute;
  bottom: 18px; left: 18px;
}
.robo-frame .scene .ts-badge {
  position: absolute; top: 18px; right: 18px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-primary); letter-spacing: 0.04em;
  padding: 4px 10px; border: 1px solid var(--accent-60);
  background: var(--accent-12); border-radius: 2px;
}
.robo-meta { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.robo-meta .row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border-hairline); }
.robo-meta .row:last-child { border-bottom: none; }
.robo-meta .row .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.robo-meta .row .v { font-family: var(--font-mono); font-size: 13px; color: var(--text-primary); letter-spacing: 0.02em; }

/* Expert eval artifact card */
.eval-card { background: rgba(15, 15, 18, 0.6); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid var(--border-hairline); border-radius: 2px; padding: 32px; min-height: 460px; }
.eval-card .head { display: flex; flex-wrap: wrap; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border-hairline); margin-bottom: 24px; align-items: center; }
.eval-card .pill { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; padding: 4px 10px; border: 1px solid var(--accent-60); color: var(--text-primary); text-transform: uppercase; border-radius: 2px; background: var(--accent-12); }
.eval-card .head .item { display: flex; flex-direction: column; gap: 2px; }
.eval-card .head .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.eval-card .head .v { font-family: var(--font-mono); font-size: 13px; color: var(--text-primary); }
.eval-card .query-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.eval-card .query { font-size: 16px; color: var(--text-primary); line-height: 1.5; margin-bottom: 24px; padding: 14px 16px; background: rgba(8,8,10,0.4); border-left: 2px solid var(--accent); border-radius: 2px; }
.eval-card .rubric { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-bottom: 24px; }
.eval-card .rubric .crit { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border-hairline); }
.eval-card .rubric .name { font-size: 13px; color: var(--text-secondary); }
.eval-card .rubric .score { font-family: var(--font-mono); font-size: 13px; color: var(--text-primary); letter-spacing: 0.02em; }
.eval-card .rubric .score.high { color: #4ade80; }
.eval-card .rubric .score.mid { color: var(--text-primary); }
.eval-card .rubric .score.low { color: #f59e0b; }
.eval-card .reasoning-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.eval-card .reasoning { font-size: 14px; color: var(--text-secondary); line-height: 1.55; padding: 14px 16px; border: 1px solid var(--border-hairline); border-radius: 2px; }
.eval-card .audit { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); letter-spacing: 0.04em; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-hairline); }

/* Multimodal RLHF preference card */
.rlhf-card { background: rgba(15, 15, 18, 0.6); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid var(--border-hairline); border-radius: 2px; padding: 32px; min-height: 460px; }
.rlhf-card .head { display: flex; flex-wrap: wrap; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border-hairline); margin-bottom: 24px; align-items: center; }
.rlhf-card .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.rlhf-card .opt {
  padding: 18px;
  border: 1px solid var(--border-hairline);
  background: rgba(8,8,10,0.4);
  border-radius: 2px;
  position: relative;
}
.rlhf-card .opt.preferred {
  border-color: var(--accent);
  background: var(--accent-08);
}
.rlhf-card .opt .label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.rlhf-card .opt.preferred .label { color: var(--accent); }
.rlhf-card .opt .label .check { display: none; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); position: relative; }
.rlhf-card .opt.preferred .label .check { display: inline-block; }
.rlhf-card .opt .label .check::after { content: ''; position: absolute; left: 4px; top: 6px; width: 6px; height: 3px; border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(-45deg); }
.rlhf-card .opt .text { font-size: 14px; color: var(--text-primary); line-height: 1.55; }
.rlhf-card .rationale-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.rlhf-card .rationale { font-size: 14px; color: var(--text-secondary); line-height: 1.55; padding: 14px 16px; border: 1px solid var(--border-hairline); border-radius: 2px; }
.rlhf-card .meta-row { display: flex; gap: 24px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--border-hairline); margin-top: 18px; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); letter-spacing: 0.02em; }
.rlhf-card .meta-row .k { color: var(--text-muted); }
.rlhf-card .meta-row .v { color: var(--text-primary); margin-left: 6px; }

/* --------- Cases carousel (homepage) --------- */
.cases-carousel { position: relative; margin-top: 48px; }
.cases-carousel .ctrls { position: absolute; top: -64px; right: 0; display: flex; gap: 8px; }
.carousel-btn {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border-line);
  color: var(--text-primary);
  border-radius: 2px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.carousel-btn:hover { background: var(--bg-elevated); border-color: var(--accent-60); }
.carousel-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.cases-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(620px, 1fr);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
  scroll-behavior: smooth;
}
.cases-track::-webkit-scrollbar { display: none; }
.case-card {
  scroll-snap-align: start;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  padding: 40px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 380px;
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
  color: inherit;
}
.case-card:hover { border-color: var(--accent-60); background: var(--bg-elevated); transform: translateY(-2px); }
.case-card.forthcoming { opacity: 0.6; }
.case-card .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--text-muted); text-transform: uppercase; }
.case-card h3 { font-size: 30px; line-height: 1.1; font-weight: 500; letter-spacing: -0.015em; color: var(--text-primary); margin: 0; }
.case-card .desc { color: var(--text-secondary); font-size: 15px; line-height: 1.55; flex: 1; }
.case-card .stats { display: flex; gap: 32px; padding-top: 20px; border-top: 1px solid var(--border-hairline); }
.case-card .stats .s .n { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; color: var(--text-primary); }
.case-card .stats .s .l { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--text-muted); text-transform: uppercase; margin-top: 4px; }
.case-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* --------- Comparison table --------- */
.compare-wrap { padding: 24px 0; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.compare-table thead th {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-line);
  font-weight: 500;
}
.compare-table thead th.them { color: var(--text-secondary); }
.compare-table thead th.us { color: var(--accent); }
.compare-table tbody td {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border-hairline);
  vertical-align: middle;
}
.compare-table .dim { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); width: 22%; }
.compare-table .them-cell { color: var(--text-secondary); width: 38%; }
.compare-table .them-cell::before { content: '×  '; color: var(--text-muted); font-family: var(--font-mono); margin-right: 4px; }
.compare-table .arrow-cell { width: 4%; color: var(--text-muted); font-family: var(--font-mono); text-align: center; }
.compare-table .us-cell { color: var(--text-primary); font-weight: 500; width: 36%; }
.compare-table .us-cell::before { content: '✓  '; color: var(--accent); font-family: var(--font-mono); margin-right: 4px; }

/* --------- Quote band (industry consensus) --------- */
.quote-band {
  padding: 96px 0;
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-surface) 100%);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}
.quote-band .head { margin-bottom: 64px; }
.quote-band .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-hairline);
  border: 1px solid var(--border-hairline);
  border-radius: 2px;
}
.quote-card {
  background: var(--bg-base);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 320px;
}
.quote-card .q {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  line-height: 1.3;
  color: var(--text-primary);
  font-weight: 300;
  letter-spacing: -0.005em;
  flex: 1;
}
.quote-card .attrib {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-top: 1px solid var(--border-hairline);
  padding-top: 20px;
}
.quote-card .attrib .who { color: var(--text-primary); display: block; margin-bottom: 4px; }

/* --------- Warm theme variant for /network --------- */
.warm {
  background: var(--bg-paper);
  color: var(--text-ink);
}
.warm .nav { background: rgba(243, 239, 230, 0.88); border-bottom-color: var(--border-paper); }
.warm .nav-brand, .warm .nav-cta { color: var(--text-ink); }
.warm .nav-cta { border-color: var(--border-paper); }
.warm .nav-cta:hover { background: rgba(0,0,0,0.04); border-color: var(--text-ink); }
.warm .nav-link { color: var(--text-ink-secondary); }
.warm .nav-link:hover { color: var(--text-ink); }
.warm .nav-dropdown { background: #ffffff; border-color: var(--border-paper); }
.warm .nav-dropdown a { color: var(--text-ink-secondary); }
.warm .nav-dropdown a:hover { background: rgba(0,0,0,0.04); color: var(--text-ink); }
.warm .nav-dropdown .nav-dd-meta { color: var(--text-ink-secondary); }
.warm .hero-radial { display: none; }
.warm .display-hero, .warm h2, .warm .h2, .warm h3 { color: var(--text-ink); }
.warm .body-large, .warm .body, .warm .body-small { color: var(--text-ink-secondary); }
.warm .mono-label { color: var(--text-ink-secondary); }
.warm .facet-divider { background: var(--border-paper); }
.warm .section-head .lead { color: var(--text-ink-secondary); }
.warm .btn-primary { background: var(--text-ink); color: var(--bg-paper); border-color: var(--text-ink); }
.warm .btn-primary:hover { background: #2a2a30; border-color: #2a2a30; }
.warm .btn-secondary { color: var(--text-ink); border-color: var(--border-paper); }
.warm .btn-secondary:hover { border-color: var(--text-ink); background: rgba(0,0,0,0.04); }
.warm .link-arrow { color: var(--text-ink); }
.warm .link-arrow:hover { border-color: var(--text-ink); }
.warm .data-table thead th { color: var(--text-ink-secondary); border-color: var(--border-paper); }
.warm .data-table tbody td { color: var(--text-ink-secondary); border-color: var(--border-paper); }
.warm .data-table tbody td.primary { color: var(--text-ink); }
.warm .data-table tbody tr:hover td { color: var(--text-ink); }
.warm .data-table tbody td.mono { color: var(--text-ink); }
.warm .status-dot { color: var(--text-ink-secondary); }
.warm .status-dot.live::before { background: var(--text-ink); }
.warm .status-dot.onboarding::before { background: transparent; box-shadow: inset 0 0 0 1px var(--text-ink); }
.warm .steps { border-color: var(--border-paper); }
.warm .step-row { border-color: var(--border-paper); }
.warm .step-row .step-name, .warm .step-row .step-body { color: var(--text-ink); }
.warm .step-row .step-body { color: var(--text-ink-secondary); }
.warm .value-list .num { color: var(--text-ink); }
.warm .value-row .title { color: var(--text-ink); }
.warm .value-row .text { color: var(--text-ink-secondary); }
.warm .form input, .warm .form textarea, .warm .form select {
  background: #ffffff;
  border-color: var(--border-paper);
  color: var(--text-ink);
}
.warm .form input:focus, .warm .form textarea:focus { border-color: var(--text-ink); }
.warm .form label { color: var(--text-ink-secondary); }
.warm .form .radios label, .warm .form .checks label {
  background: #ffffff;
  border-color: var(--border-paper);
  color: var(--text-ink-secondary);
}
.warm .form .radios label.selected, .warm .form .checks label.selected {
  background: var(--text-ink);
  border-color: var(--text-ink);
  color: var(--bg-paper);
}
.warm .form-card { background: #ffffff; border-color: var(--border-paper); }
.warm .form-card-bg { background: radial-gradient(ellipse at center, rgba(0,0,0,0.04) 0%, transparent 70%); }
.warm .news-ticker { background: rgba(243, 239, 230, 0.92); border-bottom-color: var(--border-paper); color: var(--text-ink-secondary); }
.warm .news-ticker .nt-tag { background: #ffffff; border-right-color: var(--border-paper); color: var(--text-ink); }
.warm .news-ticker .nt-date { color: var(--text-ink-secondary); }
.warm .news-ticker .nt-body { color: var(--text-ink); }
.warm .dual-cta { background: var(--bg-paper); border-color: var(--border-paper); }
.warm .dual-cta .head { color: var(--text-ink); }
.warm .footer { background: var(--text-ink); color: var(--bg-paper); border-top: none; }
.warm .footer-col h4 { color: var(--bg-paper); opacity: 0.5; }
.warm .footer-col a, .warm .footer-col p { color: var(--bg-paper); opacity: 0.75; }
.warm .footer-col a:hover { opacity: 1; }
.warm .footer-sig { color: var(--bg-paper); opacity: 0.5; border-top-color: rgba(243,239,230,0.18); }

/* Warm theme partner-applies card */
.warm-card {
  background: #ffffff;
  border: 1px solid var(--border-paper);
  padding: 32px;
  border-radius: 2px;
}
.warm-card h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-ink-secondary);
  margin: 0 0 24px;
  font-weight: 500;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-paper);
}

/* --------- Mobile additions --------- */
@media (max-width: 900px) {
  .news-ticker { font-size: 10px; }
  .has-ticker .hero { padding-top: 168px; }
  .stats-bar { grid-template-columns: 1fr 1fr; gap: 32px 0; padding: 40px 0; }
  .stats-bar .stat { padding: 0 16px; border-left: none; border-top: 1px solid var(--border-hairline); padding-top: 24px; }
  .stats-bar .stat:nth-child(-n+2) { border-top: none; padding-top: 0; }
  .stats-bar .stat .n { font-size: 44px; }
  .logo-strip .row { gap: 24px; justify-content: center; }
  .logo-strip .row img { height: 18px; }
  .artifact-tabs { flex-wrap: wrap; }
  .artifact-tab { font-size: 10px; padding: 8px 12px; }
  .artifact-panels { min-height: 0; }
  .artifact-panel { position: relative; }
  .artifact-panel:not(.is-active) { display: none; }
  .robo-grid { grid-template-columns: 1fr; }
  .robo-frame { min-height: 220px; border-right: none; border-bottom: 1px solid var(--border-hairline); }
  .eval-card .rubric { grid-template-columns: 1fr; }
  .rlhf-card .pair { grid-template-columns: 1fr; }
  .cases-track { grid-auto-columns: minmax(280px, 85vw); gap: 16px; }
  .case-card { padding: 28px; min-height: 0; }
  .case-card h3 { font-size: 22px; }
  .cases-carousel .ctrls { top: -48px; }
  .compare-table thead th { padding: 12px 8px; font-size: 9px; }
  .compare-table tbody td { padding: 16px 8px; font-size: 13px; }
  .compare-table .dim { width: auto; display: block; padding-bottom: 4px; }
  .compare-table .them-cell, .compare-table .us-cell { width: auto; display: block; padding-top: 4px; padding-bottom: 4px; }
  .compare-table .arrow-cell { display: none; }
  .compare-table tbody tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--border-hairline); }
  .compare-table tbody td { border-bottom: none; padding: 4px 0; }
  .quote-band .grid { grid-template-columns: 1fr; }
  .quote-card { min-height: 0; }
  .quote-card .q { font-size: 18px; }
}

/* --------- Cream band (Allston rhythm) for cases/CTA on dark pages --------- */
.cream-band {
  background: var(--bg-paper);
  color: var(--text-ink);
  position: relative;
}
.cream-band h2, .cream-band .h2, .cream-band h3 { color: var(--text-ink); }
.cream-band .body-large, .cream-band .body, .cream-band p { color: var(--text-ink-secondary); }
.cream-band .mono-label { color: var(--text-ink-secondary); }
.cream-band .section-head .lead { color: var(--text-ink-secondary); }
.cream-band .link-arrow { color: var(--text-ink); }
.cream-band .link-arrow:hover { border-color: var(--text-ink); }
.cream-band .carousel-btn { border-color: var(--text-ink); color: var(--text-ink); background: #ffffff; }
.cream-band .carousel-btn:hover { border-color: var(--text-ink); background: var(--text-ink); color: var(--bg-paper); }
.cream-band .case-card {
  background: #ffffff;
  border-color: var(--border-paper);
}
.cream-band .case-card:hover {
  border-color: var(--text-ink);
  background: #ffffff;
  box-shadow: 0 12px 32px -16px rgba(0,0,0,0.18);
}
.cream-band .case-card h3 { color: var(--text-ink); }
.cream-band .case-card .desc { color: var(--text-ink-secondary); }
.cream-band .case-card .tag { color: var(--text-ink-secondary); }
.cream-band .case-card .stats { border-color: var(--border-paper); }
.cream-band .case-card .stats .s .n { color: var(--text-ink); }
.cream-band .case-card .stats .s .l { color: var(--text-ink-secondary); }
.cream-band .case-card .foot .mono-label { color: var(--text-ink-secondary); }
.cream-band .case-card .foot .mono-label[style*="accent"] { color: var(--text-ink) !important; }
.cream-band .btn-primary { background: var(--text-ink); color: var(--bg-paper); border-color: var(--text-ink); }
.cream-band .btn-primary:hover { background: #2a2a30; border-color: #2a2a30; }
.cream-band .btn-secondary { color: var(--text-ink); border-color: var(--border-paper); }
.cream-band .btn-secondary:hover { border-color: var(--text-ink); background: rgba(0,0,0,0.04); }
.cream-band .facet-divider { background: var(--border-paper); }

/* Cream→dark gradient closing CTA (like case study) */
.cream-close {
  background: linear-gradient(to bottom, var(--bg-paper) 0%, var(--bg-paper) 60%, var(--bg-base) 100%);
  padding: 140px 0 160px;
  text-align: center;
}
.cream-close .head {
  font-size: 64px;
  letter-spacing: -0.025em;
  font-weight: 500;
  line-height: 1.04;
  margin-bottom: 24px;
  color: var(--text-ink);
}
.cream-close .reassurance {
  color: var(--text-ink-secondary);
  font-size: 17px;
  margin-bottom: 48px;
}
.cream-close .actions { display: inline-flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.cream-close .btn-primary { background: var(--text-ink); color: var(--bg-paper); border-color: var(--text-ink); }
.cream-close .btn-primary:hover { background: #2a2a30; border-color: #2a2a30; }
.cream-close .btn-secondary { color: var(--text-ink); border-color: var(--border-paper); }
.cream-close .btn-secondary:hover { border-color: var(--text-ink); background: rgba(0,0,0,0.04); }
@media (max-width: 900px) {
  .cream-close { padding: 80px 0 100px; }
  .cream-close .head { font-size: 36px; }
}

/* --------- Quote band — editorial layout (no decorative quote glyph) --------- */
.quote-band .grid {
  background: transparent;
  border: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 32px;
}
.quote-card {
  background: transparent;
  padding: 0 40px;
  border-right: 1px solid var(--border-hairline);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 280px;
}
.quote-card:first-child { padding-left: 0; }
.quote-card:last-child { padding-right: 0; border-right: none; }

/* Accent rule at top */
.quote-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 1px;
  background: var(--accent);
}
.quote-card:not(:first-child)::before { left: 40px; }

.quote-card .quote-logo { margin: 24px 0 0; }

/* No decorative " glyph — italic serif carries the editorial weight */
.quote-card .q::before { content: none; display: none; }
.quote-card .q {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  flex: 1;
  margin: 0;
}

/* Tight attribution */
.quote-card .attrib {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-top: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quote-card .attrib .who {
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}
.quote-card .attrib .who::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .quote-band .grid { grid-template-columns: 1fr; gap: 0; }
  .quote-card {
    padding: 32px 0;
    border-right: none;
    border-bottom: 1px solid var(--border-hairline);
    min-height: 0;
  }
  .quote-card:first-child { padding-top: 0; }
  .quote-card:last-child { border-bottom: none; }
  .quote-card:not(:first-child)::before { left: 0; }
  .quote-card .q { font-size: 19px; }
}

/* --------- Hover state upgrade for mod-cell --------- */
.mod-cell {
  position: relative;
}
.mod-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid transparent;
  transition: border-color 240ms ease;
}
.mod-cell:hover::after { border-color: var(--accent-60); }
.mod-cell:hover .link-arrow span { transform: translateX(4px); }

/* --------- Process flow visual rules between cols --------- */
.flow-arrow {
  position: relative;
}
.flow-arrow::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--border-hairline);
  z-index: 0;
}
.flow-arrow {
  z-index: 1;
  background: var(--bg-base);
}
.flow-col { position: relative; z-index: 1; }

/* --------- Forthcoming case tile treatment (replaces broken 0.45 opacity) --------- */
.case-tile.in-production {
  opacity: 1;
  position: relative;
}
.case-tile.in-production::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-60);
}
.case-tile.in-production .tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.case-tile.in-production .tag::before {
  content: 'IN PRODUCTION';
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  padding: 3px 8px;
  border: 1px solid var(--accent-60);
  color: var(--text-primary);
  background: var(--accent-12);
  border-radius: 2px;
}
.case-tile.in-production h2 { color: var(--text-secondary); }
.case-tile.in-production p { color: var(--text-muted); }
.case-tile .progress {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.case-tile .progress .bar {
  flex: 1;
  height: 2px;
  background: var(--border-hairline);
  position: relative;
  overflow: hidden;
}
.case-tile .progress .bar span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--accent);
  width: var(--p, 50%);
}

/* --------- Status pill for in-production case cards --------- */
.case-card .status-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  padding: 3px 8px;
  border: 1px solid var(--accent-60);
  color: var(--text-primary);
  background: var(--accent-12);
  border-radius: 2px;
  margin-right: 12px;
  display: inline-block;
  vertical-align: middle;
}
.cream-band .case-card .status-pill {
  background: rgba(0,0,0,0.06);
  border-color: var(--border-paper);
  color: var(--text-ink);
}
.case-card.in-production { opacity: 0.92; }
.case-card.in-production:hover { opacity: 1; }

/* --------- Centered hero (homepage) --------- */
.hero-centered { text-align: left; padding-bottom: 80px; }
.hero-centered .hero-ctas { margin-top: 56px; }

/* --------- Stats bar wrap (no padding) --------- */
.stats-bar-wrap {
  padding: 0;
  background: var(--bg-base);
}
.stats-bar-wrap .stats-bar {
  border-top: none;
  border-bottom: 1px solid var(--border-hairline);
}

/* --------- Robotics trajectory plot (upgrade from stick figure) --------- */
.trajectory-plot {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.trajectory-plot .traj-svg {
  flex: 1;
  width: 100%;
  height: auto;
}
.trajectory-plot .traj-labels {
  display: flex;
  justify-content: space-between;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  border-top: 1px solid var(--border-hairline);
}
.trajectory-plot .ts-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}
.trajectory-plot .caption {
  position: absolute;
  bottom: 38px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  z-index: 2;
}
.robo-frame::before { display: none; }

/* --------- Hover effects — comprehensive polish pass --------- */

/* Nav: subtle underline grow on links */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--text-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.has-dropdown::after { display: none; }

/* Nav scroll shadow */
.nav.is-scrolled {
  box-shadow: 0 1px 0 rgba(255,255,255,0.03), 0 8px 24px -12px rgba(0,0,0,0.6);
}
.warm .nav.is-scrolled {
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 8px 24px -12px rgba(0,0,0,0.12);
}

/* Step rows: hover row state */
.step-row {
  transition: background 240ms ease, padding 240ms ease;
  padding-left: 0;
}
.step-row:hover {
  background: linear-gradient(to right, var(--bg-surface) 0%, transparent 100%);
  padding-left: 16px;
}
.warm .step-row:hover {
  background: linear-gradient(to right, rgba(0,0,0,0.03) 0%, transparent 100%);
}

/* Data table rows: hover row glow */
.data-table tbody tr {
  transition: background 200ms ease;
}
.data-table tbody tr:hover {
  background: var(--bg-surface);
}
.warm .data-table tbody tr:hover {
  background: rgba(0,0,0,0.025);
}

/* Compare table rows: hover */
.compare-table tbody tr {
  transition: background 200ms ease;
}
.compare-table tbody tr:hover {
  background: var(--bg-surface);
}

/* Artifact tab keyboard focus */
.artifact-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Tab dot grows on active */
.artifact-tab .dot {
  transition: transform 240ms ease, background 240ms ease, box-shadow 240ms ease;
}
.artifact-tab.is-active .dot {
  transform: scale(1.15);
  box-shadow: 0 0 0 4px var(--accent-12);
}

/* Buttons: stronger affordance */
.btn-primary {
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset;
  transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -8px rgba(30, 64, 175, 0.5);
}
.btn-secondary {
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease, color 200ms ease;
}
.btn-secondary:hover {
  transform: translateY(-1px);
}

/* Form inputs: focus ring */
.form input:focus, .form textarea:focus, .form select:focus {
  border-color: var(--accent-60);
  box-shadow: 0 0 0 3px var(--accent-08);
}
.warm .form input:focus, .warm .form textarea:focus {
  border-color: var(--text-ink);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

/* Focus visible everywhere */
button:focus-visible, a:focus-visible, .cal-slot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* News ticker: speed up + clearer */
.news-ticker .nt-scroll { animation: nt-scroll 45s linear infinite; }
@media (max-width: 900px) {
  .news-ticker .nt-scroll { animation-duration: 35s; }
}

/* Page transitions: subtle fade on link click (perceived speed) */
body { opacity: 1; transition: opacity 120ms ease; }
body.is-leaving { opacity: 0.6; }

/* --------- Modality cell icons --------- */
.mod-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  color: var(--text-secondary);
  transition: color 240ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.mod-cell:hover .mod-icon {
  color: var(--accent);
  transform: translateY(-2px);
}
.mod-icon svg { width: 100%; height: 100%; display: block; }

/* --------- How we work — numbered cards (replaces flat list) --------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-hairline);
  border: 1px solid var(--border-hairline);
  border-radius: 2px;
  position: relative;
}
.work-cell {
  background: var(--bg-surface);
  padding: 40px 32px 36px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 260px;
  transition: background 200ms ease;
}
.work-cell:hover { background: var(--bg-elevated); }
.work-cell .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}
.work-cell .name {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  line-height: 1.05;
}
.work-cell .desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}
.work-cell .footnote {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--border-hairline);
}
.work-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid transparent;
  transition: border-color 240ms ease;
}
.work-cell:hover::after { border-color: var(--accent-60); }

@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-cell { min-height: 0; padding: 28px; }
}

/* --------- Hero faceted quartz anchor (animated) --------- */
.hero { position: relative; overflow: hidden; }
.hero-facet {
  position: absolute !important;
  top: 50% !important;
  right: -160px !important;
  margin-top: -300px !important;
  width: 600px !important;
  height: 600px !important;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}
.hero-facet svg {
  display: block;
  width: 600px !important;
  height: 600px !important;
  overflow: visible;
}
/* Subtle ambient animation — no rotation (kills the spinner feel).
   Only the inner glow breathes slowly and the dot has a slow pulse. */
.hero-facet .facet-glow {
  transform-origin: 300px 300px;
  transform-box: fill-box;
  animation: facet-breathe 9s ease-in-out infinite;
}
.hero-facet .facet-dot {
  animation: facet-dot-pulse 3.6s ease-in-out infinite;
}
@keyframes facet-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
@keyframes facet-dot-pulse {
  0%, 100% { r: 3; opacity: 0.6; }
  50% { r: 4.5; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-facet .facet-glow, .hero-facet .facet-dot { animation: none; }
}
.hero .shell { position: relative; z-index: 2; }
.hero .hero-radial { z-index: 0; }
@media (max-width: 900px) {
  .hero-facet { width: 420px !important; height: 420px !important; right: -200px !important; margin-top: -210px !important; opacity: 0.45; }
  .hero-facet svg { width: 420px !important; height: 420px !important; }
}

/* --------- Quote card logo --------- */
.quote-card .quote-logo {
  height: 28px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
  opacity: 0.55;
  margin-bottom: 16px;
  transition: opacity 240ms ease;
}
.quote-card:hover .quote-logo { opacity: 0.95; }

/* --------- Compare table animation --------- */
body.js-loaded .compare-table tbody tr {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1), transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
body.js-loaded .compare-table.is-visible tbody tr { opacity: 1; transform: translateY(0); }
body.js-loaded .compare-table.is-visible tbody tr:nth-child(1) { transition-delay:   0ms; }
body.js-loaded .compare-table.is-visible tbody tr:nth-child(2) { transition-delay:  90ms; }
body.js-loaded .compare-table.is-visible tbody tr:nth-child(3) { transition-delay: 180ms; }
body.js-loaded .compare-table.is-visible tbody tr:nth-child(4) { transition-delay: 270ms; }
body.js-loaded .compare-table.is-visible tbody tr:nth-child(5) { transition-delay: 360ms; }
body.js-loaded .compare-table.is-visible tbody tr:nth-child(6) { transition-delay: 450ms; }

/* Animated ✗→✓ marker glow on hover */
.compare-table tbody tr { transition: background 240ms ease; }
.compare-table tbody tr:hover { background: linear-gradient(to right, transparent 0%, var(--accent-08) 60%, var(--accent-12) 100%); }
.compare-table .us-cell::before { transition: text-shadow 240ms ease; }
.compare-table tbody tr:hover .us-cell::before { text-shadow: 0 0 12px var(--accent); }

/* Quartz column lifts on hover row */
.compare-table .us-cell { position: relative; }
.compare-table tbody tr:hover .us-cell { color: var(--text-primary); }

/* --------- Cal.com embed modal --------- */
.modal.modal-large {
  max-width: 1080px;
  width: 96vw;
  height: auto;
  max-height: 94vh;
  padding: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#cal-embed-container {
  flex: 1 1 auto;
  min-height: 640px;
  width: 100%;
  border-radius: 6px;
  overflow: auto;
  position: relative;
}
.cal-embed-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  z-index: 0;
  pointer-events: none;
}
/* Cal injects its own iframe — let it fill width + grow to its natural height */
#cal-embed-container iframe {
  position: relative;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  min-height: 640px !important;
  border: none;
}
#cal-embed-container.cal-ready .cal-embed-loading { display: none; }

/* --------- Trajectory plot subtle animation (no spinner feel) --------- */
/* Contact dot pulse */
.traj-svg circle[cx="244"] {
  transform-origin: 244px 140px;
  transform-box: fill-box;
  animation: traj-contact-pulse 2.8s ease-in-out infinite;
}
@keyframes traj-contact-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.7; }
}
/* Time cursor (the vertical dashed line) breathes opacity */
.traj-svg line[stroke-dasharray] {
  animation: traj-cursor-breathe 4s ease-in-out infinite;
}
@keyframes traj-cursor-breathe {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.75; }
}
/* Joint trajectory lines: subtle stroke-dash shimmer */
.traj-svg path {
  stroke-dasharray: 800;
  stroke-dashoffset: 0;
  animation: traj-shimmer 12s linear infinite;
}
.traj-svg path:nth-child(1) { animation-delay: 0s; }
.traj-svg path:nth-child(2) { animation-delay: 0.8s; }
.traj-svg path:nth-child(3) { animation-delay: 1.6s; }
.traj-svg path:nth-child(4) { animation-delay: 2.4s; }
.traj-svg path:nth-child(5) { animation-delay: 3.2s; }
.traj-svg path:nth-child(6) { animation-delay: 4.0s; }
.traj-svg path:nth-child(7) { animation-delay: 4.8s; }
@keyframes traj-shimmer {
  0% { stroke-dashoffset: 800; }
  100% { stroke-dashoffset: -800; }
}
@media (prefers-reduced-motion: reduce) {
  .traj-svg circle, .traj-svg line, .traj-svg path { animation: none; }
}

/* --------- Artifact tabs — upgraded interactivity --------- */
.artifact-tabs {
  position: relative;
  padding: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 4px;
  gap: 2px;
}
.artifact-tab {
  position: relative;
  padding: 10px 18px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition:
    background 240ms cubic-bezier(0.22, 1, 0.36, 1),
    color 240ms ease,
    transform 200ms ease;
}
.artifact-tab:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.artifact-tab.is-active {
  background: var(--bg-base);
  color: var(--text-primary);
  box-shadow: 0 0 0 1px var(--accent-60), 0 4px 14px -6px var(--accent-60);
}
.artifact-tab.is-active::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 4px;
  height: 1px;
  background: var(--accent);
  animation: tab-underline 320ms cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
}
@keyframes tab-underline {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}
.artifact-tab .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: background 240ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.artifact-tab.is-active .dot {
  background: var(--accent);
  transform: scale(1.4);
  box-shadow: 0 0 12px var(--accent-60), 0 0 0 4px var(--accent-12);
}
.artifact-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Panel transitions: slide + fade between tabs */
.artifact-panels { position: relative; }
.artifact-panel {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 360ms cubic-bezier(0.22, 1, 0.36, 1), transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.artifact-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Status pill on hover */
.artifact-tab:hover .dot { background: var(--text-primary); }

/* --------- Mobile responsive pass (R7-D) --------- */
@media (max-width: 760px) {
  /* Stats bar — 2x2 grid */
  .stats-bar { grid-template-columns: 1fr 1fr; gap: 32px 0; padding: 40px 0; }
  .stats-bar .stat { padding: 0 16px; border-left: none; border-top: 1px solid var(--border-hairline); padding-top: 24px; }
  .stats-bar .stat:nth-child(-n+2) { border-top: none; padding-top: 0; }
  .stats-bar .stat .n { font-size: 40px; }

  /* Logo strip — tighter mobile spacing */
  .logo-strip { padding: 48px 0; }
  .logo-strip .lab { font-size: 10px; margin-bottom: 28px; padding: 0 24px; }
  .logo-strip .row-scroll { gap: 36px; padding-right: 36px; animation-duration: 38s; }
  .logo-strip .row .logo-cell { width: 110px; height: 24px; }

  /* News ticker on mobile */
  .news-ticker { font-size: 10px; }
  .news-ticker .nt-tag { padding: 0 12px; }
  .news-ticker .nt-row { padding: 0 18px; gap: 8px; }

  /* Hero — kill facet on mobile (already small but compounds with text) */
  .hero-facet { opacity: 0.25; }
  .hero .display-hero { font-size: 48px; }
  .hero-centered .hero-ctas { margin-top: 32px; }

  /* Modality grid — single column at mobile */
  .mod-grid.mod-grid-4 { grid-template-columns: 1fr; }
  .mod-cell { min-height: 0; padding: 24px; }
  .mod-grid-4 .mod-cell { padding: 24px; min-height: 0; }
  .mod-icon, .mod-grid-4 .mod-icon { width: 32px; height: 32px; margin-bottom: 16px; }

  /* Artifact cycler — tabs wrap, panels stack */
  .artifact-cycler { padding: 16px 0; }
  .artifact-tabs { flex-wrap: wrap; }
  .artifact-tab { font-size: 10px; padding: 8px 12px; flex: 1 1 calc(50% - 4px); justify-content: center; }
  .artifact-panels { min-height: 0; }
  .artifact-panel { position: relative; }
  .artifact-panel:not(.is-active) { display: none; }

  /* Sample card / robo card / eval card / rlhf card — stack content */
  .sample-strip { gap: 12px; padding: 12px 16px; }
  .sample-strip .item { font-size: 11px; }
  .robo-grid { grid-template-columns: 1fr; }
  .robo-frame { min-height: 240px; border-right: none; border-bottom: 1px solid var(--border-hairline); }
  .robo-meta .row { grid-template-columns: 100px 1fr; gap: 12px; padding: 8px 0; font-size: 11px; }
  .eval-card .rubric { grid-template-columns: 1fr; }
  .rlhf-card .pair { grid-template-columns: 1fr; }
  .eval-card, .rlhf-card { padding: 24px 16px; }

  /* Work cells — single column */
  .work-grid { grid-template-columns: 1fr; }
  .work-cell { min-height: 0; padding: 24px; }
  .work-cell .name { font-size: 22px; }

  /* Compare table — single column with key:value pairs */
  .compare-table thead { display: none; }
  .compare-table tbody tr { display: block; padding: 20px 0; border-bottom: 1px solid var(--border-hairline); }
  .compare-table tbody td { display: block; padding: 4px 0; border-bottom: none; }
  .compare-table .dim { width: auto; font-size: 11px; padding-bottom: 8px; }
  .compare-table .them-cell, .compare-table .us-cell { width: auto; font-size: 14px; padding: 6px 0; }
  .compare-table .arrow-cell { display: none; }

  /* Quote band — single column */
  .quote-band { padding: 64px 0; }
  .quote-band .grid { grid-template-columns: 1fr; }
  .quote-card { padding: 32px 24px; min-height: 0; border-right: none; border-bottom: 1px solid var(--border-hairline); }
  .quote-card:last-child { border-bottom: none; }
  .quote-card .q { font-size: 18px; }
  .quote-card .q::before { font-size: 56px; }

  /* Cases carousel — narrower cards on mobile */
  .cases-carousel { margin-top: 32px; }
  .cases-carousel .ctrls { top: -48px; }
  .cases-track { grid-auto-columns: minmax(280px, 88vw); gap: 16px; }
  .case-card { padding: 24px; min-height: 0; }
  .case-card h3 { font-size: 20px; }
  .case-card .stats { gap: 16px; flex-wrap: wrap; }
  .case-card .stats .s .n { font-size: 22px; }

  /* Closing CTA */
  .cream-close { padding: 80px 0 100px; }
  .cream-close .head { font-size: 32px; }
  .cream-close .reassurance { font-size: 15px; }

  /* Footer — 2x2 grid on mobile */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* Cal modal — full screen on mobile */
  .modal-backdrop { padding: 0; }
  .modal.modal-large { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; border-radius: 0; padding: 16px; padding-top: 48px; }
  .modal-close { top: 12px; right: 12px; }
}

@media (max-width: 480px) {
  .display-hero { font-size: 38px; line-height: 1.05; }
  .hero-sub { font-size: 16px; }
  .stats-bar .stat .n { font-size: 32px; }
  .h2, h2 { font-size: 24px; }
  .editorial-quote { font-size: 24px; }
  .nav-cta { padding: 6px 10px; font-size: 12px; }
  .btn { font-size: 13px; padding: 10px 16px; }
}

/* --------- FAQ accordion (replaces flat list) --------- */
.faq {
  border-top: 1px solid var(--border-hairline);
}
.faq-item {
  border-bottom: 1px solid var(--border-hairline);
  padding: 0;
  transition: background 200ms ease;
}
.faq-item:hover { background: var(--bg-surface); }
.warm .faq-item:hover { background: rgba(0,0,0,0.025); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 16px 28px 0;
  position: relative;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  padding-right: 48px;
  display: block;
  user-select: none;
}
.warm .faq-item summary { color: var(--text-ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-9px) rotate(45deg);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), color 200ms ease;
  color: var(--text-muted);
}
.faq-item[open] summary::after {
  transform: translateY(-3px) rotate(-135deg);
  color: var(--accent);
}
.warm .faq-item[open] summary::after { color: var(--text-ink); }
.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.faq-body {
  padding: 0 80px 32px 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  max-width: 760px;
  /* slide-in animation when opened */
  animation: faq-slide 360ms cubic-bezier(0.22, 1, 0.36, 1);
}
.warm .faq-body { color: var(--text-ink-secondary); }
.faq-body a { color: var(--text-primary); border-bottom: 1px solid var(--accent-60); }
.warm .faq-body a { color: var(--text-ink); border-bottom-color: var(--text-ink); }
@keyframes faq-slide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------- Form msg success/error --------- */
.form-msg {
  padding: 14px 16px;
  border-radius: 2px;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 16px;
  border: 1px solid transparent;
}
.form-msg-success {
  background: var(--accent-08);
  border-color: var(--accent-60);
  color: var(--text-primary);
}
.warm .form-msg-success {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--text-ink);
  color: var(--text-ink);
}
.form-msg-error {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.5);
  color: #f59e0b;
}

/* --------- Section head alignment fix (heading + lead) --------- */
.section-head {
  align-items: end;
}
.section-head > div { display: flex; flex-direction: column; justify-content: flex-end; }
.section-head .lead { margin: 0; padding-bottom: 0; }
@media (max-width: 900px) {
  .section-head { align-items: start; }
}

/* ============================================================
   R8 — Artifact panel animations + spacing polish
   ============================================================ */

/* --------- Voice waveform: ambient ripple + per-bar entrance --------- */
.waveform { position: relative; }
.wave-bar {
  transform-origin: center;
  animation: wave-breathe var(--wave-dur, 2.4s) ease-in-out infinite;
  animation-delay: var(--wave-delay, 0s);
}
.wave-s1 { animation-name: wave-breathe-1; }
.wave-s2 { animation-name: wave-breathe-2; }
@keyframes wave-breathe-1 {
  0%, 100% { transform: scaleY(1); opacity: 0.85; }
  50% { transform: scaleY(1.18); opacity: 1; }
}
@keyframes wave-breathe-2 {
  0%, 100% { transform: scaleY(1); opacity: 0.9; }
  50% { transform: scaleY(1.25); opacity: 1; }
}
/* Per-bar stagger via inline style */
.waveform .wave-bar:nth-child(8n+1) { animation-delay: 0s; }
.waveform .wave-bar:nth-child(8n+2) { animation-delay: 0.15s; }
.waveform .wave-bar:nth-child(8n+3) { animation-delay: 0.3s; }
.waveform .wave-bar:nth-child(8n+4) { animation-delay: 0.45s; }
.waveform .wave-bar:nth-child(8n+5) { animation-delay: 0.6s; }
.waveform .wave-bar:nth-child(8n+6) { animation-delay: 0.75s; }
.waveform .wave-bar:nth-child(8n+7) { animation-delay: 0.9s; }
.waveform .wave-bar:nth-child(8n+8) { animation-delay: 1.05s; }

/* Transcript lines: stagger fade-in when voice panel becomes active */
.artifact-panel[data-panel="voice"].is-active .transcript .line {
  animation: line-in 520ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.artifact-panel[data-panel="voice"].is-active .transcript .line:nth-child(1) { animation-delay: 200ms; }
.artifact-panel[data-panel="voice"].is-active .transcript .line:nth-child(2) { animation-delay: 350ms; }
.artifact-panel[data-panel="voice"].is-active .transcript .line:nth-child(3) { animation-delay: 500ms; }
.artifact-panel[data-panel="voice"].is-active .transcript .line:nth-child(4) { animation-delay: 650ms; }
@keyframes line-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------- Expert eval: rubric scores count-up + reasoning fade-in --------- */
.artifact-panel[data-panel="eval"].is-active .rubric .crit {
  animation: crit-in 480ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.artifact-panel[data-panel="eval"].is-active .rubric .crit:nth-child(1) { animation-delay: 80ms; }
.artifact-panel[data-panel="eval"].is-active .rubric .crit:nth-child(2) { animation-delay: 160ms; }
.artifact-panel[data-panel="eval"].is-active .rubric .crit:nth-child(3) { animation-delay: 240ms; }
.artifact-panel[data-panel="eval"].is-active .rubric .crit:nth-child(4) { animation-delay: 320ms; }
.artifact-panel[data-panel="eval"].is-active .rubric .crit:nth-child(5) { animation-delay: 400ms; }
.artifact-panel[data-panel="eval"].is-active .rubric .crit:nth-child(6) { animation-delay: 480ms; }
@keyframes crit-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.artifact-panel[data-panel="eval"].is-active .reasoning {
  animation: reasoning-in 700ms cubic-bezier(0.22, 1, 0.36, 1) 560ms backwards;
}
@keyframes reasoning-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.eval-card .rubric .score.high { animation: score-pulse 3s ease-in-out infinite; }
@keyframes score-pulse {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50% { text-shadow: 0 0 12px rgba(74, 222, 128, 0.5); }
}

/* --------- RLHF preference: preferred-card glow pulse + check shimmer --------- */
.rlhf-card .opt.preferred {
  animation: rlhf-glow 3s ease-in-out infinite;
}
@keyframes rlhf-glow {
  0%, 100% { box-shadow: 0 0 0 1px var(--accent), 0 0 0 0 var(--accent-12); }
  50% { box-shadow: 0 0 0 1px var(--accent), 0 0 18px 4px var(--accent-12); }
}
.rlhf-card .opt.preferred .label .check {
  animation: check-bounce 2.4s ease-in-out infinite;
}
@keyframes check-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.artifact-panel[data-panel="rlhf"].is-active .opt {
  animation: opt-in 520ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.artifact-panel[data-panel="rlhf"].is-active .opt:nth-child(1) { animation-delay: 100ms; }
.artifact-panel[data-panel="rlhf"].is-active .opt:nth-child(2) { animation-delay: 200ms; }
@keyframes opt-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------- Robotics: trace ID, meta rows fade-in --------- */
.artifact-panel[data-panel="robotics"].is-active .robo-meta .row {
  animation: row-in 460ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.artifact-panel[data-panel="robotics"].is-active .robo-meta .row:nth-child(1) { animation-delay: 100ms; }
.artifact-panel[data-panel="robotics"].is-active .robo-meta .row:nth-child(2) { animation-delay: 160ms; }
.artifact-panel[data-panel="robotics"].is-active .robo-meta .row:nth-child(3) { animation-delay: 220ms; }
.artifact-panel[data-panel="robotics"].is-active .robo-meta .row:nth-child(4) { animation-delay: 280ms; }
.artifact-panel[data-panel="robotics"].is-active .robo-meta .row:nth-child(5) { animation-delay: 340ms; }
.artifact-panel[data-panel="robotics"].is-active .robo-meta .row:nth-child(6) { animation-delay: 400ms; }
@keyframes row-in {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* --------- Design polish: tighten artifact card spacing --------- */
.sample-card, .robo-card, .eval-card, .rlhf-card {
  border-radius: 4px;
}
.sample-strip {
  padding: 16px 24px;
  gap: 28px;
}
.sample-strip .item { gap: 4px; }
.sample-strip .k { font-size: 9px; }
.sample-strip .v { font-size: 12px; }
.waveform {
  padding: 28px 24px 10px;
  height: 110px;
}
.time-axis {
  padding: 0 24px 14px;
  font-size: 10px;
}
.transcript {
  padding: 22px 24px;
}
.transcript .line { padding: 5px 0; }
.transcript .text { font-size: 14px; }
.sample-foot {
  padding: 18px 24px;
  gap: 20px;
}
.sample-foot .manifest { font-size: 10px; }

/* All 4 cards = same min-height so panels don't jump on tab switch */
.artifact-panels {
  min-height: 580px;
}
.sample-card, .robo-card, .eval-card, .rlhf-card {
  min-height: 580px;
}

/* Eval card spacing tighter */
.eval-card { padding: 26px 28px; }
.eval-card .head { gap: 20px; padding-bottom: 16px; margin-bottom: 20px; }
.eval-card .query { padding: 12px 14px; margin-bottom: 20px; }
.eval-card .rubric { gap: 8px 24px; margin-bottom: 20px; }
.eval-card .rubric .crit { padding: 8px 0; }
.eval-card .reasoning { padding: 12px 14px; }

/* RLHF card spacing tighter */
.rlhf-card { padding: 26px 28px; }
.rlhf-card .head { gap: 20px; padding-bottom: 16px; margin-bottom: 20px; }
.rlhf-card .query { font-size: 13px; padding: 10px 12px; margin-bottom: 16px; }
.rlhf-card .opt { padding: 16px; }
.rlhf-card .opt .text { font-size: 13px; }
.rlhf-card .rationale { padding: 12px 14px; font-size: 13px; }
.rlhf-card .meta-row { padding-top: 14px; margin-top: 14px; }

@media (max-width: 760px) {
  .artifact-panels { min-height: 0; }
  .sample-card, .robo-card, .eval-card, .rlhf-card { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wave-bar { animation: none; }
  .opt.preferred { animation: none; }
  .rubric .score.high { animation: none; }
  .check { animation: none; }
}

/* ============================================================
   Contact / Book-a-call CTA (replaces forms)
   ============================================================ */
.contact-cta {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  align-items: start;
}
.contact-cta-left .hero-ctas { flex-wrap: wrap; }
.contact-cta-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 4px;
  padding: 32px;
}
.contact-cta-card h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 8px;
  font-weight: 500;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-hairline);
}
.contact-cta-card .cc-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-hairline);
}
.contact-cta-card .cc-row:last-child { border-bottom: none; }
.contact-cta-card .cc-k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-cta-card .cc-v { color: var(--text-primary); font-size: 14px; line-height: 1.5; }

/* Warm variant (network page) */
.warm .contact-cta-card { background: #ffffff; border-color: var(--border-paper); }
.warm .contact-cta-card h4 { color: var(--text-ink-secondary); border-color: var(--border-paper); }
.warm .contact-cta-card .cc-row { border-color: var(--border-paper); }
.warm .contact-cta-card .cc-k { color: var(--text-ink-secondary); }
.warm .contact-cta-card .cc-v { color: var(--text-ink); }

@media (max-width: 760px) {
  .contact-cta { grid-template-columns: 1fr; gap: 32px; }
  .contact-cta-card { padding: 24px; }
  .contact-cta-card .cc-row { grid-template-columns: 110px 1fr; gap: 12px; }
}

/* ============================================================
   Mobile nav (hamburger drawer)
   ============================================================ */
.nav-burger {
  display: none;
  background: transparent;
  border: 1px solid var(--border-line);
  border-radius: 2px;
  color: var(--text-primary);
  padding: 8px 10px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}
.nav-burger:hover { background: var(--bg-elevated); border-color: var(--text-secondary); }
.warm .nav-burger { border-color: var(--border-paper); color: var(--text-ink); }
.warm .nav-burger:hover { background: rgba(0,0,0,0.04); border-color: var(--text-ink); }
.nav-burger svg { display: block; }

/* Drawer (mobile-only) */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-base);
  z-index: 150;
  display: none;
  flex-direction: column;
  padding: 96px 32px 48px;
  overflow-y: auto;
}
.mobile-drawer.is-open { display: flex; }
.warm .mobile-drawer { background: var(--bg-paper); color: var(--text-ink); }
.mobile-drawer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: 1px solid var(--border-line);
  color: var(--text-primary);
  padding: 8px 10px;
  border-radius: 2px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.warm .mobile-drawer-close { border-color: var(--border-paper); color: var(--text-ink); }
.mobile-drawer .md-section { margin-bottom: 40px; }
.mobile-drawer .md-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.warm .mobile-drawer .md-label { color: var(--text-ink-secondary); }
.mobile-drawer a, .mobile-drawer button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-hairline);
  cursor: pointer;
}
.warm .mobile-drawer a, .warm .mobile-drawer button { color: var(--text-ink); border-bottom-color: var(--border-paper); }
.mobile-drawer .md-cta {
  margin-top: 24px;
  padding: 16px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  border-radius: 2px;
  border: none;
}
.warm .mobile-drawer .md-cta { background: var(--text-ink); color: var(--bg-paper); }

@media (max-width: 900px) {
  .nav-burger { display: inline-flex; }
  .nav-links { display: none; }
}

/* ============================================================
   Network partner table — design polish
   ============================================================ */
.warm .data-table {
  font-size: 15px;
}
.warm .data-table thead th {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-ink-secondary);
  text-align: left;
  padding: 20px 24px 18px 0;
  border-bottom: 1px solid var(--text-ink);
  font-weight: 500;
}
.warm .data-table tbody tr {
  transition: background 200ms ease;
}
.warm .data-table tbody tr:hover { background: rgba(0,0,0,0.025); }
.warm .data-table tbody td {
  padding: 24px 24px 24px 0;
  border-bottom: 1px solid var(--border-paper);
  vertical-align: top;
  color: var(--text-ink-secondary);
  line-height: 1.55;
}
.warm .data-table tbody td.primary {
  color: var(--text-ink);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.005em;
  padding-right: 32px;
}
.warm .data-table tbody td.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-ink);
  white-space: nowrap;
  padding-top: 28px;
}
.warm .data-table tbody td.mono::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--text-ink);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: 1px;
}
.warm .data-table tbody tr:last-child td { border-bottom: none; }
/* "Others" row: subtle differentiation as the catch-all invitation */
.warm .data-table tbody tr:last-child {
  background: rgba(0, 0, 0, 0.02);
}
.warm .data-table tbody tr:last-child td.primary {
  color: var(--text-ink);
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.005em;
}
.warm .data-table tbody tr:last-child td.mono::before {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--text-ink);
}

/* Headers proportional widths refined for new 3-col layout */
.warm #partners .data-table thead th:first-child { width: 28%; }
.warm #partners .data-table thead th:nth-child(2) { width: 52%; }
.warm #partners .data-table thead th:nth-child(3) { width: 20%; }

/* Mobile: still works at 760px+ via global mobile rules */
@media (max-width: 760px) {
  .warm .data-table tbody td.mono { padding-top: 8px; }
  .warm .data-table tbody td.primary { font-size: 15px; padding-right: 0; }
  .warm .data-table tbody tr:last-child td.primary { font-size: 16px; }
}
