/* Datascreen — first-run welcome page (futuristic refinement)
   Inter body / Newsreader display / JetBrains Mono metadata.
   Refined: calm off-white, cool near-black, single muted-teal accent. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
html { background: var(--paper); }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss02';
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  min-height: 100vh;
  letter-spacing: -0.005em;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(12, 17, 22, 0.055);
  opacity: 0;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  pointer-events: none;
  z-index: 20;
  transition: opacity 0.18s ease, backdrop-filter 0.18s ease, -webkit-backdrop-filter 0.18s ease;
}
body:has(.nav-menu:hover)::before,
body:has(.nav-menu:focus-within)::before,
body:has(.nav-link:hover)::before,
body:has(.nav-link:focus)::before,
body:has(.mobile-menu[open])::before {
  opacity: 1;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

/* Light is the canonical futuristic theme — off-white with a teal "instrument" accent */
:root, [data-theme="light"] {
  --paper:    #fbfbfa;
  --paper-2:  #f5f5f2;
  --paper-3:  #eeeeea;
  --paper-4:  #dadfe7;
  --ink:      #0c1116;          /* near-black, slightly cool */
  --ink-2:    #2d343f;
  --ink-3:    #5b6371;
  --ink-4:    #8a93a0;
  --rule:     #e4e4de;
  --rule-2:   #d1d2ca;
  --accent:        #0f6e7c;          /* deep teal — instrument tone, high contrast on light */
  --accent-2:      #0a525e;
  --accent-soft:   rgba(15, 110, 124, 0.08);
  --accent-glow:   rgba(15, 110, 124, 0.22);
  --severity-warn: #a47011;
  --severity-warn-soft: rgba(164, 112, 17, 0.10);
  --severity-bad:  #a4332a;
  --severity-bad-soft:  rgba(164, 51, 42, 0.08);
  --severity-ok:   #1a6b46;
  --hl-bg: rgba(164, 112, 17, 0.14);
  --grid-color: rgba(15, 110, 124, 0.00);
  --brand-logo-filter: none;
  --page-pad: clamp(18px, 3vw, 40px);
  --space-2xs: clamp(8px, 0.45vw, 12px);
  --space-xs: clamp(10px, 0.65vw, 16px);
  --space-s: clamp(16px, 1.1vw, 28px);
  --space-m: clamp(24px, 2vw, 44px);
  --space-l: clamp(38px, 4vw, 80px);
  --space-section: clamp(58px, 6vw, 120px);
  --text-micro: clamp(10px, 0.15vw, 11px);
  --text-small: clamp(12px, 0.2vw, 13.5px);
  --text-body: clamp(14.5px, 0.45vw, 17.5px);
  --text-section: clamp(30px, 4vw, 54px);
  --text-card: clamp(18px, 1.05vw, 22px);
  --text-hero: clamp(38px, 5vw, 72px);
}

[data-theme="dark"] {
  --paper:    #06080c;
  --paper-2:  #0c1015;
  --paper-3:  #11161d;
  --paper-4:  #19202a;
  --ink:      #eef1f6;
  --ink-2:    #b8bfcb;
  --ink-3:    #7c8493;
  --ink-4:    #4a525e;
  --rule:     #1a2029;
  --rule-2:   #262e3a;
  --accent:        #7cc7d4;
  --accent-2:      #5aa8b6;
  --accent-soft:   rgba(124, 199, 212, 0.10);
  --accent-glow:   rgba(124, 199, 212, 0.30);
  --severity-warn: #d4a040;
  --severity-warn-soft: rgba(212, 160, 64, 0.13);
  --severity-bad:  #d65750;
  --severity-bad-soft:  rgba(214, 87, 80, 0.13);
  --severity-ok:   #6dbf94;
  --hl-bg: rgba(212, 160, 64, 0.16);
  --grid-color: rgba(124, 199, 212, 0.05);
  --brand-logo-filter: invert(1);
}

.mono { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; font-feature-settings: 'zero'; }
.num  { font-variant-numeric: tabular-nums; font-family: 'JetBrains Mono', monospace; }

.label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500;
}

/* ── Top app bar ─────────────────────────────────────────────────────── */
.app-header {
  display: flex; align-items: center;
  padding: 16px 32px;
  background: color-mix(in srgb, var(--paper) 94%, white);
  gap: 24px;
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, backdrop-filter 0.18s ease, -webkit-backdrop-filter 0.18s ease;
}
body:has(.nav-menu:hover) .app-header,
body:has(.nav-menu:focus-within) .app-header,
body:has(.nav-link:hover) .app-header,
body:has(.nav-link:focus) .app-header,
body:has(.mobile-menu[open]) .app-header {
  background: color-mix(in srgb, var(--paper) 84%, white);
  border-bottom-color: color-mix(in srgb, var(--rule) 68%, var(--ink));
  box-shadow: 0 14px 42px rgba(12, 17, 22, 0.08);
  backdrop-filter: blur(12px) saturate(1.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
a.brand { text-decoration: none; color: inherit; }
.brand-logo {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  filter: var(--brand-logo-filter);
}
.brand-name {
  font-weight: 600; letter-spacing: -0.015em; font-size: 15px; white-space: nowrap;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-name .dim {
  color: var(--ink-3); font-weight: 400; margin-left: 10px; font-size: 13.5px;
  letter-spacing: -0.005em;
}
body:has(.nav-menu:hover) .brand,
body:has(.nav-menu:focus-within) .brand,
body:has(.nav-link:hover) .brand,
body:has(.nav-link:focus) .brand {
  opacity: 0.42;
  filter: saturate(0.82);
}

.header-spacer { flex: 1 1 auto; min-width: 0; }

.header-right {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--ink-2);
  flex-shrink: 0;
}
.header-right a {
  color: var(--ink-2); text-decoration: none; transition: color 0.15s;
  font-weight: 400;
}
.header-right a:hover { color: var(--ink); }
.nav-pill {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 42px;
  padding: 3px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 86%, white);
  box-shadow: 0 1px 0 rgba(12, 17, 22, 0.04);
  transition: opacity 0.16s ease, filter 0.16s ease;
}
.nav-menu {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 34px;
  transition: opacity 0.16s ease, filter 0.16s ease;
}
.nav-trigger,
.nav-link {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}
body:has(.nav-menu:hover) .nav-pill > :not(:hover),
body:has(.nav-menu:focus-within) .nav-pill > :not(:focus-within),
body:has(.nav-link:hover) .nav-pill > :not(:hover),
body:has(.nav-link:focus) .nav-pill > :not(:focus) {
  opacity: 0.38;
  filter: saturate(0.82);
}
body:has(.nav-menu:hover) .header-cta,
body:has(.nav-menu:focus-within) .header-cta,
body:has(.nav-link:hover) .header-cta,
body:has(.nav-link:focus) .header-cta {
  opacity: 0.42;
  filter: saturate(0.82);
}
.nav-menu + .nav-menu::before,
.nav-link::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 50%;
  width: 1px;
  height: 18px;
  background: var(--rule);
  opacity: 0.9;
  filter: blur(0);
  transform: translateY(-50%);
  transition: opacity 0.16s ease, filter 0.16s ease;
}
.nav-menu:hover::before,
.nav-menu:focus-within::before,
.nav-menu:hover + .nav-menu::before,
.nav-menu:focus-within + .nav-menu::before,
.nav-menu:hover + .nav-link::before,
.nav-menu:focus-within + .nav-link::before,
.nav-link:hover::before,
.nav-link:focus::before {
  opacity: 0.06;
  filter: blur(6px);
}
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink-2);
}
.nav-menu:hover .nav-trigger,
.nav-trigger:hover,
.nav-menu:focus-within .nav-trigger,
.nav-link:hover,
.nav-link:focus {
  background: transparent;
  color: var(--ink);
  opacity: 1;
}
.nav-caret {
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-4);
  line-height: 1;
}
.nav-menu:hover .nav-caret,
.nav-menu:focus-within .nav-caret {
  color: var(--ink);
}
.nav-caret svg {
  width: 12px;
  height: 12px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: 50% 50%;
  transition: transform 0.16s ease;
}
.nav-menu:hover .nav-caret svg,
.nav-menu:focus-within .nav-caret svg {
  transform: rotate(180deg);
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink-2);
}
.mobile-menu {
  display: none;
  position: relative;
  z-index: 40;
}
.mobile-menu summary {
  list-style: none;
}
.mobile-menu summary::-webkit-details-marker {
  display: none;
}
.mobile-menu-trigger {
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
}
.mobile-menu[open] .mobile-menu-trigger {
  color: var(--ink);
  gap: 0;
}
.mobile-menu[open] .mobile-menu-trigger .nav-caret {
  display: none;
}
.mobile-menu-panel {
  position: fixed;
  inset: 58px 0 0;
  width: auto;
  min-height: calc(100svh - 58px);
  height: calc(100svh - 58px);
  padding: 62px 20px 20px;
  border: 0;
  border-top: 1px solid var(--rule);
  border-radius: 0;
  background: color-mix(in srgb, var(--paper) 96%, white);
  box-shadow: none;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 25;
  display: block;
  overflow-y: auto;
}
.mobile-menu[open] .mobile-menu-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu-view {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-menu-view[hidden] {
  display: none !important;
}
.mobile-menu-list {
  display: grid;
  gap: 14px;
}
.mobile-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0;
  text-align: left;
  text-decoration: none;
}
.mobile-menu-item:hover,
.mobile-menu-item:focus {
  color: var(--ink);
}
.mobile-menu-branch {
  background: none;
  border: 0;
  cursor: pointer;
}
.mobile-menu-row-caret,
.mobile-menu-back-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 14px;
  color: var(--ink);
}
.mobile-menu-row-caret svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mobile-menu-back-caret svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mobile-menu-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0;
  text-align: left;
}
.mobile-menu-subitems {
  display: grid;
  gap: 14px;
}
.mobile-menu-subitem {
  display: grid;
  gap: 4px;
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
}
.mobile-menu-subitem small {
  max-width: 230px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 400;
  color: var(--ink-3);
}
.mobile-menu-actions {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding-top: 20px;
}
.mobile-menu-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper) !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.nav-menu::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -8px;
  right: -8px;
  height: 14px;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  width: 286px;
  padding: 8px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 96%, white);
  box-shadow: 0 20px 44px rgba(12, 17, 22, 0.14);
  opacity: 0;
  transform: translate(-50%, 6px);
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
  z-index: 50;
}
.nav-menu:hover .nav-dropdown,
.nav-menu:focus-within .nav-dropdown {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.nav-drop-link {
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  border-radius: 6px;
  color: var(--ink);
}
.nav-drop-link:hover,
.nav-drop-link:focus {
  background: var(--paper-2);
  color: var(--ink);
}
.nav-drop-link span {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}
.nav-drop-link small {
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink-3);
}
.header-right .version {
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px;
  color: var(--ink-3); letter-spacing: 0.04em;
}
.header-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px;
  padding: 0 16px; font-size: 13px; font-weight: 500; line-height: 1;
  border-radius: 999px;
  border: 1px solid var(--ink);
  color: var(--paper) !important;
  background: var(--ink);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(12, 17, 22, 0.08);
  transition: opacity 0.16s ease, filter 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
/* ── Layout container ─────────────────────────────────────────────────── */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--page-pad); }

/* ── Section frames ───────────────────────────────────────────────────── */
section { border-bottom: 1px solid var(--rule); }

.sec-head {
  padding: var(--space-section) 0 var(--space-l);
  max-width: 880px;
  position: relative;
}
.sec-head .label {
  margin-bottom: var(--space-s); display: inline-flex; align-items: center; gap: 12px;
}
.sec-head .label::before {
  content: ''; width: 24px; height: 1px; background: var(--accent);
  display: inline-block;
}
.sec-head .h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: var(--text-section); line-height: 1.12;
  font-weight: 430; letter-spacing: 0;
  color: var(--ink); margin: 0;
  text-wrap: balance;
}
.sec-head .sub {
  color: var(--ink-2); font-size: var(--text-body); line-height: 1.6;
  max-width: 680px; margin-top: var(--space-s);
  font-weight: 400;
}

/* ── HERO ─────────────────────────────────────────────────────────────── */
.hero {
  min-height: clamp(560px, calc(100svh - 156px), 700px);
  padding: clamp(62px, 8vh, 104px) 0 clamp(54px, 7vh, 82px);
  position: relative; overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: transparent;
  mask-image: none;
  -webkit-mask-image: none;
}
.hero .wrap { position: relative; z-index: 1; }

/* Simple platform-style hero */
.hero-simple {
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}
.hero-simple .headline {
  max-width: 940px;
  font-size: var(--text-hero);
  line-height: 1.06;
}
.hero-simple .subhead {
  max-width: 760px;
  font-size: var(--text-body);
  margin-left: auto;
  margin-right: auto;
}
.hero-simple .cta-row {
  justify-content: center;
}

#platform .sec-head {
  padding-top: var(--space-section);
}

/* Instrument readout strip at top of hero */
.readout {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--rule);
  background: var(--paper-2);
  margin-bottom: 80px;
}
.readout-cell {
  padding: 12px 18px;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 4px;
}
.readout-cell:last-child { border-right: none; }
.readout-cell .rc-l {
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-4);
}
.readout-cell .rc-v {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--ink-2); display: flex; align-items: center; gap: 8px;
}
.readout-cell .dot {
  width: 7px; height: 7px; border-radius: 50%; display: inline-block;
}
.readout-cell .dot.ok  {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
  animation: blink 2.4s infinite;
}
.readout-cell .dot.off { background: var(--ink-4); }
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

/* Hero grid (text + schematic) */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px; align-items: start;
}
.hero-text { padding-top: 6px; }

.hero .eyebrow {
  font-family: 'Inter', system-ui, sans-serif; font-size: var(--text-small);
  letter-spacing: 0; text-transform: none;
  color: var(--ink-3); margin-bottom: var(--space-m);
  display: inline-flex; align-items: center; gap: 14px;
  justify-content: center;
}
.hero .eyebrow .eb-tick {
  width: 20px; height: 1px; background: var(--accent);
  display: inline-block;
}
.hero .eyebrow .sep { color: var(--ink-4); margin: 0 8px; }

.headline {
  font-family: 'Newsreader', Georgia, serif;
  margin: 0; max-width: 1000px;
  font-size: var(--text-hero);
  line-height: 1.06;
  font-weight: 430;
  letter-spacing: 0;
  color: var(--ink);
  text-wrap: balance;
}

.subhead {
  margin: var(--space-m) 0 0; max-width: 540px;
  font-size: var(--text-body); line-height: 1.6;
  color: var(--ink-2);
  font-weight: 400;
}

.cta-row {
  margin-top: var(--space-l); display: flex; gap: var(--space-xs); align-items: center; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; font-size: var(--text-small); font-weight: 500;
  border: 1px solid var(--rule-2); background: transparent; color: var(--ink);
  cursor: pointer; transition: all 0.15s; text-decoration: none;
  font-family: inherit; letter-spacing: -0.005em;
}
.btn:hover { border-color: var(--ink); background: var(--paper-2); }
.btn.primary {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.btn.primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
.arr {
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.86;
}
.arr svg {
  width: 12px;
  height: 12px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-stamps {
  margin-top: 60px; display: flex; gap: 32px; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  letter-spacing: 0.18em; color: var(--ink-3); text-transform: uppercase;
  padding-top: 28px; border-top: 1px solid var(--rule);
}

/* ── Hero schematic (specimen visual with corner brackets) ───────────── */
.schematic {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  margin-top: 6px;
}
.schem-bracket {
  position: absolute; width: 14px; height: 14px; pointer-events: none;
}
.schem-bracket.tl { top: -6px; left: -6px; border-top: 1.5px solid var(--accent); border-left: 1.5px solid var(--accent); }
.schem-bracket.tr { top: -6px; right: -6px; border-top: 1.5px solid var(--accent); border-right: 1.5px solid var(--accent); }
.schem-bracket.bl { bottom: -6px; left: -6px; border-bottom: 1.5px solid var(--accent); border-left: 1.5px solid var(--accent); }
.schem-bracket.br { bottom: -6px; right: -6px; border-bottom: 1.5px solid var(--accent); border-right: 1.5px solid var(--accent); }

.schem-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
  display: flex; gap: 12px; align-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  color: var(--ink-3); letter-spacing: 0.04em;
}
.schem-head .sh-id { color: var(--accent); font-weight: 500; letter-spacing: 0.08em; }
.schem-head .sh-src { color: var(--ink-3); }

.schem-verdict {
  padding: 18px; border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.schem-verdict .sv-mod {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--ink-4); letter-spacing: 0.08em; margin-bottom: 4px;
}
.schem-verdict .sv-sub {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em;
}
.schem-verdict .sv-sev { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.schem-verdict .sev-n {
  font-family: 'JetBrains Mono', monospace; font-size: 28px;
  color: var(--ink); font-weight: 500; line-height: 1;
}
.schem-verdict .sev-band {
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px;
  letter-spacing: 0.16em; padding: 3px 8px;
  color: var(--severity-bad); border: 1px solid var(--severity-bad);
}

.schem-slide { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--rule); }
.ss-pane { padding: 14px 18px; }
.ss-pane + .ss-pane { border-left: 1px solid var(--rule); }
.ss-pane .ss-label {
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px;
  color: var(--ink-4); letter-spacing: 0.18em; margin-bottom: 8px;
}
.ss-pane .ss-text {
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px;
  line-height: 1.65; color: var(--ink-2);
}
.ss-pane .ss-text em { font-style: normal; padding: 1px 2px; }
.ss-pane .ss-text em.m-amber { background: var(--severity-warn-soft); border-bottom: 1px solid var(--severity-warn); color: var(--ink); }
.ss-pane .ss-text em.m-rose  { background: var(--severity-bad-soft);  border-bottom: 1px solid var(--severity-bad);  color: var(--ink); }

.schem-signals { padding: 4px 0; }
.ssig {
  display: grid; grid-template-columns: 1fr auto auto;
  align-items: center; gap: 14px;
  padding: 8px 18px; font-size: 11.5px;
  border-bottom: 1px solid var(--rule);
  font-family: 'JetBrains Mono', monospace;
}
.ssig:last-child { border-bottom: none; }
.ssig .ssig-l { color: var(--ink-2); }
.ssig .ssig-v { color: var(--ink); }
.ssig .ssig-r {
  font-size: 9.5px; letter-spacing: 0.16em; padding: 2px 8px;
  border: 1px solid currentColor;
}
.ssig .ssig-r.pass { color: var(--severity-ok); }
.ssig .ssig-r.fail { color: var(--severity-bad); }

.schem-foot {
  padding: 10px 18px; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--ink-4); letter-spacing: 0.04em;
}
.schem-foot .schem-tick { color: var(--ink-4); }

/* ── Product cards ────────────────────────────────────────────────────── */
.modules-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-s);
  margin-bottom: var(--space-section);
}
.module {
  min-height: 228px;
  padding: clamp(24px, 3vw, 46px);
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 90%, white);
  box-shadow: 0 10px 30px rgba(12, 17, 22, 0.035);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  position: relative;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.module:hover {
  border-color: var(--rule-2);
  transform: translateY(-0.5px);
  background: color-mix(in srgb, var(--paper) 84%, white);
  box-shadow: 0 14px 34px rgba(12, 17, 22, 0.05);
}
.module:hover .nm { color: var(--accent); }
.module .idx {
  font-family: 'Inter', system-ui, sans-serif; font-size: 13px;
  color: var(--ink-4); letter-spacing: 0.1em;
}
.module .idx::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  margin-top: 14px;
  background: var(--accent);
  opacity: 0.65;
}
.module .nm {
  font-family: 'Inter', system-ui, sans-serif; font-size: var(--text-card);
  line-height: 1.22;
  color: var(--ink); letter-spacing: 0; font-weight: 560;
  transition: color 0.15s;
}
.module .desc {
  color: var(--ink-2); font-size: 15px; line-height: 1.58;
  max-width: 500px; font-weight: 400;
}
.module .ex {
  display: flex; align-items: center; gap: 10px;
  padding: 0;
  background: transparent;
  border-left: none;
  font-family: 'Inter', system-ui, sans-serif; font-size: 13px;
  color: var(--ink-2); margin-top: 8px; align-self: end; flex-wrap: wrap;
}
.module .ex .k { color: var(--ink-3); }
.module .ex .v { color: var(--ink); }

/* ── Use cases ───────────────────────────────────────────────────────── */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-s);
  margin-bottom: var(--space-section);
}
.usecase {
  min-height: 232px;
  padding: clamp(22px, 2.2vw, 34px);
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 92%, white);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.usecase:hover {
  border-color: var(--rule-2);
  background: color-mix(in srgb, var(--paper) 86%, white);
  box-shadow: 0 10px 26px rgba(12, 17, 22, 0.035);
}
.usecase .idx {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.14em;
}
.usecase h3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: var(--text-card);
  line-height: 1.24;
  letter-spacing: 0;
  font-weight: 560;
  color: var(--ink);
  margin: 0;
}
.usecase p {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.58;
  margin: 0;
}

/* ── Stakes section ───────────────────────────────────────────────────── */
.stakes-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-s);
  margin-bottom: var(--space-section);
}
.stake {
  padding: clamp(24px, 3vw, 46px);
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 92%, white);
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.stake:hover {
  border-color: var(--rule-2);
  background: color-mix(in srgb, var(--paper) 86%, white);
  box-shadow: 0 10px 26px rgba(12, 17, 22, 0.035);
}
.stake .idx {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.16em; font-weight: 500;
}
.stake .h3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: var(--text-card); font-weight: 560; color: var(--ink);
  margin: 0; letter-spacing: 0; line-height: 1.26;
  max-width: 480px;
}
.stake .setup {
  color: var(--ink-2); font-size: 15px; line-height: 1.58;
  font-weight: 400;
}
.stake .conseq {
  color: var(--ink-2); font-size: 14.5px; line-height: 1.58;
  padding-top: 18px; border-top: 1px solid var(--rule);
  display: flex; gap: 12px; font-weight: 400;
}
.stake .conseq .arrow { color: var(--severity-bad); flex-shrink: 0; }

/* ── Output section ───────────────────────────────────────────────────── */
.output-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  margin-bottom: 120px;
}
.artifact {
  background: var(--paper-2); border: 1px solid var(--rule);
  display: flex; flex-direction: column;
  position: relative;
}
.artifact::before {
  content: ''; position: absolute; top: -1px; left: -1px;
  width: 24px; height: 1px; background: var(--accent);
}
.art-head {
  padding: 18px 24px; border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
}
.art-head .name { color: var(--accent); }
.art-head .tag {
  font-size: 9.5px; letter-spacing: 0.16em; color: var(--ink-3);
  border: 1px solid var(--rule-2); padding: 3px 9px; font-weight: 500;
}
.art-body { padding: 28px 30px 30px; }
.art-body h4 {
  font-family: 'Space Grotesk', sans-serif;
  margin: 0 0 10px; font-size: 22px; font-weight: 500;
  letter-spacing: -0.025em; color: var(--ink);
}
.art-body .desc {
  color: var(--ink-2); font-size: 15px; line-height: 1.6;
  margin: 0 0 24px; max-width: 460px; font-weight: 400;
}
.art-fields {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--rule);
}
.art-field {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 16px; padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
}
.art-field:last-child { border-bottom: none; }
.art-field .k { color: var(--ink-3); }
.art-field .v { color: var(--ink); word-break: break-all; }

/* ── Trust section ────────────────────────────────────────────────────── */
.trust-list {
  border-top: 1px solid var(--rule); margin-bottom: 120px;
}
.trust-row {
  display: grid; grid-template-columns: 76px 320px 1fr;
  align-items: baseline; gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
  transition: background 0.15s;
}
.trust-row:hover { background: var(--paper-2); }
.trust-row .num {
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  color: var(--accent); letter-spacing: 0.16em; font-weight: 500;
}
.trust-row .key {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px; font-weight: 500; color: var(--ink);
  letter-spacing: -0.022em;
  line-height: 1.25;
}
.trust-row .desc {
  color: var(--ink-2); font-size: 15px; line-height: 1.6;
  max-width: 580px; font-weight: 400;
}

/* ── Blog section ─────────────────────────────────────────────────────── */
.blog-shell {
  margin-bottom: 120px;
}
.blog-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--space-l);
  padding: var(--space-l);
  margin-bottom: var(--space-section);
  border: 1px solid var(--rule);
  background: var(--paper-2);
  color: inherit;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.blog-preview:hover {
  background: var(--paper-3);
  border-color: var(--rule-2);
}
.blog-preview h3 {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  color: var(--ink);
  font-size: clamp(27px, 3vw, 42px);
  line-height: 1.08;
  font-weight: 500;
  max-width: 740px;
  margin: 18px 0 14px;
}
.blog-preview p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
  max-width: 640px;
  margin: 0;
}
.preview-action {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  font-size: 12px;
  white-space: nowrap;
}
.blog-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 28px 0 16px;
}
.blog-topline.latest {
  margin-top: 36px;
}
.blog-topline a,
.post-count {
  color: var(--ink-2);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  border-bottom: 1px solid var(--rule-2);
}
.blog-topline a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.blog-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
}
.featured-post {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.8fr);
  min-height: 420px;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.featured-post:hover {
  border-color: var(--rule-2);
  background: var(--paper-3);
}
.featured-copy {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}
.post-kicker,
.post-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
}
.featured-copy h3,
.post-card h3,
.article-hero h1,
.article-body h2 {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  color: var(--ink);
  font-weight: 500;
  margin: 0;
}
.featured-copy h3 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.04;
  max-width: 760px;
}
.featured-copy p {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.65;
  max-width: 680px;
  margin: 0;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-3);
}
.post-meta span + span::before {
  content: '/';
  color: var(--ink-4);
  margin-right: 18px;
}
.featured-visual {
  border-left: 1px solid var(--rule);
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  background:
    linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
  background-size: 42px 42px;
}
.viz-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-2);
}
.viz-row b {
  color: var(--ink);
  font-weight: 500;
}
.viz-row.hot { border-left: 2px solid var(--severity-bad); }
.viz-row.warn { border-left: 2px solid var(--severity-warn); }
.mini-evidence-map {
  justify-content: center;
}
.map-head,
.map-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 75%, transparent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-3);
}
.map-head b {
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.map-foot {
  color: var(--ink-4);
  font-size: 10.5px;
}
.research-desk {
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 26px;
}
.research-desk p {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 20px 0 24px;
}
.desk-row {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.desk-row span,
.research-streams article span {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
}
.desk-row b {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.post-card {
  min-height: 290px;
  padding: 30px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background 0.15s;
}
.post-card:hover {
  background: var(--paper-2);
}
.post-card h3 {
  font-size: 24px;
  line-height: 1.16;
}
.post-card p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
.post-card .post-meta {
  margin-top: auto;
  font-size: 11.5px;
}
.research-streams {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  margin-top: 36px;
}
.research-streams article {
  min-height: 220px;
  padding: 24px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.research-streams h4 {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.15;
  font-weight: 500;
  margin: 30px 0 12px;
}
.research-streams p {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

/* ── Blog article pages ───────────────────────────────────────────────── */
.article-page .app-header {
  position: static;
}
.article-shell {
  border-bottom: 1px solid var(--rule);
}
.article-hero {
  padding: 88px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.55fr);
  gap: 72px;
  align-items: end;
}
.article-hero h1 {
  font-size: clamp(42px, 5.2vw, 76px);
  line-height: 1;
  max-width: 900px;
}
.article-lede {
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.65;
  margin: 26px 0 0;
  max-width: 720px;
}
.article-card {
  border: 1px solid var(--rule);
  background: var(--paper-2);
  padding: 24px;
}
.article-card .label {
  display: block;
  margin-bottom: 18px;
}
.article-card-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.article-card-row span { color: var(--ink-3); }
.article-card-row b {
  color: var(--ink);
  font-weight: 500;
}
.article-body {
  max-width: 780px;
  padding: 72px 0 100px;
}
.article-body h2 {
  font-size: 30px;
  line-height: 1.15;
  margin: 48px 0 14px;
}
.article-body p,
.article-body li {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.72;
}
.article-body p {
  margin: 0 0 22px;
}
.article-body ul {
  margin: 0 0 28px;
  padding-left: 22px;
}
.article-callout {
  margin: 42px 0;
  padding: 24px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
}
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 80px;
  border-top: 1px solid var(--rule);
}
.article-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.article-nav a:hover {
  color: var(--accent);
}

/* ── Footer / CTA ────────────────────────────────────────────────────── */
.cta-section {
  padding: var(--space-section) 0 var(--space-section);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 30% 60%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 60%, #000 0%, transparent 70%);
}
.cta-section .wrap { position: relative; z-index: 1; }
.cta-section .label { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.cta-section .label::before { content: ''; width: 24px; height: 1px; background: var(--accent); display: inline-block; }
.cta-section .h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5vw, 64px); line-height: 1.04;
  font-weight: 500; letter-spacing: -0.032em;
  color: var(--ink); margin: 0; max-width: 820px; text-wrap: balance;
}
.cta-section .sub {
  color: var(--ink-2); font-size: var(--text-body); line-height: 1.6;
  margin: var(--space-s) 0 0; max-width: 640px; font-weight: 400;
}
.cta-section .cta-row { margin-top: var(--space-l); }
.cta-section .contact {
  margin-top: 60px; padding-top: 32px; border-top: 1px solid var(--rule);
  font-family: 'JetBrains Mono', monospace; font-size: 12.5px;
  color: var(--ink-3); letter-spacing: 0.02em;
  display: flex; gap: 32px; flex-wrap: wrap;
}
.cta-section .contact a {
  color: var(--ink-2); text-decoration: none;
  border-bottom: 1px solid var(--rule-2);
  padding-bottom: 1px; transition: all 0.15s;
}
.cta-section .contact a:hover { color: var(--accent); border-color: var(--accent); }

/* Bottom legal strip */
.legal {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 24px; padding: 32px 0; align-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  letter-spacing: 0.12em; color: var(--ink-4); text-transform: uppercase;
}
.legal .l { justify-self: start; }
.legal .c { justify-self: center; }
.legal .r { justify-self: end; }
.legal a {
  color: var(--ink-3); text-decoration: none; margin: 0 12px;
  transition: color 0.15s;
}
.legal a:hover { color: var(--ink-2); }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .app-header { padding: 14px 20px; gap: 16px; }
  .wrap { padding: 0 var(--page-pad); }
  .hero { padding: clamp(56px, 7vh, 82px) 0 clamp(50px, 6vh, 72px); }
  .hero-simple { padding-top: 0; }
  .readout { grid-template-columns: repeat(2, 1fr); margin-bottom: 56px; }
  .readout-cell { border-bottom: 1px solid var(--rule); }
  .readout-cell:nth-child(2n) { border-right: none; }
  .readout-cell:nth-last-child(-n+1) { grid-column: span 2; border-bottom: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .schematic { max-width: 540px; }
  .modules-grid { grid-template-columns: 1fr; }
  .module { min-height: 0; }
  .usecase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usecase {
    min-height: 0;
    padding: clamp(22px, 3vw, 32px);
  }
  .stakes-grid { grid-template-columns: 1fr; }
  .stake { padding: clamp(24px, 3vw, 38px); }
  .output-grid { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .trust-row .num { font-size: 11.5px; }
  .featured-post,
  .blog-preview,
  .blog-feature-layout,
  .article-hero { grid-template-columns: 1fr; }
  .featured-copy { padding: 32px 24px; }
  .featured-visual { border-left: none; border-top: 1px solid var(--rule); }
  .post-grid,
  .research-streams { grid-template-columns: 1fr; }
  .post-card { min-height: 0; }
  .sec-head { padding: var(--space-section) 0 var(--space-l); }
  .art-field { grid-template-columns: 1fr; gap: 2px; }
  .header-right { gap: 16px; }
  .header-right .version { display: none; }
  .schem-slide { grid-template-columns: 1fr; }
  .ss-pane + .ss-pane { border-left: none; border-top: 1px solid var(--rule); }
}

@media (max-width: 720px) {
  .app-header {
    min-height: 58px;
    padding: 12px 14px;
    gap: 10px;
  }
  .brand { gap: 10px; }
  .brand-logo {
    width: 28px;
    height: 28px;
  }
  .brand-name {
    display: none;
  }
  .header-right {
    gap: 8px;
  }
  .nav-pill {
    display: none;
  }
  .mobile-menu {
    display: block;
  }
  .mobile-menu-trigger {
    display: inline-flex;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid var(--rule);
    background: color-mix(in srgb, var(--paper) 88%, white);
  }
  .header-cta {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12.5px;
  }
  .hero {
    min-height: clamp(430px, calc(100svh - 138px), 560px);
    align-items: center;
    padding: 38px 0 42px;
  }
  .hero-simple {
    max-width: 100%;
    padding: 0;
  }
  .subhead {
    margin-top: 20px;
    line-height: 1.55;
  }
  .cta-row {
    margin-top: 28px;
    gap: 10px;
  }
  .btn {
    padding: 11px 14px;
  }
  #platform .sec-head {
    padding-top: clamp(30px, 5vw, 46px);
  }
  .usecase-grid {
    grid-template-columns: 1fr;
  }
  .headline {
    font-size: 36px;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: normal;
  }
  .hero-simple .headline br {
    display: none;
  }
  .hero .eyebrow {
    gap: 10px;
    white-space: normal;
  }
  .hero .eyebrow .eb-tick {
    width: 16px;
  }
  .hero .eyebrow .sep {
    margin: 0 5px;
  }
  .cta-row {
    gap: var(--space-xs);
  }
  .sec-head {
    max-width: none;
  }
  .sec-head .label {
    gap: 10px;
  }
  .sec-head .label::before {
    width: 18px;
  }
  .module {
    gap: 14px;
    box-shadow: 0 12px 32px rgba(12, 17, 22, 0.04);
  }
  .module .desc {
    line-height: 1.58;
  }
  .module .ex {
    font-size: 12.5px;
  }
  .usecase h3,
  .stake .h3 {
    letter-spacing: 0;
  }
  .stake .idx {
    font-size: 10px;
    line-height: 1.5;
  }
  .blog-preview {
    gap: var(--space-m);
  }
  .preview-action {
    white-space: normal;
  }
  .cta-section .contact {
    margin-top: 42px;
    padding-top: 24px;
  }
  .legal {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 0;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 380px) {
  .app-header {
    padding: 11px 12px;
  }
  .headline {
    font-size: 34px;
  }
  .mobile-menu-trigger {
    padding: 0 9px;
  }
  .header-cta {
    padding: 0 11px;
  }
}
