:root {
  color-scheme: dark;
  --void: #020403;
  --panel: #050907;
  --mint: #71f65a;
  --mint-hot: #9bff83;
  --violet: #873de0;
  --violet-dark: #35105d;
  --paper: #edf5ef;
  --muted: #89948c;
  --line: rgba(113, 246, 90, 0.22);
  --line-quiet: rgba(237, 245, 239, 0.11);
  --display: "Arial Narrow", "Helvetica Neue Condensed", "Roboto Condensed", "Franklin Gothic Medium", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --content: 94rem;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 20rem;
  color: var(--paper);
  background:
    linear-gradient(rgba(113, 246, 90, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(113, 246, 90, 0.025) 1px, transparent 1px),
    var(--void);
  background-size: 48px 48px;
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle at 78% 18%, rgba(135, 61, 224, 0.15), transparent 31rem);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--mint-hot);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: var(--void);
  background: var(--mint);
  transform: translateY(-200%);
}

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

.site-header,
.hero,
.content-section,
.final-signal,
.site-footer {
  width: min(100%, var(--content));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 5.25rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wordmark {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  width: max-content;
  font-weight: 700;
  text-decoration: none;
}

.wordmark-mark {
  width: 0.65rem;
  height: 0.65rem;
  border: 1px solid var(--mint);
  box-shadow: inset 0 0 0 2px var(--void);
  background: var(--mint);
  transform: rotate(45deg);
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.site-nav a,
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

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

.language-switch {
  justify-self: end;
  color: #5f6a63;
}

.language-switch button {
  appearance: none;
  padding: 0.4rem;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  color: var(--mint);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(24rem, 0.92fr);
  align-items: center;
  min-height: calc(100svh - 5.25rem);
  padding-block: clamp(3.5rem, 8vh, 8rem);
}

.hero::before {
  position: absolute;
  inset: 2rem var(--gutter) 2rem;
  z-index: -1;
  content: "";
  border: 1px solid var(--line-quiet);
  clip-path: polygon(0 0, 35% 0, calc(35% + 1rem) 1rem, 100% 1rem, 100% 100%, 65% 100%, calc(65% - 1rem) calc(100% - 1rem), 0 calc(100% - 1rem));
  background: linear-gradient(110deg, rgba(5, 9, 7, 0.84), rgba(5, 9, 7, 0.3));
}

.hero-copy {
  position: relative;
  z-index: 5;
  max-width: 54rem;
  padding: clamp(1rem, 3vw, 3.5rem);
}

.node-line,
.section-code,
.status-line,
.operator-tag,
.signal-architecture,
.mode,
.telemetry,
.machine-readout,
.site-footer {
  font-family: var(--mono);
  text-transform: uppercase;
}

.node-line {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: 36rem;
  color: var(--mint);
  font-size: clamp(0.62rem, 1.2vw, 0.78rem);
  letter-spacing: 0.08em;
}

.node-path {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--mint), transparent);
}

.status-line {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: clamp(3rem, 9vh, 6.75rem);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.09em;
}

.status-beacon {
  display: grid;
  width: 0.75rem;
  height: 0.75rem;
  border: 1px solid var(--muted);
  place-items: center;
  transform: rotate(45deg);
}

.status-beacon span {
  width: 0.3rem;
  height: 0.3rem;
  background: var(--muted);
}

html[data-signal-state="live"] .status-line {
  color: var(--mint);
}

html[data-signal-state="live"] .status-beacon {
  border-color: var(--mint);
  box-shadow: 0 0 1rem rgba(113, 246, 90, 0.6);
}

html[data-signal-state="live"] .status-beacon span {
  background: var(--mint);
}

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

h1 {
  max-width: 11ch;
  margin-bottom: 1.25rem;
  font-size: clamp(4rem, 10vw, 9.5rem);
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.76;
}

h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 245, 239, 0.75);
}

.signal-architecture {
  margin-bottom: 2rem;
  color: var(--mint);
  font-size: clamp(0.7rem, 1.3vw, 0.9rem);
  letter-spacing: 0.06em;
}

.hero-intro {
  max-width: 41rem;
  margin-bottom: 2.2rem;
  color: #c9d1cc;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.15rem;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.77rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.button-primary {
  border-color: var(--mint);
  color: var(--void);
  background: var(--mint);
  box-shadow: 0.4rem 0.4rem 0 var(--violet-dark);
}

.button-primary:hover {
  background: var(--mint-hot);
}

.button-quiet {
  color: var(--paper);
  background: rgba(2, 4, 3, 0.7);
}

.button-quiet:hover {
  border-color: var(--paper);
}

.telemetry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 40rem;
  margin: clamp(3rem, 8vh, 6rem) 0 0;
  border-top: 1px solid var(--line-quiet);
}

.telemetry div {
  padding: 0.85rem 0.75rem 0 0;
  border-right: 1px solid var(--line-quiet);
}

.telemetry div:last-child {
  border-right: 0;
}

.telemetry dt {
  color: #59635d;
  font-size: 0.58rem;
  letter-spacing: 0.11em;
}

.telemetry dd {
  margin: 0.22rem 0 0;
  color: var(--paper);
  font-size: clamp(0.68rem, 1vw, 0.78rem);
}

.operator-stage {
  position: relative;
  align-self: stretch;
  min-height: 38rem;
  overflow: hidden;
  isolation: isolate;
}

.operator-stage::before {
  position: absolute;
  inset: 5% -15% 0 -10%;
  z-index: -3;
  content: "";
  background: url("/assets/signal-field.png") center / cover no-repeat;
  opacity: 0.28;
  filter: saturate(1.15) contrast(1.1);
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}

.operator-stage img {
  position: absolute;
  right: clamp(-9rem, -7vw, -4rem);
  bottom: clamp(-7rem, -8vw, -3.5rem);
  z-index: 3;
  width: min(50vw, 47rem);
  max-width: none;
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(-1.25rem 1rem 1rem rgba(0, 0, 0, 0.65));
}

.signal-rings {
  position: absolute;
  top: 50%;
  left: 52%;
  width: min(38vw, 34rem);
  aspect-ratio: 1;
  border: 1px solid rgba(113, 246, 90, 0.3);
  border-radius: 50%;
  box-shadow:
    0 0 0 2.5rem rgba(113, 246, 90, 0.025),
    0 0 0 5rem rgba(135, 61, 224, 0.04),
    0 0 0 7.5rem rgba(113, 246, 90, 0.02);
  transform: translate(-50%, -50%);
}

.signal-rings::before,
.signal-rings::after {
  position: absolute;
  content: "";
  background: var(--mint);
}

.signal-rings::before {
  top: 50%;
  right: -3rem;
  left: -3rem;
  height: 1px;
}

.signal-rings::after {
  top: -3rem;
  bottom: -3rem;
  left: 50%;
  width: 1px;
}

.scan-beam {
  position: absolute;
  top: 8%;
  right: 4%;
  bottom: 8%;
  z-index: 4;
  width: 2px;
  pointer-events: none;
  background: linear-gradient(transparent, var(--mint), transparent);
  box-shadow: 0 0 1.5rem rgba(113, 246, 90, 0.35);
  opacity: 0.55;
}

.operator-tag {
  position: absolute;
  right: 1rem;
  bottom: 1.2rem;
  z-index: 6;
  display: flex;
  gap: 1rem;
  color: var(--mint);
  font-size: 0.63rem;
  letter-spacing: 0.09em;
}

.operator-tag span:last-child {
  color: var(--muted);
}

.carrier {
  display: flex;
  align-items: center;
  width: min(calc(100% - (2 * var(--gutter))), calc(var(--content) - (2 * var(--gutter))));
  height: 1.25rem;
  margin: 0 auto;
  border-block: 1px solid var(--line);
  overflow: hidden;
}

.carrier span {
  width: 38%;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--mint) 0 2px, transparent 2px 11px);
  opacity: 0.35;
}

.content-section {
  padding-block: clamp(6rem, 12vw, 11rem);
}

.section-code {
  margin-bottom: 1.25rem;
  color: var(--mint);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(12rem, 0.42fr) minmax(0, 1fr);
  align-items: end;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.section-heading .section-code {
  margin-bottom: 0.75rem;
}

h2 {
  max-width: 14ch;
  margin-bottom: 0;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.transmission-lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line-quiet);
}

.transmission-lines article {
  position: relative;
  min-height: 24rem;
  padding: 2rem clamp(1.25rem, 3vw, 3rem) 2.5rem 0;
  border-right: 1px solid var(--line-quiet);
}

.transmission-lines article + article {
  padding-left: clamp(1.25rem, 3vw, 3rem);
}

.transmission-lines article:last-child {
  padding-right: 0;
  border-right: 0;
}

.frequency {
  margin-bottom: clamp(5rem, 10vw, 9rem);
  color: rgba(113, 246, 90, 0.22);
  font-family: var(--mono);
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 1;
}

.transmission-lines h3 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.55rem, 2.7vw, 2.5rem);
  letter-spacing: -0.025em;
}

.transmission-lines .mode {
  margin-bottom: 1.5rem;
  color: var(--mint);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.transmission-lines article > p:last-child {
  max-width: 25rem;
  color: var(--muted);
}

.machine-room {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 0.85fr);
  gap: clamp(4rem, 10vw, 10rem);
  align-items: end;
  border-top: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(135, 61, 224, 0.08), transparent 45%);
}

.machine-statement h2 {
  margin-bottom: 2rem;
}

.machine-statement > p:last-child {
  max-width: 43rem;
  margin-bottom: 0;
  color: #bac4be;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.machine-readout {
  border-top: 1px solid var(--mint);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.machine-readout div {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line-quiet);
}

.machine-readout span {
  color: #667169;
}

.machine-readout strong {
  color: var(--paper);
  font-weight: 500;
}

.final-signal {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: end;
  padding-block: clamp(5rem, 10vw, 9rem);
  border-block: 1px solid var(--line);
}

.final-copy {
  color: var(--muted);
}

.final-copy > p {
  max-width: 36rem;
}

.text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.text-links a {
  color: var(--mint);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 2rem 3rem;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
}

.site-footer > div,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-status {
  color: #59635d;
}

.legal-page {
  min-height: 100svh;
}

.legal-header {
  grid-template-columns: 1fr auto;
}

.legal-header-link {
  justify-self: end;
  color: var(--muted);
  text-decoration: none;
}

.legal-header-link:hover {
  color: var(--mint);
}

.legal-main {
  width: min(100%, 62rem);
  margin-inline: auto;
  padding: clamp(4rem, 9vw, 8rem) var(--gutter) 8rem;
}

.legal-main h1 {
  max-width: none;
  margin-bottom: 4rem;
  font-size: clamp(3.4rem, 9vw, 7.5rem);
  line-height: 0.9;
}

.legal-main h2 {
  max-width: none;
  margin: 3rem 0 1rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.legal-main p,
.legal-main li {
  max-width: 72ch;
  color: #bdc7c0;
}

.legal-main address {
  color: #d5ddd7;
  font-style: normal;
}

.legal-lead {
  margin-bottom: clamp(3rem, 7vw, 5rem);
  color: var(--paper) !important;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.legal-meta {
  margin-top: 4rem;
  color: #667169 !important;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-main a {
  color: var(--mint);
}

.legal-block {
  padding: 1.5rem;
  border-left: 2px solid var(--mint);
  background: rgba(113, 246, 90, 0.035);
}

.release-placeholder {
  color: #ff8bd8;
  font-family: var(--mono);
}

.error-page {
  display: grid;
  min-height: 100svh;
  padding: var(--gutter);
  place-items: center;
  text-align: center;
}

.error-page h1 {
  max-width: none;
}

.js .hero-copy,
.js .operator-stage {
  opacity: 0;
}

.js.is-ready .hero-copy {
  animation: power-on-copy 700ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.js.is-ready .operator-stage {
  animation: power-on-operator 900ms 120ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.js.is-ready .scan-beam {
  animation: scan 8s 1s ease-in-out infinite alternate;
}

@keyframes power-on-copy {
  from { opacity: 0; transform: translateY(1rem); clip-path: inset(0 0 100% 0); }
  to { opacity: 1; transform: translateY(0); clip-path: inset(0); }
}

@keyframes power-on-operator {
  from { opacity: 0; filter: saturate(0); transform: translateX(2rem); }
  to { opacity: 1; filter: saturate(1); transform: translateX(0); }
}

@keyframes scan {
  from { transform: translateX(-33vw); opacity: 0.12; }
  45%, 55% { opacity: 0.5; }
  to { transform: translateX(0); opacity: 0.12; }
}

@media (max-width: 62rem) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 3rem;
  }

  .hero-copy {
    max-width: none;
    padding: 1rem 0 0;
  }

  .status-line {
    margin-top: 3.5rem;
  }

  .operator-stage {
    min-height: min(90vw, 42rem);
  }

  .operator-stage img {
    right: -6rem;
    width: min(86vw, 45rem);
  }

  .signal-rings {
    width: min(64vw, 32rem);
  }

  .section-heading,
  .machine-room,
  .final-signal {
    grid-template-columns: 1fr;
  }

  .machine-room,
  .final-signal {
    gap: 3.5rem;
  }
}

@media (max-width: 43rem) {
  .site-header {
    min-height: 4.5rem;
  }

  .wordmark {
    font-size: 0.63rem;
  }

  .hero::before {
    inset-inline: 0.75rem;
  }

  h1 {
    font-size: clamp(3.7rem, 20vw, 6rem);
  }

  .node-line span:last-child {
    display: none;
  }

  .telemetry {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 1rem;
  }

  .telemetry div:nth-child(2) {
    border-right: 0;
  }

  .operator-stage {
    min-height: 28rem;
  }

  .operator-stage img {
    right: -5.5rem;
    bottom: -3.5rem;
    width: 34rem;
  }

  .operator-tag {
    right: 0;
  }

  .transmission-lines {
    grid-template-columns: 1fr;
  }

  .transmission-lines article,
  .transmission-lines article + article {
    min-height: auto;
    padding: 2rem 0 3rem;
    border-right: 0;
    border-bottom: 1px solid var(--line-quiet);
  }

  .transmission-lines article:last-child {
    border-bottom: 0;
  }

  .frequency {
    margin-bottom: 2.5rem;
  }

  .machine-readout div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .site-footer {
    flex-direction: column;
  }
}

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

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