@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@300;400;500;600&display=swap');

/* ── TOKENS ──────────────────────────────────────────────────────── */
:root {
  --bg-page:     #090909;
  --bg-surface:  #0e0e10;
  --bg-ghost:    #161618;
  --bg-faint:    #1e1e20;
  --ink:         #e2e2e0;
  --ink-sub:     #a0a09e;
  --ink-muted:   #505050;
  --border:      #161618;
  --border-faint:#1e1e20;
  --border-act:  #505050;
  --ok-text:     #3a6a3a;
  --ok-border:   #2a4a2a;
  --ok-bg:       #0e1a0e;
  --warn-text:   #6a5a2a;
  --warn-border: #4a3a1a;
  --warn-bg:     #1a140a;
  --err-text:    #8a3a3a;
  --err-border:  #4a2020;
  --err-bg:      #1a0a0a;
  --nav-h:       52px;
  --container:   1160px;
}

/* ── RESET ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.5;
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding-left: 0; list-style: none; }
.container { width: min(var(--container), 92vw); margin: 0 auto; }

/* ── HEADER ──────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: var(--bg-page);
}
.site-header .inner {
  width: min(var(--container), 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo lockup: mark + sep + wordmark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  flex-shrink: 0;
  display: block;
}
.brand-sep {
  display: block;
  width: 1px;
  height: 16px;
  background: var(--border-faint);
  margin: 0 10px;
  flex-shrink: 0;
}
.brand-rest { font-weight: 300; letter-spacing: -0.01em; }
.brand-ops  { font-weight: 600; letter-spacing: -0.03em; }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}
.nav a {
  font-size: 12px;
  color: var(--ink-sub);
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 5px 10px;
  transition: color 150ms ease, border-color 150ms ease;
}
.nav a:hover, .nav a.active {
  color: var(--ink);
  border-color: var(--border-faint);
}
.nav a[href*="login"] {
  color: var(--ink);
  border-color: var(--border-faint);
  background: var(--bg-surface);
}
.nav a[href*="login"]:hover {
  border-color: var(--border-act);
}

/* ── TYPOGRAPHY ──────────────────────────────────────────────────── */
.eyebrow {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.36em;
  color: var(--ink-muted);
  font-weight: 400;
}
h1 {
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.04em;
}
h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  color: #090909;
  background: #e2e2e0;
  border-color: #e2e2e0;
}
.btn-primary:hover { background: #ffffff; border-color: #ffffff; }
.btn-ghost {
  color: var(--ink-sub);
  border-color: var(--border-faint);
  background: transparent;
}
.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--border-act);
}

/* ── BADGES ──────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  border: 1px solid transparent;
  padding: 3px 7px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  background: currentColor;
}
.badge-open      { color: var(--ink-sub);   border-color: var(--border-faint); background: var(--bg-surface); }
.badge-monitor   { color: var(--ink-sub);   border-color: var(--border-faint); background: var(--bg-surface); }
.badge-intervene { color: var(--warn-text); border-color: var(--warn-border);  background: var(--warn-bg); }
.badge-escalate  { color: var(--err-text);  border-color: var(--err-border);   background: var(--err-bg); }
.badge-closed    { color: var(--ok-text);   border-color: var(--ok-border);    background: var(--ok-bg); }

/* ── RULE ─────────────────────────────────────────────────────────── */
.ro-rule { width: 100%; height: 1px; background: var(--border); }

/* ── SECTIONS ────────────────────────────────────────────────────── */
.section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.section-intro { max-width: 860px; }
.lead {
  margin-top: 14px;
  color: var(--ink-sub);
  font-size: clamp(0.94rem, 1.2vw, 1.05rem);
  line-height: 1.65;
}

/* ── HERO ────────────────────────────────────────────────────────── */
.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
}
.hero h1 { max-width: 17ch; }

/* ── ENTER CONTROL (homepage hero) ───────────────────────────────── */
.enter-control {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.ec-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ec-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% top;
  display: block;
  opacity: 0.6;
}
.ec-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      var(--bg-page) 0%,
      var(--bg-page) 20%,
      rgba(9,9,9,0.88) 34%,
      rgba(9,9,9,0.5) 50%,
      rgba(9,9,9,0.08) 70%,
      transparent 100%
    ),
    linear-gradient(to top, var(--bg-page) 0%, transparent 12%),
    linear-gradient(to bottom, rgba(9,9,9,0.4) 0%, transparent 8%);
  pointer-events: none;
}
.ec-editorial {
  position: relative;
  z-index: 2;
  width: min(520px, 46%);
  padding: 0 0 72px min(max(4vw, 20px), 72px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(100vh - var(--nav-h));
}
.ec-editorial .eyebrow { margin-bottom: 20px; }
.ec-sub {
  margin-top: 20px;
  color: var(--ink-sub);
  font-size: clamp(0.875rem, 1.05vw, 0.94rem);
  line-height: 1.7;
  max-width: 42ch;
}
.ec-ctas {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* signal strip */
.ec-signals {
  margin-top: 32px;
  border: 1px solid var(--border-faint);
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
  min-width: 240px;
  background: rgba(9,9,9,0.8);
}
.ec-signal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
}
.ec-signal:first-child { border-top: none; }
.ecs-k {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}
.ecs-v {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.ecs-v--warn { color: var(--warn-text); }
.ecs-v--crit { color: var(--err-text); }

/* ── BRAND QUOTE ─────────────────────────────────────────────────── */
.brand-quote {
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
}
.brand-quote blockquote {
  width: min(var(--container), 92vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-left: 1px solid var(--border-act);
  padding-left: 28px;
}
.bq-text {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 300;
  font-style: normal;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.45;
  max-width: 38ch;
}
.bq-attr {
  font-size: 11px;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--ink-muted);
}

/* ── SURFACE REVEAL (chapters) ───────────────────────────────────── */
.chapter {
  display: grid;
  grid-template-columns: 44fr 56fr;
  border-top: 1px solid var(--border);
  min-height: 70vh;
  align-items: start;
}
.ch-copy {
  padding: 64px 48px 64px min(max(4vw, 24px), 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: sticky;
  top: var(--nav-h);
  min-height: calc(78vh - var(--nav-h));
}
.ch-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.36em;
  color: var(--ink-muted);
  font-weight: 400;
  margin-bottom: 20px;
}
.ch-copy h2 { max-width: 22ch; }
.ch-desc {
  margin-top: 16px;
  color: var(--ink-sub);
  font-size: 14px;
  line-height: 1.7;
  max-width: 44ch;
}
.ch-proofs {
  margin: 20px 0 0;
  display: grid;
  gap: 8px;
}
.ch-proofs li {
  font-size: 13px;
  color: var(--ink-muted);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}
.ch-proofs li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--border-act);
}
.ch-cta { margin-top: 32px; align-self: flex-start; }

.ch-stage {
  position: sticky;
  top: var(--nav-h);
  height: calc(78vh - var(--nav-h));
  overflow: hidden;
  border-left: 1px solid var(--border);
  align-self: start;
}
.ch-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  display: block;
  opacity: 0.7;
}
.ch-stage-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(9,9,9,0.2) 0%, transparent 10%),
    linear-gradient(to top, var(--bg-page) 0%, transparent 8%);
  pointer-events: none;
}

/* Chapter 2: Audit stage */
.ch-stage--audit {
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--border);
}
.audit-stage {
  width: min(380px, 88%);
  display: grid;
  gap: 20px;
}
.as-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.as-context {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
}
.as-run-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-sub);
}
.as-section-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.severity-board { display: grid; gap: 10px; }
.sev-row {
  display: grid;
  grid-template-columns: 6px 60px 1fr 24px;
  align-items: center;
  gap: 10px;
}
.sev-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sev-dot--crit { background: var(--err-text); }
.sev-dot--warn { background: var(--warn-text); }
.sev-dot--med  { background: var(--ink-muted); }
.sev-label { font-size: 11px; color: var(--ink-sub); }
.sev-track {
  height: 2px;
  background: var(--border-faint);
  overflow: hidden;
}
.sev-fill { height: 100%; display: block; }
.sev-fill--crit { background: var(--err-text); }
.sev-fill--warn { background: var(--warn-text); }
.sev-fill--med  { background: var(--ink-muted); }
.sev-n {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-sub);
  text-align: right;
}
.due-state-table {
  border: 1px solid var(--border-faint);
  border-radius: 6px;
  overflow: hidden;
}
.dst-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
}
.dst-row:first-child { border-top: none; }
.dst-k {
  font-size: 11px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.dst-v { font-size: 14px; font-weight: 600; color: var(--ink-sub); }
.dst-v--warn { color: var(--warn-text); }
.dst-v--ok   { color: var(--ok-text); }

/* Chapter 3: Org stage */
.ch-stage--org {
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--border);
}
.org-stage { width: min(380px, 88%); display: grid; gap: 20px; }
.org-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.org-context {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
}
.org-scope-badge {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ok-text);
  border: 1px solid var(--ok-border);
  border-radius: 4px;
  padding: 2px 7px;
  background: var(--ok-bg);
}
.org-tree { display: grid; gap: 5px; }
.org-org-node {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border-faint);
  border-radius: 6px;
  background: var(--bg-surface);
}
.org-sites {
  display: grid;
  gap: 4px;
  margin-left: 14px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}
.org-site-node {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg-page);
}
.org-role {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  padding: 2px 6px;
  border: 1px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}
.org-role--owner { color: var(--ink-sub);   border-color: var(--border-faint); background: var(--bg-surface); }
.org-role--mgr   { color: var(--ink-muted); border-color: var(--border);       background: var(--bg-page); }
.org-role--op    { color: var(--ink-muted); border-color: var(--border);       background: var(--bg-page); }
.org-name { font-size: 12px; color: var(--ink-sub); flex: 1; }
.org-site-state {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  padding: 2px 6px;
  border: 1px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}
.org-site-state--intervene { color: var(--warn-text); border-color: var(--warn-border); background: var(--warn-bg); }
.org-site-state--monitor   { color: var(--ink-sub);   border-color: var(--border-faint); background: var(--bg-surface); }
.org-site-state--stable    { color: var(--ok-text);   border-color: var(--ok-border);   background: var(--ok-bg); }
.org-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border-faint);
  border-radius: 6px;
  overflow: hidden;
}
.org-stat {
  padding: 10px 12px;
  display: grid;
  gap: 4px;
  border-left: 1px solid var(--border);
}
.org-stat:first-child { border-left: none; }
.org-stat-k {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}
.org-stat-v { font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }

/* ── CONTROL LOOP ────────────────────────────────────────────────── */
.control-loop-section {
  padding: 52px 0;
  border-top: 1px solid var(--border);
}
.loop-sequence {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.loop-term {
  font-size: clamp(0.95rem, 1.6vw, 1.3rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.loop-arrow {
  font-size: clamp(0.9rem, 1.3vw, 1.1rem);
  color: var(--ink-muted);
  font-weight: 300;
}
.loop-note {
  margin-top: 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
}

/* ── CONVERSION ──────────────────────────────────────────────────── */
.conversion-section {
  padding: 48px 0 64px;
  border-top: 1px solid var(--border);
}
.conversion-inner { max-width: 600px; }
.conversion-inner .eyebrow { margin-bottom: 16px; }
.conv-sub {
  margin-top: 12px;
  color: var(--ink-sub);
  font-size: 14px;
  line-height: 1.65;
}
.conv-ctas { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ── FOOTER ──────────────────────────────────────────────────────── */
.brand-mono {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.52em;
  text-transform: uppercase;
  color: #383836;
  font-style: normal;
}
.footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer {
  padding: 44px 0 56px;
  border-top: 1px solid var(--border);
}
.footer-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}
.footer .sub  { margin-top: 10px; color: var(--ink-muted); font-size: 12px; }
.footer .copy { margin-top: 10px; color: var(--ink-muted); font-size: 11px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.footer-nav a {
  font-size: 12px;
  color: var(--ink-muted);
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 5px 10px;
  transition: color 150ms, border-color 150ms;
}
.footer-nav a:hover { color: var(--ink-sub); border-color: var(--border-faint); }

/* ── INNER PAGE COMPONENTS ───────────────────────────────────────── */
.app-frame {
  border: 1px solid var(--border-faint);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-surface);
}
.app-topbar {
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.app-topbar .title { font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-muted); }
.app-topbar .meta  { font-size: 11px; color: var(--ink-sub); }
.app-body { display: grid; grid-template-columns: 178px 1fr; min-height: 400px; }
.app-side {
  border-right: 1px solid var(--border);
  background: var(--bg-page);
  padding: 12px;
}
.app-side .label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--ink-muted); margin-bottom: 9px; }
.side-list { display: grid; gap: 4px; }
.side-item {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg-surface);
  padding: 6px 8px;
  font-size: 11px;
  color: var(--ink-sub);
}
.side-item strong { color: var(--ink); font-weight: 600; }
.app-main { padding: 12px; display: grid; gap: 10px; }
.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.metric {
  border: 1px solid var(--border-faint);
  border-radius: 6px;
  background: var(--bg-page);
  padding: 8px;
}
.metric .k { font-size: 9px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-muted); }
.metric .v { margin-top: 5px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.app-panels { display: grid; grid-template-columns: 1.2fr 0.95fr; gap: 8px; }
.panel { border: 1px solid var(--border-faint); border-radius: 6px; overflow: hidden; background: var(--bg-page); }
.panel-h { border-bottom: 1px solid var(--border); padding: 7px 10px; font-size: 9px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-muted); }
.panel-b { padding: 7px 10px 10px; display: grid; gap: 5px; }
.queue-row {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg-surface);
  padding: 6px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.queue-row .name { font-size: 12px; color: var(--ink); }
.queue-row .sub  { font-size: 11px; color: var(--ink-muted); }

.arch-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 6px; }
.arch-col {
  border: 1px solid var(--border-faint);
  border-radius: 6px;
  background: var(--bg-surface);
  padding: 10px;
}
.arch-col .h { font-size: 9px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-muted); margin-bottom: 7px; }
.arch-col ul { color: var(--ink-sub); font-size: 12px; line-height: 1.55; display: grid; gap: 3px; }

.showcase { display: grid; grid-template-columns: 0.98fr 1.02fr; gap: 16px; align-items: start; margin-top: 32px; }
.showcase--product { grid-template-columns: 34fr 66fr; gap: 48px; align-items: start; }
.showcase-copy p   { color: var(--ink-sub); margin-top: 8px; font-size: 13px; line-height: 1.65; }
.showcase-copy ul  { margin: 14px 0 0; display: grid; gap: 5px; }
.showcase-copy li  { font-size: 13px; color: var(--ink-sub); padding-left: 14px; position: relative; }
.showcase-copy li::before { content: '–'; position: absolute; left: 0; color: var(--ink-muted); }

/* ── SCREEN CARD ──────────────────────────────────────────────────── */
.screen-card {
  border: 1px solid var(--border-faint);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-surface);
}
.screen-card-head {
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.sc-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
}
.sc-route {
  font-size: 10px;
  color: var(--ink-muted);
  font-family: 'Berkeley Mono', 'SF Mono', ui-monospace, monospace;
}
.screen-card-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-page);
  overflow: hidden;
}
.screen-card-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  display: block;
}

/* ── PREVIEW WINDOW ───────────────────────────────────────────────── */
.preview-window {
  border: 1px solid var(--border-faint);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-surface);
}
.preview-window .wh {
  border-bottom: 1px solid var(--border);
  padding: 7px 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.preview-window .wh .name { font-size: 12px; color: var(--ink); font-weight: 500; }
.preview-window .wh .ctx  { font-size: 9px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-muted); }
.preview-window .wb { padding: 10px; display: grid; gap: 8px; }

.preview-chip-row { display: flex; flex-wrap: wrap; gap: 5px; }
.preview-chip {
  border-radius: 4px;
  border: 1px solid var(--border-faint);
  background: var(--bg-page);
  padding: 3px 7px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

/* ── PROOF LIST ───────────────────────────────────────────────────── */
.proof-list { display: grid; gap: 5px; }
.proof-item {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg-page);
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.proof-item .name { font-size: 12px; color: var(--ink); font-weight: 500; }
.proof-item .sub  { font-size: 11px; color: var(--ink-muted); margin-top: 2px; }

/* ── MINI TABLE ───────────────────────────────────────────────────── */
.mini-table { border: 1px solid var(--border-faint); border-radius: 6px; overflow: hidden; }
.mini-tr {
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1.2fr 0.82fr 0.88fr;
  gap: 8px;
  padding: 6px 8px;
  font-size: 12px;
}
.mini-tr:first-child { border-top: 0; font-size: 9px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-muted); }
.mini-tr div { color: var(--ink-sub); }

/* ── WORKFLOW MAP ─────────────────────────────────────────────────── */
.workflow-map { margin-top: 24px; display: grid; gap: 8px; }
.workflow-lane {
  border: 1px solid var(--border-faint);
  border-radius: 6px;
  background: var(--bg-surface);
  padding: 12px;
}
.workflow-lane .h { font-size: 9px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--ink-muted); margin-bottom: 10px; }
.node-row { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
.node {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg-page);
  padding: 8px;
}
.node .t { font-size: 11px; color: var(--ink); font-weight: 600; }
.node .d { margin-top: 4px; font-size: 11px; color: var(--ink-muted); line-height: 1.45; }

.path-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.path-card {
  border: 1px solid var(--border-faint);
  border-radius: 6px;
  background: var(--bg-surface);
  padding: 12px;
}
.path-card .p { font-size: 9px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--ink-muted); }
.path-card h4 { margin-top: 6px; font-size: 13px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.path-card p  { margin-top: 6px; font-size: 12px; color: var(--ink-sub); line-height: 1.5; }

/* ── STRUCTURE MAP ────────────────────────────────────────────────── */
.structure-map {
  margin-top: 24px;
  border: 1px solid var(--border-faint);
  border-radius: 6px;
  background: var(--bg-surface);
  padding: 12px;
}
.structure-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.structure-col {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg-page);
  padding: 8px;
}
.structure-col .h { font-size: 9px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-muted); margin-bottom: 7px; }
.structure-item {
  margin-top: 5px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 5px 7px;
  font-size: 12px;
  color: var(--ink-sub);
}

/* ── ACCESS MATRIX ────────────────────────────────────────────────── */
.access-matrix {
  margin-top: 20px;
  border: 1px solid var(--border-faint);
  border-radius: 6px;
  overflow: hidden;
}
.matrix-row {
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1.15fr repeat(4,minmax(0,1fr));
  gap: 8px;
  padding: 8px 10px;
}
.matrix-row:first-child {
  border-top: 0;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
  background: var(--bg-surface);
}
.matrix-row span { font-size: 12px; color: var(--ink-sub); }
.matrix-row .yes   { color: var(--ok-text); }
.matrix-row .scope { color: var(--warn-text); }
.matrix-row .no    { color: var(--ink-muted); }

/* ── LIST BLOCK ───────────────────────────────────────────────────── */
.list-block {
  margin-top: 16px;
  border: 1px solid var(--border-faint);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-surface);
}
.list-row {
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
}
.list-row:first-child { border-top: 0; }
.list-row .k { font-size: 13px; color: var(--ink); }
.list-row .v { font-size: 12px; color: var(--ink-muted); text-align: right; }

/* ── PAGE LINKS ───────────────────────────────────────────────────── */
.page-links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.page-links a {
  font-size: 12px;
  color: var(--ink-sub);
  border: 1px solid var(--border-faint);
  border-radius: 5px;
  background: var(--bg-surface);
  padding: 6px 12px;
  transition: color 150ms, border-color 150ms;
}
.page-links a:hover { color: var(--ink); border-color: var(--border-act); }

/* ── BUTTON ROW ───────────────────────────────────────────────────── */
.btn-row { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.btn-row.compact { margin-top: 14px; }

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .enter-control { min-height: auto; }
  .ec-stage {
    position: relative;
    height: 56vw;
    min-height: 320px;
    max-height: 560px;
  }
  .ec-stage img { object-position: center top; }
  .ec-stage::after {
    background:
      linear-gradient(to top, var(--bg-page) 0%, transparent 30%),
      linear-gradient(to bottom, rgba(9,9,9,0.5) 0%, transparent 20%);
  }
  .ec-editorial {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 40px min(6vw, 48px) 64px;
    min-height: auto;
    justify-content: flex-start;
    margin-top: -80px;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-page) 18%);
  }
  .chapter { grid-template-columns: 1fr; min-height: auto; }
  .ch-copy { position: relative; top: auto; min-height: auto; padding: 56px min(6vw, 40px) 36px; }
  .ch-stage { position: relative; top: auto; height: 52vw; min-height: 280px; max-height: 480px; }
  .ch-stage--audit, .ch-stage--org { height: auto; min-height: 320px; padding: 40px 24px; }
  .arch-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .app-panels { grid-template-columns: 1fr; }
  .node-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .path-grid { grid-template-columns: 1fr; }
  .structure-grid { grid-template-columns: 1fr; }
  .matrix-row { grid-template-columns: 1fr 1fr; }
  .showcase { grid-template-columns: 1fr; }
  .showcase--product { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 720px) {
  h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .ch-copy h2 { font-size: clamp(1.45rem, 5.5vw, 1.9rem); }
  .app-body { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .arch-grid { grid-template-columns: 1fr; }
  .node-row { grid-template-columns: 1fr; }
  .org-stats-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Legal pages */
.legal-hero {
  padding-top: 56px;
  padding-bottom: 44px;
}
.legal-hero h1 {
  max-width: none;
}
.legal-content {
  max-width: 860px;
}
.legal-content h2 {
  margin-top: 30px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.legal-content h2:first-child {
  margin-top: 0;
}
.legal-content p {
  margin-top: 12px;
  color: var(--ink-sub);
  font-size: 14px;
  line-height: 1.75;
}
.legal-content a {
  color: var(--ink);
  border-bottom: 1px solid var(--border-act);
}
.legal-content a:hover {
  border-color: var(--ink-sub);
}
