:root {
  --ink: #080b10;
  --paper: #f1efe9;
  --paper-deep: #e7e4dc;
  --night: #05070b;
  --night-soft: #0b1018;
  --white: #f8f8f5;
  --muted: #9ca4ac;
  --line: rgba(255, 255, 255, 0.18);
  --dark-line: rgba(8, 11, 16, 0.17);
  --blue: #bbecff;
  --peach: #ffc5ab;
  --violet: #c9b7ff;
  --header-height: 82px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--white);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-menu-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

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

button {
  border: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

::selection {
  color: var(--ink);
  background: var(--blue);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.65rem 0.8rem;
  color: var(--ink);
  background: var(--white);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-150%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.skip-link:focus {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-shell {
  position: relative;
  isolation: isolate;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 3.2vw;
  color: var(--white);
  background: linear-gradient(180deg, rgba(4, 6, 9, 0.96) 0%, rgba(4, 6, 9, 0.68) 55%, rgba(4, 6, 9, 0) 100%);
  transition: background 300ms ease, color 300ms ease;
}

.site-header.is-light {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(241, 239, 233, 0.96) 0%, rgba(241, 239, 233, 0.84) 55%, rgba(241, 239, 233, 0) 100%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
}

.brand-mark circle {
  fill: currentColor;
  stroke: none;
}

.brand-word {
  letter-spacing: -0.055em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 2.6vw, 3rem);
  margin-left: 7vw;
}

.nav-link {
  position: relative;
  padding: 0.45rem 0;
  color: rgba(248, 248, 245, 0.62);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  transition: color 180ms ease;
}

.site-header.is-light .nav-link {
  color: rgba(8, 11, 16, 0.56);
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 180ms ease, transform 220ms var(--ease-out);
}

.nav-link:hover,
.nav-link.is-active {
  color: currentColor;
}

.nav-link.is-active::after,
.nav-link:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.icon-button,
.round-button {
  display: grid;
  place-items: center;
  color: currentColor;
  background: transparent;
  cursor: pointer;
}

.icon-button {
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 50%;
  opacity: 0.78;
  transition: background 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.icon-button:hover {
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

.site-header.is-light .icon-button:hover {
  background: rgba(8, 11, 16, 0.08);
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.icon-play {
  display: none;
  margin-left: 2px;
}

.icon-button[aria-pressed="true"] .icon-pause {
  display: none;
}

.icon-button[aria-pressed="true"] .icon-play {
  display: block;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 36px;
  padding: 0.5rem 0.84rem 0.5rem 0.9rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.74rem;
  transition: color 180ms ease, background 180ms ease;
}

.header-cta:hover {
  color: var(--ink);
  background: var(--white);
}

.site-header.is-light .header-cta:hover {
  color: var(--white);
  background: var(--ink);
}

.menu-toggle {
  display: none;
}

.galaxy-scroll {
  position: relative;
  background: var(--night);
}

.galaxy-stage {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: #04070b;
}

#galaxy-canvas,
.stage-vignette,
.stage-noise {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

#galaxy-canvas {
  z-index: 0;
  touch-action: pan-y;
  cursor: crosshair;
}

.stage-vignette {
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 34%, rgba(2, 4, 7, 0.12) 56%, rgba(2, 4, 7, 0.73) 100%),
    linear-gradient(180deg, rgba(2, 4, 7, 0.4) 0%, transparent 25%, transparent 75%, rgba(2, 4, 7, 0.65) 100%);
}

.stage-noise {
  z-index: 2;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

.stage-meta,
.hero-copy,
.hero-label,
.stage-readout,
.stage-tools,
.field-lab,
.scroll-cue,
.stage-progress {
  position: absolute;
  z-index: 4;
}

.stage-meta {
  right: 3.2vw;
  left: 3.2vw;
}

.stage-meta-top {
  top: calc(var(--header-height) + 0.9rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.eyebrow {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: var(--peach);
  box-shadow: 0 0 14px var(--peach);
  vertical-align: 1px;
}

.stage-coordinates {
  margin: 0;
  color: rgba(248, 248, 245, 0.42);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-copy {
  top: 50%;
  left: 8.4vw;
  width: min(37rem, 45vw);
  transform: translateY(-36%);
  transition: opacity 350ms ease, transform 500ms var(--ease-out);
}

.hero-copy.is-fading {
  opacity: 0.18;
  transform: translateY(-50%) scale(0.96);
}

.hero-kicker {
  margin: 0 0 1.25rem;
  color: rgba(248, 248, 245, 0.62);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 8.6ch;
  margin: 0;
  font-size: clamp(4.3rem, 10vw, 10.8rem);
  font-weight: 700;
  letter-spacing: -0.095em;
  line-height: 0.83;
}

.hero-copy h1 span,
h2 em,
h3 em {
  color: var(--blue);
  font-style: normal;
}

.hero-description {
  max-width: 25rem;
  margin: 2rem 0 0;
  color: rgba(248, 248, 245, 0.7);
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.35rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 46px;
  padding: 0.75rem 1rem 0.75rem 1.12rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease, transform 220ms var(--ease-out);
}

.button:hover {
  transform: translateY(-2px);
}

.button-light {
  color: var(--ink);
  background: var(--white);
}

.button-light:hover {
  background: var(--blue);
}

.button-outline {
  color: var(--white);
  border-color: rgba(248, 248, 245, 0.42);
  background: transparent;
}

.button-outline:hover {
  color: var(--ink);
  border-color: var(--white);
  background: var(--white);
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0;
  color: rgba(248, 248, 245, 0.68);
  background: transparent;
  font-size: 0.76rem;
  cursor: pointer;
  transition: color 180ms ease, gap 180ms ease;
}

.text-button:hover {
  color: var(--white);
  gap: 0.8rem;
}

.hero-label {
  top: 58%;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: center;
  pointer-events: none;
  transition: opacity 350ms ease;
}

.hero-label span {
  font-size: clamp(1.7rem, 3.1vw, 3.8rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 1;
}

.hero-label small {
  color: rgba(248, 248, 245, 0.54);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.label-left {
  left: 4.8vw;
}

.label-right {
  right: 5.4vw;
}

.hero-label.is-fading {
  opacity: 0.08;
}

.stage-readout {
  right: 3.2vw;
  bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(248, 248, 245, 0.55);
  font-size: 0.61rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.readout-index {
  color: var(--white);
}

.readout-line {
  display: inline-block;
  width: 4rem;
  height: 1px;
  background: rgba(248, 248, 245, 0.3);
}

.readout-total {
  color: rgba(248, 248, 245, 0.32);
}

.stage-tools {
  bottom: 2.7rem;
  left: 3.2vw;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(248, 248, 245, 0.5);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.round-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(248, 248, 245, 0.3);
  border-radius: 50%;
  transition: color 180ms ease, background 180ms ease, transform 220ms var(--ease-out);
}

.round-button:hover {
  color: var(--ink);
  background: var(--white);
  transform: rotate(-45deg);
}

.round-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.field-lab {
  top: calc(var(--header-height) + 3.8rem);
  right: 3.2vw;
  width: min(18rem, calc(100vw - 2.3rem));
  color: rgba(248, 248, 245, 0.76);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field-lab-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  min-height: 34px;
  padding: 0.55rem 0.7rem;
  color: currentColor;
  border: 1px solid rgba(248, 248, 245, 0.25);
  border-radius: 999px;
  background: rgba(4, 7, 11, 0.25);
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: border-color 180ms ease, background 180ms ease;
}

.field-lab-toggle:hover,
.field-lab.is-open .field-lab-toggle {
  border-color: rgba(248, 248, 245, 0.65);
  background: rgba(4, 7, 11, 0.55);
}

.lab-toggle-signal {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 12px var(--blue);
}

.lab-toggle-icon {
  display: inline-block;
  margin-left: 0.2rem;
  color: var(--blue);
  font-size: 1rem;
  font-weight: 400;
  line-height: 0.8;
  transition: transform 280ms var(--ease-out);
}

.field-lab.is-open .lab-toggle-icon {
  transform: rotate(45deg);
}

.field-lab-panel {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(248, 248, 245, 0.2);
  background: rgba(4, 7, 11, 0.72);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.5rem) scale(0.98);
  transform-origin: top right;
  backdrop-filter: blur(22px);
  transition: opacity 220ms ease, transform 320ms var(--ease-out);
}

.field-lab.is-open .field-lab-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.lab-panel-heading,
.range-control > span,
.telemetry-heading,
.telemetry-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lab-panel-heading {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(248, 248, 245, 0.14);
  color: rgba(248, 248, 245, 0.55);
  font-size: 0.58rem;
}

.lab-live,
.telemetry-live {
  color: var(--blue);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
}

.lab-live i,
.telemetry-live i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 0.3rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  vertical-align: 1px;
}

.range-control {
  display: block;
  margin-top: 1rem;
  color: rgba(248, 248, 245, 0.76);
  font-size: 0.61rem;
}

.range-control output {
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.range-control input {
  display: block;
  width: 100%;
  height: 1.1rem;
  margin: 0.4rem 0 0;
  accent-color: var(--blue);
  cursor: pointer;
}

.lab-switches {
  display: flex;
  gap: 0.45rem;
  margin-top: 1.05rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(248, 248, 245, 0.14);
}

.lab-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.4rem 0;
  color: rgba(248, 248, 245, 0.44);
  background: transparent;
  font-size: 0.57rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.lab-switch > span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.lab-switch.is-on {
  color: var(--blue);
}

.lab-switch.is-on > span {
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.scroll-cue {
  bottom: 3rem;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(248, 248, 245, 0.46);
  font-size: 0.61rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue-line {
  display: inline-block;
  width: 2.8rem;
  height: 1px;
  background: rgba(248, 248, 245, 0.5);
}

.stage-progress {
  right: 3.2vw;
  bottom: 1.55rem;
  left: 3.2vw;
  height: 1px;
  overflow: hidden;
  background: rgba(248, 248, 245, 0.12);
}

.stage-progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--peach));
  box-shadow: 0 0 12px rgba(187, 236, 255, 0.7);
  transition: width 80ms linear;
}

.story-steps {
  position: relative;
  z-index: 3;
}

.story-step {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 100svh;
  padding: 6rem 8.4vw 6rem 52vw;
  pointer-events: none;
}

.story-step--left {
  justify-content: flex-start;
  padding-right: 52vw;
  padding-left: 8.4vw;
}

.story-card {
  width: min(30rem, 100%);
  padding: 2.3rem;
  border: 1px solid rgba(248, 248, 245, 0.2);
  background: linear-gradient(135deg, rgba(5, 7, 11, 0.4), rgba(5, 7, 11, 0.16));
  box-shadow: 0 1.8rem 5rem rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(2.8rem);
  transition: opacity 650ms ease, transform 700ms var(--ease-out);
}

.story-step.is-active .story-card,
.story-step.is-past .story-card {
  opacity: 1;
  transform: translateY(0);
}

.story-step.is-past .story-card {
  opacity: 0.16;
}

.story-index {
  margin: 0 0 2.8rem;
  color: var(--blue);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-card h2 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 5.7rem);
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 0.9;
}

.story-card h2 em {
  color: var(--peach);
}

.story-card > p:not(.story-index) {
  max-width: 23rem;
  margin: 2rem 0 0;
  color: rgba(248, 248, 245, 0.65);
  font-size: 0.95rem;
  line-height: 1.6;
}

.story-card .button {
  margin-top: 2rem;
}

.story-rule {
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 2rem;
  background: linear-gradient(90deg, var(--blue), transparent);
  opacity: 0.5;
}

.content-section {
  position: relative;
  z-index: 5;
  padding: clamp(7rem, 13vw, 13rem) 8.4vw;
  color: var(--ink);
  background: var(--paper);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.8fr);
  gap: 10vw;
  max-width: 100rem;
  margin: 0 auto;
}

.eyebrow-dark {
  color: #6c7374;
}

.content-section h2 {
  margin: 1.4rem 0 0;
  font-size: clamp(3rem, 7.2vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.1em;
  line-height: 0.83;
}

.content-section h2 em {
  color: #7576a2;
}

.observatory-copy {
  align-self: end;
  padding-bottom: 0.7rem;
}

.lead-copy {
  max-width: 32rem;
  margin: 0;
  font-size: clamp(1.1rem, 1.8vw, 1.65rem);
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.mini-link-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.3rem 2rem;
  margin-top: 3.6rem;
}

.telemetry-card {
  max-width: 32rem;
  margin-top: 4.4rem;
  padding: 1rem 0 0.8rem;
  border-top: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
}

.telemetry-heading,
.telemetry-footer {
  color: #777d7b;
  font-size: 0.61rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.telemetry-live {
  color: #7779a8;
}

#telemetry-canvas {
  display: block;
  width: 100%;
  height: 9rem;
  margin: 0.8rem 0 0.35rem;
}

.telemetry-footer strong {
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  width: fit-content;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.76rem;
  font-weight: 700;
  transition: gap 180ms ease, color 180ms ease;
}

.arrow-link:hover {
  gap: 1rem;
  color: #7779a8;
}

.quiet-note {
  color: #777d7b;
  font-size: 0.7rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: clamp(6rem, 12vw, 12rem) auto 0;
  border-top: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
}

.metric-card {
  min-height: 13rem;
  padding: 2rem 1.7rem 1.7rem 0;
  border-right: 1px solid var(--dark-line);
}

.metric-card:last-child {
  border-right: 0;
}

.metric-value {
  display: inline-block;
  font-size: clamp(3.2rem, 6vw, 6.7rem);
  font-weight: 700;
  letter-spacing: -0.1em;
  line-height: 0.8;
}

.metric-suffix {
  margin-left: 0.35rem;
  color: #7779a8;
  font-size: 1.5rem;
  font-weight: 700;
  vertical-align: top;
}

.metric-card p {
  max-width: 9rem;
  margin: 2.1rem 0 0;
  color: #777d7b;
  font-size: 0.73rem;
  line-height: 1.45;
}

.systems-section {
  background: var(--paper-deep);
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  max-width: 100rem;
  margin: 0 auto;
}

.section-aside {
  max-width: 13rem;
  margin: 0 0 0.4rem;
  color: #777d7b;
  font-size: 0.74rem;
  line-height: 1.5;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  max-width: 100rem;
  margin: 6rem auto 0;
}

.system-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 28rem;
  overflow: hidden;
  padding: 1.7rem;
  color: var(--ink);
  background: var(--blue);
  transition: transform 350ms var(--ease-out), box-shadow 350ms ease;
}

.system-card:hover {
  box-shadow: 0 1.8rem 3.5rem rgba(22, 24, 29, 0.12);
  transform: translateY(-0.6rem);
}

.system-card--violet {
  background: var(--violet);
}

.system-card--blue {
  background: var(--blue);
}

.system-card--peach {
  background: var(--peach);
}

.system-card--black {
  color: var(--white);
  background: #151a20;
}

.card-number,
.card-label {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-label {
  margin-top: 0.28rem;
  opacity: 0.58;
}

.system-card h3 {
  position: relative;
  z-index: 2;
  margin: auto 0 0;
  font-size: clamp(2.1rem, 3.1vw, 3.7rem);
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 0.9;
}

.system-card h3 em {
  color: inherit;
  opacity: 0.58;
}

.card-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  margin-top: 2rem;
  padding-bottom: 0.32rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.72rem;
  font-weight: 700;
  transition: gap 180ms ease;
}

.card-link:hover {
  gap: 0.85rem;
}

.card-orbit {
  position: absolute;
  top: 44%;
  left: 48%;
  width: 150%;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.24;
  transform: translate(-50%, -50%) rotate(-22deg) scaleY(0.35);
  transition: transform 700ms var(--ease-out), opacity 500ms ease;
}

.system-card:hover .card-orbit {
  opacity: 0.48;
  transform: translate(-50%, -50%) rotate(12deg) scaleY(0.45);
}

.card-orbit::before,
.card-orbit::after {
  position: absolute;
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
  content: "";
}

.card-orbit::before {
  top: 18%;
  left: 20%;
}

.card-orbit::after {
  right: 8%;
  bottom: 10%;
  width: 0.25rem;
  height: 0.25rem;
}

.card-orbit span,
.card-orbit i,
.card-orbit b {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
}

.card-orbit span {
  top: 48%;
  left: 48%;
  width: 1.15rem;
  height: 1.15rem;
  transform: translate(-50%, -50%);
}

.card-orbit i {
  top: 8%;
  left: 35%;
  width: 0.35rem;
  height: 0.35rem;
}

.card-orbit b {
  right: 28%;
  bottom: 20%;
  width: 0.18rem;
  height: 0.18rem;
}

.card-orbit--two {
  width: 125%;
  transform: translate(-50%, -50%) rotate(28deg) scaleY(0.29);
}

.card-orbit--three {
  top: 40%;
  width: 170%;
  transform: translate(-50%, -50%) rotate(-38deg) scaleY(0.5);
}

.card-orbit--four {
  top: 51%;
  left: 50%;
  width: 120%;
  opacity: 0.35;
  transform: translate(-50%, -50%) rotate(-8deg) scaleY(0.75);
}

.journal-section {
  background: var(--paper);
}

.journal-heading {
  align-items: flex-start;
}

.journal-heading .arrow-link {
  margin-bottom: 0.5rem;
}

.journal-list {
  max-width: 100rem;
  margin: 7rem auto 0;
  border-top: 1px solid var(--dark-line);
}

.journal-item {
  display: grid;
  grid-template-columns: 9rem 1fr 9rem;
  gap: 2rem;
  align-items: center;
  min-height: 8.5rem;
  border-bottom: 1px solid var(--dark-line);
  transition: padding 280ms var(--ease-out), background 280ms ease;
}

.journal-item:hover {
  padding: 0 1.2rem;
  background: rgba(255, 255, 255, 0.44);
}

.journal-date,
.journal-type {
  color: #777d7b;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.journal-title {
  font-size: clamp(1.4rem, 2.3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
}

.journal-type {
  text-align: right;
}

.journal-type span {
  display: inline-block;
  margin-left: 0.55rem;
  color: var(--ink);
  font-size: 1rem;
  transition: transform 180ms var(--ease-out);
}

.journal-item:hover .journal-type span {
  transform: translate(0.2rem, -0.2rem);
}

.contact-section {
  position: relative;
  z-index: 5;
  min-height: 44rem;
  overflow: hidden;
  padding: clamp(7rem, 13vw, 12rem) 8.4vw;
  background: #080b10;
}

.contact-starfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.65;
  background:
    radial-gradient(circle at 17% 35%, rgba(187, 236, 255, 0.36) 0 1px, transparent 2px),
    radial-gradient(circle at 23% 78%, rgba(255, 197, 171, 0.55) 0 1px, transparent 2px),
    radial-gradient(circle at 79% 22%, rgba(201, 183, 255, 0.42) 0 1px, transparent 2px),
    radial-gradient(circle at 86% 69%, rgba(248, 248, 245, 0.5) 0 1px, transparent 2px),
    radial-gradient(ellipse at 50% 100%, rgba(86, 90, 157, 0.2), transparent 58%);
  background-size: 180px 180px, 260px 260px, 220px 220px, 310px 310px, 100% 100%;
  animation: star-drift 18s linear infinite;
}

@keyframes star-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1.02);
  }
  to {
    transform: translate3d(-30px, 18px, 0) scale(1.06);
  }
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 58rem;
  margin: 0 auto;
  text-align: center;
}

.contact-inner h2 {
  font-size: clamp(3.6rem, 8vw, 9rem);
  color: var(--white);
}

.contact-inner h2 em {
  color: var(--blue);
}

.contact-inner > p:not(.eyebrow):not(.form-note) {
  margin: 2rem auto 0;
  color: rgba(248, 248, 245, 0.6);
  font-size: 1rem;
}

.signal-form {
  display: flex;
  max-width: 31rem;
  margin: 2.6rem auto 0;
  padding: 0.35rem;
  border: 1px solid rgba(248, 248, 245, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.signal-form input {
  min-width: 0;
  flex: 1;
  padding: 0.75rem 1rem;
  color: var(--white);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.82rem;
}

.signal-form input::placeholder {
  color: rgba(248, 248, 245, 0.42);
}

.signal-form .button {
  flex: 0 0 auto;
  min-height: 42px;
}

.form-note {
  margin: 1rem 0 0;
  color: rgba(248, 248, 245, 0.38);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 7rem;
  padding: 1.8rem 3.2vw;
  color: var(--white);
  background: #080b10;
}

.brand--footer {
  color: var(--white);
}

.footer-meta {
  display: flex;
  gap: 1.2rem;
  color: rgba(248, 248, 245, 0.43);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(248, 248, 245, 0.65);
  font-size: 0.68rem;
  transition: gap 180ms ease, color 180ms ease;
}

.back-to-top:hover {
  gap: 0.95rem;
  color: var(--white);
}

.toast {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 50;
  max-width: min(24rem, calc(100vw - 2.8rem));
  padding: 0.8rem 1rem;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: var(--blue);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
  font-size: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem);
  transition: opacity 220ms ease, transform 300ms var(--ease-out);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.noscript-message {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 1rem;
  color: var(--ink);
  background: var(--blue);
  font-size: 0.9rem;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 700ms ease, transform 800ms var(--ease-out);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1000px) {
  .primary-nav {
    margin-left: 0;
  }

  .hero-copy {
    left: 6vw;
    width: min(32rem, 52vw);
  }

  .story-step {
    padding-right: 6vw;
    padding-left: 50vw;
  }

  .story-step--left {
    padding-right: 50vw;
    padding-left: 6vw;
  }

  .content-section,
  .contact-section {
    padding-right: 6vw;
    padding-left: 6vw;
  }

  .system-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .system-card {
    min-height: 24rem;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 72px;
  }

  .site-header {
    padding: 0 1.1rem;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 1.1rem 1.1rem;
    color: var(--white);
    background: rgba(5, 7, 11, 0.96);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .nav-link {
    padding: 0.85rem 0.2rem;
    border-bottom: 1px solid rgba(248, 248, 245, 0.12);
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .menu-icon path {
    transition: transform 180ms ease;
  }

  .site-header.is-menu-open .menu-icon path:first-child {
    transform: translateY(5px) rotate(45deg);
  }

  .site-header.is-menu-open .menu-icon path:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-menu-open .menu-icon path:last-child {
    transform: translateY(-5px) rotate(-45deg);
  }

  .galaxy-stage {
    min-height: 600px;
  }

  .stage-meta {
    right: 1.15rem;
    left: 1.15rem;
  }

  .stage-meta-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .field-lab {
    top: calc(var(--header-height) + 3.1rem);
    right: 1.15rem;
    width: auto;
  }

  .field-lab-panel {
    right: 0;
    width: min(17rem, calc(100vw - 2.3rem));
  }

  .stage-coordinates {
    display: none;
  }

  .hero-copy {
    top: 48%;
    right: 1.15rem;
    left: 1.15rem;
    width: auto;
    transform: translateY(-32%);
  }

  .hero-copy.is-fading {
    transform: translateY(-45%) scale(0.96);
  }

  .hero-copy h1 {
    font-size: clamp(4rem, 19vw, 7rem);
  }

  .hero-description {
    max-width: 18rem;
    margin-top: 1.4rem;
    font-size: 0.88rem;
  }

  .hero-actions {
    gap: 1rem;
    margin-top: 1.4rem;
  }

  .button {
    min-height: 43px;
    font-size: 0.7rem;
  }

  .label-left {
    top: 55%;
    left: 1.3rem;
  }

  .label-right {
    top: 59%;
    right: 1.3rem;
  }

  .hero-label span {
    font-size: 1.65rem;
  }

  .stage-tools {
    bottom: 3rem;
    left: 1.1rem;
  }

  .stage-tools > span,
  .stage-tools > span + span {
    display: none;
  }

  .stage-readout {
    right: 1.15rem;
    bottom: 3.25rem;
  }

  .scroll-cue {
    bottom: 5.8rem;
    left: auto;
    right: 1.15rem;
    transform: none;
  }

  .scroll-cue-line {
    width: 1.7rem;
  }

  .story-step,
  .story-step--left {
    align-items: flex-end;
    min-height: 100svh;
    padding: 0 1.15rem 5rem;
  }

  .story-card {
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(5, 7, 11, 0.7), rgba(5, 7, 11, 0.38));
  }

  .story-index {
    margin-bottom: 1.6rem;
  }

  .story-card h2 {
    font-size: clamp(2.6rem, 13vw, 4.6rem);
  }

  .story-card > p:not(.story-index) {
    margin-top: 1.3rem;
    font-size: 0.86rem;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .content-section h2 {
    font-size: clamp(3.2rem, 15vw, 6.7rem);
  }

  .observatory-copy {
    padding-bottom: 0;
  }

  .telemetry-card {
    margin-top: 3.5rem;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-card:nth-child(2) {
    border-right: 0;
  }

  .metric-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--dark-line);
  }

  .metric-card {
    min-height: 10rem;
  }

  .system-grid {
    grid-template-columns: 1fr;
    margin-top: 4rem;
  }

  .system-card {
    min-height: 22rem;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 2rem;
  }

  .section-aside {
    max-width: 17rem;
  }

  .journal-list {
    margin-top: 4rem;
  }

  .journal-item {
    grid-template-columns: 1fr auto;
    gap: 0.7rem;
    padding: 1.35rem 0;
  }

  .journal-item:hover {
    padding: 1.35rem 0.5rem;
  }

  .journal-date {
    grid-column: 1;
  }

  .journal-type {
    grid-column: 2;
    grid-row: 1;
  }

  .journal-title {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 1.65rem;
  }

  .contact-section {
    min-height: 42rem;
  }

  .contact-inner h2 {
    font-size: clamp(3.5rem, 17vw, 7rem);
  }

  .signal-form {
    align-items: stretch;
    flex-direction: column;
    padding: 0.7rem;
    border-radius: 1.1rem;
  }

  .signal-form input {
    min-height: 42px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.4rem;
    padding: 2rem 1.15rem;
  }

  .footer-meta {
    flex-direction: column;
    gap: 0.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #galaxy-canvas {
    cursor: default;
  }
}
