/* ============================================================
   ATLAS EMP — Strata v1.0 · Graphite rendition
   Role tokens first; components; sections; motion last.
   ============================================================ */

:root {
  /* surfaces */
  --surface-base: #0B0E14;
  --surface-raised: #11151D;
  --surface-overlay: #161B24;
  --surface-record: #141926;
  /* borders */
  --border-subtle: #1B212C;
  --border-strong: #2A3140;
  /* text */
  --text-primary: #E8ECF4;
  --text-secondary: #9AA4B5;
  --text-tertiary: #5F6B7E;
  /* semantics — provisional hues, permanent laws */
  --interactive: #5B7CFA;
  --interactive-muted: rgba(91, 124, 250, 0.12);
  --evidence: #34D399;
  --stale: #F5A623;
  --denied: #F87171;
  /* type */
  --font-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  /* motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* layout */
  --container: 1152px;
  --highlight: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ============ base ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--surface-base);
  color: var(--text-secondary);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { color: var(--text-primary); font-weight: 600; letter-spacing: -0.025em; }
h1 { font-size: clamp(40px, 5.5vw, 72px); line-height: 1.05; }
h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; }
h3 { font-size: 18px; letter-spacing: -0.01em; }
em { font-style: italic; }
strong { color: var(--text-primary); font-weight: 550; }
a { color: var(--text-secondary); text-decoration: none; transition: color 150ms var(--ease); }
a:hover { color: var(--text-primary); }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--interactive);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 768px; }
.mono, .mono-line { font-family: var(--font-mono); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--surface-overlay); color: var(--text-primary);
  padding: 10px 16px; border-radius: 8px; border: 1px solid var(--border-strong);
}
.skip-link:focus { top: 12px; }

.section { padding: 128px 0; }
.section-lede { font-size: 18px; max-width: 68ch; margin-top: 20px; }
.caption {
  text-align: center; color: var(--text-tertiary); font-size: 15px;
  font-style: italic; margin-top: 24px;
}
.eyebrow {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em;
  color: var(--text-tertiary);
}
.mono-note {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em;
  color: var(--text-tertiary); text-align: center;
}
.arrow { display: inline-block; transition: transform 150ms var(--ease); }
a:hover .arrow, .btn:hover .arrow { transform: translateX(3px); }

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 20px; border-radius: 8px;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: transform 150ms var(--ease), background 150ms var(--ease),
              border-color 150ms var(--ease), filter 150ms var(--ease);
}
.btn-primary { background: var(--interactive); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff; }
.btn-primary:active { filter: brightness(0.95); transform: translateY(0); }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--text-primary); }
.btn-ghost:hover { border-color: var(--interactive); }
.link-arrow { font-size: 15px; color: var(--text-primary); }

/* ============ nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 64px;
  transition: background 200ms var(--ease), border-color 200ms var(--ease),
              backdrop-filter 200ms var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border-subtle);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.wordmark { font-size: 18px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.01em; }
.wordmark-suffix {
  font-family: var(--font-mono); font-size: 13px; font-weight: 400;
  color: var(--text-tertiary); letter-spacing: 0.08em;
}
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { font-size: 15px; }
.nav-actions { display: flex; align-items: center; gap: 20px; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions .link-arrow { display: none; }
  .nav-actions { margin-left: auto; }
}

/* ============ hero ============ */
.hero { padding: 160px 0 128px; position: relative; }
.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-copy h1 { margin-top: 24px; }
.hero-sub { font-size: 20px; line-height: 1.5; max-width: 560px; margin-top: 24px; }
.hero-ctas { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; justify-content: center; }
.hero-kicker { font-size: 15px; color: var(--text-tertiary); margin-top: 16px; }

/* --- the assembly stage --- */
.stage-wrap { margin-top: 80px; position: relative; }
.stage-wrap::before {
  content: ""; position: absolute; inset: -60px 0;
  background: radial-gradient(600px 380px at 50% 55%, rgba(91, 124, 250, 0.06), transparent 70%);
  pointer-events: none;
}
.stage-scaler { transform-origin: top left; position: relative; }
.stage {
  position: relative; width: 1104px; height: 560px;
  background-image: radial-gradient(rgba(27, 33, 44, 0.35) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
}

.threads { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.threads path.thread {
  fill: none; stroke: var(--interactive); stroke-opacity: 0.45; stroke-width: 1.25;
  transition: stroke-opacity 150ms var(--ease);
}
.threads path.thread.lit { stroke-opacity: 1; }
.lock-terminal rect, .lock-terminal path {
  fill: none; stroke: var(--text-tertiary); stroke-width: 1.25;
}

.artifact {
  position: absolute;
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 10px; box-shadow: var(--highlight);
  padding: 12px 14px; width: 240px;
  transition: transform 150ms var(--ease), border-color 150ms var(--ease);
}
.artifact.lit { transform: translateY(-2px); border-color: var(--border-strong); }
.art-title { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-secondary); line-height: 1.45; }
.art-line { font-size: 12px; color: var(--text-tertiary); margin-top: 6px; line-height: 1.45; }
.artifact .chip { margin-top: 8px; }

.mono-line {
  font-size: 12.5px; color: var(--text-tertiary);
  background: var(--surface-raised); border: 1px solid var(--border-subtle);
  border-radius: 8px; padding: 8px 12px; width: auto; white-space: nowrap;
}

.art-pr        { left: 40px;  top: 56px; }
.art-adr       { right: 46px; top: 52px; width: 250px; }
.art-commit    { left: 24px;  top: 462px; }
.art-inc       { right: 42px; top: 440px; width: 250px; }
.art-deploy    { right: 24px; top: 288px; }
.art-restricted{ left: 60px;  top: 262px; width: 176px; opacity: 0.4; }
.redacted {
  display: block; height: 10px; width: 120px; border-radius: 3px;
  background: var(--border-strong);
}
.art-restricted .art-line { margin-top: 8px; }

/* --- the record --- */
.record {
  background: var(--surface-record);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), var(--highlight);
  padding: 24px; width: 480px;
}
#heroRecord { position: absolute; left: 336px; top: 160px; }
.record-query { font-family: var(--font-mono); font-size: 13px; color: var(--text-tertiary); }
.record-claim { font-size: 16px; line-height: 1.55; color: var(--text-primary); margin-top: 12px; }
.cite-anchor {
  border-bottom: 1px dotted var(--text-tertiary);
  transition: border-color 150ms var(--ease), color 150ms var(--ease);
}
.cite-anchor.lit { border-bottom-color: var(--interactive); color: var(--interactive); border-bottom-style: solid; }
.record-evidence { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.record-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-subtle);
}
.perm-check {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-tertiary);
}
.perm-check svg { width: 14px; height: 14px; stroke: var(--text-tertiary); stroke-width: 1.2; }
.withheld-note { font-family: var(--font-mono); font-size: 12px; color: var(--text-tertiary); }

/* ============ chips ============ */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 8px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 12px;
  background: var(--surface-overlay); border: 1px solid var(--border-subtle);
  color: var(--text-secondary); white-space: nowrap;
}
.chip-evidence {
  border-left: 2px solid var(--evidence);
  transition: transform 150ms var(--ease), border-color 150ms var(--ease);
}
button.chip-evidence:hover, .chip-evidence.lit { transform: translateY(-1px); border-color: var(--border-strong); border-left-color: var(--evidence); }
.chip-time { color: var(--text-tertiary); }
.chip-status { color: var(--text-secondary); }
.chip-sev { color: var(--text-tertiary); }
.chip-stale { color: var(--stale); border-color: rgba(245, 166, 35, 0.35); }
.chip-withheld { color: var(--text-tertiary); }
.lock-glyph { width: 12px; height: 12px; stroke: var(--text-tertiary); stroke-width: 1.2; }

/* ============ credibility ============ */
.cred { padding: 96px 24px; }

/* ============ problem: the fade ============ */
.problem .container.narrow { text-align: left; }
.fade-band {
  position: relative; height: 320px; margin-top: 64px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background-image: radial-gradient(rgba(27, 33, 44, 0.35) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  overflow: hidden;
  --decay: 0;
}
.fade-fragments { position: absolute; inset: 0 0 72px 0; }
.frag {
  position: absolute; font-size: 13.5px; color: var(--text-secondary);
  max-width: 300px; line-height: 1.5;
  opacity: calc(var(--o) - var(--decay) * var(--d));
}
.frag-src { font-family: var(--font-mono); font-size: 12px; color: var(--text-tertiary); }
.frag-departed .chip { margin-left: 8px; }
.fade-commits {
  position: absolute; left: 0; right: 0; bottom: 0;
  border-top: 1px solid var(--border-subtle);
  padding: 24px; background: rgba(11, 14, 20, 0.6);
}
.fade-commits p {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-secondary);
  white-space: nowrap; overflow: hidden;
}
.problem-agent {
  font-size: 24px; line-height: 1.4; color: var(--text-primary);
  font-weight: 550; letter-spacing: -0.015em;
  margin-top: 96px; max-width: 620px;
}

/* ============ trust gap ============ */
.vignette {
  display: grid; grid-template-columns: 1fr 120px 1fr;
  align-items: center; margin-top: 64px;
}
.doc-card {
  background: var(--surface-raised); border: 1px solid var(--border-subtle);
  border-radius: 12px; padding: 24px; box-shadow: var(--highlight);
}
.doc-canonical { border-color: var(--border-strong); }
.doc-name { font-family: var(--font-mono); font-size: 14px; color: var(--text-primary); }
.doc-meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-tertiary); margin-top: 8px; }
.sim { color: var(--text-secondary); }
.doc-card .chip { margin-top: 16px; }
.vignette-thread { width: 100%; height: 24px; }
.vignette-thread path { stroke: var(--interactive); stroke-opacity: 0.45; stroke-width: 1.25; fill: none; }

.compare { width: 100%; border-collapse: collapse; margin-top: 96px; }
.compare th, .compare td {
  text-align: left; padding: 16px 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 15px;
}
.compare thead th {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 400;
  letter-spacing: 0.06em; color: var(--text-tertiary); text-transform: uppercase;
}
.compare tbody th { color: var(--text-primary); font-weight: 500; }
.compare tbody td { font-family: var(--font-mono); font-size: 13px; color: var(--text-tertiary); }
.compare tbody tr { opacity: 1; }
.compare.animate tbody tr { opacity: 0; transform: translateY(8px); }
.compare.animate.in tbody tr {
  opacity: 1; transform: none;
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}
.compare.animate.in tbody tr:nth-child(2) { transition-delay: 80ms; }
.compare.animate.in tbody tr:nth-child(3) { transition-delay: 160ms; }
.compare.animate.in tbody tr:nth-child(4) { transition-delay: 240ms; }

.compare-notes { list-style: none; margin-top: 32px; display: grid; gap: 8px; }
.compare-notes li { font-size: 14px; color: var(--text-tertiary); }

/* ============ thesis ============ */
.thesis { padding: 160px 0; }
.thesis .narrow { text-align: center; }
.thesis .section-lede { margin-left: auto; margin-right: auto; }
.thesis-stack-wrap { max-width: 720px; margin-top: 80px; }
.layer-stack { border-top: 1px solid var(--border-subtle); }
.layer-row {
  display: grid; grid-template-columns: 160px 40px 1fr;
  align-items: center; height: 64px;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono); font-size: 14px;
}
.layer-name { color: var(--text-tertiary); letter-spacing: 0.08em; }
.layer-arrow { color: var(--text-tertiary); }
.layer-sys { color: var(--text-secondary); position: relative; }
.layer-blank {
  display: inline-block; width: 160px; height: 1px; vertical-align: middle;
  border-bottom: 1px dashed var(--border-strong);
  transition: opacity 500ms var(--ease);
}
.layer-atlas {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  color: var(--interactive); font-weight: 500; opacity: 0;
  transition: opacity 500ms var(--ease);
}
.layer-memory.filled .layer-blank { opacity: 0; }
.layer-memory.filled .layer-atlas { opacity: 1; animation: atlas-glow 900ms var(--ease) 1; }
@keyframes atlas-glow {
  0% { text-shadow: 0 0 0 rgba(91, 124, 250, 0); }
  40% { text-shadow: 0 0 18px rgba(91, 124, 250, 0.55); }
  100% { text-shadow: 0 0 0 rgba(91, 124, 250, 0); }
}

.principles {
  list-style: none; margin-top: 96px;
  border-top: 1px solid var(--border-subtle);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.principles li {
  padding: 24px 20px; border-bottom: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
}
.principles li:first-child { border-left: 1px solid var(--border-subtle); }
.principle-name { display: block; font-size: 15px; font-weight: 550; color: var(--text-primary); }
.principle-more {
  display: block; font-size: 13.5px; color: var(--text-tertiary); margin-top: 8px;
  opacity: 0; transition: opacity 150ms var(--ease); min-height: 3em;
}
.principles li:hover .principle-more, .principles li:focus-within .principle-more { opacity: 1; }

/* ============ capabilities ============ */
.flagship {
  background: var(--surface-raised); border: 1px solid var(--border-subtle);
  border-radius: 16px; box-shadow: var(--highlight);
  padding: 48px; margin-top: 48px;
  display: grid; grid-template-columns: 1fr 520px; gap: 48px; align-items: center;
}
.capabilities .container:nth-of-type(2) .flagship { margin-top: 64px; }
.flagship-head h3 { font-size: 24px; }
.flagship-head p { margin-top: 12px; font-size: 16px; }
.flagship-record { width: auto; }
.record-static { position: static; }
.split-view { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.record-mini { width: auto; padding: 20px; }
.record-mini .record-claim { font-size: 14px; }
.flagship .split-view { grid-column: auto; }
.flagship:has(.split-view) { grid-template-columns: 320px 1fr; }

.support-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px;
}
.card {
  background: var(--surface-raised); border: 1px solid var(--border-subtle);
  border-radius: 12px; padding: 32px; box-shadow: var(--highlight);
}
.feature-card h3 { margin-top: 20px; }
.feature-card p { font-size: 14px; margin-top: 8px; color: var(--text-tertiary); }
.micro { width: 96px; height: 64px; }
.micro circle { fill: none; stroke: var(--text-tertiary); stroke-width: 1.25; }
.micro circle.focal { fill: var(--interactive); stroke: var(--interactive); }
.micro path { fill: none; stroke: var(--text-tertiary); stroke-width: 1.25; }
.micro rect { fill: none; stroke: var(--text-tertiary); stroke-width: 1.25; }
.micro .stale-doc { stroke: var(--stale); stroke-opacity: 0.7; }

/* ============ how it works ============ */
.how-grid {
  display: grid; grid-template-columns: 1fr 480px; gap: 96px; margin-top: 64px;
  align-items: start;
}
.how-steps { position: sticky; top: 128px; }
#howSteps { list-style: none; }
.how-step {
  padding: 24px 0 24px 24px; border-left: 2px solid var(--border-subtle);
  transition: border-color 300ms var(--ease);
}
.how-step h3 { color: var(--text-tertiary); transition: color 300ms var(--ease); }
.how-step p { font-size: 15px; margin-top: 8px; color: var(--text-tertiary); transition: color 300ms var(--ease); }
.how-step.active { border-left-color: var(--interactive); }
.how-step.active h3 { color: var(--text-primary); }
.how-step.active p { color: var(--text-secondary); }
.how-loop { text-align: left; margin-top: 32px; letter-spacing: 0.04em; }

.how-diagram svg { width: 100%; height: auto; }
.arch-band rect { fill: var(--surface-raised); stroke: var(--border-subtle); }
.band-label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  fill: var(--text-tertiary);
}
.band-item { font-family: var(--font-mono); font-size: 12.5px; fill: var(--text-secondary); }
.arch-channel { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 2 4; fill: none; }
.token-pair { transform: translateY(470px); }
.token-doc { fill: var(--surface-overlay); stroke: var(--interactive); stroke-width: 1.25; }
.token-doc-lines { stroke: var(--interactive); stroke-width: 1; fill: none; }
.token-key circle, .token-key path { stroke: var(--evidence); stroke-width: 1.25; fill: none; }
.token-ghost { opacity: 0; }
.how-diagram.static .token-ghost { opacity: 0.25; }
.how-diagram .caption { margin-top: 16px; }

/* ============ agents ============ */
.agents-grid {
  display: grid; grid-template-columns: 420px 1fr; gap: 48px; margin-top: 64px;
  align-items: start;
}
.code-block {
  background: var(--surface-overlay); border: 1px solid var(--border-subtle);
  border-radius: 12px; box-shadow: var(--highlight); overflow: hidden;
}
.code-filename {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-tertiary);
  padding: 12px 20px; border-bottom: 1px solid var(--border-subtle);
}
.code-block pre { padding: 20px; overflow-x: auto; }
.code-block code { font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7; color: var(--text-secondary); }
.tk-key { color: var(--interactive); }
.tk-str { color: var(--evidence); opacity: 0.85; }

.trace {
  background: var(--surface-overlay); border: 1px solid var(--border-subtle);
  border-radius: 12px; box-shadow: var(--highlight); padding: 24px;
  font-family: var(--font-mono); font-size: 13px;
}
.trace-head {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--text-primary); padding-bottom: 16px; margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.trace-row {
  display: grid; grid-template-columns: 240px 1fr auto; gap: 16px;
  align-items: center; padding: 8px 0; color: var(--text-secondary);
}
.trace-label { white-space: nowrap; }
.trace-note { color: var(--text-tertiary); font-size: 12px; white-space: nowrap; }
.trace-bar { height: 6px; border-radius: 3px; background: rgba(91, 124, 250, 0.3); width: var(--w); position: relative; }
.trace-bar-stale { background: rgba(245, 166, 35, 0.3); }
.trace.animate .trace-bar { width: 0; }
.trace.animate.in .trace-bar { width: var(--w); transition: width 400ms var(--ease); }
.trace.animate.in .trace-row:nth-child(3) .trace-bar { transition-delay: 120ms; }
.trace.animate.in .trace-row:nth-child(4) .trace-bar { transition-delay: 240ms; }
.trace.animate.in .trace-row:nth-child(5) .trace-bar { transition-delay: 360ms; }

.agent-features { list-style: none; margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.agent-features li { font-size: 15px; color: var(--text-tertiary); }

/* ============ security ============ */
.revocation {
  display: grid; grid-template-columns: 1fr 1fr 1fr; margin-top: 64px;
  border: 1px solid var(--border-subtle); border-radius: 12px;
  background: var(--surface-raised); box-shadow: var(--highlight); overflow: hidden;
}
.rev-frame { padding: 32px; border-right: 1px solid var(--border-subtle); }
.rev-frame:last-child { border-right: none; }
.rev-title { font-size: 13px; color: var(--text-secondary); }
.rev-line { font-size: 14px; color: var(--text-primary); margin-top: 12px; }
.rev-minus {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 4px; margin-right: 6px;
  background: rgba(248, 113, 113, 0.12); color: var(--denied); font-weight: 600;
}
.rev-time { font-size: 12px; color: var(--text-tertiary); margin-top: 12px; }
.rev-frame-svg svg { width: 100%; height: 64px; }
.rev-frame-svg circle { fill: none; stroke: var(--text-tertiary); stroke-width: 1.25; }
.sever-a, .sever-b { stroke: var(--interactive); stroke-opacity: 0.35; stroke-width: 1.25; fill: none; }
.rev-frame .record-evidence { margin-top: 14px; }

.sec-checklist {
  list-style: none; margin-top: 64px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px;
}
.sec-checklist li {
  font-size: 15px; color: var(--text-tertiary);
  padding: 20px 0; border-top: 1px solid var(--border-subtle);
}
.sec-emph, .sec-emph strong { color: var(--text-primary); }

.audit { width: 100%; border-collapse: collapse; margin-top: 64px; }
.audit td {
  padding: 14px 12px; border-top: 1px solid var(--border-subtle);
  font-size: 13.5px; color: var(--text-secondary); white-space: nowrap;
}
.audit td.mono { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-tertiary); }
.principal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 6px; margin-right: 8px;
  background: var(--surface-overlay); border: 1px solid var(--border-subtle);
  font-family: var(--font-mono); font-size: 10.5px; color: var(--text-secondary);
  vertical-align: middle;
}
.principal-agent svg { width: 13px; height: 13px; stroke: var(--text-secondary); stroke-width: 1.2; }

/* ============ faq ============ */
.accordions { margin-top: 48px; }
.accordion { border-top: 1px solid var(--border-subtle); }
.accordion:last-child { border-bottom: 1px solid var(--border-subtle); }
.accordion h3 { font-size: 16px; }
.accordion button {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  width: 100%; padding: 20px 4px; text-align: left;
  font-size: 16px; font-weight: 500; color: var(--text-primary);
}
.acc-chevron {
  font-size: 20px; color: var(--text-tertiary);
  transition: transform 200ms ease-out; flex-shrink: 0;
}
.accordion button[aria-expanded="true"] .acc-chevron { transform: rotate(90deg); }
.acc-panel { overflow: hidden; height: 0; transition: height 200ms ease-out; }
.acc-panel p { padding: 0 4px 20px; max-width: 62ch; }
.acc-panel.open { height: auto; }

/* ============ final cta ============ */
.final-cta { padding: 160px 0; position: relative; overflow: hidden; }
.macro-graph {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0.13; pointer-events: none;
}
.mg-edges path { stroke: var(--interactive); stroke-width: 1; fill: none; }
.mg-nodes circle { fill: none; stroke: var(--text-secondary); stroke-width: 1.25; }
.mg-pulse { animation: mg-breathe 6s ease-in-out infinite; }
@keyframes mg-breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

.final-inner { text-align: center; position: relative; }
.final-inner h2 { font-size: clamp(36px, 4.5vw, 56px); }
.final-inner .section-lede { margin-left: auto; margin-right: auto; }
.access-form { margin-top: 48px; }
.access-form label {
  display: block; font-size: 14px; color: var(--text-secondary);
  margin-bottom: 8px; text-align: left; max-width: 480px;
  margin-left: auto; margin-right: auto;
}
.access-row { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.access-row input {
  flex: 1; min-width: 0; height: 40px; padding: 0 16px;
  background: var(--surface-overlay); border: 1px solid var(--border-strong);
  border-radius: 8px; color: var(--text-primary);
  font: inherit; font-size: 15px;
}
.access-row input::placeholder { color: var(--text-tertiary); }
.access-row input:focus-visible { outline: 2px solid var(--interactive); outline-offset: 1px; border-color: var(--interactive); }
.form-error { color: var(--denied); font-size: 13.5px; margin-top: 12px; }
.form-receipt {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-secondary); margin-top: 16px;
}
.form-receipt[hidden] { display: none; }
.form-receipt svg { width: 16px; height: 16px; }
.receipt-check {
  stroke: var(--evidence); stroke-width: 1.6;
  stroke-dasharray: 20; stroke-dashoffset: 0;
}
.form-receipt.drawing .receipt-check { animation: draw-check 250ms var(--ease) 1; }
@keyframes draw-check { from { stroke-dashoffset: 20; } to { stroke-dashoffset: 0; } }
.final-cta .mono-note { margin-top: 48px; }

/* ============ footer ============ */
.footer { border-top: 1px solid var(--border-subtle); padding: 64px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-line { font-size: 14px; color: var(--text-tertiary); margin-top: 12px; }
.footer-copy { font-size: 13px; color: var(--text-tertiary); margin-top: 24px; }
.footer-head {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--text-tertiary); margin-bottom: 16px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--text-tertiary); }
.footer-col a:hover { color: var(--text-primary); }

/* ============================================================
   MOTION LAYER — applied last; the page is complete without it.
   ============================================================ */

/* scroll reveals: .reveal gets .in once via IO */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(12px); }
  .reveal.in {
    opacity: 1; transform: none;
    transition: opacity 500ms var(--ease), transform 500ms var(--ease);
  }
  .support-grid.reveal.in .card { opacity: 1; transform: none; }
  .support-grid.reveal .card { transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
  .support-grid.reveal:not(.in) .card { opacity: 0; transform: translateY(12px); }
  .support-grid.reveal.in .card:nth-child(2) { transition-delay: 60ms; }
  .support-grid.reveal.in .card:nth-child(3) { transition-delay: 120ms; }
  .support-grid.reveal.in .card:nth-child(4) { transition-delay: 180ms; }
}

/* hero assembly choreography: .stage.assemble runs once per session */
@media (prefers-reduced-motion: no-preference) {
  .stage.assemble .artifact,
  .stage.assemble .mono-line { animation: art-in 400ms var(--ease) both; }
  .stage.assemble .art-pr        { animation-delay: 300ms; }
  .stage.assemble .art-adr       { animation-delay: 380ms; }
  .stage.assemble .art-commit    { animation-delay: 460ms; }
  .stage.assemble .art-inc       { animation-delay: 540ms; }
  .stage.assemble .art-deploy    { animation-delay: 620ms; }
  .stage.assemble .art-restricted{ animation-delay: 700ms; animation-name: art-in-dim; }

  .stage.assemble .threads path.thread {
    stroke-dasharray: 600; stroke-dashoffset: 600;
    animation: thread-draw 450ms var(--ease) forwards;
  }
  .stage.assemble #th-pr  { animation-delay: 900ms; }
  .stage.assemble #th-adr { animation-delay: 980ms; }
  .stage.assemble #th-com { animation-delay: 1060ms; }
  .stage.assemble #th-inc { animation-delay: 1140ms; }
  .stage.assemble #th-dep { animation-delay: 1220ms; }
  .stage.assemble #th-res { animation-delay: 1300ms; }
  .stage.assemble .lock-terminal { opacity: 0; animation: fade-in 200ms var(--ease) 1450ms forwards; }

  .stage.assemble .record { opacity: 0; animation: record-in 400ms var(--ease) 1500ms forwards; }
  .stage.assemble .record-claim { opacity: 0; animation: fade-in 300ms var(--ease) 1700ms forwards; }
  .stage.assemble .record-evidence .chip { opacity: 0; animation: chip-in 250ms var(--ease) both; }
  .stage.assemble .record-evidence .chip:nth-child(1) { animation-delay: 1820ms; }
  .stage.assemble .record-evidence .chip:nth-child(2) { animation-delay: 1900ms; }
  .stage.assemble .record-evidence .chip:nth-child(3) { animation-delay: 1980ms; }
  .stage.assemble .record-footer { opacity: 0; animation: fade-in 300ms var(--ease) 2100ms forwards; }
}
@keyframes art-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes art-in-dim { from { opacity: 0; transform: translateY(6px); } to { opacity: 0.4; transform: none; } }
@keyframes thread-draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes record-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes chip-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .mg-pulse { animation: none; }
  .acc-panel { transition: none; }
  .arrow, .btn, .artifact, .chip-evidence { transition: none; }
  .compare.animate tbody tr, .trace.animate .trace-bar { opacity: 1; transform: none; width: var(--w); }
}

/* ============ responsive ============ */
@media (max-width: 1100px) {
  .flagship, .flagship:has(.split-view) { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr 1fr; }
  .how-grid { grid-template-columns: 1fr; gap: 48px; }
  .how-steps { position: static; }
  .agents-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .hero { padding: 120px 0 80px; }
  .thesis, .final-cta { padding: 96px 0; }
  .hero-sub { font-size: 18px; }
  .principles { grid-template-columns: 1fr; }
  .principles li { border-left: 1px solid var(--border-subtle); }
  .principle-more { opacity: 1; min-height: 0; }
  .vignette { grid-template-columns: 1fr; gap: 0; }
  .vignette-thread { height: 40px; width: 24px; margin: 0 auto; transform: rotate(90deg); }
  .split-view { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .agent-features { grid-template-columns: 1fr; }
  .revocation { grid-template-columns: 1fr; }
  .rev-frame { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .rev-frame:last-child { border-bottom: none; }
  .sec-checklist { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .access-row { flex-direction: column; }
  .compare { display: block; overflow-x: auto; }
  .trace-row { grid-template-columns: 1fr; gap: 4px; }
  .trace-bar { display: none; }
  .layer-row { grid-template-columns: 96px 24px 1fr; font-size: 13px; }
  .problem-agent { font-size: 20px; margin-top: 64px; }
  .fade-band { height: 380px; }
  .frag { max-width: 220px; font-size: 12.5px; }
  .fade-fragments .frag:nth-child(3),
  .fade-fragments .frag:nth-child(4) { display: none; }
  .audit { display: block; overflow-x: auto; }
}

/* Brand mark alongside the wordmark (assets/logo-mark.svg). Additive: aligns the mark with the
   existing "Atlas EMP" wordmark without changing its type treatment. */
.wordmark { display: inline-flex; align-items: center; gap: 9px; }
.wordmark-mark { width: 24px; height: 24px; display: block; flex: none; }
.footer-brand .wordmark-mark { width: 28px; height: 28px; }
