/* ═══════════════════════════════════════════════════════════════
   ThinkMachine V8 — Mineral Editorial & Process Precision
   Shared Design Tokens, Global Chrome, Landing Sections,
   Top-Layer Swipeable Drawer & English Machine Mode Dialog
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg-canvas: #F5F3EE;
  --bg-surface: #FFFFFF;
  --bg-subtle: #ECE9E1;
  --bg-obsidian: #111317;
  --bg-obsidian-elev: #191C22;

  --ink-primary: #141518;
  --ink-secondary: #4B4F59;
  --ink-muted: #6C707C;
  --ink-on-dark: #F4F2EC;
  --ink-on-dark-muted: rgba(244, 242, 236, 0.72);

  --copper: #C84B1D;
  --copper-hover: #A63A12;
  --copper-soft: #FBECE6;
  --copper-line: rgba(200, 75, 29, 0.28);

  --teal: #0F6D66;
  --teal-hover: #0B5550;
  --teal-soft: #E3F1EF;
  --teal-bright: #49D6C9;
  --teal-line: rgba(15, 109, 102, 0.26);

  --danger: #B92B22;
  --danger-bg: #FDECEB;
  --success: #147047;

  --border: #DDD9CE;
  --border-strong: #C6C1B4;
  --border-dark: rgba(244, 242, 236, 0.14);

  --font-sans: "Space Grotesk", "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Newsreader", "Noto Serif SC", "Songti SC", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-pill: 999px;
  --wrap-max: 1320px;
  --wrap-pad: clamp(1.25rem, 4vw, 3.5rem);
  --nav-h: 72px;
}

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--font-sans);
  background: var(--bg-canvas);
  color: var(--ink-primary);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

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

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.625rem 1rem;
  background: var(--bg-obsidian);
  color: var(--ink-on-dark);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

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

/* ── Scroll Progress Indicator (CSS Scroll-Driven Animation + JS fallback) ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--copper), var(--teal));
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    @keyframes tm-grow-progress {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }
    .scroll-progress {
      animation: tm-grow-progress auto linear;
      animation-timeline: scroll(root block);
    }
  }
}

/* ── Sticky Navigation Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 243, 238, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.wordmark-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--bg-obsidian);
  color: var(--ink-on-dark);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  flex: none;
}

.wordmark-mark::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--copper), var(--teal-bright));
}

.wordmark b {
  color: var(--copper);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-secondary);
}

.nav-links a {
  transition: color 0.16s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--copper);
}

.nav-links a[aria-current="page"] {
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.lang-link:hover {
  border-color: var(--ink-primary);
  color: var(--ink-primary);
  background: var(--bg-surface);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--copper);
  color: #fff;
}

.btn-primary:hover {
  background: var(--copper-hover);
  color: #fff;
}

.btn-dark {
  background: var(--bg-obsidian);
  color: var(--ink-on-dark);
}

.btn-dark:hover {
  background: #252933;
  color: var(--ink-on-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-primary);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--ink-primary);
  background: var(--bg-surface);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

.btn .arrow {
  font-family: var(--font-mono);
  font-weight: 400;
}

.menu-open-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--ink-primary);
}

/* ── Shared Section Typography ── */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}

.kicker::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: currentColor;
}

.kicker.teal {
  color: var(--teal);
}

.section-title {
  font-size: clamp(2rem, 4.1vw, 3.35rem);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink-primary);
  text-wrap: balance;
}

.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--copper);
}

html[lang="zh-CN"] .section-title em {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 700;
}

.section-lead {
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  line-height: 1.65;
  color: var(--ink-secondary);
  max-width: 58ch;
}

/* ═══════════════════════════════════════════════════════════════
   S1: HERO — Editorial Header + Interactive Coarse → Lean Frame
   ═══════════════════════════════════════════════════════════════ */
.hero {
  padding: clamp(1.5rem, 2.8vw, 2.25rem) 0 clamp(2.25rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--border);
}

.hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.82fr);
  gap: 2.25rem;
  align-items: end;
  margin-bottom: clamp(1.35rem, 2.2vw, 1.85rem);
}

.hero h1 {
  margin-top: 0.875rem;
  font-size: clamp(2.1rem, 3.9vw, 3.45rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
  text-wrap: balance;
}

.hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--copper);
}

html[lang="zh-CN"] .hero h1 em {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 700;
  color: var(--copper);
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-bottom: 0.25rem;
}

.hero-aside p {
  font-size: 1.03125rem;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.hero-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-stage {
  background: var(--bg-obsidian);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  background: var(--bg-obsidian-elev);
  border-bottom: 1px solid var(--border-dark);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-on-dark-muted);
}

.stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-on-dark);
}

.stage-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-bright);
}

.compare {
  --split: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 5.9;
  min-height: 310px;
  max-height: 410px;
  overflow: hidden;
  user-select: none;
  background: var(--bg-obsidian);
}

.compare-layer {
  position: absolute;
  inset: 0;
}

.compare-layer picture,
.compare-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-lean img {
  object-position: center 42%;
  filter: contrast(1.03) saturate(0.95);
}

.compare-rough {
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}

.compare-rough img {
  object-position: center 52%;
  filter: grayscale(1) contrast(1.14) brightness(0.84);
}

.compare-rough::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 19, 23, 0.25) 0%, rgba(17, 19, 23, 0.08) 45%, rgba(17, 19, 23, 0.78) 100%);
  pointer-events: none;
}

.compare-lean::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 109, 102, 0.14) 0%, rgba(17, 19, 23, 0.04) 45%, rgba(17, 19, 23, 0.74) 100%);
  pointer-events: none;
}

.compare-curve {
  position: absolute;
  left: 0;
  right: 0;
  top: 16%;
  height: 46%;
  width: 100%;
  z-index: 3;
  pointer-events: none;
}

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  background: #fff;
  transform: translateX(-1px);
  z-index: 5;
  pointer-events: none;
  box-shadow: 0 0 24px rgba(17, 19, 23, 0.65);
}

.compare-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-obsidian);
  border: 2px solid #fff;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 6;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}

.compare:has(.compare-range:focus-visible) .compare-knob {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
}

.compare-tag {
  position: absolute;
  bottom: 1.5rem;
  z-index: 4;
  pointer-events: none;
  max-width: 44%;
}

.compare-tag.left { left: 1.75rem; }
.compare-tag.right { right: 1.75rem; text-align: right; }

.compare-tag .eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.45rem;
}

.compare-tag.left .eyebrow { background: rgba(200, 75, 29, 0.9); color: #fff; }
.compare-tag.right .eyebrow { background: rgba(15, 109, 102, 0.92); color: #fff; }

.compare-tag strong {
  display: block;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1.05;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.compare-tag span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9375rem;
  color: rgba(244, 242, 236, 0.9);
}

.lean-hud {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 4;
  pointer-events: none;
  background: rgba(17, 19, 23, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(73, 214, 201, 0.45);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  color: var(--ink-on-dark);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
}

.lean-hud .hud-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--teal-bright);
  font-weight: 600;
}

.lean-hud .hud-vals {
  margin-top: 0.2rem;
  color: rgba(244, 242, 236, 0.88);
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-dark);
  background: var(--bg-obsidian);
}

.hero-metric {
  padding: 1.05rem 1.5rem;
  border-right: 1px solid var(--border-dark);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.hero-metric:last-child { border-right: 0; }

.hero-metric b {
  font-family: var(--font-mono);
  font-size: 1.375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink-on-dark);
}

.hero-metric b em { font-style: normal; color: var(--teal-bright); }

.hero-metric span {
  font-size: 0.8125rem;
  color: var(--ink-on-dark-muted);
  text-align: right;
}

/* ═══════════════════════════════════════════════════════════════
   S2: ON SITE — 3 Field Dossiers
   ═══════════════════════════════════════════════════════════════ */
.s-site {
  padding: clamp(4.5rem, 7vw, 6.5rem) 0;
  border-bottom: 1px solid var(--border);
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.75rem;
}

.sec-head .section-title { margin-top: 0.875rem; }

.dossier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.dossier {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.dossier:hover { border-color: var(--ink-primary); }

@media (prefers-reduced-motion: no-preference) {
  .dossier:hover { transform: translateY(-2px); }
}

.dossier-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.125rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dossier-meta .idx { color: var(--copper); }

.dossier-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-obsidian);
}

.dossier-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(0.92);
}

.dossier-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 19, 23, 0) 35%, rgba(17, 19, 23, 0.84) 100%);
  pointer-events: none;
}

.dossier-spark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.75rem;
  height: 40%;
  width: 100%;
  z-index: 2;
  pointer-events: none;
}

.dossier-signal {
  position: absolute;
  left: 1rem;
  bottom: 0.75rem;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: #FFCEC0;
  background: rgba(17, 19, 23, 0.72);
  padding: 0.2rem 0.5rem;
  border-left: 2px solid var(--copper);
}

.dossier-body {
  padding: 1.375rem 1.5rem 1.625rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex: 1;
}

.dossier-body h3 {
  font-size: 1.25rem;
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.dossier-body p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-secondary);
  text-wrap: pretty;
}

.conviction {
  margin-top: 3rem;
  padding: 2rem 2.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--copper);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.conviction p {
  font-size: clamp(1.375rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.conviction p em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--copper);
}

html[lang="zh-CN"] .conviction p em {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════
   S3: OUR APPROACH — Why Physical AI + Process Map + ROI Ledger
   ═══════════════════════════════════════════════════════════════ */
.s-model {
  padding: clamp(4.5rem, 7vw, 6.5rem) 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.s-model .section-lead { margin-top: 1rem; }

.why-box {
  margin-top: 2.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-canvas);
  overflow: hidden;
}

.why-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem 1.75rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.why-bar h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.why-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.regime-tabs {
  display: inline-flex;
  padding: 3px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.regime-btn {
  padding: 0.375rem 0.75rem;
  border-radius: 1px;
  color: var(--ink-secondary);
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.regime-btn[aria-pressed="true"] {
  background: var(--bg-obsidian);
  color: #fff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal);
  border-bottom: 1.5px solid var(--teal-line);
  padding-bottom: 2px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.text-link:hover {
  color: var(--teal-hover);
  border-color: var(--teal);
}

.why-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.35fr 0.95fr;
  gap: 0;
}

.why-col {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.why-col.data-only {
  background: var(--bg-subtle);
  border-right: 1px solid var(--border);
}

.why-col.phys-ai {
  background: var(--teal);
  color: #fff;
  border-left: 1px solid var(--border);
}

.why-col .col-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.72;
}

.why-col h4 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.why-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.why-col li {
  position: relative;
  padding-left: 1.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(20, 21, 24, 0.09);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.why-col.data-only li { color: var(--ink-secondary); }
.why-col.data-only li::before {
  content: "×";
  position: absolute;
  left: 0;
  top: 0.58rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--copper);
}

.why-col.phys-ai li {
  border-top-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.94);
}
.why-col.phys-ai li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.62rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--teal-bright);
}

.why-chart-wrap {
  padding: 1.5rem 1.75rem;
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.875rem;
}

.why-svg { width: 100%; height: auto; }
.why-svg .zone-hist { fill: #F3F1EC; transition: opacity 0.2s ease; }
.why-svg .zone-shift { fill: rgba(200, 75, 29, 0.055); transition: opacity 0.2s ease; }
.why-box[data-regime="history"] .why-svg .zone-shift,
.why-box[data-regime="history"] .why-svg .shift-highlight { opacity: 0.25; }
.why-box[data-regime="shift"] .why-svg .zone-hist { opacity: 0.45; }
.why-box[data-regime="shift"] .why-svg .zone-shift { fill: rgba(200, 75, 29, 0.11); }
.why-svg .lbl { font-family: var(--font-mono); font-size: 13px; font-weight: 600; fill: var(--ink-secondary); }
.why-svg .axis-lbl { font-family: var(--font-mono); font-size: 12px; fill: var(--ink-muted); }

.why-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-secondary);
}

.why-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.why-legend i { display: inline-block; }
.why-legend .lg-data { width: 18px; height: 3px; background: #9296A4; }
.why-legend .lg-phys { width: 18px; height: 3.5px; background: var(--teal); }
.why-legend .lg-hist { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-primary); }
.why-legend .lg-new { width: 9px; height: 9px; border-radius: 50%; border: 2.5px solid var(--copper); background: #fff; }

.why-foot {
  padding: 1.125rem 1.75rem;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.why-foot p { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.015em; }
.why-foot p em { font-style: normal; color: var(--teal); }
.why-delta-note { font-family: var(--font-mono); font-size: 0.78rem; color: var(--copper); font-weight: 600; }

.model-lower {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.92fr);
  gap: 1.75rem;
  align-items: stretch;
}

.atlas {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-canvas);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.atlas-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.125rem;
  border-bottom: 1px solid var(--border);
}

.atlas-count { display: flex; align-items: baseline; gap: 0.875rem; }

.atlas-count .num {
  font-family: var(--font-mono);
  font-size: clamp(3.25rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink-primary);
  font-variant-numeric: tabular-nums;
}

.atlas-count .num sup { color: var(--copper); font-size: 0.55em; vertical-align: 0.45em; }
.atlas-count p { font-size: 0.9375rem; font-weight: 600; line-height: 1.4; color: var(--ink-secondary); }

.atlas-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.filter-pill {
  padding: 0.35rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--ink-secondary);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-pill:hover { border-color: var(--ink-primary); color: var(--ink-primary); }
.filter-pill[aria-pressed="true"] { background: var(--bg-obsidian); border-color: var(--bg-obsidian); color: #fff; }

.flow-stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.625rem; }
.stage-col { display: flex; flex-direction: column; gap: 0.375rem; transition: opacity 0.2s ease; }
.stage-col.dimmed { opacity: 0.28; }

.stage-hd {
  padding: 0.45rem 0.55rem;
  background: var(--bg-subtle);
  border-top: 2px solid var(--ink-primary);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.3;
}

.stage-hd b { display: block; font-family: var(--font-mono); font-size: 0.68rem; color: var(--copper); margin-bottom: 2px; }

.stage-col li {
  font-size: 0.78rem;
  line-height: 1.35;
  padding: 0.45rem 0.55rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
  transition: opacity 0.18s ease, border-color 0.18s ease;
}

.stage-col li.star { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600; }
.stage-col li.star::before { content: "★ "; color: var(--teal-bright); }
.atlas[data-filter="star"] .stage-col li:not(.star) { opacity: 0.3; }

.atlas-cross {
  margin-top: auto;
  padding-top: 0.875rem;
  border-top: 1px dashed var(--border-strong);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.atlas-cross b { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--teal); }
.atlas-cross ul { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.atlas-cross li { font-size: 0.78rem; padding: 0.3rem 0.65rem; background: var(--bg-surface); border: 1px solid var(--border); color: var(--ink-primary); font-weight: 500; }

/* Dark Obsidian ROI Ledger */
.roi-ledger {
  background: var(--bg-obsidian);
  color: var(--ink-on-dark);
  border: 1px solid var(--bg-obsidian);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.75rem;
}

.roi-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(73, 214, 201, 0.45);
  color: var(--teal-bright);
  border-radius: var(--radius-sm);
}

.roi-context {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink-on-dark);
  margin-top: 0.75rem;
}

.roi-figures {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-dark);
}

.roi-item + .roi-item {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-dark);
}

.roi-item .val {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 4.2vw, 3.85rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.roi-item.secondary .val { color: var(--teal-bright); }

.roi-item .val small {
  font-family: var(--font-sans);
  font-size: 0.36em;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-on-dark-muted);
}

.roi-item .desc {
  margin-top: 0.45rem;
  font-size: 0.96875rem;
  color: var(--ink-on-dark-muted);
}

.cap-strip {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cap-card {
  padding: 1.375rem 1.5rem;
  background: var(--bg-canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.cap-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--teal);
}

.cap-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cap-card h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.35; }
.cap-card p { margin-top: 0.3rem; font-size: 0.875rem; color: var(--ink-secondary); }

/* ═══════════════════════════════════════════════════════════════
   S4: LABS — Balanced 1 Featured + 4 Grid
   ═══════════════════════════════════════════════════════════════ */
.s-labs {
  padding: clamp(4.5rem, 6.5vw, 6rem) 0;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border);
}

.labs-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
  transition: border-color 0.18s ease;
}

.labs-lead:hover { border-color: var(--ink-primary); }

.labs-lead-body {
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.labs-lead-body h3 {
  font-size: clamp(1.375rem, 2.2vw, 1.85rem);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.labs-lead-body p {
  font-size: 0.96875rem;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.labs-lead-art {
  background: var(--bg-obsidian);
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  border-left: 1px solid var(--border);
}

.stack-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.95rem;
  background: var(--bg-obsidian-elev);
  border: 1px solid var(--border-dark);
  border-left: 3px solid var(--teal-bright);
  color: var(--ink-on-dark);
  font-size: 0.875rem;
  font-weight: 600;
}

.stack-row.l4 { border-left-color: var(--copper); }
.stack-row.l3 { border-left-color: var(--teal-bright); }
.stack-row.l2 { border-left-color: #9EB5B2; }
.stack-row.l1 { border-left-color: rgba(244, 242, 236, 0.45); }

.stack-row span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-on-dark-muted);
  font-weight: 500;
}

.labs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.lab-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.375rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.lab-card:hover { border-color: var(--ink-primary); }

@media (prefers-reduced-motion: no-preference) {
  .lab-card:hover { transform: translateY(-2px); }
}

.tag-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }

.lab-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-soft);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
}

.lang-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--border-strong);
  color: var(--ink-muted);
  border-radius: var(--radius-sm);
}

.lab-card h3 { font-size: 1.0625rem; line-height: 1.42; font-weight: 700; }
.lab-card p { font-size: 0.875rem; line-height: 1.6; color: var(--ink-secondary); }
.lab-read { margin-top: auto; padding-top: 0.5rem; font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 600; color: var(--copper); }

/* ═══════════════════════════════════════════════════════════════
   S5: CONTACT — FDE Engineering Intake + Accessible Validation
   ═══════════════════════════════════════════════════════════════ */
.s-contact {
  padding: clamp(4.5rem, 7vw, 6.5rem) 0;
  background: var(--bg-surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.contact-left .section-title { margin-top: 0.875rem; }
.fde-lead { margin-top: 1.25rem; font-size: 1.125rem; color: var(--ink-secondary); line-height: 1.65; }

.fde-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.1rem 0.55rem;
  background: var(--copper-soft);
  color: var(--copper);
  font-family: var(--font-mono);
  font-size: 0.875em;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.fde-pill small { font-family: var(--font-sans); font-weight: 600; color: var(--ink-secondary); font-size: 0.8em; }

.fde-steps { margin-top: 2rem; display: flex; flex-direction: column; border-top: 1px solid var(--border); }

.fde-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: baseline;
  gap: 1rem;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--border);
}

.fde-step b { font-family: var(--font-mono); font-size: 1.25rem; color: var(--copper); font-weight: 700; }
.fde-step h3 { font-size: 1.0625rem; font-weight: 700; }
.fde-step p { font-size: 0.875rem; color: var(--ink-secondary); margin-top: 0.2rem; }

.sla-note {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--teal);
  font-weight: 600;
}

.sla-note::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-soft);
}

.cform {
  background: var(--bg-canvas);
  border: 1px solid var(--border);
  border-top: 3px solid var(--bg-obsidian);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-size: 0.875rem; font-weight: 700; color: var(--ink-primary); }
.field label .req { color: var(--copper); }
.field-hint { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-muted); }

.field input,
.field textarea {
  font: inherit;
  font-size: 0.96875rem;
  padding: 0.75rem 0.9rem;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--ink-primary);
  width: 100%;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.field textarea { resize: vertical; min-height: 108px; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }

.field :is(input, textarea):is(:user-invalid, .user-invalid-fallback) { border-color: var(--danger); background: var(--danger-bg); }
.field :is(input, textarea):is(:user-valid, .user-valid-fallback) { border-color: var(--success); }

.error-msg { display: none; font-size: 0.8125rem; font-weight: 600; color: var(--danger); margin-top: 0.15rem; }
.field :is(input, textarea):is(:user-invalid, .user-invalid-fallback) + .error-msg { display: block; }

.cform .btn-submit { width: 100%; justify-content: space-between; padding: 1rem 1.5rem; font-size: 1rem; margin-top: 0.25rem; }
.cform .btn-submit:disabled { opacity: 0.6; cursor: wait; }

.form-status { min-height: 1.5rem; font-size: 0.875rem; font-weight: 600; text-align: center; }
.form-status.sending { color: var(--ink-muted); }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--danger); }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
  padding: 2rem 0 2.5rem;
  background: var(--bg-canvas);
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem 1.5rem;
  flex-wrap: wrap;
}

.footer-links a:hover { color: var(--ink-primary); }
.footer-links .flink { color: var(--teal); font-weight: 700; }

.mode-toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.mode-toggle .mode-human {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 700;
}

.mode-toggle .mode-human::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.mode-toggle .mode-machine {
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  color: var(--ink-secondary);
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.mode-toggle .mode-machine:hover { background: var(--bg-subtle); color: var(--ink-primary); }
.mode-toggle .mode-machine::before { content: ">_ "; color: var(--copper); }

/* ═══════════════════════════════════════════════════════════════
   MODAL DIALOGS — Pure CSS Scroll Containment + Light Dismiss
   ═══════════════════════════════════════════════════════════════ */
dialog:modal { overscroll-behavior: contain; }
dialog::backdrop { overflow: hidden; overscroll-behavior: contain; }

.machine-dialog {
  margin: auto;
  width: min(960px, calc(100vw - 2rem));
  max-height: min(86svh, 760px);
  padding: 0;
  border: 1px solid rgba(73, 214, 201, 0.35);
  border-radius: var(--radius-md);
  background: var(--bg-obsidian);
  color: var(--ink-on-dark);
  font-family: var(--font-mono);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
}

.machine-dialog[open] { display: flex; flex-direction: column; }

.machine-dialog::backdrop {
  background: rgba(17, 19, 23, 0.72);
  backdrop-filter: blur(4px);
}

.term-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  background: var(--bg-obsidian-elev);
  border-bottom: 1px solid var(--border-dark);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--teal-bright);
}

.term-actions { display: flex; align-items: center; gap: 0.5rem; }

.term-btn {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  color: var(--ink-on-dark);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.term-btn:hover { border-color: var(--teal-bright); color: var(--teal-bright); }

.term-body {
  padding: 1.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  font-size: 0.8125rem;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: rgba(244, 242, 236, 0.88);
}

.term-body .t-h { color: var(--teal-bright); font-weight: 700; margin-top: 0.75rem; }
.term-body .t-rule { color: rgba(244, 242, 236, 0.32); }
.term-body .t-ok { color: #FFAD94; }
.term-body a { color: var(--teal-bright); text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
.term-body a:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════════════
   TOP-LAYER SWIPEABLE MOBILE NAVIGATION DRAWER
   ═══════════════════════════════════════════════════════════════ */
.Drawer {
  --drawer-width: min(20em, 82dvw, 100dvw - 24px);
  --drawer-backdrop: 0;
  inset: 0;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  overflow: visible;
}

.Drawer::backdrop {
  background: #111317;
  opacity: calc(var(--drawer-backdrop) * 0.58);
}

.Drawer-scroller {
  position: relative;
  display: grid;
  grid-template-columns: var(--drawer-width) 100%;
  overflow-x: scroll;
  overscroll-behavior: none;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.Drawer-scroller::-webkit-scrollbar { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .Drawer-scroller { scroll-behavior: smooth; }
}

.Drawer-scroller::after {
  content: "";
  scroll-snap-align: end;
  scroll-initial-target: nearest;
}

.Drawer-sheet {
  display: flex;
  flex-direction: column;
  height: 100svh;
  background: var(--bg-canvas);
  color: var(--ink-primary);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  scroll-snap-align: start;
  scrollbar-width: none;
  padding: 1.25rem 1.5rem 2rem;
}

.Drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.Drawer-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  font-size: 1.25rem;
}

.Drawer-nav { display: flex; flex-direction: column; margin-top: 0.75rem; }

.Drawer-nav a {
  padding: 0.95rem 0;
  font-size: 1.0625rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.Drawer-foot { margin-top: auto; padding-top: 1.5rem; display: flex; flex-direction: column; gap: 0.875rem; }

@supports (animation-timeline: scroll()) {
  .Drawer {
    timeline-scope: --drawer-fade;
    animation: fade-drawer-backdrop linear both;
    animation-timeline: --drawer-fade;
  }
  .Drawer-scroller { scroll-timeline: --drawer-fade x; }
  @property --drawer-backdrop {
    syntax: '<number>';
    inherits: true;
    initial-value: 0;
  }
  @keyframes fade-drawer-backdrop {
    0% { --drawer-backdrop: 1; }
    100% { --drawer-backdrop: 0; }
  }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero-head { grid-template-columns: 1fr; gap: 1.5rem; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-chart-wrap { grid-column: 1 / -1; order: -1; border-bottom: 1px solid var(--border); }
  .model-lower { grid-template-columns: 1fr; }
  .labs-lead { grid-template-columns: 1fr; }
  .labs-lead-art { border-left: 0; border-top: 1px solid var(--border); }
  .labs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-links,
  .nav-actions .btn-nav-cta { display: none; }
  .menu-open-btn { display: inline-flex; }
  .hero-strip { grid-template-columns: 1fr; }
  .hero-metric { border-right: 0; border-bottom: 1px solid var(--border-dark); }
  .hero-metric:last-child { border-bottom: 0; }
  .dossier-grid,
  .cap-strip { grid-template-columns: 1fr; }
  .conviction { flex-direction: column; align-items: flex-start; }
  .flow-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-stages .stage-col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .stage-hint { display: none; }
  .compare { aspect-ratio: 4 / 3.4; min-height: 300px; }
  .lean-hud { top: 0.75rem; right: 0.75rem; padding: 0.45rem 0.65rem; font-size: 0.64rem; }
  .compare-tag { bottom: 0.9rem; max-width: 48%; }
  .compare-tag .eyebrow { display: none; }
  .compare-tag.left { left: 0.9rem; }
  .compare-tag.right { right: 0.9rem; }
  .compare-tag span { font-size: 0.78rem; }
  .why-grid { grid-template-columns: 1fr; }
  .why-col.data-only { border-right: 0; border-bottom: 1px solid var(--border); }
  .why-col.phys-ai { border-left: 0; }
  .labs-grid { grid-template-columns: 1fr; }
  .form-row2 { grid-template-columns: 1fr; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
