:root {
  --background: #050505;
  --foreground: #f1eee6;
  --ink: #050505;
  --paper: #f1eee6;
  --panel: rgba(9, 11, 10, 0.78);
  --line: rgba(241, 238, 230, 0.18);
  --green: #74ff3b;
  --orange: #ff6b2b;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

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

button {
  font: inherit;
}

.site {
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, #050505 92vh),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 76px
    ),
    var(--background);
}

.hero {
  --mx: 0px;
  --my: 0px;
  position: relative;
  min-height: 92svh;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(24px, 1fr) minmax(0, 1180px) minmax(24px, 1fr);
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-image {
  position: absolute;
  inset: -4%;
  z-index: -4;
  width: 108%;
  height: 108%;
  object-fit: cover;
  transform: translate(calc(var(--mx) * -0.32), calc(var(--my) * -0.24))
    scale(1.04);
  filter: saturate(1.08) contrast(1.06);
  transition: transform 180ms ease-out;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.72) 35%, rgba(5, 5, 5, 0.08) 72%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.34) 0%, rgba(5, 5, 5, 0.12) 54%, #050505 100%);
}

.scanlines {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.28;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.12) 0,
      rgba(255, 255, 255, 0.12) 1px,
      transparent 1px,
      transparent 5px
    ),
    linear-gradient(90deg, transparent 0%, rgba(116, 255, 59, 0.14) 49%, transparent 52%);
  mix-blend-mode: screen;
}

.topbar {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 24px;
  position: relative;
  z-index: 3;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 900;
  font-size: 18px;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--green);
  background: rgba(116, 255, 59, 0.14);
  color: var(--green);
}

.nav-links {
  gap: 8px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.34);
  color: rgba(241, 238, 230, 0.82);
  font-size: 13px;
  text-transform: uppercase;
}

.nav-links a:hover {
  border-color: rgba(116, 255, 59, 0.72);
  color: var(--green);
}

.hero-copy {
  grid-column: 2;
  align-self: center;
  width: min(680px, 100%);
  padding: 34px 0 84px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  display: grid;
  gap: 0;
  margin-bottom: 24px;
  color: var(--paper);
  font-size: 104px;
  line-height: 0.9;
  font-weight: 1000;
  text-transform: uppercase;
  text-shadow:
    0 0 26px rgba(116, 255, 59, 0.16),
    0 2px 0 rgba(0, 0, 0, 0.52);
}

.lede {
  max-width: 600px;
  margin-bottom: 28px;
  color: rgba(241, 238, 230, 0.86);
  font-size: 19px;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 18px;
  color: var(--paper);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.primary {
  background: var(--green);
  color: var(--ink);
  box-shadow: 0 0 30px rgba(116, 255, 59, 0.2);
}

.secondary {
  border-color: rgba(241, 238, 230, 0.28);
  background: rgba(5, 5, 5, 0.58);
}

.switch {
  border-color: rgba(255, 107, 43, 0.72);
  background: rgba(255, 107, 43, 0.12);
}

.is-armed .switch {
  background: var(--orange);
  color: var(--ink);
}

.cta-glyph {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid currentColor;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 13px;
  line-height: 1;
}

.hud {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 96px;
  width: 310px;
  padding: 16px;
  border: 1px solid rgba(241, 238, 230, 0.18);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  z-index: 2;
}

.hud-top,
.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(241, 238, 230, 0.7);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.hud-top strong,
.panel-top strong {
  color: var(--orange);
}

.is-armed .hud-top strong,
.is-armed .panel-top strong {
  color: var(--green);
}

.signal-core {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: 168px;
  margin: 20px auto;
  border: 1px solid rgba(116, 255, 59, 0.54);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(116, 255, 59, 0.23) 0 28%, transparent 29%),
    repeating-conic-gradient(from 0deg, rgba(116, 255, 59, 0.32) 0deg 7deg, transparent 7deg 18deg);
  animation: rotateCore 9s linear infinite;
}

.signal-core span {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #060806;
  color: var(--green);
  font-family: "Courier New", ui-monospace, monospace;
  font-weight: 900;
  animation: counterCore 9s linear infinite;
}

.hud ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hud li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  color: rgba(241, 238, 230, 0.82);
  font-size: 13px;
}

.hud li span {
  width: 9px;
  height: 9px;
  background: var(--orange);
}

.is-armed .hud li span {
  background: var(--green);
  box-shadow: 0 0 14px rgba(116, 255, 59, 0.65);
}

.ticker {
  grid-column: 1 / -1;
  align-self: end;
  height: 46px;
  overflow: hidden;
  border-top: 1px solid rgba(241, 238, 230, 0.16);
  border-bottom: 1px solid rgba(241, 238, 230, 0.12);
  background: rgba(5, 5, 5, 0.74);
  color: var(--paper);
  position: relative;
  z-index: 4;
}

.ticker div {
  display: flex;
  width: max-content;
  animation: ticker 22s linear infinite;
}

.ticker span {
  display: inline-grid;
  place-items: center;
  height: 46px;
  min-width: 160px;
  color: rgba(241, 238, 230, 0.82);
  font-family: "Courier New", ui-monospace, monospace;
  font-weight: 900;
}

.briefing,
.signal,
.footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(24px, 1fr) minmax(0, 1180px) minmax(24px, 1fr);
}

.briefing {
  padding: 86px 0;
  background:
    linear-gradient(180deg, #050505 0%, #10100e 100%),
    repeating-linear-gradient(
      45deg,
      rgba(255, 209, 102, 0.06) 0,
      rgba(255, 209, 102, 0.06) 1px,
      transparent 1px,
      transparent 18px
    );
}

.section-copy,
.notes-grid,
.footer > * {
  grid-column: 2;
}

.section-copy {
  max-width: 780px;
  margin-bottom: 34px;
}

h2 {
  margin-bottom: 18px;
  color: var(--paper);
  font-size: 48px;
  line-height: 1.02;
  font-weight: 950;
  text-transform: uppercase;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.note {
  min-height: 232px;
  padding: 20px;
  border: 1px solid rgba(241, 238, 230, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(241, 238, 230, 0.08), rgba(241, 238, 230, 0.02)),
    rgba(5, 5, 5, 0.48);
}

.note > span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 30px;
  margin-bottom: 36px;
  background: var(--orange);
  color: var(--ink);
  font-family: "Courier New", ui-monospace, monospace;
  font-weight: 900;
}

.note h3 {
  margin-bottom: 12px;
  color: var(--paper);
  font-size: 23px;
  line-height: 1.05;
  text-transform: uppercase;
}

.note p,
.signal-copy p,
.footer p {
  color: rgba(241, 238, 230, 0.72);
  line-height: 1.55;
}

.signal {
  grid-template-columns:
    minmax(24px, 1fr)
    minmax(0, 560px)
    minmax(0, 540px)
    minmax(24px, 1fr);
  gap: 72px;
  align-items: center;
  padding: 92px 0;
  background:
    linear-gradient(90deg, rgba(116, 255, 59, 0.08), transparent 42%),
    #080908;
}

.feed-panel {
  grid-column: 2;
  border: 1px solid rgba(241, 238, 230, 0.18);
  border-radius: 8px;
  background: #0d0e0c;
  padding: 14px;
}

.viewer {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  margin-top: 14px;
  border-radius: 8px;
  border: 1px solid rgba(241, 238, 230, 0.14);
  background: #050505;
}

.viewer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.reticle {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(116, 255, 59, 0.72) 50%, transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), rgba(116, 255, 59, 0.72) 50%, transparent calc(50% + 1px));
  opacity: 0.48;
}

.reticle::after {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(116, 255, 59, 0.42);
  border-radius: 50%;
}

.signal-copy {
  grid-column: 3;
}

.meters {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.meters div {
  display: grid;
  gap: 8px;
}

.meters span {
  color: rgba(241, 238, 230, 0.78);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

meter {
  width: 100%;
  height: 18px;
  border: 1px solid rgba(241, 238, 230, 0.22);
  border-radius: 0;
  background: #050505;
}

meter::-webkit-meter-bar {
  border: 0;
  border-radius: 0;
  background: #050505;
}

meter::-webkit-meter-optimum-value {
  background: linear-gradient(90deg, var(--orange), var(--green));
}

meter::-moz-meter-bar {
  background: linear-gradient(90deg, var(--orange), var(--green));
}

.footer {
  min-height: 132px;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid rgba(241, 238, 230, 0.12);
  background: #050505;
}

.footer > * {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer span {
  color: var(--green);
  font-size: 26px;
  font-weight: 1000;
}

.footer p {
  max-width: 680px;
  margin-bottom: 0;
  text-align: right;
}

.is-armed .hero-image {
  filter: saturate(1.18) contrast(1.12) hue-rotate(4deg);
}

.is-armed .scanlines {
  opacity: 0.42;
}

.is-armed .ticker span:nth-child(2n) {
  color: var(--green);
}

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

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

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1040px) {
  .hero {
    min-height: 92svh;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.74) 0%, rgba(5, 5, 5, 0.36) 48%, #050505 100%),
      linear-gradient(90deg, rgba(5, 5, 5, 0.76), transparent);
  }

  h1 {
    font-size: 76px;
  }

  .hud {
    position: relative;
    right: auto;
    bottom: auto;
    grid-column: 2;
    width: min(100%, 520px);
    margin: -64px 0 72px auto;
  }

  .briefing,
  .signal {
    padding: 70px 0;
  }

  .notes-grid {
    grid-template-columns: 1fr;
  }

  .signal {
    grid-template-columns: minmax(24px, 1fr) minmax(0, 1180px) minmax(24px, 1fr);
    gap: 28px;
  }

  .feed-panel,
  .signal-copy {
    grid-column: 2;
  }
}

@media (max-width: 680px) {
  .hero {
    grid-template-columns: minmax(18px, 1fr) minmax(0, 100%) minmax(18px, 1fr);
  }

  .topbar {
    min-height: 72px;
  }

  .nav-links {
    display: none;
  }

  .brand {
    font-size: 16px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero-copy {
    padding: 18px 0 94px;
  }

  h1 {
    font-size: 48px;
    line-height: 0.94;
  }

  h2 {
    font-size: 34px;
    line-height: 1.08;
  }

  .lede {
    font-size: 16px;
  }

  .cta {
    width: 100%;
    min-height: 48px;
  }

  .hud {
    margin: -70px 0 62px;
  }

  .signal-core {
    width: 134px;
  }

  .signal-core span {
    width: 76px;
    height: 76px;
    font-size: 13px;
  }

  .briefing,
  .signal {
    grid-template-columns: minmax(18px, 1fr) minmax(0, 100%) minmax(18px, 1fr);
    padding: 58px 0;
  }

  .note {
    min-height: 204px;
  }

  .footer > * {
    display: grid;
    gap: 12px;
  }

  .footer p {
    text-align: left;
  }
}

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