/* ============================================================
   CogNEXUSWEB — shared marketing shell
   Tokens live in tokens.css. Classes group the design-file
   inline styles. Both themes come from the semantic aliases.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  background: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent-hover); }
ul { list-style: none; }
img, svg { display: block; }
button, input, select, textarea { font-family: inherit; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.wrap-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section-sunken {
  background: var(--bg-sunken);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.section-head { margin-bottom: 44px; }
.section-head.center { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  color: var(--text-heading);
  letter-spacing: var(--tracking-tight);
}
h2 {
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  line-height: 1.16;
}
h3 { font-weight: 600; }
.lead { font-size: 1rem; line-height: 1.7; color: var(--text-muted); }
.accent, .ai { color: var(--iris-500); }
.mono { font-family: var(--font-mono); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-fill);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 26px;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-int { transition: var(--transition-base); }
.card-int:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.field {
  position: absolute; inset: 0;
  background-image: var(--flock-dots);
  background-size: var(--flock-size);
  pointer-events: none;
}

.icon { width: 1em; height: 1em; flex-shrink: 0; }
.icon-tile {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-fill);
  color: var(--accent-text);
  display: grid; place-items: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.icon-tile svg { width: 20px; height: 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-md); font-weight: 600; white-space: nowrap;
  flex-shrink: 0; transition: var(--transition-base); cursor: pointer;
  text-decoration: none; border: none;
}
.btn:hover { color: inherit; }
.btn svg { width: 16px; height: 16px; }
.btn-sm { height: 40px; padding: 0 18px; font-size: .875rem; }
.btn-lg { height: 48px; padding: 0 22px; font-size: .9375rem; }
.btn-p { background: var(--accent); color: var(--text-on-accent); box-shadow: var(--shadow-accent); }
.btn-p:hover { background: var(--accent-hover); color: var(--text-on-accent); box-shadow: var(--shadow-accent-lg); transform: translateY(-1px); }
.btn-s { background: var(--surface); color: var(--text-heading); border: 1px solid var(--hairline-strong); box-shadow: var(--shadow-xs); }
.btn-s:hover { color: var(--text-heading); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--accent);
  color: var(--text-on-accent);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: var(--shadow-accent);
}
.skip-link:focus, .skip-link:focus-visible {
  top: 12px;
  color: var(--text-on-accent);
  outline: none;
  box-shadow: var(--shadow-accent), 0 0 0 3px var(--focus-ring);
}

.btn:focus-visible, .theme-toggle:focus-visible, .nav-toggle:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
.zone:focus-visible, .ctl:focus-visible, .scn:focus-visible, .seg button:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.btn-p:focus-visible { box-shadow: var(--shadow-accent), 0 0 0 3px var(--focus-ring); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.arrow-list { display: flex; flex-direction: column; gap: 13px; }
.arrow-list li { display: flex; gap: 11px; line-height: 1.55; }
.arrow-list .arr { color: var(--accent-text); font-weight: 700; flex-shrink: 0; }
.arrow-list.tight { gap: 11px; font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }
.arrow-list.tight .arr { font-weight: 400; }

.pill {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.pill-allow { color: var(--verdict-allow); background: var(--allow-fill); }
.pill-review { color: var(--verdict-review); background: var(--review-fill); }

.quote {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 24px 26px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--text-heading);
}
.quote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-style: normal;
  color: var(--text-muted);
}

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass);
  backdrop-filter: var(--blur-md);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 32px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.lockup {
  display: flex; align-items: center; gap: 11px;
  flex-shrink: 0; color: inherit;
}
.lockup:hover { color: inherit; }
.lockup-mark { width: 36px; height: 36px; flex-shrink: 0; }
.lockup-mark.hex { color: var(--cognexus-teal); }
.lockup-mark.flock { color: var(--iris-500); }
.lockup-text { display: flex; flex-direction: column; line-height: 1; }
.lockup-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  line-height: 1;
}
.lockup-name .cog { color: var(--text-heading); } /* black in light, white in dark */
.lockup-name .nx { color: var(--cognexus-teal); }
.lockup-name .ai { color: var(--iris-500); }
.lockup-sub {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.01em;
  color: var(--text-faint);
  margin-top: 3px;
}

.site-nav {
  display: flex; align-items: center; gap: 22px;
  flex-wrap: wrap; justify-content: flex-end;
}
.site-nav a {
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-muted); white-space: nowrap;
}
.site-nav a:hover, .site-nav a.active { color: var(--text-heading); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.theme-toggle {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-base);
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--accent-text); border-color: var(--accent-line); }
.theme-toggle svg { width: 15px; height: 15px; }
.theme-toggle .ic-moon { display: none; }
html[data-theme="dark"] .theme-toggle .ic-sun { display: none; }
html[data-theme="dark"] .theme-toggle .ic-moon { display: block; }

.nav-toggle {
  display: none;
  width: 34px; height: 34px;
  place-items: center;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-heading);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
}
.nav-toggle svg { width: 18px; height: 18px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 32px 20px;
  border-top: 1px solid var(--hairline);
  background: var(--surface);
}
.mobile-nav a {
  padding: 10px 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-body);
  min-height: var(--hit-target);
  display: flex; align-items: center;
}
.site-header.is-open .mobile-nav { display: flex; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 40px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.site-footer .lockup-mark { width: 32px; height: 32px; }
.footer-copy { font-size: var(--text-sm); color: var(--text-muted); }
.footer-copy a { color: var(--text-muted); font-weight: 600; }
.footer-copy a:hover { color: var(--cognexus-teal); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: var(--text-sm); color: var(--text-muted); }
.footer-links a:hover { color: var(--accent-text); }

/* ── Landing hero ── */
.hero { position: relative; overflow: hidden; }
.hero-labs { padding: 112px 0 96px; }
.hero-product { padding: 104px 0 92px; text-align: center; }
.hero .rel { position: relative; }
.hero-product .rel { max-width: 900px; margin: 0 auto; }
.hero h1 {
  font-weight: 700;
  font-size: clamp(2.4rem, 5.2vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: var(--tracking-tight);
  color: var(--text-heading);
  margin-bottom: 22px;
  text-wrap: pretty;
}
.hero .hero-lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 32px;
  text-wrap: pretty;
}
.hero-labs .hero-lead { max-width: 640px; }
.hero-product .hero-lead { max-width: 660px; margin-left: auto; margin-right: auto; line-height: 1.65; }
.fade { animation: fadeUp 0.5s var(--ease) both; }
.d1 { animation-delay: 0.04s; }
.d2 { animation-delay: 0.1s; }
.d3 { animation-delay: 0.16s; }
.d4 { animation-delay: 0.22s; }
.d5 { animation-delay: 0.3s; }
.d6 { animation-delay: 0.34s; }

.fine { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-faint); margin-bottom: 40px; }
.chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: var(--radius-pill);
  background: var(--surface); box-shadow: var(--shadow-xs);
  font-size: var(--text-sm); font-weight: 500; color: var(--text-body);
}
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; font-style: normal; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; align-items: start;
  max-width: 900px; margin-top: 64px;
}
.stat {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px 24px;
  transition: var(--transition-base);
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-val {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-2xl); letter-spacing: var(--tracking-tight);
  color: var(--text-heading);
}
.stat-label {
  font-family: var(--font-mono); font-size: var(--text-2xs);
  text-transform: uppercase; letter-spacing: var(--tracking-caps);
  color: var(--text-muted); margin-top: 6px;
}
.stat-desc {
  font-size: 0.875rem; line-height: 1.6; color: var(--text-muted);
  margin-top: 12px;
}

/* ── Mission ── */
.split { display: grid; gap: 64px; align-items: start; }
.split-mission { grid-template-columns: 0.9fr 1.1fr; }
.split-products { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
.split-upcoming { grid-template-columns: 1.15fr 0.85fr; align-items: stretch; gap: 18px; }
.split-platform { grid-template-columns: 1fr 1fr; gap: 56px; margin-bottom: 36px; }
.mission-copy p { font-size: 1rem; line-height: 1.75; color: var(--text-muted); margin-bottom: 16px; }
.mission-copy .arrow-list { margin-top: 8px; font-size: 0.9375rem; color: var(--text-body); }

/* ── Featured product ── */
.feature-card {
  display: block;
  background: var(--surface);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: 40px 38px;
  transition: var(--transition-base);
  color: inherit;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-xl); color: inherit; }
.feature-title {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.feature-title .lockup-mark { width: 34px; height: 34px; }
.feature-title .name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.9rem;
  letter-spacing: var(--tracking-tight); color: var(--text-heading);
}
.feature-card p { font-size: 1.0625rem; line-height: 1.7; color: var(--text-muted); margin-bottom: 18px; }
.feature-cta { font-weight: 600; color: var(--accent-text); display: inline-flex; align-items: center; gap: 6px; }
.feature-cta svg { width: 16px; height: 16px; }
.mini-panel {
  background: var(--surface-sunken);
  border-radius: var(--radius-xl);
  padding: 22px;
}
.mini-panel .kicker {
  font-family: var(--font-mono); font-size: var(--text-2xs);
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 12px;
}
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.mini-tile {
  background: var(--surface); border-radius: var(--radius-sm);
  padding: 12px 6px; text-align: center;
  font-family: var(--font-mono); font-size: var(--text-2xs);
  color: var(--text-body); box-shadow: var(--shadow-xs);
}
.mini-foot {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: var(--text-2xs);
}
.v-allow { color: var(--verdict-allow); }
.v-deny { color: var(--verdict-deny); }
.v-review { color: var(--verdict-review); }
.v-faint { color: var(--text-faint); }

/* ── Upcoming / AIRecommender ── */
.upcoming-card { padding: 32px 30px; }
.upcoming-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.upcoming-head h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-2xl); letter-spacing: var(--tracking-tight);
  color: var(--text-heading);
}
.upcoming-card > p { font-size: 0.9375rem; line-height: 1.7; color: var(--text-muted); margin-bottom: 20px; }
.cap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cap {
  background: var(--surface-sunken); border-radius: var(--radius-md);
  padding: 14px 16px;
}
.cap .k { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--text-faint); margin-bottom: 4px; }
.cap .v { font-size: 0.875rem; color: var(--text-body); }
.cli {
  background: var(--surface-sunken); border-radius: var(--radius-md);
  padding: 16px 18px; margin: 16px 0 14px;
  font-family: var(--font-mono); font-size: var(--text-2xs); line-height: 1.7;
  color: var(--text-body); overflow-x: auto;
}
.muted-sm { font-size: var(--text-sm); color: var(--text-faint); }

/* ── Team ── */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 940px; }
.team-card { padding: 30px 28px; }
.initials {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-fill); color: var(--accent-text);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem;
  margin-bottom: 16px;
}
.team-card h3 { font-size: var(--text-lg); letter-spacing: var(--tracking-snug); color: var(--text-heading); margin-bottom: 4px; }
.team-role {
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 12px;
}
.team-card p { font-size: 0.875rem; line-height: 1.7; color: var(--text-muted); }

/* ── Contact band ── */
.contact-band { position: relative; overflow: hidden; text-align: center; padding: 88px 0; }
.contact-band .rel { position: relative; max-width: 780px; margin: 0 auto; }
.contact-band .cta-row { justify-content: center; margin-top: 28px; }

/* ── Four checks ── */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.check { padding: 24px 22px; }
.check .step {
  font-family: var(--font-mono); font-size: var(--text-2xs);
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 10px;
}
.check h3 { font-size: 1.0625rem; letter-spacing: var(--tracking-snug); margin-bottom: 8px; }
.check p { font-size: 0.875rem; line-height: 1.6; color: var(--text-muted); }

.integrations { text-align: center; font-size: 0.9375rem; color: var(--text-muted); margin: 0 0 36px; line-height: 2; }
.int-chip {
  font-family: var(--font-mono); font-size: var(--text-2xs);
  color: var(--accent-text); background: var(--accent-fill);
  border-radius: var(--radius-xs); padding: 3px 7px; margin: 0 2px;
}

.plat { padding: 26px 24px; }
.plat h3 { font-size: var(--text-lg); letter-spacing: var(--tracking-snug); margin-bottom: 8px; }
.plat p { font-size: 0.875rem; line-height: 1.7; color: var(--text-muted); }

.cover { padding: 20px; }
.cover-bar { width: 34px; height: 5px; border-radius: 3px; margin-bottom: 14px; }
.cover h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; letter-spacing: 0; }
.cover p { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--text-muted); line-height: 1.65; }

.uc { padding: 28px 26px; }
.uc .kicker {
  font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: 500;
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 10px;
}
.uc h3 { font-size: 1.125rem; line-height: 1.3; letter-spacing: var(--tracking-snug); margin-bottom: 10px; }
.uc > p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 18px; }
.output {
  padding: 14px 16px; background: var(--accent-fill);
  border-radius: var(--radius-md); font-size: 0.8125rem;
  color: var(--text-body); line-height: 1.6;
}
.output strong { color: var(--accent-text); }

.gov { padding: 28px 26px; }
.gov h3 { font-size: var(--text-xl); letter-spacing: var(--tracking-snug); margin-bottom: 18px; }
.gov .tag { font-size: 0.875rem; color: var(--text-body); margin-top: 18px; font-style: italic; }

.why { padding: 28px 26px; }
.why .num {
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps); color: var(--accent-text); margin-bottom: 10px;
}
.why h3 { font-size: var(--text-lg); letter-spacing: var(--tracking-snug); margin-bottom: 8px; }
.why p { font-size: 0.875rem; line-height: 1.7; color: var(--text-muted); }

/* ── Architecture diagram ── */
.arch-panel {
  max-width: 940px; margin: 0 auto;
  background: var(--surface); border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg); padding: 34px 30px;
}
.arch-row {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap; justify-content: center;
}
.arch-tile {
  flex: 0 0 132px; background: var(--surface-sunken);
  border-radius: var(--radius-md); padding: 16px 14px; text-align: center;
}
.arch-tile .t { font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; color: var(--text-heading); }
.arch-tile .s { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--text-muted); margin-top: 4px; }
.arch-arrow { width: 18px; height: 18px; color: var(--text-faint); flex-shrink: 0; }
.arch-core {
  flex: 1 1 420px;
  background: var(--accent-fill);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-xl);
  padding: 18px 18px 20px;
}
.arch-core .head { text-align: center; margin-bottom: 14px; }
.arch-core .head .t { font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; color: var(--text-heading); }
.arch-core .head .s { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--accent-text); margin-top: 3px; }
.arch-core .g { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.arch-caption {
  max-width: 42rem; margin: 22px auto 0; text-align: center;
  font-size: 0.9375rem; color: var(--text-muted);
}
.arch-dl { max-width: 720px; margin: 28px auto 0; display: flex; flex-direction: column; gap: 12px; }
.arch-dl div { display: grid; grid-template-columns: 68px 1fr; gap: 16px; align-items: baseline; }
.arch-dl dt {
  font-family: var(--font-mono); font-size: var(--text-xs);
  color: var(--accent-text);
}
.arch-dl dd { font-size: 0.9375rem; color: var(--text-body); }

.dev-band { text-align: center; }
.dev-band .rel { max-width: 720px; margin: 0 auto; }
.dev-band .cta-row { justify-content: center; margin-top: 28px; }
.dev-band .btn { height: 44px; }
.dev-band .btn svg { width: 15px; height: 15px; }

/* ── Pilot request band ──
   One markup, two variants: light theme renders the stone band (2a),
   dark theme renders the ink closing band (1d). Semantic tokens flip
   with the page theme; only the band surface and ledger gaps override. */
.pilot-band {
  position: relative; overflow: hidden;
  background: var(--stone-100);
  padding: 66px clamp(18px, 6vw, 56px);
}
html[data-theme="dark"] .pilot-band { background: var(--ink-950); }
.pilot-inner { position: relative; max-width: 820px; margin: 0 auto; text-align: center; }
.pilot-inner > h2 {
  font-weight: 600; font-size: 44px; line-height: 1.08;
  letter-spacing: var(--tracking-tight); margin: 16px 0 14px;
  text-wrap: pretty;
}
.pilot-lede {
  font-size: 16.5px; line-height: 1.7; color: var(--text-body);
  max-width: 54ch; margin: 0 auto 30px; text-wrap: pretty;
}
.pilot-card {
  max-width: 700px; margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: 30px 30px 28px;
  text-align: left;
}
.pilot-card-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 20px;
}
.pilot-card-head h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.pilot-card-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); }
.pilot-card-meta .m-mobile { display: none; }
.pilot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.pfield { display: flex; flex-direction: column; gap: 6px; }
.pfield.span2 { grid-column: 1 / -1; }
.pfield label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.pfield input, .pfield select {
  width: 100%; height: 46px; padding: 0 12px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
  font-family: var(--font-body); font-size: 15px;
  color: var(--text-heading); outline: none;
  transition: var(--transition-base);
}
.pfield select { padding: 0 10px; }
.pfield input:focus, .pfield select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.pfield input[aria-invalid="true"], .pfield select[aria-invalid="true"] { border-color: var(--verdict-deny); }
.perr { font-size: 12px; color: var(--verdict-deny); }
.perr:empty { display: none; }
.pilot-q { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 9px; }
.qchip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.qchip-row + .perr { display: block; margin: -14px 0 14px; }
.qchip-row + .perr:empty { display: none; }
.qchip {
  padding: 9px 14px; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: 12.5px; line-height: 1; font-weight: 400;
  border: 1px solid var(--hairline-strong);
  background: var(--surface); color: var(--text-body);
  cursor: pointer; transition: var(--transition-base);
}
.qchip:hover { border-color: var(--accent-line); }
.qchip[aria-checked="true"] {
  border-color: var(--accent);
  background: var(--accent-fill);
  color: var(--accent-text);
  font-weight: 600;
}
.qchip:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }
.qchip .lbl-short { display: none; }
.pilot-submit { width: 100%; }
.pilot-submit:disabled { opacity: 0.55; cursor: wait; transform: none; }
.pilot-form.is-submitting { pointer-events: none; }
.pilot-error {
  display: none;
  background: var(--deny-fill); color: var(--verdict-deny);
  font-size: 13px; border-radius: var(--radius-md);
  padding: 12px 14px; margin-bottom: 14px;
}
.pilot-error.show { display: block; }
.pilot-fine {
  font-family: var(--font-mono); font-size: 11px; line-height: 1.6;
  color: var(--text-faint); text-align: center; margin-top: 14px;
}
.pilot-div { height: 1px; background: var(--hairline); margin: 18px 0 14px; }
.pilot-legal { font-size: 11.5px; line-height: 1.7; color: var(--text-faint); text-wrap: pretty; }
.pilot-legal a { color: var(--accent-text); text-decoration: underline; }
.pilot-legal .legal-short { display: none; }
.pilot-success { display: none; text-align: center; padding: 22px 0 10px; }
.pilot-card.is-sent .pilot-form { display: none; }
.pilot-card.is-sent .pilot-success { display: block; }
.pilot-success .ok {
  width: 46px; height: 46px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--allow-fill); color: var(--verdict-allow);
  display: flex; align-items: center; justify-content: center;
}
.pilot-success .ok svg { width: 24px; height: 24px; }
.pilot-success h3 { font-size: 24px; font-weight: 600; margin-bottom: 8px; outline: none; }
.pilot-success p { font-size: 15px; color: var(--text-body); margin-bottom: 18px; }
.pilot-receipt {
  display: inline-flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-faint);
  background: var(--surface-sunken); border-radius: var(--radius-pill);
  padding: 8px 16px;
}
.pilot-ledger {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--hairline); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); overflow: hidden;
  margin: 34px auto 0; max-width: 900px; text-align: left;
}
html[data-theme="dark"] .pilot-ledger { background: rgba(255, 255, 255, 0.08); border: none; }
.pilot-ledger .tile { background: var(--surface); padding: 16px 18px; }
.pilot-ledger .k {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 6px;
}
.pilot-ledger .v { font-size: 13.5px; font-weight: 600; color: var(--text-heading); }
.pilot-ledger .v.mono { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--accent-text); }
.pilot-process {
  display: flex; gap: 26px; justify-content: center; flex-wrap: wrap;
  margin-top: 22px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint);
}
@media (max-width: 720px) {
  .pilot-band { padding: 30px 18px; }
  .pilot-inner { text-align: left; }
  .pilot-inner > h2 { font-size: 28px; line-height: 1.1; margin: 12px 0 10px; }
  .pilot-lede { font-size: 15px; line-height: 1.65; margin: 0 0 18px; }
  .pilot-card {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 20px; margin-bottom: 18px;
  }
  .pilot-card-meta .m-desktop { display: none; }
  .pilot-card-meta .m-mobile { display: inline; }
  .pilot-grid { grid-template-columns: 1fr; gap: 12px; }
  .pfield input, .pfield select { height: 48px; font-size: 16px; }
  .qchip-row { gap: 7px; }
  .qchip { padding: 10px 14px; font-size: 13px; min-height: var(--hit-target); display: inline-flex; align-items: center; }
  .qchip .lbl-full { display: none; }
  .qchip .lbl-short { display: inline; }
  .pilot-legal { font-size: 11px; }
  .pilot-legal .legal-full { display: none; }
  .pilot-legal .legal-short { display: inline; }
  .pilot-ledger { display: flex; flex-direction: column; max-width: none; }
  .pilot-ledger .tile {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 12px; padding: 13px 15px;
  }
  .pilot-ledger .k { margin-bottom: 0; font-size: 10.5px; }
  .pilot-ledger .v { font-size: 13px; }
  .pilot-ledger .tile-receipts { display: none; }
  .pilot-process { flex-direction: column; gap: 8px; }
}

/* ── Developer & docs ── */
.hero-dev { padding: 96px 0 72px; }
.hero-dev .hero-lead { max-width: 720px; }
.dev-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.naming {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 16px;
  max-width: 46rem;
}
.naming code { font-family: var(--font-mono); color: var(--accent-text); }

.install-card {
  background: var(--surface-sunken);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.install-card .ic-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  font-family: var(--font-mono); font-size: var(--text-2xs);
  color: var(--text-faint);
  background: var(--surface-inset);
}
.install-card .tl { display: flex; gap: 6px; }
.install-card .tl i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--hairline-strong); font-style: normal;
}
.install-body { padding: 14px 16px 16px; }
.install-body .ln, .codeblock .ln {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--font-mono); font-size: var(--text-xs);
  line-height: 1.8; color: var(--text-body);
}
.install-body .pr, .codeblock .pr { color: var(--accent-text); flex-shrink: 0; }
.install-body .cm, .codeblock .cm { color: var(--text-faint); }
.install-body .kw, .codeblock .kw { color: var(--accent-text); }
.install-body .cmd { flex: 1; }
.copy-line, .code-copy {
  margin-left: auto;
  background: transparent; border: none; cursor: pointer;
  font-family: var(--font-mono); font-size: var(--text-2xs);
  color: var(--text-faint); padding: 4px 6px;
  min-height: var(--hit-target);
}
.copy-line:hover, .code-copy:hover { color: var(--accent-text); }

.codeblock {
  background: var(--surface-sunken);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: 16px 18px;
  font-family: var(--font-mono); font-size: var(--text-xs);
  line-height: 1.7; color: var(--text-body);
  overflow-x: auto;
  margin: 14px 0;
}
.codeblock .fn { color: var(--accent-text); }
.codeblock .st { color: var(--verdict-info); }
.codeblock .n { color: var(--verdict-review); }
.response-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
  margin-top: 14px;
}
.response-card .kicker {
  font-family: var(--font-mono); font-size: var(--text-2xs);
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 10px;
}

.eptable { display: flex; flex-direction: column; gap: 0; }
.ep-group {
  font-family: var(--font-mono); font-size: var(--text-2xs);
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--accent-text); padding: 14px 0 8px;
}
.ep {
  display: grid; grid-template-columns: 72px 1fr 1fr;
  gap: 12px; align-items: baseline;
  padding: 8px 0;
  border-top: 1px solid var(--hairline);
  font-size: 0.8125rem;
}
.ep .verb {
  font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: 500;
  letter-spacing: var(--tracking-caps);
  color: var(--accent-text);
}
.ep .verb.get { color: var(--verdict-info); }
.ep .verb.post { color: var(--verdict-allow); }
.ep .verb.patch { color: var(--verdict-review); }
.ep .path { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-heading); }
.ep .path .var { color: var(--text-muted); }
.ep .desc { color: var(--text-muted); }

.sdk-group { margin-bottom: 22px; }
.sdk-group h3 {
  font-size: 1rem; margin-bottom: 10px;
  letter-spacing: var(--tracking-snug);
}
.sdk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sdk-chip {
  font-family: var(--font-mono); font-size: var(--text-xs);
  color: var(--accent-text);
  background: var(--accent-fill);
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  min-height: var(--hit-target);
  display: inline-flex; align-items: center;
}
.sdk-chip:hover { color: var(--accent-hover); }

.metric-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.metric {
  background: var(--surface-sunken);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.metric b {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-xl); letter-spacing: var(--tracking-tight);
  color: var(--text-heading);
}
.metric span {
  font-family: var(--font-mono); font-size: var(--text-2xs);
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--text-muted);
}

.linklist { display: flex; flex-direction: column; gap: 8px; }
.linklist a {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0;
  color: var(--text-heading); font-weight: 500;
  border-top: 1px solid var(--hairline);
  min-height: var(--hit-target); align-items: center;
}
.linklist a:first-child { border-top: none; }
.linklist .lurl {
  font-family: var(--font-mono); font-size: var(--text-2xs);
  color: var(--text-muted); font-weight: 400;
}

.note {
  background: var(--surface-sunken);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 0.875rem; line-height: 1.65; color: var(--text-muted);
}
.dl-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
}
.dl-bar h4 { font-size: 1rem; margin-bottom: 4px; }
.dl-bar p { font-size: 0.875rem; color: var(--text-muted); }
.dl-bar .spacer { flex: 1; }

.ref-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}
.ref-grid .span-all { grid-column: 1 / -1; }
.gap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cap-list { display: flex; flex-direction: column; gap: 16px; }
.cap-list li { display: flex; gap: 12px; }
.cap-list .ci {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  background: var(--accent-fill); color: var(--accent-text);
  display: grid; place-items: center; flex-shrink: 0;
}
.cap-list .ci svg { width: 18px; height: 18px; }
.cap-list b { display: block; color: var(--text-heading); margin-bottom: 2px; }
.cap-list span { font-size: 0.875rem; color: var(--text-muted); line-height: 1.55; }

/* Architecture lab */
.arch-lab {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
  align-items: start;
}
.arch-fallback {
  display: flex; flex-direction: column; gap: 10px;
}
.arch-fallback .zone {
  text-align: left; width: 100%; cursor: default;
}
.lab-left { display: flex; flex-direction: column; gap: 14px; }
.panel {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--surface-sunken);
}
.panel-head .lbl {
  font-family: var(--font-mono); font-size: var(--text-2xs);
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--text-heading);
}
.panel-head .meta { margin-left: auto; font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--text-faint); }
.seg {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
  padding: 3px;
  width: 170px; margin-left: auto;
}
.seg button {
  border: none; background: transparent; cursor: pointer;
  font-size: 0.75rem; font-weight: 600; color: var(--text-muted);
  padding: 6px 8px; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.seg button svg { width: 14px; height: 14px; }
.seg button.on { background: var(--accent-fill); color: var(--accent-text); }
.scn-list { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 4px; }
.scn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  text-align: left; background: var(--surface-sunken);
  border: 1px solid transparent; border-radius: var(--radius-md);
  padding: 10px 12px; cursor: pointer; color: inherit;
  min-height: var(--hit-target);
}
.scn.on { border-color: var(--accent-line); background: var(--accent-fill); }
.scn .vt {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.scn .scn-t { font-weight: 600; font-size: 0.875rem; color: var(--text-heading); }
.scn .scn-s { font-size: 0.75rem; color: var(--text-muted); }
.vlabel {
  font-family: var(--font-mono); font-size: var(--text-2xs);
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  padding: 4px 8px; border-radius: var(--radius-pill); margin-left: auto;
}
.bg-allow, .vt.bg-allow { background: var(--verdict-allow); }
.bg-deny, .vt.bg-deny { background: var(--verdict-deny); }
.bg-review, .vt.bg-review { background: var(--verdict-review); }
.bg-kill, .vt.bg-kill { background: var(--text-heading); }
.bd-allow { color: var(--verdict-allow); background: var(--allow-fill); }
.bd-deny { color: var(--verdict-deny); background: var(--deny-fill); }
.bd-review { color: var(--verdict-review); background: var(--review-fill); }
.bd-kill { color: var(--text-heading); background: var(--surface-inset); }
.v-kill { color: var(--text-heading); }
.input-body { padding: 8px 16px 16px; }
.chat-row { display: flex; gap: 12px; }
.chat-av {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  background: var(--surface-inset); color: var(--text-muted);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: var(--text-2xs); flex-shrink: 0;
}
.chat-av.usr { background: var(--accent-fill); color: var(--accent-text); }
.chat-name { font-size: 0.8125rem; font-weight: 600; color: var(--text-heading); }
.chat-bub {
  margin-top: 6px; padding: 10px 12px;
  background: var(--surface-sunken); border-radius: var(--radius-md);
  font-size: 0.875rem; line-height: 1.55; color: var(--text-body);
}
.chat-meta { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--text-faint); margin-top: 6px; }
.api-block {
  font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.7;
  color: var(--text-body);
}
.api-block .m { color: var(--verdict-allow); }
.api-block .u { color: var(--accent-text); }
.api-block .k { color: var(--text-muted); }
.api-block .s { color: var(--verdict-info); }
.api-block .n { color: var(--verdict-review); }
.api-block .p { color: var(--text-faint); }
.runbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 14px 14px;
}
.ctl {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  background: var(--surface); color: var(--text-heading);
  cursor: pointer; box-shadow: var(--shadow-xs);
}
.ctl svg { width: 14px; height: 14px; }
.ctl:disabled { opacity: 0.4; cursor: default; }
.runbar .stat {
  margin-left: auto; font-family: var(--font-mono);
  font-size: var(--text-2xs); color: var(--text-faint);
  background: transparent; box-shadow: none; padding: 0;
}
.console {
  font-family: var(--font-mono); font-size: var(--text-xs);
  line-height: 1.7; max-height: 220px; overflow: auto;
  padding: 12px 16px 16px; color: var(--text-body);
}
.console-empty { color: var(--text-faint); }
.cline { display: flex; gap: 8px; }
.ct { color: var(--text-faint); }
.cc-infra { color: var(--text-muted); }
.cc-cnx { color: var(--accent-text); }
.cc-pass { color: var(--verdict-allow); }
.cc-deny, .cc-block, .cc-kill { color: var(--verdict-deny); }
.cc-review, .cc-escalate { color: var(--verdict-review); }
.cc-write { color: var(--verdict-info); }
.cur { color: var(--accent-text); }
.verdict-empty { padding: 18px 16px; font-size: 0.875rem; color: var(--text-faint); }
.verdict { padding: 16px; }
.vhead { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.vdot { width: 10px; height: 10px; border-radius: 50%; }
.vbig {
  font-family: var(--font-mono); font-weight: 500;
  letter-spacing: var(--tracking-caps);
  font-size: 0.9375rem;
}
.vsub { margin-left: auto; text-align: right; font-size: 0.75rem; color: var(--text-muted); line-height: 1.4; }
.record { display: flex; flex-direction: column; gap: 6px; }
.rrow { display: grid; grid-template-columns: 88px 1fr; gap: 10px; font-size: 0.8125rem; }
.rk { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--text-faint); }
.rv { color: var(--text-body); word-break: break-word; }
.hash, .seal { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent-text); }
.ok { color: var(--verdict-allow); font-family: var(--font-mono); }
.record-seal {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--hairline);
  font-size: 0.8125rem; color: var(--text-muted);
}
.arch-canvas {
  position: relative;
  background: var(--bg-sunken);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
  height: 640px; overflow: hidden;
}
.arch-scroll { height: 100%; overflow: hidden; padding: 24px 20px; }
.arch-stack { position: relative; display: flex; flex-direction: column; gap: 10px; }
.spine {
  position: absolute; left: 18px; top: 8px; bottom: 8px; width: 2px;
  background: var(--hairline-strong);
}
.packet {
  position: absolute; left: 12px; width: 14px; height: 14px; margin-top: -7px;
  border-radius: 50%; background: var(--accent);
  box-shadow: var(--shadow-accent);
  opacity: 0; pointer-events: none;
  transition: transform 0.55s var(--ease), opacity 0.2s var(--ease);
}
.packet.allow { background: var(--verdict-allow); }
.packet.deny { background: var(--verdict-deny); }
.packet.review { background: var(--verdict-review); }
.packet.kill { background: var(--text-heading); }
.zone {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: 14px 16px 14px 28px;
  border: 1px solid transparent;
  cursor: pointer; color: inherit; text-align: left; width: 100%;
  font: inherit;
}
.zone.cnx { border-color: var(--accent-line); background: var(--accent-fill); }
.zone.active { box-shadow: var(--shadow-md); border-color: var(--accent-line); }
.zone.s-pass { box-shadow: var(--shadow-sm); }
.zone.s-deny, .zone.s-block { border-color: var(--verdict-deny); }
.zone.s-review, .zone.s-escalate { border-color: var(--verdict-review); }
.zone.s-kill { border-color: var(--text-heading); }
.zone.s-write { border-color: var(--verdict-info); }
.zone.s-allow { border-color: var(--verdict-allow); }
.zone.skipped {
  border-style: dashed;
  border-color: var(--hairline-strong);
  background: var(--surface-sunken);
}
.zone.skipped .zk, .zone.skipped .ztitle, .zone.skipped .zdesc, .zone.skipped .znode b {
  color: var(--text-muted);
}
.skip-pill {
  font-family: var(--font-mono); font-size: var(--text-2xs);
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--text-muted); margin-left: auto;
}
.zk {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: var(--text-2xs);
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 8px;
}
.badge-decision {
  font-family: var(--font-mono); font-size: var(--text-2xs);
  letter-spacing: var(--tracking-caps);
  color: var(--accent-text); background: var(--surface);
  padding: 2px 7px; border-radius: var(--radius-pill);
}
.ztitle { font-weight: 600; color: var(--text-heading); margin-bottom: 6px; }
.zfns { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.zfns code {
  font-family: var(--font-mono); font-size: var(--text-2xs);
  color: var(--accent-text); background: var(--surface);
  padding: 2px 6px; border-radius: var(--radius-xs);
}
.zdesc { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.5; }
.znodes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.znode {
  background: var(--surface-sunken); border-radius: var(--radius-sm);
  padding: 8px 10px;
}
.znode.accent { background: var(--accent-fill); }
.znode b { display: block; font-size: 0.8125rem; color: var(--text-heading); }
.znode span { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--text-muted); }
.arch-legend {
  display: flex; flex-wrap: wrap; gap: 12px 18px;
  margin-top: 12px; font-size: 0.75rem; color: var(--text-muted);
}
.arch-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.arch-legend i {
  width: 10px; height: 10px; border-radius: 2px;
  background: var(--hairline-strong); font-style: normal;
}
.arch-legend .lg-cnx i { background: var(--accent); }
.arch-legend .lg-allow i { background: var(--verdict-allow); }
.arch-legend .lg-review i { background: var(--verdict-review); }
.arch-legend .lg-deny i { background: var(--verdict-deny); }
.scrim {
  position: fixed; inset: 0; background: var(--bg-page);
  opacity: 0; pointer-events: none; z-index: 80;
  transition: opacity 0.2s var(--ease);
}
.scrim.open { opacity: 0.72; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%);
  background: var(--surface); box-shadow: var(--shadow-xl);
  z-index: 90; transform: translateX(100%);
  transition: transform 0.25s var(--ease);
  overflow: auto;
}
.drawer.open { transform: translateX(0); }
.dr-head { padding: 28px 24px 16px; }
.dr-head .k {
  font-family: var(--font-mono); font-size: var(--text-2xs);
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 8px;
}
.dr-head h2 { font-size: 1.35rem; margin-bottom: 10px; }
.dr-head p { font-size: 0.9375rem; color: var(--text-muted); }
.closeb {
  float: right; width: 36px; height: 36px;
  border: 1px solid var(--hairline-strong); border-radius: var(--radius-md);
  background: var(--surface); color: var(--text-heading); cursor: pointer;
}
.dr-body { padding: 8px 24px 32px; }
.dr-body h3 { font-size: 0.9375rem; margin: 18px 0 8px; }
.dr-body ul { display: flex; flex-direction: column; gap: 8px; }
.dr-body li { font-size: 0.875rem; color: var(--text-body); line-height: 1.55; padding-left: 12px; position: relative; }
.dr-body li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.dr-body code { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--accent-text); }

/* Blog + long-form */
.post-list { display: grid; gap: 18px; }
.post-card {
  display: block;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 28px 30px;
  color: inherit;
  transition: var(--transition-base);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; }
.post-meta {
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center;
  font-family: var(--font-mono); font-size: var(--text-2xs);
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 12px;
}
.post-card h2 { font-size: 1.5rem; margin-bottom: 8px; }
.post-card p { color: var(--text-muted); }
.read-more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; font-weight: 600; color: var(--accent-text);
}
.read-more svg { width: 16px; height: 16px; }
.blog-hero { padding: 72px 0 12px; }
.article-wrap { padding: 48px 0 96px; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.875rem; color: var(--text-muted); margin-bottom: 28px;
}
.back-link svg { width: 16px; height: 16px; }
.article-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.12; margin-bottom: 16px;
}
.lede {
  font-size: 1.2rem; color: var(--text-muted);
  font-style: italic; line-height: 1.6; margin-bottom: 2.5rem;
  max-width: 70ch;
}
.prose {
  max-width: 70ch;
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
}
.prose h2 {
  font-size: 1.5rem; margin: 2.2rem 0 0.8rem;
  line-height: var(--leading-snug);
}
.prose h3 { font-size: 1.15rem; margin: 1.6rem 0 0.6rem; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.2rem; }
.prose li { list-style: disc; margin-bottom: 0.4rem; }
.prose ol li { list-style: decimal; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose code {
  font-family: var(--font-mono); font-size: 0.85em;
  color: var(--accent-text); background: var(--accent-fill);
  padding: 0.1em 0.4em; border-radius: var(--radius-xs);
}
.prose pre {
  background: var(--surface-sunken);
  border-radius: var(--radius-lg);
  padding: 16px 18px; margin: 14px 0 20px;
  overflow-x: auto;
  box-shadow: var(--shadow-xs);
}
.prose pre code { background: none; padding: 0; color: var(--text-body); font-size: var(--text-xs); line-height: 1.7; }
.prose pre .kw { color: var(--accent-text); }
.prose pre .str { color: var(--verdict-info); }
.prose pre .cmt { color: var(--text-faint); }
.prose pre .lang-label {
  display: block; font-family: var(--font-mono); font-size: var(--text-2xs);
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 8px;
}
.prose blockquote {
  margin: 18px 0;
  padding: 16px 18px;
  background: var(--accent-fill);
  border-radius: var(--radius-md);
  color: var(--text-heading);
}
.prose table { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin: 16px 0 24px; }
.prose th, .prose td {
  text-align: left; padding: 8px 10px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.prose th { font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-muted); }
.table-scroll { overflow-x: auto; }
.cta-box {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 24px 26px;
  margin-top: 28px;
}
.disclaimer { font-size: 0.85rem; color: var(--text-muted); font-style: italic; margin-top: 2.5rem; }
.hr { border: none; border-top: 1px solid var(--hairline); margin: 2rem 0; }

/* ArtzAIn rhythm */
.arch-bleed .arch-panel { max-width: none; }
.cover-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cover-chip {
  display: inline-flex; flex-direction: column; gap: 4px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  padding: 12px 14px;
  min-width: 140px;
}
.cover-chip .t { font-weight: 600; font-size: 0.9375rem; color: var(--text-heading); }
.cover-chip .s { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--text-muted); line-height: 1.5; }
.cover-chip .bar { width: 28px; height: 4px; border-radius: 2px; margin-bottom: 6px; }
.gov-direct { margin-top: 0; }
.why-prose { max-width: 720px; }
.why-prose h2 { margin-bottom: 22px; }
.why-prose ol { display: flex; flex-direction: column; gap: 18px; }
.why-prose li {
  list-style: none;
  padding-left: 0;
  font-size: 1rem; line-height: 1.7; color: var(--text-muted);
}
.why-prose li .num {
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps); color: var(--accent-text);
  display: block; margin-bottom: 6px;
}
.why-prose li strong { color: var(--text-heading); }

.legal-note {
  font-size: 0.8125rem; color: var(--text-faint); margin-top: 24px;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .dev-hero-grid, .arch-lab, .ref-grid { grid-template-columns: 1fr; }
  .ep { grid-template-columns: 64px 1fr; }
  .ep .desc { grid-column: 2; }
}
@media (max-width: 900px) {
  .site-nav { display: none; }
  .nav-toggle { display: grid; }
  .split-mission, .split-products, .split-upcoming, .split-platform {
    grid-template-columns: 1fr; gap: 40px;
  }
  .stats, .team-grid, .grid-3, .grid-2, .cap-grid, .gap-grid, .metric-grid, .znodes { grid-template-columns: 1fr 1fr; }
  .header-actions .btn-sm { display: none; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero-labs, .hero-product, .hero-dev { padding: 72px 0 64px; }
  .stats, .team-grid, .grid-4, .grid-3, .grid-2, .cap-grid, .gap-grid, .metric-grid, .znodes { grid-template-columns: 1fr; }
  .arch-arrow { display: none; }
  .arch-canvas { height: 520px; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ── ArtzAIn architecture — boundary map page (/artzain/architecture) ── */
.bmap-hero { padding: 96px 0 8px; }
.bmap-hero .hero-lead { max-width: 700px; }
.bmap-panel {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 26px 18px 16px;
  overflow-x: auto;
}
.bmap-panel svg { display: block; min-width: 940px; max-width: 100%; height: auto; margin: 0 auto; }
.bmap-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-bottom: 20px; }
.bmap-legend span { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-sm); color: var(--text-muted); }
.bmap-legend i { width: 22px; border-top: 3px solid; display: inline-block; }
.bmap-legend i.dashed { border-top-style: dashed; }

/* SVG text roles — themed through tokens so both themes come free */
.bmap-region { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: var(--tracking-caps); }
.bmap-title { font-family: var(--font-body); font-weight: 600; font-size: 12.5px; }
.bmap-body { font-family: var(--font-body); font-size: 11px; }
.bmap-code { font-family: var(--font-mono); font-size: 10.5px; }
.bmap-lane { font-family: var(--font-body); font-size: 10.5px; }
.bmap-lane-code { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; }

.bmap-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 8px 20px;
}
.bmap-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; min-width: 760px; }
.bmap-table th {
  font-family: var(--font-mono); font-size: var(--text-2xs);
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--text-muted); font-weight: 500;
  text-align: left; padding: 14px 14px 10px;
  border-bottom: 1px solid var(--hairline-strong);
}
.bmap-table td {
  padding: 13px 14px; border-bottom: 1px solid var(--hairline);
  vertical-align: top; color: var(--text-muted); line-height: 1.6;
}
.bmap-table tr:last-child td { border-bottom: none; }
.bmap-table td:first-child { color: var(--text-body); font-weight: 600; }
.bmap-table .dir { font-family: var(--font-mono); font-size: var(--text-xs); white-space: nowrap; color: var(--text-body); }
.keep-no { color: var(--domain-context); font-weight: 600; }
.keep-yes { color: var(--domain-financial); font-weight: 600; }
.keep-you { color: var(--accent-text); font-weight: 600; }

.bmap-note {
  border-left: 3px solid var(--domain-financial);
  background: var(--surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-xs);
  padding: 14px 20px;
  font-size: 0.9375rem; color: var(--text-muted); line-height: 1.7;
  max-width: 760px; margin: 28px auto 0;
}
.bmap-note strong { color: var(--text-heading); }

.bmap-cards .card { padding: 24px 22px; display: flex; flex-direction: column; }
.bmap-cards h3 { font-size: 1.0625rem; letter-spacing: var(--tracking-snug); margin-bottom: 2px; }
.bmap-cards .sub { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--text-faint); margin-bottom: 12px; }
.bmap-cards ul { display: flex; flex-direction: column; gap: 7px; font-size: 0.855rem; color: var(--text-muted); line-height: 1.55; flex: 1; }
.bmap-cards li { padding-left: 14px; position: relative; }
.bmap-cards li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent-line);
}
.bmap-cards .where {
  margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--hairline);
  font-family: var(--font-mono); font-size: var(--text-2xs);
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--domain-context);
}
.bmap-cards .where.plane { color: var(--accent-text); }

.bmap-mode { padding: 26px 24px; }
.bmap-mode .kicker {
  font-family: var(--font-mono); font-size: var(--text-2xs);
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 10px;
}
.bmap-mode h3 { font-size: 1.125rem; letter-spacing: var(--tracking-snug); margin-bottom: 8px; }
.bmap-mode p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
.bmap-mode .jump { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 0.875rem; font-weight: 600; color: var(--accent-text); }
.bmap-mode .jump svg { width: 15px; height: 15px; }
