@font-face {
  font-family: "ABC Arizona Mix";
  src: url("assets/ABC-Arizona-Mix-Variable-Unlicensed-Trial.otf") format("opentype");
  font-display: block;
}

@font-face {
  font-family: "DM Mono Local";
  src: url("assets/DMMono-Medium.ttf") format("truetype");
  font-display: block;
  font-weight: 500;
}

:root {
  --background: #18171c;
  --blue: #2d00fe;
  --blue-alt: #0100ff;
  --text: #e5e5e7;
  --field-width: clamp(980px, 68.75vw, 1320px);
  --mark-width: clamp(740px, 52vw, 1000px);
  --mono: "DM Mono Local", "DM Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow: hidden;
  background: var(--background);
  color: var(--text);
  font-family: "ABC Arizona Mix", Georgia, serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.brand-lockup {
  position: fixed;
  top: clamp(26px, 4.05vh, 44px);
  left: clamp(24px, 2.35vw, 45px);
  z-index: 8;
  color: var(--text);
  font-family: "ABC Arizona Mix", Georgia, serif;
  font-size: clamp(29px, 1.82vw, 36px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  animation: quietReveal 900ms cubic-bezier(0.19, 1, 0.22, 1) 160ms forwards;
}

.site-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  isolation: isolate;
}

.hero {
  position: fixed;
  inset: 0;
  z-index: 1;
}

.mark-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--mark-width);
  aspect-ratio: 694 / 878;
  translate: -50% -50%;
  animation: markDrift 14s ease-in-out infinite;
}

.brand-mark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  filter: saturate(1.08);
}

.brand-mark-base {
  z-index: 1;
  animation: markPulse 7.8s ease-in-out infinite;
}

.brand-mark-ghost {
  z-index: 3;
  opacity: 0;
  mix-blend-mode: screen;
  filter: saturate(1.55) brightness(1.18);
  animation: blueMemory 6.6s steps(1, end) infinite;
}

.memory-nodes {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--field-width);
  height: calc(var(--field-width) * 878 / 694);
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  transform: translate(-50%, -50%);
}

.memory-nodes::before,
.memory-nodes::after {
  content: "";
  position: absolute;
  left: 0.4%;
  width: 99.2%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(45, 0, 254, 0.18) 18%,
    rgba(1, 0, 255, 0.36) 50%,
    rgba(45, 0, 254, 0.18) 82%,
    transparent
  );
  opacity: 0.22;
  transform: scaleX(0.98);
  animation: memoryLine 5.4s ease-in-out infinite;
}

.memory-nodes::before {
  top: 33.2%;
}

.memory-nodes::after {
  top: 66.7%;
  animation-delay: -2.7s;
}

.memory-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 1px;
  background: var(--blue-alt);
  box-shadow:
    0 0 7px rgba(1, 0, 255, 0.54),
    0 0 18px rgba(45, 0, 254, 0.24);
  opacity: 0.2;
  transform: translate3d(-50%, -50%, 0);
  will-change: opacity, transform, filter;
  animation: nodeSignal var(--duration) linear var(--delay) infinite;
}

.coming-soon {
  position: absolute;
  z-index: 4;
  top: 47.8%;
  left: 50%;
  width: max-content;
  max-width: 86vw;
  margin: 0;
  color: var(--text);
  font-family: "ABC Arizona Mix", Georgia, serif;
  font-size: clamp(42px, 3.45vw, 66px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0;
  white-space: nowrap;
  text-align: center;
  text-shadow:
    0 0 1px rgba(229, 229, 231, 0.86),
    0 18px 44px rgba(1, 0, 255, 0.18);
  opacity: 0;
  transform: translate(-50%, calc(-50% + 10px));
  animation: titleReveal 980ms cubic-bezier(0.19, 1, 0.22, 1) 360ms forwards;
}

.status-readout,
.site-footer {
  position: fixed;
  z-index: 8;
  color: var(--text);
  font-family: var(--mono);
  font-size: clamp(12px, 0.83vw, 16px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 1px rgba(229, 229, 231, 0.52);
  opacity: 0;
  animation: quietReveal 680ms ease forwards 760ms;
}

.status-readout {
  left: clamp(24px, 2.2vw, 42px);
  bottom: clamp(36px, 3.5vh, 42px);
}

.status-readout p {
  margin: 0;
}

.site-footer {
  left: 50%;
  bottom: clamp(34px, 3.8vh, 44px);
  white-space: nowrap;
  transform: translateX(-50%);
  animation: footerReveal 680ms ease forwards 760ms;
}

.signal-button {
  position: fixed;
  right: clamp(24px, 1.65vw, 32px);
  bottom: clamp(30px, 2.8vh, 32px);
  z-index: 9;
  width: clamp(56px, 3.33vw, 64px);
  height: clamp(48px, 2.81vw, 54px);
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: var(--blue-alt);
  cursor: default;
  opacity: 0;
  transform: translateY(7px);
  animation:
    quietReveal 680ms ease forwards 860ms,
    buttonPulse 4.8s ease-in-out 1.3s infinite;
}

.signal-button span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 27px;
  height: 2px;
  background: var(--text);
  transform: translate(-50%, -50%);
}

.signal-button span::before,
.signal-button span::after {
  content: "";
  position: absolute;
  right: -1px;
  width: 13px;
  height: 2px;
  background: var(--text);
  transform-origin: right center;
}

.signal-button span::before {
  transform: rotate(42deg);
}

.signal-button span::after {
  transform: rotate(-42deg);
}

@keyframes quietReveal {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes footerReveal {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes titleReveal {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translate(-50%, calc(-50% + 12px));
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, -50%);
  }
}

@keyframes markDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  31% {
    transform: translate3d(-4px, -7px, 0) scale(1.003);
  }

  66% {
    transform: translate3d(5px, 3px, 0) scale(0.998);
  }
}

@keyframes markPulse {
  0%,
  100% {
    filter: saturate(1.06) brightness(1);
  }

  33% {
    filter: saturate(1.2) brightness(1.08);
  }

  38% {
    filter: saturate(1.02) brightness(0.99);
  }

  72% {
    filter: saturate(1.17) brightness(1.05);
  }
}

@keyframes memoryLine {
  0%,
  100% {
    opacity: 0.12;
    transform: scaleX(0.84) translate3d(0, 0, 0);
  }

  24% {
    opacity: 0.34;
    transform: scaleX(1) translate3d(2px, 0, 0);
  }

  42% {
    opacity: 0.08;
    transform: scaleX(0.92) translate3d(-2px, 0, 0);
  }

  68% {
    opacity: 0.25;
    transform: scaleX(1.02) translate3d(0, 0, 0);
  }
}

@keyframes nodeSignal {
  0%,
  100% {
    opacity: calc(var(--alpha) * 0.36);
    filter: brightness(0.9);
    transform: translate3d(-50%, -50%, 0) scale(0.82);
  }

  16% {
    opacity: var(--alpha);
    filter: brightness(1.16);
    transform: translate3d(calc(-50% + var(--shift)), calc(-50% - 2px), 0) scale(1);
  }

  33% {
    opacity: calc(var(--alpha) * 0.5);
    filter: brightness(0.92);
    transform: translate3d(calc(-50% + var(--travel)), calc(-50% + 1px), 0) scale(0.9);
  }

  51% {
    opacity: calc(var(--alpha) * 0.88);
    filter: brightness(1.08);
    transform: translate3d(calc(-50% - var(--shift)), calc(-50% + 2px), 0) scale(1);
  }

  74% {
    opacity: calc(var(--alpha) * 0.28);
    filter: brightness(0.82);
    transform: translate3d(calc(-50% - var(--travel)), -50%, 0) scale(0.76);
  }

  88% {
    opacity: calc(var(--alpha) * 0.72);
    filter: brightness(1.04);
    transform: translate3d(-50%, -50%, 0) scale(0.96);
  }
}

@keyframes blueMemory {
  0%,
  61%,
  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  62% {
    opacity: 0.12;
    transform: translate3d(-3px, 0, 0);
  }

  63% {
    opacity: 0.06;
    transform: translate3d(3px, -1px, 0);
  }

  64% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes buttonPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(1, 0, 255, 0);
  }

  50% {
    box-shadow: 0 0 28px rgba(1, 0, 255, 0.34);
  }
}

@media (max-width: 900px) {
  :root {
    --field-width: min(136vw, 900px);
    --mark-width: min(104vw, 690px);
  }

  .brand-lockup {
    top: 24px;
    left: 22px;
    font-size: clamp(25px, 7vw, 34px);
  }

  .coming-soon {
    top: 47.8%;
    font-size: clamp(40px, 11vw, 70px);
  }

  .status-readout {
    left: 22px;
    bottom: 82px;
    font-size: 11px;
  }

  .site-footer {
    bottom: 32px;
    font-size: 11px;
  }

  .signal-button {
    right: 18px;
    bottom: 22px;
    width: 50px;
    height: 44px;
  }
}

@media (max-width: 520px) {
  :root {
    --field-width: 110vw;
    --mark-width: 82vw;
  }

  .brand-lockup {
    max-width: calc(100vw - 40px);
    font-size: clamp(13px, 3.5vw, 17px);
    white-space: normal;
  }

  .coming-soon {
    font-size: clamp(21px, 7.2vw, 32px);
  }

  .status-readout {
    bottom: 86px;
    max-width: 58vw;
  }

  .site-footer {
    left: 22px;
    transform: none;
  }
}

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