:root {
  --bg: #080908;
  --surface: #10110f;
  --surface-2: #161713;
  --text: #f2eee3;
  --muted: #98978f;
  --line: rgba(232, 199, 106, 0.18);
  --line-soft: rgba(255, 255, 255, 0.09);
  --gold: #d4af37;
  --gold-soft: #e8c76a;
  --green: #54c489;
  --blue: #72a7ff;
  --orange: #e59b55;
  --gray: #8a8a84;
  --font-display: "Orbitron", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page: min(1240px, calc(100vw - 64px));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px),
    var(--bg);
  background-size: 80px 80px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-150%);
  padding: 10px 14px;
  color: #080908;
  background: var(--gold-soft);
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 4px;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 75% 15%, rgba(212,175,55,.09), transparent 30%),
    radial-gradient(circle at 10% 70%, rgba(212,175,55,.035), transparent 26%);
}

.topbar {
  width: var(--page);
  height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 14px;
  transform: rotate(45deg);
}

.brand-mark::first-letter { transform: rotate(-45deg); }

.brand-word {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: .16em;
}

.brand-version {
  margin-left: 8px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a,
.back-link {
  color: #c6c4bb;
  font-size: 12px;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease;
}

.site-nav a:hover,
.back-link:hover { color: var(--gold-soft); }

.menu-button {
  display: none;
  padding: 8px 0;
  border: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero {
  width: var(--page);
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  padding: 94px 0 32px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  grid-template-rows: 1fr auto;
  gap: 48px;
  align-items: center;
}

.hero > *,
.split-heading > *,
.identity-grid > *,
.truth-section > *,
.legacy-section > * { min-width: 0; }

.eyebrow {
  margin: 0 0 24px;
  color: var(--gold-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.signal {
  width: 6px;
  height: 6px;
  margin-right: 10px;
  display: inline-block;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(84,196,137,.08);
  vertical-align: 1px;
}

.hero h1,
.road-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(56px, 7.3vw, 108px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .92;
  text-transform: uppercase;
}

.hero h1 span,
.road-hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(232,199,106,.72);
}

.hero-lede {
  max-width: 650px;
  margin: 34px 0 0;
  color: #bbb9b0;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  line-height: 1.55;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--line-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, border .2s ease, transform .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { color: #11110e; background: var(--gold); border-color: var(--gold); }
.button-primary:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.button-quiet:hover { color: var(--gold-soft); border-color: var(--line); }

.hero-system {
  position: relative;
  width: min(440px, 38vw);
  aspect-ratio: 1;
  justify-self: end;
}

.orbit {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 16px rgba(232,199,106,.8);
}

.orbit-one { inset: 4%; animation: spin 32s linear infinite; }
.orbit-one::before { top: 11%; right: 20%; }
.orbit-one::after { bottom: 4%; left: 39%; }
.orbit-two { inset: 20%; border-color: rgba(255,255,255,.10); animation: spin 22s linear reverse infinite; }
.orbit-two::before { top: -3px; left: 48%; }
.orbit-two::after { bottom: 12%; right: 9%; }

.system-core {
  position: absolute;
  inset: 34%;
  display: grid;
  place-content: center;
  border: 1px solid rgba(232,199,106,.35);
  background: radial-gradient(circle at 50% 35%, rgba(212,175,55,.15), rgba(8,9,8,.94) 70%);
  transform: rotate(45deg);
}

.system-core > * { transform: rotate(-45deg); }
.system-core span { color: var(--muted); font-size: 8px; letter-spacing: .24em; }
.system-core strong { color: var(--gold-soft); font-family: var(--font-display); font-size: 38px; font-weight: 500; line-height: 1; }

.system-label {
  position: absolute;
  padding: 7px 10px;
  color: #b8b6ad;
  background: rgba(8,9,8,.88);
  border-left: 1px solid var(--gold);
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.system-label span { margin-right: 8px; color: var(--gold-soft); }
.label-a { top: 13%; left: 0; }
.label-b { top: 45%; right: -4%; }
.label-c { bottom: 11%; left: 4%; }

@keyframes spin { to { transform: rotate(360deg); } }

.hero-meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-soft);
}

.hero-meta div { padding: 22px 24px 0 0; }
.hero-meta div + div { padding-left: 24px; border-left: 1px solid var(--line-soft); }
.hero-meta span { display: block; color: var(--muted); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
.hero-meta strong { display: block; margin-top: 4px; color: #d6d3c9; font-family: var(--font-display); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.section {
  width: var(--page);
  margin: 0 auto;
  padding: 128px 0;
  border-top: 1px solid var(--line-soft);
}

.section-index {
  margin-bottom: 60px;
  color: #77766f;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.section-heading { margin-bottom: 68px; }
.section-heading .eyebrow { margin-bottom: 16px; }

.section-heading h2,
.road-cta h2,
.truth-copy h2,
.legacy-section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.06;
  text-transform: uppercase;
}

.split-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 60px;
  align-items: end;
}

.split-heading > p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.identity-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 90px;
}

.large-copy {
  margin: 0;
  color: #d6d3c9;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.42;
}

.principles article {
  display: grid;
  grid-template-columns: 46px 150px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line-soft);
  align-items: baseline;
}

.principles article:last-child { border-bottom: 1px solid var(--line-soft); }
.principles span { color: var(--gold); font-family: var(--font-display); font-size: 10px; }
.principles h3 { margin: 0; font-family: var(--font-display); font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.principles p { margin: 0; color: var(--muted); }

.framework-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.framework-list li {
  min-height: 128px;
  padding: 32px 0;
  display: grid;
  grid-template-columns: 80px 1fr 50px;
  gap: 24px;
  border-top: 1px solid var(--line-soft);
  align-items: center;
  transition: padding .25s ease, background .25s ease;
}

.framework-list li:last-child { border-bottom: 1px solid var(--line-soft); }
.framework-list li:hover { padding-left: 18px; background: linear-gradient(90deg, rgba(212,175,55,.05), transparent 60%); }
.framework-num { color: var(--gold); font-family: var(--font-display); font-size: 12px; }
.framework-list h3 { margin: 0; font-family: var(--font-display); font-size: clamp(19px, 2.2vw, 28px); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.framework-list p { max-width: 720px; margin: 8px 0 0; color: var(--muted); }
.framework-arrow { color: var(--gold); font-size: 24px; text-align: right; }
.text-link { margin-top: 28px; display: inline-block; color: var(--gold-soft); font-size: 12px; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }

.direction-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.profile-card {
  position: relative;
  min-height: 540px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: linear-gradient(145deg, rgba(255,255,255,.025), rgba(212,175,55,.025));
}

.profile-card::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -120px;
  bottom: -130px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.profile-top { display: flex; justify-content: space-between; align-items: center; }
.profile-index { color: var(--gold); font-family: var(--font-display); font-size: 10px; }

.status-badge {
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  border: 1px solid currentColor;
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: .13em;
  line-height: 1;
  text-transform: uppercase;
}

.status-canonical { color: var(--green); }
.status-provisional { color: var(--gold-soft); }
.status-review { color: var(--blue); }
.status-legacy { color: var(--orange); }
.status-archived { color: var(--gray); }

.profile-monogram {
  width: 132px;
  height: 132px;
  margin: 54px 0 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 52px;
  transform: rotate(45deg);
}

.profile-monogram::first-letter { transform: rotate(-45deg); }
.profile-type { margin: 0 0 8px; color: var(--muted); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
.profile-card h3 { margin: 0; font-family: var(--font-display); font-size: 31px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.profile-card > strong { margin-top: 4px; display: block; color: var(--gold-soft); font-size: 13px; font-weight: 500; }
.profile-card > p:not(.profile-type) { max-width: 480px; margin: 18px 0 28px; color: var(--muted); }
.profile-card > a { position: relative; z-index: 1; color: #d8d5cc; font-size: 11px; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }

.team-toolbar {
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.team-toolbar p,
.team-toolbar a { margin: 0; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.team-toolbar a:hover { color: var(--gold-soft); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}

.agent-card {
  min-height: 300px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(10,11,9,.58);
}

.agent-top { display: flex; justify-content: space-between; color: #74736d; font-family: var(--font-display); font-size: 8px; letter-spacing: .12em; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; }
.dot-canonical { background: var(--green); box-shadow: 0 0 8px rgba(84,196,137,.45); }
.dot-provisional { background: var(--gold-soft); box-shadow: 0 0 8px rgba(232,199,106,.4); }
.dot-review { background: var(--blue); }
.dot-legacy { background: var(--orange); }
.dot-archived { background: var(--gray); }
.agent-card h3 { margin: 54px 0 6px; font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.agent-card strong { color: #d6d3c9; font-size: 13px; font-weight: 500; }
.agent-card p { margin: 16px 0 28px; color: var(--muted); font-size: 14px; }
.status-label { margin-top: auto; color: #77766f; font-family: var(--font-display); font-size: 7px; letter-spacing: .12em; }

.truth-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 100px;
  align-items: center;
}

.truth-copy > p:last-child { max-width: 510px; margin: 28px 0 0; color: var(--muted); font-size: 17px; }
.route-panel { border-top: 1px solid var(--line-soft); }
.route-panel a { min-height: 74px; padding: 0 12px; display: grid; grid-template-columns: 64px 1fr 24px; gap: 16px; align-items: center; border-bottom: 1px solid var(--line-soft); text-decoration: none; transition: background .2s ease, padding .2s ease; }
.route-panel a:hover { padding-left: 22px; background: rgba(212,175,55,.045); }
.route-panel span { color: var(--gold); font-family: var(--font-display); font-size: 8px; }
.route-panel code { color: #d0cdc3; font-size: 13px; }
.route-panel b { color: var(--gold); font-weight: 400; text-align: right; }

.status-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.status-grid article { min-height: 180px; padding: 22px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.015); }
.status-grid p { margin: 24px 0 0; color: var(--muted); font-size: 13px; }

.road-cta {
  width: var(--page);
  margin: 0 auto 100px;
  padding: 88px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(212,175,55,.10), rgba(255,255,255,.015) 55%);
}

.road-cta::after {
  content: "V4";
  position: absolute;
  right: -20px;
  bottom: -65px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232,199,106,.12);
  font-family: var(--font-display);
  font-size: 260px;
  line-height: 1;
}

.road-cta > * { position: relative; z-index: 1; }
.road-cta > p:not(.eyebrow) { max-width: 660px; margin: 26px 0 34px; color: #aaa89f; font-size: 18px; }

footer {
  width: var(--page);
  min-height: 130px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  border-top: 1px solid var(--line-soft);
  color: #6f6e68;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

footer p { margin: 0; text-align: center; }
footer p:last-child { text-align: right; }
.footer-brand .brand-mark { width: 24px; height: 24px; font-size: 11px; }
.footer-brand .brand-word { font-size: 13px; }

.loading-card { color: var(--muted); }

/* Road page */
.road-page { width: 100%; }
.road-hero { width: var(--page); min-height: 680px; margin: 0 auto; padding: 110px 0 90px; display: flex; flex-direction: column; justify-content: center; }
.road-hero h1 { font-size: clamp(70px, 12vw, 170px); }
.road-hero > p:not(.eyebrow) { max-width: 790px; margin: 38px 0 0; color: #bbb9b0; font-size: clamp(20px, 2.4vw, 30px); line-height: 1.5; }
.road-rule { margin-top: 60px; padding: 20px 0; display: grid; grid-template-columns: 210px 1fr; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); align-items: center; }
.road-rule span { color: var(--gold); font-size: 9px; letter-spacing: .17em; text-transform: uppercase; }
.road-rule strong { color: #d2cfc5; font-size: 15px; font-weight: 500; }
.roadmap { border-top: 1px solid var(--line-soft); }
.road-step { min-height: 260px; padding: 42px 0; display: grid; grid-template-columns: 130px 1fr; gap: 40px; border-bottom: 1px solid var(--line-soft); }
.road-step.active { background: linear-gradient(90deg, rgba(212,175,55,.055), transparent 60%); }
.road-num { color: var(--gold); font-family: var(--font-display); font-size: 34px; }
.road-status { display: flex; justify-content: space-between; align-items: center; }
.road-status time, .road-status > span:last-child { color: #74736d; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.road-step h3 { margin: 28px 0 8px; font-family: var(--font-display); font-size: clamp(25px, 3vw, 38px); font-weight: 500; letter-spacing: .02em; text-transform: uppercase; }
.road-step p { max-width: 760px; margin: 0 0 26px; color: var(--muted); font-size: 16px; }
.road-step > div:last-child > strong { color: #bbb9b0; font-size: 12px; font-weight: 500; letter-spacing: .02em; }
.legacy-section { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: end; }
.legacy-section > div:last-child p { margin: 0 0 28px; color: var(--muted); font-size: 18px; }
.compact-cta { margin-top: 100px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 980px) {
  :root { --page: min(100% - 40px, 820px); }
  .hero { min-height: auto; padding: 90px 0 38px; grid-template-columns: 1fr; }
  .hero-system { width: min(500px, 76vw); margin: 20px auto 30px; justify-self: center; }
  .hero-meta { grid-row: 3; }
  .identity-grid, .truth-section, .legacy-section { grid-template-columns: 1fr; gap: 54px; }
  .split-heading { grid-template-columns: 1fr; gap: 28px; }
  .direction-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .status-grid { grid-template-columns: repeat(2, 1fr); }
  .status-grid article:last-child { grid-column: 1 / -1; }
  .road-cta { padding: 64px 44px; }
}

@media (max-width: 720px) {
  :root { --page: calc(100% - 32px); }
  body { background-size: 52px 52px; }
  .topbar { height: 74px; position: relative; }
  .brand-version { display: none; }
  .menu-button { display: block; }
  .site-nav { position: absolute; top: 74px; left: 0; right: 0; z-index: 20; padding: 24px; display: none; flex-direction: column; align-items: flex-start; gap: 20px; border: 1px solid var(--line-soft); background: rgba(8,9,8,.98); }
  .site-nav.open { display: flex; }
  .hero { padding-top: 68px; }
  .hero h1 { font-size: clamp(39px, 11vw, 54px); }
  .hero-lede { font-size: 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-system { width: min(430px, 90vw); }
  .system-label { font-size: 7px; }
  .hero-meta { grid-template-columns: 1fr; }
  .hero-meta div { padding: 16px 0; border-top: 1px solid var(--line-soft); }
  .hero-meta div + div { padding-left: 0; border-left: 0; }
  .section { padding: 88px 0; }
  .section-index { margin-bottom: 40px; }
  .section-heading { margin-bottom: 46px; }
  .section-heading h2, .truth-copy h2, .legacy-section h2 { font-size: 36px; }
  .principles article { grid-template-columns: 34px 1fr; gap: 14px; }
  .principles p { grid-column: 2; }
  .framework-list li { min-height: 0; grid-template-columns: 40px 1fr; }
  .framework-arrow { display: none; }
  .direction-grid, .team-grid, .status-grid { grid-template-columns: 1fr; }
  .profile-card { min-height: 500px; padding: 24px; }
  .profile-monogram { width: 110px; height: 110px; margin: 50px 0 38px; }
  .agent-card { min-height: 260px; }
  .status-grid article:last-child { grid-column: auto; }
  .route-panel a { grid-template-columns: 48px 1fr 20px; padding-inline: 4px; }
  .route-panel code { font-size: 11px; overflow-wrap: anywhere; }
  .road-cta { margin-bottom: 60px; padding: 48px 24px; }
  .road-cta::after { font-size: 160px; bottom: -35px; }
  footer { padding: 30px 0; grid-template-columns: 1fr; gap: 16px; }
  footer p, footer p:last-child { text-align: left; }
  .road-hero { min-height: auto; padding: 88px 0; }
  .road-hero h1 { font-size: clamp(58px, 20vw, 94px); }
  .road-hero > p:not(.eyebrow) { font-size: 20px; }
  .road-rule { grid-template-columns: 1fr; gap: 10px; }
  .road-step { min-height: 0; grid-template-columns: 52px 1fr; gap: 16px; }
  .road-num { font-size: 20px; }
  .road-status { align-items: flex-start; gap: 12px; }
  .road-step h3 { margin-top: 24px; font-size: 24px; }
  .compact-cta { margin-top: 60px; }
}
