:root {
  color-scheme: dark;
  --bg: #0b0713;
  --line: #493358;
  --text: #f8f4ff;
  --muted: #c6b8d5;
  --purple: #c59bff;
  --mint: #96f2d7;
  --gold: #f1ca86;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: radial-gradient(ellipse at 74% 5%, #36165366, transparent 27%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a {
  color: var(--purple);
  text-underline-offset: 5px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
button,
.button {
  min-height: 48px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 12px 18px;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.primary {
  background: var(--purple);
  color: #1b092c;
  border-color: var(--purple);
}
.secondary {
  background: #281b36;
  color: var(--text);
}
.subtle {
  background: transparent;
  color: var(--purple);
  border-color: transparent;
}
button:hover:not(:disabled),
.button:hover {
  filter: brightness(1.12);
}
:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 4px;
}
.wrap {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}
.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  padding: 12px;
  background: var(--text);
  color: var(--bg);
  z-index: 5;
}
.skip:focus {
  top: 10px;
}
.masthead {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding-block: 28px;
  border-bottom: 1px solid #49335880;
}
.brand {
  color: var(--text);
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 750;
  text-decoration: none;
  display: flex;
  gap: 10px;
  align-items: center;
}
.brand-mark {
  color: var(--purple);
  font-size: 30px;
}
.masthead nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
}
.masthead nav a {
  text-decoration: none;
  color: var(--muted);
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 36px;
  align-items: center;
  padding-block: 84px 70px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2.2px;
  font-weight: 750;
  color: var(--purple);
  margin: 0 0 18px;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  margin-right: 8px;
  box-shadow: 0 0 16px #96f2d788;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(46px, 5.8vw, 78px);
  font-weight: 650;
  letter-spacing: -3.6px;
  line-height: 1.04;
  margin-bottom: 28px;
}
h1 span {
  color: var(--purple);
}
.lede {
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 660px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block: 24px 14px;
}
.micro {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.status {
  font-size: 13px;
  color: var(--mint);
  min-height: 22px;
}
.horizon {
  min-height: 440px;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  background-image: radial-gradient(
      circle at 23% 18%,
      #d8c6fb 1px,
      transparent 2px
    ),
    radial-gradient(circle at 72% 81%, #d8c6fb 1px, transparent 2px),
    radial-gradient(circle at 85% 28%, #d8c6fb 1px, transparent 2px),
    radial-gradient(circle at 9% 65%, #d8c6fb 1px, transparent 2px);
}
.orbit {
  position: absolute;
  border: 1px solid #ac7be044;
  border-radius: 50%;
  width: 360px;
  height: 360px;
  transform: rotate(-28deg) scaleY(0.68);
  box-shadow: 0 0 60px #772fa811;
}
.orbit-two {
  width: 470px;
  height: 470px;
  transform: rotate(38deg) scaleY(0.65);
}
.orbit-three {
  width: 260px;
  height: 260px;
  transform: rotate(75deg) scaleY(0.8);
  border-color: #c59bff77;
}
.star-core {
  width: 174px;
  height: 174px;
  background: radial-gradient(circle at 35% 25%, #8856b7, #331049 60%, #15091f);
  border: 1px solid #ac7be0;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 100px #a74fe24d, inset 0 0 24px #c59bff22;
  z-index: 1;
}
.star-core > span {
  font-size: 32px;
  letter-spacing: 5px;
}
.star-core small {
  font-size: 7px;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.orbital-label {
  position: absolute;
  font-size: 9px;
  letter-spacing: 1.3px;
  background: #170c23;
  border: 1px solid var(--line);
  padding: 7px 10px;
  border-radius: 5px;
  z-index: 2;
}
.city {
  top: 66px;
  left: 10px;
}
.regional {
  right: -4px;
  top: 180px;
}
.planetary {
  bottom: 90px;
  left: 32px;
}
.horizon-note {
  position: absolute;
  bottom: -12px;
  right: 18px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  padding-block: 26px;
  gap: 25px;
}
.metrics div {
  display: flex;
  flex-direction: column;
}
.metrics strong {
  font-size: 32px;
  font-weight: 550;
  letter-spacing: -1px;
}
.metrics span {
  font-size: 12px;
  color: var(--muted);
}
.section {
  padding-top: 96px;
}
.section-heading {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: end;
  gap: 60px;
  margin-bottom: 28px;
}
.section-heading p:last-child {
  color: var(--muted);
  max-width: 450px;
}
h2 {
  font-size: clamp(29px, 3vw, 42px);
  font-weight: 580;
  letter-spacing: -1.4px;
  line-height: 1.18;
  margin-bottom: 12px;
}
h3 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.4px;
}
.panel {
  background: linear-gradient(130deg, #21132d, #130e1d);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  min-width: 0;
}
.panel p {
  color: var(--muted);
  font-size: 14px;
}
.mission-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}
.graph-panel img {
  width: 100%;
  height: auto;
}
.stage-list {
  list-style: none;
  margin: 0;
  padding: 12px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.stage-list button {
  width: 100%;
  justify-content: space-between;
  text-align: left;
  font-size: 12px;
  padding: 10px 12px;
  background: #23152f;
  color: var(--text);
}
.stage-list button[aria-pressed='true'] {
  border-color: var(--purple);
  background: #352047;
}
.stage-list .state {
  font-size: 10px;
  color: var(--muted);
}
label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 14px 0 6px;
}
select,
input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #6e507e;
  background: #100b18;
  color: var(--text);
  min-height: 46px;
  padding: 10px;
  min-width: 0;
}
select {
  margin-bottom: 24px;
}
input[type='file'] {
  font-size: 12px;
}
input::file-selector-button {
  background: #382047;
  border: 0;
  color: var(--text);
  padding: 8px;
  border-radius: 4px;
  margin-right: 8px;
}
.stage-detail h3 {
  margin-top: 8px;
}
.stage-detail dd {
  margin: 3px 0 16px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.stage-detail dt {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--purple);
}
details {
  margin-top: 22px;
}
summary {
  cursor: pointer;
  color: var(--text);
  font-size: 14px;
  padding-block: 5px;
}
pre {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  line-height: 1.8;
  padding: 18px;
  background: #0c0812;
  border: 1px solid #392849;
  border-radius: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 440px;
  overflow: auto;
}
.work-panel {
  margin-top: 20px;
}
.brief-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
}
#project-detail h4 {
  font-size: 17px;
  margin: 18px 0 10px;
}
#project-criteria {
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.8;
}
.inline-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.inline-heading h3 {
  margin-bottom: 8px;
}
.pill {
  font-size: 9px;
  letter-spacing: 1px;
  border: 1px solid #78588e;
  border-radius: 99px;
  padding: 4px 10px;
  white-space: nowrap;
  color: var(--purple);
}
.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
caption {
  text-align: left;
  color: var(--muted);
  padding: 8px 0 18px;
}
th {
  text-align: left;
  color: var(--purple);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
th,
td {
  padding: 16px 12px;
  border-bottom: 1px solid #49335870;
  vertical-align: top;
}
th:first-child,
td:first-child {
  padding-left: 0;
}
td:nth-child(3),
td:nth-child(4) {
  white-space: nowrap;
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}
td:nth-child(2) {
  color: var(--muted);
}
.evidence-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}
.boundary {
  margin-top: 28px;
  padding: 20px;
  border-left: 2px solid var(--gold);
  background: #281c1c;
}
.boundary strong {
  color: var(--gold);
  font-size: 13px;
}
.boundary p {
  margin: 8px 0 0;
  font-size: 12px;
}
.review-checks {
  padding-left: 20px;
  max-height: 230px;
  overflow: auto;
  font-size: 12px;
}
.pass {
  color: var(--mint);
}
.fail {
  color: #ffb4bc;
}
.findings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.finding {
  padding: 12px;
  background: #0f0b17;
  border-radius: 8px;
  font-size: 12px;
}
.finding strong {
  display: block;
  color: var(--mint);
  font-size: 18px;
}
.finding span {
  color: var(--muted);
}
.scale-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 20px;
}
.inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}
.inputs label {
  margin: 0;
}
.inputs input {
  margin-top: 8px;
}
.capacity-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.capacity-result > strong {
  font-size: clamp(30px, 3.5vw, 50px);
  font-weight: 550;
  color: var(--mint);
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.capacity-result .micro {
  margin-top: 20px;
  margin-bottom: 0;
}
progress {
  width: 100%;
  height: 12px;
  accent-color: var(--mint);
}
.vision {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  padding-bottom: 10px;
  background: radial-gradient(ellipse at 95% 60%, #7c36a51a, transparent 60%);
}
.vision h2 {
  font-size: clamp(32px, 4vw, 50px);
}
.vision .lede {
  max-width: 800px;
}
.vision-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 42px;
}
.vision-steps span {
  font-size: 12px;
  color: var(--purple);
}
.vision-steps h3 {
  margin: 12px 0;
  font-size: 20px;
}
.vision-steps p {
  font-size: 14px;
  color: var(--muted);
}
.operate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.operate-grid h3 {
  margin-top: 22px;
}
.operate-grid a {
  display: block;
  font-size: 12px;
  margin-top: 14px;
}
.operate-grid pre {
  padding: 12px;
  font-size: 10px;
}
footer {
  margin-top: 80px !important;
  padding-block: 30px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 11px;
  color: var(--muted);
}
footer p {
  margin: 0;
}
.ready .state {
  color: var(--mint);
}
@media (max-width: 1000px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .hero {
    gap: 10px;
  }
  .horizon {
    transform: scale(0.85);
    transform-origin: center;
  }
  .masthead nav {
    gap: 14px;
  }
  .section-heading {
    gap: 30px;
  }
  .operate-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 58px;
  }
  .orbital-label.regional {
    right: -28px;
  }
}
@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .masthead {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-block: 18px;
  }
  .brand {
    font-size: 10px;
    letter-spacing: 1px;
  }
  .masthead nav {
    justify-content: space-between;
    width: 100%;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-block: 40px 30px;
  }
  .hero h1 {
    font-size: 52px;
    letter-spacing: -2.5px;
  }
  .lede {
    font-size: 15px;
  }
  .horizon {
    min-height: 340px;
    max-width: 360px;
    width: 100%;
    justify-self: center;
    transform: none;
    overflow: hidden;
  }
  .orbit {
    width: 280px;
    height: 280px;
  }
  .orbit-two {
    width: 350px;
    height: 350px;
  }
  .orbit-three {
    width: 210px;
    height: 210px;
  }
  .star-core {
    width: 130px;
    height: 130px;
  }
  .star-core > span {
    font-size: 26px;
  }
  .city {
    left: 2px;
    top: 28px;
  }
  .orbital-label.regional {
    right: 0;
    top: 152px;
  }
  .planetary {
    left: 4px;
    bottom: 48px;
  }
  .orbital-label {
    font-size: 7px;
    padding: 6px;
  }
  .horizon-note {
    bottom: -8px;
    right: 0;
    font-size: 10px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .metrics span {
    font-size: 11px;
  }
  .section {
    padding-top: 58px;
  }
  .section-heading,
  .mission-grid,
  .evidence-grid,
  .scale-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .section-heading {
    gap: 4px;
  }
  .panel {
    padding: 20px;
  }
  .stage-list {
    grid-template-columns: 1fr 1fr;
  }
  .stage-list button {
    font-size: 11px;
    padding: 8px;
  }
  .vision-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .vision {
    margin-top: 38px;
  }
  .inline-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
  }
  table {
    min-width: 650px;
  }
  .inputs {
    gap: 16px 12px;
  }
  .inputs label {
    font-size: 11px;
  }
  .capacity-result > strong {
    font-size: 38px;
  }
  footer {
    flex-direction: column;
    gap: 12px;
  }
  .actions > * {
    flex-grow: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}
.archive-grid a {
  display: block;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  text-decoration: none;
}
.archive-grid small {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
}
.star-core > span {
  font-size: 6rem;
}
.hero h1 {
  font-size: clamp(3rem, 5.3vw, 5.7rem);
}
