/* ==========================================================================
   Deskside — site styles
   ========================================================================== */

:root {
  --paper: #f6f4ef;
  --paper-2: #eeebe3;
  --ink: #0f1720;
  --ink-2: #33404d;
  --muted: #6b7682;
  --rule: #d9d4c8;
  --accent: #1f6f5c;       /* deep desk-green */
  --accent-ink: #ffffff;
  --signal: #c8a24a;       /* brass */
  --night: #0c1218;
  --night-2: #141d26;
  --night-rule: #25313d;
  --night-text: #d8dee4;
  --night-muted: #8a97a3;
  --term-green: #6fd3a7;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

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

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.45rem; line-height: 1.25; }
h1 em, h2 em { font-style: italic; color: var(--accent); }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: currentColor;
}

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--ink-2);
  max-width: 40em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  cursor: pointer;
  font-family: var(--sans);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--rule); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-family: var(--serif);
  font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em;
}
.brand-mark { width: 28px; height: 28px; }
.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none; font-size: 0.95rem; color: var(--ink-2);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent); }
.nav-links .btn { padding: 10px 16px; color: var(--paper); }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
  color: var(--ink);
}

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; z-index: 60;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .nav-links .btn { margin-top: 16px; justify-content: center; }
}

/* ---------- Hero ---------- */

.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 { margin-bottom: 0.4em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note {
  margin-top: 28px; font-size: 0.9rem; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Terminal / desk panel */
.desk {
  background: var(--night);
  color: var(--night-text);
  border-radius: 10px;
  box-shadow: 0 30px 60px -30px rgba(15, 23, 32, .55), 0 0 0 1px rgba(15,23,32,.08);
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.7;
  overflow: hidden;
  min-width: 0;
}
.desk-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--night-rule);
  color: var(--night-muted); font-size: 0.72rem;
}
.desk-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--night-rule); display: inline-block; }
.desk-bar span { margin-left: auto; }
.desk-body { padding: 18px 20px 22px; min-height: 300px; overflow-x: auto; }
.desk-body .line { white-space: pre; opacity: 0; transform: translateY(4px); transition: opacity .35s ease, transform .35s ease; }
.desk-body .line.show { opacity: 1; transform: none; }
.desk .prompt { color: var(--signal); }
.desk .ok { color: var(--term-green); }
.desk .dim { color: var(--night-muted); }
.desk .hl { color: #fff; }
.cursor {
  display: inline-block; width: 8px; height: 1em; background: var(--term-green);
  vertical-align: -2px; animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .desk-body .line { opacity: 1; transform: none; transition: none; }
  .cursor { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Sections ---------- */

section { padding: clamp(72px, 9vw, 120px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.rule-top { border-top: 1px solid var(--rule); }

.band {
  background: var(--night); color: var(--night-text);
}
.band h2, .band h3 { color: #fff; }
.band h2 em { color: var(--term-green); }
.band .eyebrow { color: var(--night-muted); }
.band .lede { color: var(--night-text); }

/* Problem / thesis split */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px);
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.contrast-list { list-style: none; margin: 0; padding: 0; }
.contrast-list li {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  padding: 18px 0; border-top: 1px solid var(--rule);
  font-size: 0.98rem;
}
.contrast-list li:last-child { border-bottom: 1px solid var(--rule); }
.contrast-list .them { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(107,118,130,.5); }
.contrast-list .us { color: var(--ink); font-weight: 500; }
.contrast-head {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 10px;
}

/* Cards grid */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule); border-left: 1px solid var(--rule);
}
.card {
  padding: 32px 28px 36px;
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  background: var(--paper);
  transition: background .2s ease;
}
.card:hover { background: #fbfaf7; }
.card .num {
  font-family: var(--mono); font-size: 0.75rem; color: var(--accent);
  letter-spacing: .08em; margin-bottom: 28px; display: block;
}
.card p { color: var(--ink-2); font-size: 0.97rem; margin: 0; }
.card ul { margin: 14px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 0.93rem; }
.card li { margin-bottom: 4px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

.band .cards { border-color: var(--night-rule); }
.band .card { background: var(--night); border-color: var(--night-rule); }
.band .card:hover { background: var(--night-2); }
.band .card p, .band .card ul { color: var(--night-muted); }
.band .card .num { color: var(--term-green); }

/* Process timeline */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  display: grid; grid-template-columns: 140px 1fr 1.3fr; gap: 32px;
  padding: 32px 0; border-top: 1px solid var(--rule);
  align-items: baseline;
}
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps .when { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); letter-spacing: .04em; }
.steps h3 { margin: 0; }
.steps p { margin: 0; color: var(--ink-2); }
@media (max-width: 820px) {
  .steps li { grid-template-columns: 1fr; gap: 8px; }
}

/* Sectors */
.sectors { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 0; border-top: 1px solid var(--rule); }
.sector { padding: 28px 24px 28px 0; border-bottom: 1px solid var(--rule); }
.sector + .sector { padding-left: 24px; border-left: 1px solid var(--rule); }
.sector.primary h3 { font-size: 1.9rem; }
.sector .tag {
  display: inline-block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-ink); background: var(--accent);
  padding: 3px 8px; border-radius: 3px; margin-bottom: 14px;
}
.sector p { color: var(--ink-2); font-size: 0.95rem; margin: 0; }
@media (max-width: 900px) {
  .sectors { grid-template-columns: 1fr 1fr; }
  .sector.primary { grid-column: 1 / -1; }
  .sector + .sector { padding-left: 0; border-left: 0; }
  .sectors .sector:nth-child(3), .sectors .sector:nth-child(4) { padding-left: 24px; border-left: 1px solid var(--rule); }
  .sectors .sector:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .sectors { grid-template-columns: 1fr; }
  .sectors .sector:nth-child(n) { padding-left: 0; border-left: 0; }
}

/* Principles */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 64px; }
.principle { padding: 28px 0; border-top: 1px solid var(--night-rule); }
.principle h3 { font-size: 1.25rem; margin-bottom: 8px; }
.principle p { margin: 0; color: var(--night-muted); font-size: 0.97rem; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }

/* CTA */
.cta {
  text-align: left;
  padding: clamp(72px, 9vw, 120px) 0;
}
.cta-box {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end;
  border-top: 2px solid var(--ink); padding-top: 40px;
}
.cta-box h2 { margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 820px) {
  .cta-box { grid-template-columns: 1fr; gap: 28px; }
  .cta-actions { justify-content: flex-start; }
}

/* Page header (subpages) */
.page-head { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--rule); }
.page-head h1 { max-width: 16em; }

/* Service detail blocks */
.service {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 5vw, 80px);
  padding: 56px 0; border-bottom: 1px solid var(--rule);
}
.service:first-child { padding-top: 0; }
.service .num { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); display: block; margin-bottom: 14px; }
.service-body p { color: var(--ink-2); }
.examples { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.examples li {
  font-size: 0.95rem; padding-left: 22px; position: relative; color: var(--ink);
}
.examples li::before {
  content: "→"; position: absolute; left: 0; color: var(--accent); font-family: var(--mono);
}
@media (max-width: 820px) {
  .service { grid-template-columns: 1fr; }
  .examples { grid-template-columns: 1fr; }
}

/* Engagement models */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.model {
  border: 1px solid var(--rule); border-radius: 8px; padding: 32px 28px;
  background: #fbfaf7; display: flex; flex-direction: column;
}
.model.featured { border-color: var(--ink); background: var(--paper); box-shadow: 0 18px 40px -28px rgba(15,23,32,.45); }
.model .dur { font-family: var(--mono); font-size: 0.78rem; color: var(--accent); margin-bottom: 10px; letter-spacing: .04em; }
.model p { color: var(--ink-2); font-size: 0.96rem; }
.model ul { margin: 8px 0 0; padding-left: 18px; font-size: 0.93rem; color: var(--ink-2); }
.model li { margin-bottom: 6px; }
@media (max-width: 900px) { .models { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--rule); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; font-family: var(--serif); font-size: 1.3rem;
  display: flex; justify-content: space-between; gap: 24px; align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 1.2rem; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 14px 0 0; color: var(--ink-2); max-width: 44em; }

/* Team */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.person { border-top: 2px solid var(--ink); padding-top: 24px; }
.avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--paper-2); border: 1px solid var(--rule);
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.6rem; color: var(--accent);
  margin-bottom: 18px;
}
.person .role { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); letter-spacing: .04em; margin-bottom: 12px; }
.person p { color: var(--ink-2); font-size: 0.97rem; }
@media (max-width: 720px) { .team { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 96px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-meta dl { margin: 0; }
.contact-meta dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 24px; }
.contact-meta dd { margin: 6px 0 0; font-size: 1.05rem; }
.contact-meta a { text-decoration-color: var(--accent); text-underline-offset: 4px; }

.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fbfaf7; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 12px 14px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,111,92,.15); }
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--night); color: var(--night-muted);
  padding: 64px 0 40px; font-size: 0.92rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; }
.site-footer h4 {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--night-text); margin: 0 0 14px; font-weight: 500;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-base {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--night-rule);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Founders strip (home) */
.founders-strip { padding: 22px 0; border-top: 1px solid var(--rule); background: var(--paper-2); }
.founders-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 32px; }
.founders-label {
  margin: 0; font-family: var(--mono); font-size: 0.72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.founder-chip { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.founder-chip strong { display: block; font-weight: 600; font-size: 0.98rem; }
.founder-chip small { display: block; color: var(--muted); font-size: 0.82rem; }
.founder-chip:hover strong { color: var(--accent); }
.avatar.sm { width: 40px; height: 40px; font-size: 0.95rem; margin: 0; background: var(--paper); flex: none; }
.cta-sub { margin: 16px 0 0; color: var(--ink-2); max-width: 34em; }
@media (max-width: 560px) {
  .founders-label { flex-basis: 100%; }
  .founder-chip { flex-basis: 100%; }
}

/* Proactive agents */
.checks { list-style: none; margin: 28px 0 0; padding: 0; }
.checks li { position: relative; padding: 12px 0 12px 30px; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 0.98rem; }
.checks li::before { content: "✓"; position: absolute; left: 2px; top: 12px; color: var(--accent); font-weight: 600; }
.checks strong { color: var(--ink); font-weight: 600; }

.feed {
  background: var(--night); color: var(--night-text); border-radius: 10px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(15, 23, 32, .55), 0 0 0 1px rgba(15,23,32,.08);
  align-self: center; min-width: 0;
}
.feed .desk-bar { font-family: var(--mono); }
.feed .desk-bar span::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--term-green); margin-right: 8px; vertical-align: 1px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .3; } }
.feed-list { list-style: none; margin: 0; padding: 6px 20px 10px; }
.feed-list li {
  display: grid; grid-template-columns: 48px 80px 1fr; gap: 6px 12px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--night-rule);
}
.feed-list li:last-child { border-bottom: 0; }
.feed-list time { font-family: var(--mono); font-size: 0.78rem; color: var(--night-muted); }
.feed-list p { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--night-text); }
.feed-list b { color: #fff; font-weight: 600; }
.tagx {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 3px; border: 1px solid currentColor; white-space: nowrap; justify-self: start;
}
.tagx.watch { color: var(--signal); }
.tagx.data { color: #7fb6ff; }
.tagx.brief { color: var(--term-green); }
.tagx.ops { color: #d7a6ff; }
.tagx.risk { color: #ff9a8a; }
@media (max-width: 520px) {
  .feed-list li { grid-template-columns: auto 1fr; }
  .feed-list p { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .feed .desk-bar span::before { animation: none; } }
.exp-item { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); display: inline-flex; align-items: center; gap: 12px; }
.exp-item + .exp-item::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
@media (max-width: 560px) { .exp-item + .exp-item::before { display: none; } .exp-item { flex-basis: 100%; } }

/* Example builds */
.brief-demo {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px);
  align-items: center; margin-bottom: clamp(48px, 6vw, 72px);
}
.brief-anatomy {
  background: var(--night); color: var(--night-text); border-radius: 10px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(15, 23, 32, .55), 0 0 0 1px rgba(15,23,32,.08);
  min-width: 0;
}
.brief-anatomy .desk-bar { font-family: var(--mono); }
.anatomy-list { list-style: none; margin: 0; padding: 8px 20px 12px; counter-reset: sec; }
.anatomy-list li {
  counter-increment: sec; display: grid; grid-template-columns: 28px 1fr; gap: 2px 10px;
  padding: 9px 0; border-bottom: 1px solid var(--night-rule);
}
.anatomy-list li:last-child { border-bottom: 0; }
.anatomy-list li::before {
  content: counter(sec, decimal-leading-zero); grid-row: span 2;
  font-family: var(--mono); font-size: 0.72rem; color: var(--signal); padding-top: 3px;
}
.anatomy-list span { font-size: 0.95rem; color: #fff; font-weight: 500; }
.anatomy-list em { font-style: normal; font-size: 0.82rem; color: var(--night-muted); }
.anatomy-list li:last-child span { color: var(--term-green); }
.brief-copy h3 { font-size: 1.9rem; margin-bottom: 16px; }
.brief-copy p { color: var(--ink-2); }
.brief-copy em { font-style: italic; color: var(--ink); }
@media (max-width: 900px) { .brief-demo { grid-template-columns: 1fr; } .brief-copy { order: -1; } }
.examples-grid .card .num { margin-bottom: 20px; }

/* ---------- 3D accents ---------- */
.hero { position: relative; overflow: hidden; }
.hero > .container { position: relative; z-index: 1; }
.hero-3d {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 72%;
  pointer-events: none; opacity: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 55%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 55%);
  transition: opacity 1.2s ease;
}
.has-3d .hero-3d { opacity: .5; }
@media (max-width: 960px) { .hero-3d { height: 45%; } .has-3d .hero-3d { opacity: .35; } }

/* ---------- Alt-data section ---------- */
.alt-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 980px) { .alt-grid { grid-template-columns: 1fr; } }
.alt-list { list-style: none; margin: 0; padding: 0; }
.alt-list li { padding: 20px 0 20px 34px; border-top: 1px solid var(--night-rule); position: relative; }
.alt-list li:last-child { border-bottom: 1px solid var(--night-rule); }
.alt-list li::before {
  content: ""; position: absolute; left: 4px; top: 29px; width: 12px; height: 12px;
  border: 1.5px solid var(--term-green); transform: rotate(45deg);
}
.alt-list h3 { font-size: 1.25rem; margin: 0 0 6px; }
.alt-list p { margin: 0; color: var(--night-muted); font-size: 0.96rem; }

.alt-visuals { display: grid; gap: 20px; min-width: 0; }
.viz-card {
  margin: 0; background: #080d12; border: 1px solid var(--night-rule); border-radius: 10px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); min-width: 0;
}
.viz-card .desk-bar { font-family: var(--mono); }
.cohort-stage { position: relative; height: clamp(260px, 32vw, 360px); }
.cohort-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.viz-fallback {
  position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 24px;
  text-align: center; color: var(--night-muted); font-size: 0.9rem;
}
.has-3d .viz-fallback { display: none; }
.axis {
  position: absolute; font-family: var(--mono); font-size: 0.68rem; letter-spacing: .04em;
  color: var(--night-muted); pointer-events: none;
}
.axis-x { right: 16px; bottom: 12px; }
.axis-z { left: 16px; top: 12px; }
.viz-card figcaption {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  padding: 12px 18px 14px; border-top: 1px solid var(--night-rule);
  font-size: 0.8rem; color: var(--night-muted);
}
.key { display: inline-flex; align-items: center; gap: 7px; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; flex: none; }
.sw-hi { background: #6fd3a7; } .sw-lo { background: #1a4d42; } .sw-new { background: var(--signal); }

.tri { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.tri caption { text-align: left; padding: 14px 18px 4px; color: var(--night-muted); font-size: 0.8rem; font-family: var(--mono); }
.tri th, .tri td { padding: 9px 18px; border-bottom: 1px solid var(--night-rule); text-align: left; font-weight: 400; }
.tri thead th { font-family: var(--mono); font-size: 0.68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--night-muted); }
.tri tbody th { color: var(--night-text); }
.tri td { font-family: var(--mono); color: #fff; white-space: nowrap; width: 1%; }
.tri .bar-col { width: 45%; }
.tri .bar { display: block; height: 8px; width: calc(var(--v) * 100%); border-radius: 2px; background: #3b5b6b; }
.tri .blend th, .tri .blend td { color: var(--term-green); font-weight: 600; }
.tri .blend .bar { background: var(--term-green); }
.tri .cons .bar { background: transparent; border: 1px dashed var(--night-muted); height: 8px; }
.tri-verdict { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 18px 14px; font-size: 0.84rem; color: var(--night-text); }
.tri-verdict .dot { background: var(--term-green); }
@media (max-width: 520px) { .tri th, .tri td { padding: 8px 12px; } .tri .bar-col { width: 30%; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Report summaries ---------- */
.summary-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 980px) { .summary-grid { grid-template-columns: 1fr; } }
.summary-card {
  background: #fbfaf7; border: 1px solid var(--rule); border-radius: 10px;
  box-shadow: 0 24px 48px -32px rgba(15,23,32,.35); overflow: hidden; min-width: 0;
}
.summary-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 22px 24px 18px; border-bottom: 1px solid var(--rule);
}
.summary-kicker { font-family: var(--mono); font-size: 0.72rem; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px; text-transform: uppercase; }
.summary-head h3 { margin: 0; font-size: 1.4rem; }
.badge { font-family: var(--mono); font-size: 0.72rem; padding: 4px 8px; border-radius: 4px; white-space: nowrap; flex: none; }
.badge-up { background: #e3f1ea; color: #155c49; }
.summary-block { padding: 18px 24px; border-bottom: 1px solid var(--rule); }
.summary-block:last-child { border-bottom: 0; }
.summary-block h4 {
  margin: 0 0 12px; font-family: var(--mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.summary-block p { color: var(--ink-2); font-size: 0.96rem; margin: 0 0 8px; }
.summary-block p:last-child { margin-bottom: 0; }
.summary-meta { font-size: 0.86rem !important; color: var(--muted) !important; }
.rev-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.rev-table th, .rev-table td { padding: 8px 8px; border-bottom: 1px solid var(--rule); text-align: right; font-weight: 400; }
.rev-table th:first-child { text-align: left; padding-left: 0; }
.rev-table thead th { font-size: 0.72rem; color: var(--muted); font-family: var(--mono); letter-spacing: .04em; }
.rev-table td { font-family: var(--mono); font-size: 0.85rem; white-space: nowrap; }
.rev-table tbody tr:last-child th, .rev-table tbody tr:last-child td { border-bottom: 0; }
.rev-table .up { color: #155c49; font-weight: 500; }
.rev-table .down { color: #a23b2c; font-weight: 500; }
.tone-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.tone-list li { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: baseline; font-size: 0.93rem; }
.tone-prior { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(107,118,130,.5); }
.tone-arrow { color: var(--muted); font-family: var(--mono); }
.tone-now { color: var(--ink); font-weight: 500; }
@media (max-width: 560px) {
  .tone-list li { grid-template-columns: 1fr; gap: 2px; }
  .tone-arrow { display: none; }
  .rev-table { font-size: 0.8rem; }
  .rev-table th, .rev-table td { padding: 7px 4px; }
  .summary-head { flex-direction: column; }
}
.tone-meter { max-width: 420px; }
.tone-scale {
  position: relative; display: block; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, #e9c9c1, #e6e3dc 50%, #c7e4d6);
}
.tone-from, .tone-to {
  position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%;
  left: calc(var(--p) * 100%); transform: translate(-50%, -50%); box-shadow: 0 0 0 2px #fbfaf7;
}
.tone-from { background: #b9b4aa; }
.tone-to { background: var(--accent); }
.tone-labels { display: flex; justify-content: space-between; margin-top: 6px; font-size: 0.75rem; color: var(--muted); font-family: var(--mono); }
.summary-points { display: grid; gap: 0; }
.sp { padding: 20px 0; border-top: 1px solid var(--rule); }
.sp:last-child { border-bottom: 1px solid var(--rule); }
.sp h3 { font-size: 1.2rem; margin-bottom: 6px; }
.sp p { margin: 0; color: var(--ink-2); font-size: 0.96rem; }

/* ---------- Illustrative analyses (charts) ---------- */
.viz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.viz-wide { grid-column: 1 / -1; }
@media (max-width: 900px) { .viz-grid { grid-template-columns: 1fr; } }
.viz {
  margin: 0; background: #fbfaf7; border: 1px solid var(--rule); border-radius: 10px;
  padding: 22px 22px 16px; min-width: 0; display: flex; flex-direction: column;
}
.viz-head { margin-bottom: 8px; }
.viz-kicker { font-family: var(--mono); font-size: 0.7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.viz-head h3 { font-size: 1.3rem; margin: 6px 0 4px; }
.viz-head p { font-size: 0.9rem; color: var(--ink-2); margin: 0 0 10px; }
.viz-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.8rem; color: var(--ink-2); }
.viz-legend li { display: inline-flex; align-items: center; gap: 6px; }
.lg-sw { width: 12px; height: 4px; border-radius: 2px; display: inline-block; }
.lg-dash { background: none; border-top: 2px dashed; height: 0; border-radius: 0; }
.lg-hollow { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink-2); background: #fbfaf7; }
.viz-plot { position: relative; height: 260px; margin-top: 6px; touch-action: pan-y; }
.viz-plot svg { display: block; font-family: var(--sans); overflow: visible; }
.viz-wide .viz-plot { height: 300px; }
.viz-body { display: grid; grid-template-columns: 1fr 220px; gap: 24px; align-items: center; }
@media (max-width: 760px) { .viz-body { grid-template-columns: 1fr; } }
.viz-stats { border-left: 1px solid var(--rule); padding-left: 22px; }
@media (max-width: 760px) { .viz-stats { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 16px; } }
.stat-label { font-size: 0.78rem; color: var(--muted); margin: 0 0 10px; }
.stat { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.stat-v { font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--ink); min-width: 3.2em; }
.stat-v.muted { color: var(--muted); }
.stat-k { font-size: 0.85rem; color: var(--ink-2); }
.stat-note { font-size: 0.85rem; color: var(--ink-2); margin: 12px 0 0; }
.viz-read { font-size: 0.9rem; color: var(--ink-2); margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); }
.viz-read strong { color: var(--ink); font-weight: 600; }
.viz-data { margin-top: 10px; font-size: 0.82rem; }
.viz-data summary { cursor: pointer; color: var(--accent); font-weight: 500; }
.viz-table { max-height: 240px; overflow: auto; margin-top: 8px; }
.viz-table table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.viz-table th, .viz-table td { padding: 5px 8px; border-bottom: 1px solid var(--rule); text-align: right; font-weight: 400; white-space: nowrap; }
.viz-table th:first-child { text-align: left; }
.viz-table thead th { color: var(--muted); font-family: var(--mono); font-size: 0.72rem; position: sticky; top: 0; background: #fbfaf7; }
.viz-source { margin: 18px 0 0; font-size: 0.82rem; color: var(--muted); }
.viz-tip {
  position: absolute; z-index: 5; pointer-events: none; min-width: 170px;
  background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 8px 10px;
  box-shadow: 0 8px 24px -12px rgba(15,23,32,.35); font-size: 0.78rem; color: var(--ink);
}
.tt-h { font-weight: 600; margin-bottom: 4px; }
.tt-row { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; padding: 1px 0; }
.tt-sw { width: 10px; height: 10px; border-radius: 2px; }
.tt-dash { background: none; border-top: 2px dashed; height: 0; border-radius: 0; }
.tt-hollow { border: 1.5px solid; border-radius: 50%; width: 9px; height: 9px; }
.tt-l { color: var(--ink-2); }
.tt-v { font-family: var(--mono); color: var(--ink); }

/* ---------- Live call intelligence ---------- */
.live-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 980px) { .live-grid { grid-template-columns: 1fr; } }
.live-call {
  background: #080d12; border: 1px solid var(--night-rule); border-radius: 10px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); min-width: 0;
}
.live-call .desk-bar { font-family: var(--mono); }
.live-dot::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #e5484d; margin-right: 8px; vertical-align: 1px; animation: pulse 1.6s ease-in-out infinite;
}
.lc-list { list-style: none; margin: 0; padding: 8px 20px 16px; }
.lc-line { padding: 12px 0; border-bottom: 1px solid var(--night-rule); }
.lc-line:last-child { border-bottom: 0; }
.lc-say { display: grid; grid-template-columns: 44px 62px 1fr; gap: 4px 10px; align-items: baseline; }
.lc-say time { font-family: var(--mono); font-size: 0.74rem; color: var(--night-muted); }
.lc-say b { font-size: 0.8rem; font-weight: 600; color: var(--night-muted); }
.lc-say p { margin: 0; color: var(--night-text); font-size: 0.93rem; line-height: 1.5; }
@media (max-width: 560px) {
  .lc-say { grid-template-columns: auto 1fr; }
  .lc-say p { grid-column: 1 / -1; }
}
.lc-flag {
  display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start;
  margin: 10px 0 0 116px; padding: 9px 12px; border-radius: 6px;
  font-size: 0.84rem; line-height: 1.45; color: var(--night-text);
  background: rgba(255,255,255,.04); border-left: 3px solid;
}
.lc-line > .lc-flag:first-child { margin-top: 0; }
@media (max-width: 560px) { .lc-flag { margin-left: 0; } }
.lc-flag strong { color: #fff; font-weight: 600; }
.fi { font-family: var(--mono); font-weight: 600; text-align: center; }
.flag-tone { border-color: var(--signal); } .flag-tone .fi { color: var(--signal); }
.flag-data { border-color: #7fb6ff; } .flag-data .fi { color: #7fb6ff; }
.flag-comp { border-color: #e5484d; background: rgba(229,72,77,.1); } .flag-comp .fi { color: #ff8a8d; }
.flag-ask { border-color: var(--term-green); } .flag-ask .fi { color: var(--term-green); }
.band .live-points .sp { border-color: var(--night-rule); }
.band .live-points .sp p { color: var(--night-muted); }

/* staged reveal while "live" */
.js-live .lc-say, .js-live .lc-flag { opacity: 0; transform: translateY(6px); transition: opacity .45s ease, transform .45s ease; }
.js-live .on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-live .lc-say, .js-live .lc-flag { opacity: 1; transform: none; transition: none; } .live-dot::before { animation: none; } }

/* ---------- Legal pages ---------- */
.legal > * { max-width: 780px; }
.legal h2 { font-size: 1.5rem; margin: 2.2em 0 0.6em; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { text-decoration-color: var(--accent); text-underline-offset: 3px; }
.legal-summary { background: #fbfaf7; border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 8px; padding: 22px 26px; }
.legal-summary h2 { margin-top: 0; font-size: 1.4rem; }
.legal-summary ul { margin: 0; }

/* ---------- Trust strip (privacy & security) ---------- */
.trust { background: var(--ink); color: var(--night-text); padding: clamp(40px, 5vw, 56px) 0; }
.trust-inner { display: grid; gap: 28px; }
.trust-head { display: flex; gap: 18px; align-items: flex-start; max-width: 820px; }
.trust-ico { width: 40px; height: 40px; flex: none; fill: none; stroke: var(--term-green); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.trust-head h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 6px; }
.trust-head p { margin: 0; color: var(--night-muted); font-size: 1.02rem; }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--night-rule); }
.trust-list li { padding: 18px 20px 4px 0; display: grid; gap: 6px; align-content: start; }
.trust-list li + li { padding-left: 20px; border-left: 1px solid var(--night-rule); }
.trust-list strong { color: #fff; font-weight: 600; font-size: 0.95rem; display: flex; gap: 8px; align-items: baseline; }
.trust-list strong::before { content: "✓"; color: var(--term-green); font-family: var(--mono); }
.trust-list span { color: var(--night-muted); font-size: 0.86rem; line-height: 1.5; }
.trust-link { color: var(--term-green); text-decoration: none; font-weight: 500; font-size: 0.95rem; justify-self: start; }
.trust-link:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1080px) {
  .trust-list { grid-template-columns: repeat(3, 1fr); }
  .trust-list li:nth-child(4) { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
  .trust-list { grid-template-columns: 1fr; }
  .trust-list li, .trust-list li + li { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--night-rule); }
}

/* Hero privacy badges */
.hero-trust { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.hero-trust li {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px;
  border: 1px solid #cfe3da; background: #eef6f2; border-radius: 999px;
  font-size: 0.84rem; font-weight: 500; color: #155c49;
}
.hero-trust svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Hero research engine ---------- */
.engine {
  background: radial-gradient(120% 90% at 50% 45%, #13202b 0%, var(--night) 70%);
  color: var(--night-text); border-radius: 12px; overflow: hidden; min-width: 0;
  box-shadow: 0 30px 60px -30px rgba(15, 23, 32, .55), 0 0 0 1px rgba(15,23,32,.08);
}
.engine .desk-bar { font-family: var(--mono); }
.engine-stage { position: relative; height: clamp(340px, 34vw, 420px); }
.engine-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.engine-in {
  position: absolute; left: 14px; right: 14px; bottom: 12px;
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-family: var(--mono); font-size: 0.68rem; color: var(--night-muted); letter-spacing: .04em;
}
.engine-in li { display: flex; align-items: center; gap: 7px; }
.engine-in i { width: 8px; height: 10px; border-radius: 1.5px; display: inline-block; }
.engine-out {
  position: absolute; right: 14px; top: 16px; bottom: 44px; width: min(42%, 220px);
  list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.engine-out li {
  background: rgba(12,18,24,.85); border: 1px solid var(--night-rule); border-left: 3px solid var(--term-green);
  border-radius: 6px; padding: 8px 11px; display: none; gap: 2px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
@keyframes cardIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.engine-out li.on { display: grid; animation: cardIn .5s ease both; }
.engine-out b { font-size: 0.78rem; color: #fff; font-weight: 600; }
.engine-out span { font-size: 0.72rem; color: var(--night-muted); }
.engine-out .eo-tone { border-left-color: var(--signal); }
.engine-out .eo-data { border-left-color: #7fb6ff; }
.engine-out .eo-comp { border-left-color: #e5484d; }
@media (max-width: 560px) {
  .engine-in { top: 14px; bottom: auto; }
  .engine-out { top: auto; bottom: 12px; left: 12px; right: 12px; width: auto; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) { .engine-out li.on { animation: none; } }

/* ---------- Trust enclave ---------- */
.trust-top { display: grid; grid-template-columns: 1fr 240px; gap: 32px; align-items: center; }
.enclave { position: relative; height: 200px; }
.enclave canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.enclave span {
  position: absolute; left: 0; right: 0; bottom: 0; text-align: center;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--night-muted);
}
.has-3d .trust-top .trust-ico { display: none; }
@media (max-width: 760px) { .trust-top { grid-template-columns: 1fr; } .enclave { height: 170px; } }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); }
