:root {
  color-scheme: dark;
  --bg: #050c16;
  --panel: #081321;
  --line: rgba(79, 218, 231, 0.14);
  --line-neutral: rgba(231, 241, 247, 0.12);
  --muted: #8190a1;
  --text: #f1f6f8;
  --accent: #08c5d8;
  --accent-soft: rgba(8, 197, 216, 0.14);
  --page-pad: clamp(1.25rem, 4vw, 4rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 26%, rgba(8, 197, 216, 0.09), transparent 30rem),
    radial-gradient(circle at 18% 88%, rgba(8, 79, 112, 0.11), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 5rem 5rem;
  content: "";
  opacity: 0.16;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.025;
  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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: var(--page-pad);
  padding-left: var(--page-pad);
}

.site-header {
  min-height: 6rem;
  border-bottom: 1px solid var(--line-neutral);
}

.wordmark {
  display: inline-flex;
  gap: 0.8rem;
  align-items: center;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark-mark {
  width: 2.45rem;
  height: 2.45rem;
  box-shadow: 0 0 1.4rem rgba(8, 197, 216, 0.1);
}

.logo-crop {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 29%;
  background: #fff;
}

.logo-crop img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 143%;
  max-width: none;
  transform: translate(-50%, -50%);
}

.status {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0.85rem rgba(8, 197, 216, 0.7);
  animation: pulse 2.8s ease-in-out infinite;
}

.hero {
  display: grid;
  min-height: calc(100vh - 11rem);
  grid-template-columns: minmax(0, 0.98fr) minmax(25rem, 1.02fr);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(5rem, 10vh, 8rem) var(--page-pad);
}

.eyebrow {
  margin: 0 0 2rem;
  color: var(--accent);
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 2.25rem;
  height: 1px;
  margin-right: 0.75rem;
  background: currentColor;
  content: "";
  vertical-align: middle;
}

h1 {
  max-width: 10.5ch;
  margin: 0;
  font-size: clamp(3.2rem, 6.7vw, 7.8rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

h1 em {
  color: var(--accent);
  font-style: normal;
  text-shadow: 0 0 2.4rem rgba(8, 197, 216, 0.14);
}

.intro {
  max-width: 28rem;
  margin: clamp(2.5rem, 6vh, 4rem) 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  line-height: 1.75;
}

.coordinates {
  display: flex;
  gap: clamp(1.25rem, 3vw, 3rem);
  margin: clamp(2.5rem, 5vh, 4rem) 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--line-neutral);
  color: var(--text);
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  list-style: none;
  text-transform: uppercase;
}

.coordinates span {
  margin-right: 0.45rem;
  color: var(--accent);
}

.field {
  position: relative;
  min-height: 34rem;
  overflow: hidden;
  isolation: isolate;
  border-left: 1px solid var(--line-neutral);
  background:
    linear-gradient(90deg, transparent 49.9%, var(--line) 50%, transparent 50.1%),
    linear-gradient(transparent 49.9%, var(--line) 50%, transparent 50.1%),
    radial-gradient(circle at center, rgba(8, 197, 216, 0.07), transparent 38%),
    rgba(255, 255, 255, 0.01);
}

#state-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.quantum-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(7rem, 12vw, 10rem);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 0 5rem rgba(8, 197, 216, 0.2),
    0 1.2rem 4rem rgba(0, 0, 0, 0.35);
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit::after {
  position: absolute;
  top: 50%;
  right: -0.25rem;
  width: 0.5rem;
  height: 0.5rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 1rem rgba(8, 197, 216, 0.8);
  content: "";
}

.orbit--one {
  width: clamp(16rem, 28vw, 26rem);
  aspect-ratio: 1;
  animation: orbit-one 22s linear infinite;
}

.orbit--two {
  width: clamp(23rem, 43vw, 39rem);
  aspect-ratio: 1;
  border-color: rgba(126, 153, 169, 0.11);
  animation: orbit-two 34s linear infinite reverse;
}

.field-label,
.field-caption {
  position: absolute;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-label--state {
  right: 1.25rem;
  top: calc(50% + 0.7rem);
}

.field-label--time {
  top: 1.25rem;
  left: calc(50% + 0.7rem);
}

.field-label--probability {
  bottom: calc(50% + 0.7rem);
  left: 1.25rem;
}

.field-caption {
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  display: flex;
  justify-content: space-between;
}

.site-footer {
  min-height: 5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@keyframes orbit-one {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes orbit-two {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 5.25rem;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 62vh;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .field {
    min-height: 55vh;
    border-top: 1px solid var(--line-neutral);
    border-left: 0;
  }

  h1 {
    font-size: clamp(3.6rem, 15vw, 6.5rem);
  }
}

@media (max-width: 480px) {
  .status {
    font-size: 0;
  }

  .status-dot {
    width: 0.5rem;
    height: 0.5rem;
  }

  .coordinates {
    gap: 1rem;
    justify-content: space-between;
  }

  .coordinates li {
    display: grid;
    gap: 0.25rem;
  }

  .site-footer {
    min-height: 4.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .status-dot {
    animation: none;
  }

  .orbit {
    animation: none;
  }
}
