:root {
  --bg: #080807;
  --bg-2: #10100f;
  --panel: rgba(23, 23, 22, 0.88);
  --panel-2: rgba(34, 33, 31, 0.78);
  --line: rgba(214, 173, 92, 0.28);
  --line-soft: rgba(255, 255, 255, 0.12);
  --text: #f3efe7;
  --muted: #aaa39a;
  --soft: #746e67;
  --copper: #c47b32;
  --gold: #dfbf35;
  --red: #b34039;
  --green: #54b678;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  background:
    radial-gradient(circle at 24% 0%, rgba(196, 123, 50, 0.16), transparent 28rem),
    radial-gradient(circle at 80% 8%, rgba(179, 64, 57, 0.09), transparent 26rem),
    linear-gradient(180deg, #080807 0%, #11100f 48%, #080807 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 82%);
}

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

img {
  max-width: 100%;
  display: block;
}

.section-anchor {
  scroll-margin-top: 104px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--max), calc(100% - 32px));
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(12, 12, 11, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 214px;
}

.brand-lockup img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
}

.brand-lockup strong {
  font-size: 15px;
  letter-spacing: 0;
}

.brand-lockup small {
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #cbc5bb;
  font-size: 13px;
}

nav a,
.site-footer a {
  transition: color 160ms ease;
}

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

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(223, 191, 53, 0.34);
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.nav-cta,
.button.primary {
  color: #070706;
  background: linear-gradient(135deg, #d38a3d, #bd7229);
  border-color: rgba(255, 206, 119, 0.4);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 42px;
  align-items: center;
  width: min(var(--max), calc(100% - 32px));
  min-height: calc(100vh - 94px);
  margin: 0 auto;
  padding: 72px 0 56px;
}

.data-label {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 8vw, 94px);
  font-weight: 500;
  line-height: 0.94;
}

h2 {
  max-width: 780px;
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 500;
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
}

.hero-lede,
.section-heading p,
.contact-panel p {
  color: var(--muted);
  font-size: 18px;
}

.hero-lede {
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 560px;
  margin: 38px 0 0;
}

.hero-facts div {
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.hero-facts dt {
  color: var(--muted);
  font-size: 12px;
}

.hero-facts dd {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
}

.hero-visual,
.orbital-map,
.ecosystem-map,
.chart-card,
.document-card,
.evidence-card,
.status-card,
.contact-panel {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-visual {
  min-height: 620px;
  overflow: hidden;
  position: relative;
  padding: 28px;
}

.hero-visual::before,
.ecosystem-map::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, transparent 31px, rgba(255, 255, 255, 0.04) 32px),
    linear-gradient(transparent 31px, rgba(255, 255, 255, 0.04) 32px);
  background-size: 32px 32px;
  opacity: 0.7;
}

.orbital-map {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  overflow: hidden;
  background: radial-gradient(circle, rgba(223, 191, 53, 0.12), transparent 46%);
}

.arch-ring {
  position: absolute;
  border: 1px solid rgba(223, 191, 53, 0.44);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.ring-one {
  width: 480px;
  height: 480px;
  bottom: 52px;
}

.ring-two {
  width: 670px;
  height: 670px;
  bottom: -62px;
  border-color: rgba(255, 255, 255, 0.14);
}

.core-node,
.orbit-node {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 9, 8, 0.88);
}

.core-node {
  display: grid;
  place-items: center;
  gap: 10px;
  width: 186px;
  min-height: 186px;
  padding: 20px;
  text-align: center;
  font-weight: 800;
}

.core-node img {
  width: 94px;
  height: 94px;
  border-radius: 8px;
  object-fit: cover;
}

.orbit-node {
  position: absolute;
  width: 134px;
  padding: 14px;
  font-weight: 800;
  text-align: center;
}

.orbit-node small {
  color: var(--muted);
  font-weight: 500;
}

.orbit-node.civitas {
  top: 82px;
  right: 58px;
}

.orbit-node.auctorium {
  bottom: 88px;
  right: 108px;
}

.orbit-node.roadmap {
  bottom: 114px;
  left: 72px;
}

.visual-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.visual-caption strong {
  color: var(--gold);
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-heading {
  margin-bottom: 34px;
}

.status-grid,
.chart-grid,
.document-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.status-card,
.chart-card,
.document-card,
.evidence-card {
  padding: 22px;
}

.status-card header,
.chart-card header,
.document-card header,
.evidence-card header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.source-chip,
.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  white-space: nowrap;
}

.status-chip.complete {
  color: #bff1cd;
  border-color: rgba(84, 182, 120, 0.42);
}

.status-chip.draft {
  color: #f1d675;
  border-color: rgba(223, 191, 53, 0.42);
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-fill {
  height: 100%;
  width: var(--value);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--copper), var(--gold));
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 42px;
}

.sticky-heading {
  position: sticky;
  top: 120px;
  align-self: start;
}

.evidence-stack {
  display: grid;
  gap: 14px;
}

.evidence-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 18px;
  align-items: center;
}

.evidence-card figure {
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.evidence-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ecosystem-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  overflow: hidden;
  min-height: 460px;
  padding: 44px;
}

.ecosystem-card {
  position: relative;
  z-index: 1;
  align-self: center;
  min-height: 270px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.9);
}

.ecosystem-card img {
  width: 86px;
  height: 86px;
  margin-bottom: 26px;
  border-radius: 8px;
  object-fit: cover;
}

.ecosystem-card.parent {
  transform: translateY(-36px);
}

.system-line {
  position: absolute;
  z-index: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.system-line.one {
  top: 49%;
  left: 24%;
  width: 52%;
}

.system-line.two {
  top: 39%;
  left: 34%;
  width: 34%;
  transform: rotate(28deg);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 120px;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.timeline-stage {
  color: var(--gold);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.bar-chart {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.bar-row {
  display: grid;
  grid-template-columns: 88px 1fr 42px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.bar-row .progress-track {
  height: 7px;
}

.donut {
  width: 132px;
  height: 132px;
  margin: 20px auto;
  border-radius: 50%;
  background: conic-gradient(var(--gold) var(--value), rgba(255, 255, 255, 0.08) 0);
  display: grid;
  place-items: center;
}

.donut span {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--bg-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.document-card {
  min-height: 220px;
}

.document-card .doc-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 68px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--gold);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
}

.document-card a {
  color: var(--gold);
  font-weight: 700;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  padding: 32px;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: #d8d2c9;
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  font: inherit;
  font-size: 15px;
  padding: 12px 13px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.form-note.success {
  color: #bff1cd;
}

.form-note.error {
  color: #ffb0a9;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 44px;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
}

.site-footer span {
  color: var(--text);
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero,
  .split-section,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .sticky-heading {
    position: static;
  }

  .status-grid,
  .chart-grid,
  .document-grid,
  .ecosystem-map {
    grid-template-columns: 1fr;
  }

  .ecosystem-card.parent {
    transform: none;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .section,
  .site-footer {
    width: min(100% - 24px, var(--max));
  }

  .hero-facts,
  .timeline-item,
  .evidence-card {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .orbital-map {
    min-height: 430px;
  }

  .ring-one {
    width: 330px;
    height: 330px;
  }

  .ring-two {
    width: 470px;
    height: 470px;
  }

  .orbit-node {
    width: 116px;
    font-size: 13px;
  }

  .orbit-node.civitas {
    top: 62px;
    right: 16px;
  }

  .orbit-node.auctorium {
    bottom: 52px;
    right: 22px;
  }

  .orbit-node.roadmap {
    bottom: 74px;
    left: 18px;
  }

  .core-node {
    width: 148px;
    min-height: 148px;
  }

  .ecosystem-map {
    padding: 18px;
  }

  .visual-caption {
    flex-direction: column;
  }
}
