:root {
  color-scheme: dark;
  --ink: #090909;
  --paper: #d8ddd7;
  --acid: #c7ff20;
  --fault: #ff3b30;
  --cold: #49c6ff;
  --look-x: 0px;
  --look-y: 0px;
  --jolt-x: 0px;
  --jolt-y: 0px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: 0;
}

.signal {
  position: relative;
  min-height: 91svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}

.rule {
  position: absolute;
  z-index: 5;
  background: var(--paper);
  opacity: 0.55;
}

.rule-top {
  top: 48px;
  right: 24px;
  left: 24px;
  height: 1px;
}

.rule-left {
  top: 24px;
  bottom: 24px;
  left: 48px;
  width: 1px;
}

.masthead {
  position: relative;
  z-index: 7;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px 0 64px;
  font-size: 11px;
  line-height: 1.4;
}

.hero {
  position: relative;
  min-height: calc(91svh - 48px);
}

.eye-stage {
  position: absolute;
  z-index: 1;
  top: 9%;
  right: -7%;
  width: 76%;
  max-width: 1180px;
  aspect-ratio: 1.44;
  overflow: hidden;
  transform: translate(var(--look-x), var(--look-y));
  transition: transform 300ms ease-out;
}

.eye {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

.eye-base {
  opacity: 0.82;
  filter: grayscale(1) contrast(1.75) invert(1);
  mix-blend-mode: screen;
  transform: translate(var(--jolt-x), var(--jolt-y)) scale(1.02);
  animation: breathe 7s steps(2, end) infinite;
}

.eye-ghost {
  opacity: 0.18;
  filter: grayscale(1) contrast(2.3);
  mix-blend-mode: screen;
  pointer-events: none;
}

.ghost-red {
  transform: translate(9px, 2px);
  filter: sepia(1) saturate(8) hue-rotate(325deg) contrast(2.4);
  animation: ghost-red 3.4s steps(2, end) infinite;
}

.ghost-cyan {
  transform: translate(-7px, -1px);
  filter: sepia(1) saturate(8) hue-rotate(145deg) contrast(2.4);
  animation: ghost-cyan 4.1s steps(2, end) infinite;
}

.scan {
  position: absolute;
  z-index: 4;
  top: -8%;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--acid);
  box-shadow: 0 0 18px var(--acid);
  animation: scan 4.8s linear infinite;
}

.reticle {
  position: absolute;
  z-index: 5;
  width: 56px;
  height: 56px;
  border: 1px solid var(--acid);
  border-radius: 50%;
  opacity: 0.78;
}

.reticle::before,
.reticle::after {
  position: absolute;
  content: "";
  background: var(--acid);
}

.reticle::before {
  top: 27px;
  left: -12px;
  width: 80px;
  height: 1px;
}

.reticle::after {
  top: -12px;
  left: 27px;
  width: 1px;
  height: 80px;
}

.reticle-a {
  top: 51%;
  left: 48%;
  animation: reticle 9s steps(5, end) infinite;
}

.reticle-b {
  right: 12%;
  bottom: 13%;
  width: 20px;
  height: 20px;
  border-color: var(--fault);
  opacity: 0.7;
}

.reticle-b::before,
.reticle-b::after {
  display: none;
}

.copy {
  position: absolute;
  z-index: 6;
  top: 26%;
  left: 8%;
  width: min(680px, 62vw);
}

.eyebrow,
.subline,
.warning,
.index {
  margin: 0;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--acid);
  font-size: 12px;
  font-weight: 700;
}

h1 {
  position: relative;
  margin: 0;
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 112px;
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
  transform: translate(var(--jolt-x), var(--jolt-y));
  text-shadow: 7px 0 0 var(--fault), -5px 0 0 var(--cold);
}

h1::after {
  position: absolute;
  top: 48%;
  left: 1%;
  overflow: hidden;
  width: 99%;
  height: 17%;
  content: attr(data-text);
  color: var(--acid);
  line-height: 0;
  transform: translateX(11px);
  animation: title-slip 2.7s steps(2, end) infinite;
}

.subline {
  margin-top: 24px;
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
}

.telemetry {
  position: absolute;
  z-index: 7;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
  min-height: 32px;
  padding: 8px 10px;
  border: 1px solid var(--acid);
  color: var(--acid);
  background: var(--ink);
  font-size: 10px;
  font-weight: 700;
}

.pulse {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 12px currentColor;
  animation: pulse 1.2s steps(2, end) infinite;
}

.telemetry.is-down {
  border-color: var(--fault);
  color: var(--fault);
}

.warning {
  position: absolute;
  z-index: 7;
  bottom: 24px;
  left: 64px;
  color: var(--fault);
  font-size: 10px;
  font-weight: 700;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.index {
  position: absolute;
  z-index: 7;
  top: 72px;
  right: 24px;
  color: var(--paper);
  font-size: 9px;
}

.transmission {
  position: relative;
  min-height: 46svh;
  overflow: hidden;
  padding: 34px 24px 24px 64px;
  border-top: 1px solid var(--paper);
  background: var(--acid);
  color: var(--ink);
}

.transmission > p:first-child {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.ticker {
  position: absolute;
  right: 0;
  bottom: 82px;
  left: 0;
  display: flex;
  width: max-content;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  animation: ticker 16s linear infinite;
}

.ticker span {
  display: block;
  padding: 11px 46px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.fineprint {
  position: absolute;
  right: 24px;
  bottom: 24px;
  margin: 0;
  font-size: 9px;
}

.fault h1,
.fault .eye-base {
  animation: fault 180ms steps(2, end) 2;
}

@keyframes breathe {
  0%, 100% { transform: translate(var(--jolt-x), var(--jolt-y)) scale(1.02); opacity: 0.82; }
  48% { transform: translate(var(--jolt-x), var(--jolt-y)) scale(1.035); opacity: 0.68; }
  52% { transform: translate(var(--jolt-x), var(--jolt-y)) scale(0.995); opacity: 0.92; }
}

@keyframes ghost-red {
  0%, 88%, 100% { transform: translate(9px, 2px); }
  90% { transform: translate(22px, -5px); }
  94% { transform: translate(-3px, 7px); }
}

@keyframes ghost-cyan {
  0%, 82%, 100% { transform: translate(-7px, -1px); }
  84% { transform: translate(-19px, 4px); }
  89% { transform: translate(5px, -8px); }
}

@keyframes scan {
  from { top: -8%; }
  to { top: 108%; }
}

@keyframes reticle {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  35% { transform: translate(18px, -12px) rotate(90deg); }
  70% { transform: translate(-11px, 15px) rotate(180deg); }
}

@keyframes title-slip {
  0%, 83%, 100% { transform: translateX(11px); opacity: 0.78; }
  85% { transform: translateX(-22px); opacity: 1; }
  91% { transform: translateX(34px); opacity: 0.45; }
}

@keyframes pulse {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0.18; }
}

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

@keyframes fault {
  0% { transform: translate(-8px, 4px) skewX(7deg); filter: invert(1) contrast(2); }
  50% { transform: translate(10px, -6px) skewX(-5deg); filter: invert(0) contrast(3); }
  100% { transform: translate(0, 0); }
}

@media (max-width: 760px) {
  .rule-left {
    left: 20px;
  }

  .masthead {
    padding-left: 34px;
  }

  .eye-stage {
    top: 17%;
    right: -34%;
    width: 136%;
  }

  .copy {
    top: 28%;
    left: 34px;
    width: calc(100% - 56px);
  }

  h1 {
    font-size: 64px;
    text-shadow: 4px 0 0 var(--fault), -3px 0 0 var(--cold);
  }

  .subline {
    max-width: 240px;
    font-size: 12px;
  }

  .warning {
    left: 34px;
  }

  .index {
    display: none;
  }

  .transmission {
    min-height: 42svh;
    padding-left: 34px;
  }

  .transmission > p:first-child {
    max-width: 310px;
    font-size: 30px;
  }
}

@media (max-width: 380px) {
  .masthead {
    font-size: 9px;
  }

  h1 {
    font-size: 52px;
  }

  .telemetry {
    right: 14px;
    min-width: 142px;
  }
}

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