:root {
  --font-geist-sans: Arial;
  --font-geist-mono: "Courier New";
  --black: #080808;
  --white: #f4f1ea;
  --muted: #9b9a96;
  --line: rgba(244, 241, 234, 0.12);
  --violet: #8068ff;
  --cyan: #80e7ff;
  --coral: #ff6847;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-geist-sans), Arial, sans-serif;
}

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

.page {
  --pointer-x: 0px;
  --pointer-y: 0px;
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-rows: auto 1fr auto;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.25rem, 2.5vw, 2.4rem);
  background:
    radial-gradient(circle at 50% 45%, rgba(128, 104, 255, 0.07), transparent 35%),
    var(--black);
}

.page::after {
  position: absolute;
  z-index: 8;
  inset: 0;
  pointer-events: none;
  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='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.17'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: 0.24;
}

.grid {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 25vw 25vh;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.ambient {
  position: absolute;
  z-index: -1;
  width: 32rem;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(9rem);
  opacity: 0.13;
}

.ambientOne {
  top: -19rem;
  right: -10rem;
  background: var(--cyan);
}

.ambientTwo {
  bottom: -25rem;
  left: 8%;
  background: var(--coral);
}

.header,
.footer {
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.12rem;
}

.wordmark {
  position: relative;
  display: flex;
  align-items: baseline;
  width: max-content;
  line-height: 0.9;
}

.wordmark i {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: -0.09em;
}

.wordmark b {
  margin-left: 0.26rem;
  font-size: 1.28rem;
  font-weight: 590;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}

.brandMeta {
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.43rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.availability {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal {
  position: relative;
  width: 0.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #b8ff66;
  box-shadow: 0 0 1rem rgba(184, 255, 102, 0.65);
}

.signal::after {
  position: absolute;
  inset: -0.35rem;
  border: 1px solid rgba(184, 255, 102, 0.42);
  border-radius: 50%;
  content: "";
  animation: signal 2.4s ease-out infinite;
}

.hero {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 6vh 0 4vh;
}

.index {
  margin: 0 0 clamp(1.2rem, 2vh, 2rem);
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  font-size: clamp(0.58rem, 0.7vw, 0.68rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  position: relative;
  z-index: 3;
  width: min-content;
  margin: 0;
  font-size: clamp(4.3rem, 10.6vw, 10.2rem);
  font-weight: 560;
  letter-spacing: -0.09em;
  line-height: 0.72;
  text-transform: uppercase;
}

h1 span {
  display: block;
}

h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 241, 234, 0.8);
  transform: translateX(clamp(1rem, 6vw, 6rem));
}

h1 span:last-child {
  transform: translateX(clamp(2rem, 12vw, 12rem));
}

.statement {
  position: absolute;
  z-index: 4;
  right: 3vw;
  bottom: 9%;
  margin: 0;
  color: rgba(244, 241, 234, 0.72);
  font-size: clamp(0.72rem, 0.9vw, 0.86rem);
  line-height: 1.45;
  text-transform: uppercase;
}

.orbital {
  position: absolute;
  z-index: 1;
  top: 44%;
  left: 58%;
  width: clamp(15rem, 34vw, 34rem);
  aspect-ratio: 1;
  transform: translate(
    calc(-50% + var(--pointer-x)),
    calc(-50% + var(--pointer-y))
  );
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.orb {
  position: absolute;
  inset: 12%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 45% 55% 51% 49% / 43% 48% 52% 57%;
  background:
    radial-gradient(circle at 28% 25%, rgba(255, 255, 255, 0.9), transparent 10%),
    radial-gradient(circle at 32% 33%, var(--cyan), transparent 27%),
    radial-gradient(circle at 68% 72%, var(--coral), transparent 36%),
    conic-gradient(from 210deg, #101010, var(--violet), #ff8b4d, var(--cyan), #101010);
  box-shadow:
    inset -2rem -2rem 5rem rgba(0, 0, 0, 0.75),
    inset 2rem 1rem 4rem rgba(255, 255, 255, 0.15),
    0 2rem 8rem rgba(128, 104, 255, 0.28);
  animation: morph 9s ease-in-out infinite alternate;
}

.orb::before {
  position: absolute;
  inset: -20%;
  border-radius: 42%;
  background: conic-gradient(
    from 30deg,
    transparent,
    rgba(255, 255, 255, 0.75),
    transparent 24%,
    rgba(128, 231, 255, 0.78),
    transparent 48%,
    rgba(255, 104, 71, 0.65),
    transparent 74%
  );
  content: "";
  filter: blur(1.6rem);
  mix-blend-mode: screen;
  animation: rotate 12s linear infinite;
}

.orbCore {
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: #050505;
  box-shadow:
    0 0 2rem rgba(0, 0, 0, 0.9),
    inset 0 0 1.5rem rgba(255, 255, 255, 0.14);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(244, 241, 234, 0.2);
  border-radius: 50%;
}

.orbitOne {
  inset: 2%;
  transform: rotate(22deg) scaleY(0.42);
}

.orbitTwo {
  inset: -8%;
  border-color: rgba(128, 231, 255, 0.18);
  transform: rotate(-28deg) scaleY(0.62);
}

.orbitOne::after {
  position: absolute;
  top: 48%;
  left: -0.25rem;
  width: 0.48rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 1rem rgba(255, 255, 255, 0.7);
  content: "";
}

.footer {
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

@keyframes morph {
  to {
    border-radius: 55% 45% 39% 61% / 51% 58% 42% 49%;
    transform: rotate(6deg) scale(1.025);
  }
}

@keyframes signal {
  to {
    opacity: 0;
    transform: scale(1.9);
  }
}

@media (max-width: 700px) {
  .page {
    padding: 1.15rem;
  }

  .grid {
    background-size: 50vw 25vh;
  }

  .brandMeta {
    display: none;
  }

  .availability span:last-child {
    max-width: 6rem;
    text-align: right;
  }

  .hero {
    padding-top: 8vh;
  }

  h1 {
    font-size: clamp(4.35rem, 21vw, 6.5rem);
    line-height: 0.75;
  }

  h1 .outline {
    transform: translateX(0.6rem);
  }

  h1 span:last-child {
    transform: translateX(1.2rem);
  }

  .orbital {
    top: 48%;
    left: 68%;
    width: 19rem;
    opacity: 0.82;
  }

  .statement {
    right: 0;
    bottom: -1.5rem;
    font-size: 0.6rem;
  }

  .coordinates {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb,
  .orb::before,
  .signal::after {
    animation: none;
  }

  .orbital {
    transition: none;
  }
}

.errorPage {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 50% 40%, rgba(128, 104, 255, 0.14), transparent 35%),
    var(--black);
  text-align: center;
}

.errorCode {
  margin: 0;
  color: transparent;
  font-size: clamp(8rem, 30vw, 24rem);
  font-weight: 600;
  letter-spacing: -0.1em;
  line-height: 0.72;
  -webkit-text-stroke: 1px rgba(244, 241, 234, 0.45);
}

.errorTitle {
  width: auto;
  margin: 2rem 0 0.65rem;
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  text-transform: none;
}

.errorCopy {
  margin: 0 0 2rem;
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.homeLink {
  display: inline-flex;
  padding: 0.85rem 1.2rem;
  border: 1px solid rgba(244, 241, 234, 0.42);
  border-radius: 999px;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.homeLink:hover,
.homeLink:focus-visible {
  background: var(--white);
  color: var(--black);
}
