:root {
  --bg: #040910;
  --bg-deep: #02060c;
  --text: #f4f7ff;
  --muted: #98a6c0;
  --accent: #6df7ff;
  --accent-soft: #86a8ff;
  --line: rgba(132, 171, 255, 0.16);
  --frame: clamp(20px, 4vw, 64px);
  --max-width: 1680px;
  --scroll-lock-y: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at 18% 10%, rgba(33, 67, 138, 0.4), transparent 34%),
    radial-gradient(circle at 78% 20%, rgba(0, 181, 255, 0.12), transparent 24%),
    radial-gradient(circle at 52% 100%, rgba(75, 101, 182, 0.12), transparent 30%),
    linear-gradient(180deg, #060b13 0%, #03070f 54%, #02050b 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 34%, black 10%, transparent 82%);
}

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

button,
a,
canvas {
  -webkit-tap-highlight-color: transparent;
}

.site-shell {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.network-canvas,
.noise,
.cursor-glow,
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.network-canvas {
  z-index: 0;
}

.noise {
  z-index: 1;
  opacity: 0.12;
  mix-blend-mode: soft-light;
  background-image:
    linear-gradient(transparent 0, rgba(255, 255, 255, 0.04) 50%, transparent 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

.cursor-glow {
  z-index: 2;
  width: 26rem;
  height: 26rem;
  margin: -13rem 0 0 -13rem;
  border-radius: 50%;
  opacity: 0.76;
  filter: blur(18px);
  transform: translate3d(-999px, -999px, 0);
  transition: opacity 180ms ease;
  background:
    radial-gradient(circle, rgba(109, 247, 255, 0.14) 0%, rgba(109, 247, 255, 0.05) 40%, transparent 72%);
}

.ambient {
  z-index: 0;
  filter: blur(64px);
}

.ambient--north {
  background: radial-gradient(circle at 22% 20%, rgba(110, 168, 255, 0.18), transparent 28%);
}

.ambient--south {
  background: radial-gradient(circle at 78% 76%, rgba(68, 255, 232, 0.1), transparent 24%);
}

.topbar,
main,
.footer {
  position: relative;
  z-index: 3;
}

.scroll-lock-layer {
  transform: translate3d(0, var(--scroll-lock-y), 0);
  will-change: transform;
}

.topbar,
main,
.footer {
  width: min(calc(100% - (var(--frame) * 2)), var(--max-width));
  margin: 0 auto;
}

.topbar {
  padding: 26px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
}

.brand__mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(10, 18, 31, 0.95), rgba(5, 9, 15, 0.5));
  box-shadow:
    inset 0 0 0 1px rgba(160, 205, 255, 0.18),
    0 0 36px rgba(109, 247, 255, 0.08);
}

.brand__mark svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent);
  fill: rgba(184, 210, 255, 0.92);
  stroke-width: 2.75;
}

.brand__copy {
  display: grid;
  gap: 0.16rem;
}

.brand__copy strong {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand__copy span,
.topbar__link,
.eyebrow,
.hero-orbit__labels,
.footer p {
  font-family: "IBM Plex Mono", monospace;
}

.brand__copy span {
  color: var(--muted);
  font-size: 0.78rem;
}

.topbar__link {
  padding: 0.88rem 1rem;
  min-width: 11.5rem;
  border: 1px solid rgba(154, 192, 255, 0.14);
  border-radius: 999px;
  background: rgba(4, 9, 16, 0.54);
  backdrop-filter: blur(14px);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  visibility: hidden;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.email-link.is-ready {
  visibility: visible;
}

.topbar__link:hover,
.topbar__link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(154, 192, 255, 0.26);
  background: rgba(8, 14, 25, 0.76);
}

.topbar__link:focus-visible {
  outline: 2px solid rgba(109, 247, 255, 0.5);
  outline-offset: 4px;
}

main {
  flex: 1;
  min-height: 0;
  display: flex;
}

.hero {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 5rem);
  padding: clamp(2rem, 4vw, 4rem) 0 clamp(1rem, 2vw, 2rem);
}

.hero__copy {
  max-width: min(44rem, 100%);
}

.motion-layer {
  --parallax-x: 0px;
  --parallax-y: 0px;
  --enter-y: 28px;
  opacity: 0;
  transform: translate3d(var(--parallax-x), calc(var(--parallax-y) + var(--enter-y)), 0) scale(0.985);
  transition:
    opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-ready .motion-layer {
  opacity: 1;
  --enter-y: 0px;
}

.hero__visual.motion-layer {
  transition-delay: 80ms;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
p {
  margin: 0;
}

h1 {
  font-size: clamp(3.4rem, 7.4vw, 8.6rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.hero__lede {
  margin-top: 1.35rem;
  max-width: 28rem;
  color: #c7d3ea;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.75;
  text-wrap: pretty;
}

.hero__visual {
  display: flex;
  justify-content: flex-end;
}

.hero-orbit {
  position: relative;
  width: min(40vw, 42rem, 58svh);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.hero-orbit__ring,
.hero-orbit::before,
.hero-orbit::after {
  position: absolute;
  border-radius: 50%;
}

.hero-orbit__ring {
  inset: 0;
  border: 1px solid rgba(164, 203, 255, 0.11);
  box-shadow:
    inset 0 0 22px rgba(95, 129, 208, 0.08),
    0 0 36px rgba(109, 247, 255, 0.05);
}

.hero-orbit__ring--middle {
  inset: 14%;
}

.hero-orbit__ring--inner {
  inset: 29%;
}

.hero-orbit::before {
  content: "";
  inset: 11%;
  border: 1px dashed rgba(109, 247, 255, 0.18);
  animation: spin 28s linear infinite;
}

.hero-orbit::after {
  content: "";
  inset: 35%;
  background:
    radial-gradient(circle, rgba(109, 247, 255, 0.18) 0%, rgba(109, 247, 255, 0.04) 42%, transparent 76%);
  filter: blur(16px);
}

.hero-orbit__core {
  position: relative;
  z-index: 2;
  width: 35%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.35), transparent 34%),
    linear-gradient(180deg, rgba(15, 27, 48, 0.96), rgba(6, 12, 22, 0.92));
  box-shadow:
    inset 0 0 0 1px rgba(210, 229, 255, 0.1),
    0 0 44px rgba(109, 247, 255, 0.08);
}

.hero-orbit__core span {
  color: #edf6ff;
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-orbit__node {
  position: absolute;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: radial-gradient(circle, white 0%, #8bc4ff 42%, #5ff5ff 100%);
  box-shadow: 0 0 18px rgba(109, 247, 255, 0.72);
}

.hero-orbit__node--one {
  top: 19%;
  left: 18%;
  animation: drift-a 9s ease-in-out infinite;
}

.hero-orbit__node--two {
  top: 21%;
  left: 73%;
  animation: drift-b 11s ease-in-out infinite;
}

.hero-orbit__node--three {
  top: 72%;
  left: 67%;
  animation: drift-c 10s ease-in-out infinite;
}

.hero-orbit__labels {
  position: absolute;
  inset: 0;
  color: rgba(224, 236, 255, 0.72);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-orbit__labels span {
  position: absolute;
}

.hero-orbit__labels span:nth-child(1) {
  top: 28%;
  left: -1%;
}

.hero-orbit__labels span:nth-child(2) {
  top: 50%;
  right: -4%;
}

.hero-orbit__labels span:nth-child(3) {
  bottom: 18%;
  left: 39%;
}

.footer {
  padding: 0 0 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(152, 166, 192, 0.84);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.noscript-email {
  position: fixed;
  right: var(--frame);
  bottom: 1rem;
  z-index: 4;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(154, 192, 255, 0.14);
  border-radius: 999px;
  background: rgba(4, 9, 16, 0.72);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

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

@keyframes drift-a {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(8px, -6px, 0);
  }
}

@keyframes drift-b {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-8px, 10px, 0);
  }
}

@keyframes drift-c {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(10px, -8px, 0);
  }
}

@media (min-width: 1600px) {
  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.94fr);
  }

  .hero__copy {
    max-width: 48rem;
  }

  .hero__lede {
    max-width: 31rem;
  }
}

@media (max-width: 980px) {
  .topbar,
  main,
  .footer {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2rem;
  }

  .hero__visual {
    justify-content: flex-start;
  }

  .hero-orbit {
    width: min(82vw, 34rem, 48svh);
  }
}

@media (max-width: 720px) {
  body::before {
    background-size: 54px 54px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar__link {
    align-self: stretch;
    width: 100%;
    text-align: center;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.9rem);
  }

  .hero {
    min-height: auto;
    padding-bottom: 2rem;
  }

  .hero-orbit {
    width: min(88vw, 24rem, 44svh);
  }

  .hero-orbit__labels {
    font-size: 0.7rem;
  }

  .hero-orbit__labels span:nth-child(1) {
    top: 24%;
    left: 4%;
  }

  .hero-orbit__labels span:nth-child(2) {
    right: 1%;
  }

  .hero-orbit__labels span:nth-child(3) {
    left: 36%;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 1.8rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .motion-layer {
    opacity: 1;
    transform: none;
  }

  .scroll-lock-layer {
    transform: none;
  }

  .cursor-glow {
    display: none;
  }
}
