:root {
  --ink: #f0eee7;
  --muted: rgba(240, 238, 231, 0.5);
  --line: rgba(240, 238, 231, 0.2);
  --bg: #090a08;
  --acid: #d7ff43;
  --orange: #ff5c35;
  --mx: 50vw;
  --my: 50vh;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Mono", monospace;
  cursor: none;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(215, 255, 67, 0.065), transparent 24rem),
    var(--bg);
}

button,
a {
  color: inherit;
  font: inherit;
  cursor: none;
}

button:focus-visible,
a:focus-visible {
  outline: 1px solid var(--acid);
  outline-offset: 5px;
}

#field,
.grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#field {
  z-index: 0;
  opacity: 0.9;
}

.grain {
  z-index: 9;
  opacity: 0.075;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(215, 255, 67, 0.75);
  border-radius: 50%;
  pointer-events: none;
  transform: translate3d(-100px, -100px, 0);
  transition: width 180ms ease, height 180ms ease, background 180ms ease, border-color 180ms ease;
  mix-blend-mode: difference;
}

.cursor span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  background: var(--acid);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor.is-active {
  width: 58px;
  height: 58px;
  background: var(--acid);
  border-color: var(--acid);
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-content: center;
  gap: 18px;
  background: var(--acid);
  color: var(--bg);
  transition: transform 900ms cubic-bezier(0.76, 0, 0.24, 1) 200ms;
}

.loader.is-done {
  transform: translateY(-105%);
}

.loader__count {
  min-width: 9ch;
  font-size: clamp(2rem, 6vw, 5rem);
  letter-spacing: -0.08em;
  text-align: center;
}

.loader__line {
  width: min(260px, 60vw);
  height: 1px;
  background: rgba(9, 10, 8, 0.25);
}

.loader__line span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--bg);
  transition: width 80ms linear;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 24px 30px;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.mark {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
}

.mark__dot,
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 14px rgba(215, 255, 67, 0.8);
}

.topbar__status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.pulse {
  width: 5px;
  height: 5px;
  animation: pulse 1.8s ease-in-out infinite;
}

.sound {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 12px;
  padding: 5px 0;
  border: 0;
  background: transparent;
}

.sound__bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 12px;
}

.sound__bars i {
  display: block;
  width: 1px;
  height: 3px;
  background: var(--ink);
}

.sound[aria-pressed="true"] .sound__bars i {
  animation: bars 900ms ease-in-out infinite alternate;
}

.sound__bars i:nth-child(2) { animation-delay: -300ms !important; }
.sound__bars i:nth-child(3) { animation-delay: -600ms !important; }
.sound__bars i:nth-child(4) { animation-delay: -150ms !important; }

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  opacity: 0.5;
}

.hero::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 25%, var(--line) 75%, transparent);
}

.hero::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: linear-gradient(transparent, var(--line) 25%, var(--line) 75%, transparent);
}

.hero__content {
  position: relative;
  z-index: 4;
  width: 100%;
  text-align: center;
  transform: translateY(-1vh);
}

.eyebrow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0 0 2.5vh;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.24em;
}

.eyebrow span {
  width: 30px;
  height: 1px;
  background: var(--acid);
}

h1 {
  display: flex;
  justify-content: center;
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: clamp(5rem, 18vw, 18rem);
  font-weight: 600;
  line-height: 0.72;
  letter-spacing: -0.105em;
  white-space: nowrap;
  transform: translateX(-0.045em);
}

h1 span {
  display: inline-block;
  min-width: 0.56em;
  transition: color 300ms ease, transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 300ms ease;
  will-change: transform;
}

h1 span:hover {
  color: var(--acid);
  filter: drop-shadow(0 0 24px rgba(215, 255, 67, 0.25));
}

.hero__line {
  margin: clamp(24px, 5vh, 48px) 0 0;
  color: var(--muted);
  font-family: "Manrope", sans-serif;
  font-size: clamp(0.72rem, 1vw, 0.9rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.23em;
}

.orb {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(44vw, 600px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.75;
}

.orb__ring,
.orb__core {
  position: absolute;
  border-radius: 50%;
}

.orb__ring {
  inset: 0;
  border: 1px solid rgba(215, 255, 67, 0.16);
}

.orb__ring::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 16px var(--acid);
}

.orb__ring--one { animation: spin 18s linear infinite; }
.orb__ring--two { inset: 10%; animation: spin 12s linear infinite reverse; }
.orb__ring--three { inset: 22%; animation: spin 8s linear infinite; }
.orb__core {
  inset: 40%;
  background: rgba(215, 255, 67, 0.07);
  box-shadow: 0 0 100px 40px rgba(215, 255, 67, 0.035);
}

.hero__meta {
  position: absolute;
  top: 50%;
  display: flex;
  gap: 20px;
  color: rgba(240, 238, 231, 0.38);
  font-size: 8px;
  letter-spacing: 0.14em;
  writing-mode: vertical-rl;
}

.hero__meta--left {
  left: 30px;
  transform: translateY(-50%) rotate(180deg);
}

.hero__meta--right {
  right: 30px;
  transform: translateY(-50%);
}

.telemetry {
  position: absolute;
  z-index: 5;
  width: 154px;
  padding: 12px;
  border: 1px solid rgba(240, 238, 231, 0.14);
  background: rgba(9, 10, 8, 0.42);
  backdrop-filter: blur(8px);
  color: rgba(240, 238, 231, 0.45);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.telemetry::before,
.telemetry::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-color: var(--acid);
}

.telemetry::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.telemetry::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.telemetry--signal {
  top: 20%;
  left: 10%;
}

.telemetry--packets {
  right: 10%;
  bottom: 19%;
}

.telemetry__head,
.telemetry__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.telemetry__head strong,
.telemetry--packets > strong {
  color: var(--ink);
  font-weight: 400;
}

.telemetry__foot {
  margin-top: 8px;
  color: rgba(240, 238, 231, 0.28);
}

.signal-bars {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 24px;
  margin-top: 8px;
}

.signal-bars i {
  flex: 1;
  height: 35%;
  background: var(--acid);
  opacity: 0.18;
  transition: height 600ms ease, opacity 600ms ease;
}

.signal-bars i.is-on {
  height: var(--level, 80%);
  opacity: 0.85;
}

.rec-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
  animation: pulse 1.2s ease-in-out infinite;
}

.telemetry--packets > strong {
  display: block;
  margin: 8px 0 5px;
  font-size: 19px;
  letter-spacing: -0.08em;
}

.packet-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 13px;
  overflow: hidden;
}

.packet-wave i {
  flex: 1;
  height: 65%;
  background: rgba(215, 255, 67, 0.65);
  animation: data-wave 1.1s ease-in-out infinite alternate;
}

.packet-wave i:nth-child(4n + 1) { height: 32%; }
.packet-wave i:nth-child(4n + 2) { height: 88%; }
.packet-wave i:nth-child(4n + 3) { height: 52%; }
.packet-wave i:nth-child(3n) { animation-delay: -700ms; }
.packet-wave i:nth-child(2n) { animation-delay: -350ms; }

.coordinates {
  position: absolute;
  z-index: 5;
  top: 23%;
  right: 28%;
  display: grid;
  gap: 5px;
  color: rgba(240, 238, 231, 0.3);
  font-size: 7px;
  letter-spacing: 0.16em;
}

.coordinates strong {
  color: rgba(240, 238, 231, 0.64);
  font-size: 9px;
  font-weight: 300;
}

.coordinates i {
  font-style: normal;
}

.range {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(78vw, 970px);
  color: rgba(240, 238, 231, 0.2);
  font-size: 6px;
  transform: translate(-50%, 108px);
}

.range i {
  flex: 1;
  height: 4px;
  border-left: 1px solid rgba(240, 238, 231, 0.24);
}

.range strong {
  color: rgba(215, 255, 67, 0.48);
  font-size: 6px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.enter {
  position: absolute;
  bottom: 28px;
  left: 30px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 10, 8, 0.5);
  backdrop-filter: blur(10px);
  font-size: 9px;
  letter-spacing: 0.15em;
  transition: color 250ms ease, background 250ms ease, border-color 250ms ease;
}

.enter:hover {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--bg);
}

.enter__icon {
  font-size: 16px;
  line-height: 0;
}

.readout {
  position: absolute;
  right: 30px;
  bottom: 29px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.readout strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 300;
  letter-spacing: -0.08em;
}

.hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  margin: 0;
  color: rgba(240, 238, 231, 0.28);
  font-size: 7px;
  letter-spacing: 0.22em;
  transform: translateX(-50%);
}

.ticker {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 76px;
  left: 0;
  overflow: hidden;
  border-top: 1px solid rgba(240, 238, 231, 0.06);
  border-bottom: 1px solid rgba(240, 238, 231, 0.06);
  padding: 5px 0;
  color: rgba(240, 238, 231, 0.14);
  font-size: 7px;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

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

.message {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px 30px;
  background: var(--acid);
  color: var(--bg);
  clip-path: circle(0 at var(--mx) var(--my));
  transition: clip-path 900ms cubic-bezier(0.76, 0, 0.24, 1);
}

.message.is-open {
  clip-path: circle(150vmax at var(--mx) var(--my));
}

.message__close {
  position: absolute;
  top: 22px;
  right: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bg);
  font-family: "Manrope", sans-serif;
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
}

.message__index,
.message__footer {
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.15em;
}

.message__body {
  align-self: center;
  width: 100%;
}

.message__small {
  margin: 0 0 4vh 5px;
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.17em;
}

.message h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(4rem, 14vw, 13rem);
  font-weight: 600;
  line-height: 0.76;
  letter-spacing: -0.095em;
}

.message h2 em {
  font-family: Georgia, serif;
  font-weight: 400;
}

.message__footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(9, 10, 8, 0.25);
  padding-top: 17px;
}

noscript {
  position: fixed;
  z-index: 300;
  inset: auto 0 0;
  padding: 12px;
  background: var(--orange);
  color: var(--bg);
  text-align: center;
  font-size: 12px;
}

@keyframes pulse {
  50% { opacity: 0.3; transform: scale(0.75); }
}

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

@keyframes bars {
  from { height: 2px; }
  to { height: 12px; }
}

@keyframes data-wave {
  from { transform: scaleY(0.3); }
  to { transform: scaleY(1); }
}

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

@media (max-width: 700px) {
  .topbar {
    grid-template-columns: 1fr 1fr;
    padding: 20px;
  }

  .topbar__status,
  .hint {
    display: none;
  }

  .orb {
    width: 92vw;
  }

  .telemetry--signal {
    top: 14%;
    left: 20px;
    width: 138px;
  }

  .telemetry--packets {
    display: none;
  }

  .coordinates {
    top: 17%;
    right: 20px;
  }

  .range {
    width: 86vw;
    transform: translate(-50%, 84px);
  }

  h1 {
    font-size: 23vw;
    line-height: 0.8;
  }

  .hero__content {
    transform: rotate(-4deg);
  }

  .hero__line {
    margin-top: 35px;
    font-size: 10px;
    line-height: 1.6;
  }

  .hero__meta {
    top: 35%;
  }

  .hero__meta--left { left: 12px; }
  .hero__meta--right { right: 12px; }

  .enter {
    bottom: 20px;
    left: 20px;
  }

  .readout {
    right: 20px;
    bottom: 25px;
  }

  .readout > span {
    display: none;
  }

  .message {
    padding: 22px 20px;
  }

  .message h2 {
    font-size: 19vw;
    line-height: 0.82;
  }

  .ticker {
    bottom: 73px;
  }
}

@media (hover: none), (pointer: coarse) {
  html,
  button,
  a { cursor: auto; }
  .cursor { display: none; }
}

@media (max-width: 440px) {
  .readout { display: none; }
}

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