:root {
  color-scheme: dark;
  --black: #030405;
  --panel: #080b0c;
  --line: rgba(232, 232, 218, 0.18);
  --line-strong: rgba(232, 232, 218, 0.48);
  --green: #a8e63b;
  --green-hot: #c8ff56;
  --white: #f0efe6;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  font-family: "SF Mono", "IBM Plex Mono", "Roboto Mono", ui-monospace, monospace;
}

.site-shell {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 100svh;
  place-items: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 46%, rgba(168, 230, 59, 0.13), transparent 28rem),
    radial-gradient(circle at 78% 18%, rgba(240, 239, 230, 0.08), transparent 18rem),
    linear-gradient(180deg, #050607 0%, #020303 58%, #000 100%);
}

.site-shell::before,
.site-shell::after {
  position: absolute;
  z-index: -1;
  width: min(74vw, 920px);
  height: min(74vw, 920px);
  content: "";
  border: 1px solid rgba(240, 239, 230, 0.13);
  border-radius: 50%;
  filter: drop-shadow(0 0 42px rgba(168, 230, 59, 0.08));
}

.site-shell::before {
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(-19deg);
}

.site-shell::after {
  width: min(48vw, 610px);
  height: min(48vw, 610px);
  border-top-color: transparent;
  border-left-color: transparent;
  transform: rotate(22deg);
}

.noise,
.scanline,
.grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.noise {
  z-index: 4;
  opacity: 0.18;
  mix-blend-mode: screen;
  background-image:
    repeating-radial-gradient(circle at 17% 31%, rgba(255, 255, 255, 0.21) 0 1px, transparent 1px 3px),
    repeating-radial-gradient(circle at 71% 61%, rgba(168, 230, 59, 0.13) 0 1px, transparent 1px 4px);
  background-size: 127px 131px, 173px 181px;
}

.scanline {
  z-index: 5;
  opacity: 0.12;
  background: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 7px,
    rgba(240, 239, 230, 0.28) 8px
  );
}

.grid {
  z-index: -2;
  opacity: 0.3;
  background:
    linear-gradient(rgba(168, 230, 59, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 239, 230, 0.08) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 68%);
}

.orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid transparent;
  pointer-events: none;
}

.orbit-one {
  width: min(68vw, 880px);
  height: min(68vw, 880px);
  border-top-color: var(--line);
  transform: rotate(-28deg);
}

.orbit-two {
  width: min(34vw, 440px);
  height: min(34vw, 440px);
  border-right-color: rgba(168, 230, 59, 0.32);
  border-bottom-color: rgba(240, 239, 230, 0.14);
  transform: rotate(42deg);
}

.identity {
  position: relative;
  z-index: 3;
  display: grid;
  width: min(70vw, 720px);
  place-items: center;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.identity::before,
.identity::after {
  position: absolute;
  width: 7.5rem;
  height: 7.5rem;
  content: "";
  border-color: var(--line-strong);
  border-style: solid;
  filter: drop-shadow(0 0 18px rgba(168, 230, 59, 0.12));
}

.identity::before {
  top: 0;
  left: 0;
  border-width: 1px 0 0 1px;
}

.identity::after {
  right: 0;
  bottom: 0;
  border-width: 0 1px 1px 0;
}

.logo-wrap {
  position: relative;
  display: grid;
  width: min(100%, 580px);
  aspect-ratio: 1;
  place-items: center;
}

.logo-wrap::before {
  position: absolute;
  inset: 9%;
  content: "";
  border: 1px solid rgba(168, 230, 59, 0.24);
  border-radius: 50%;
  box-shadow:
    0 0 54px rgba(168, 230, 59, 0.16),
    inset 0 0 42px rgba(168, 230, 59, 0.08);
}

.logo-wrap::after {
  position: absolute;
  inset: -7%;
  content: "";
  background:
    linear-gradient(90deg, transparent, rgba(168, 230, 59, 0.5), transparent) 50% 0 / 70% 1px no-repeat,
    linear-gradient(180deg, transparent, rgba(240, 239, 230, 0.28), transparent) 100% 50% / 1px 70% no-repeat;
  opacity: 0.6;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.94;
  filter:
    drop-shadow(0 0 18px rgba(168, 230, 59, 0.15))
    drop-shadow(0 0 2px rgba(240, 239, 230, 0.25));
}

.signal-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.55rem;
  width: min(42vw, 320px);
  margin-top: clamp(0.4rem, 1.5vw, 1rem);
}

.signal-row span {
  height: 2px;
  background: rgba(240, 239, 230, 0.26);
  box-shadow: 0 0 12px rgba(168, 230, 59, 0.22);
}

.signal-row span:nth-child(2),
.signal-row span:nth-child(4) {
  background: var(--green);
}

@media (prefers-reduced-motion: no-preference) {
  .grid {
    animation: drift 14s linear infinite;
  }

  .orbit-one {
    animation: slow-turn 28s linear infinite;
  }

  .orbit-two {
    animation: slow-turn 18s linear infinite reverse;
  }

  .logo-wrap::after {
    animation: pulse 3.8s ease-in-out infinite;
  }

  .signal-row span {
    animation: blink 2.6s ease-in-out infinite;
  }

  .signal-row span:nth-child(2) {
    animation-delay: 0.2s;
  }

  .signal-row span:nth-child(3) {
    animation-delay: 0.6s;
  }

  .signal-row span:nth-child(4) {
    animation-delay: 0.9s;
  }

  .signal-row span:nth-child(5) {
    animation-delay: 1.2s;
  }
}

@keyframes drift {
  to {
    background-position: 68px 68px;
  }
}

@keyframes slow-turn {
  to {
    rotate: 1turn;
  }
}

@keyframes pulse {
  50% {
    opacity: 0.95;
    filter: drop-shadow(0 0 18px rgba(168, 230, 59, 0.35));
  }
}

@keyframes blink {
  50% {
    opacity: 0.35;
  }
}

@media (max-width: 700px) {
  body {
    overflow: auto;
  }

  .identity {
    width: min(92vw, 520px);
    padding: 1rem;
  }

  .identity::before,
  .identity::after {
    width: 4rem;
    height: 4rem;
  }

  .signal-row {
    width: min(62vw, 260px);
  }
}
