:root {
  color-scheme: dark;
  --ink: #f5f8ff;
  --muted: #91a1b7;
  --deep: #050a12;
  --navy: #07111f;
  --cyan: #23e5d0;
  --violet: #7c3cff;
  --pink: #ff3b9d;
  --line: rgba(163, 190, 224, 0.14);
  --logo-opacity: 0;
  --logo-scale: 0.965;
  --copy-opacity: 0;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--deep);
}

html {
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

body {
  min-height: 100svh;
  overflow: hidden;
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 43%, rgba(23, 44, 71, 0.38), transparent 39%),
    linear-gradient(145deg, #03070d 0%, #07101d 44%, #03070d 100%);
  content: "";
}

#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ambient,
.ambient > span {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.ambient {
  z-index: 1;
  overflow: hidden;
}

.ambient__glow {
  width: 36rem;
  height: 36rem;
  margin: auto;
  border-radius: 999px;
  filter: blur(110px);
  opacity: 0.08;
  animation: drift 13s ease-in-out infinite alternate;
}

.ambient__glow--cyan {
  translate: -34vw -23vh;
  background: var(--cyan);
}

.ambient__glow--violet {
  translate: 36vw 29vh;
  background: linear-gradient(145deg, var(--violet), var(--pink));
  animation-delay: -6s;
  animation-duration: 16s;
}

.ambient__grid {
  opacity: 0.17;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
  transform: perspective(600px) rotateX(68deg) scale(1.75) translateY(29%);
  transform-origin: center bottom;
}

.ambient__vignette {
  background:
    linear-gradient(to bottom, rgba(3, 7, 13, 0.7), transparent 24%, transparent 70%, rgba(3, 7, 13, 0.88)),
    radial-gradient(circle at center, transparent 34%, rgba(0, 0, 0, 0.66) 100%);
}

.site-shell {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100svh;
  padding: clamp(1.4rem, 4vw, 3.2rem) clamp(1.25rem, 5vw, 4.5rem);
}

.hero {
  display: flex;
  width: 100%;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.brand-stage {
  position: relative;
  display: grid;
  width: min(72rem, 92vw);
  height: clamp(17rem, 43vh, 25rem);
  place-items: center;
}

.brand-stage::before,
.brand-stage::after {
  position: absolute;
  left: 50%;
  width: min(56rem, 82vw);
  height: 1px;
  content: "";
  opacity: 0;
  transform: translateX(-50%) scaleX(0.15);
  transition:
    opacity 0.8s ease,
    transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-stage::before {
  top: 20%;
  background: linear-gradient(90deg, transparent, rgba(35, 229, 208, 0.34), transparent);
}

.brand-stage::after {
  bottom: 20%;
  background: linear-gradient(90deg, transparent, rgba(124, 60, 255, 0.3), transparent);
}

.is-complete .brand-stage::before,
.is-complete .brand-stage::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.brand-link {
  position: relative;
  z-index: 4;
  display: block;
  width: min(55rem, 78vw);
  border-radius: 1.5rem;
  outline: none;
  opacity: var(--logo-opacity);
  pointer-events: none;
  transform: scale(var(--logo-scale));
  transition:
    filter 240ms ease,
    transform 240ms ease;
}

.is-complete .brand-link {
  pointer-events: auto;
}

.brand-logo {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.75))
    drop-shadow(0 0 24px rgba(35, 229, 208, 0.12));
}

.brand-link__halo {
  position: absolute;
  inset: 14% 6%;
  z-index: 1;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(35, 229, 208, 0.22), rgba(124, 60, 255, 0.18));
  filter: blur(42px);
  opacity: 0.34;
  transition: opacity 240ms ease;
}

.brand-link:hover,
.brand-link:focus-visible {
  filter: brightness(1.12);
  transform: scale(1.015);
}

.brand-link:hover .brand-link__halo,
.brand-link:focus-visible .brand-link__halo {
  opacity: 0.72;
}

.brand-link:focus-visible {
  box-shadow: 0 0 0 2px rgba(35, 229, 208, 0.92);
}

.hero-copy {
  max-width: 52rem;
  margin-top: clamp(-1.4rem, -2vh, -0.5rem);
  opacity: var(--copy-opacity);
  transform: translateY(0.8rem);
  transition: transform 0.8s ease;
}

.is-complete .hero-copy {
  transform: translateY(0);
}

.hero-copy h1 {
  margin: 0;
  color: #f7faff;
  font-size: clamp(1.2rem, 2vw, 1.78rem);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-wrap: balance;
}

.hero-copy p {
  margin: 0.72rem 0 0;
  color: var(--muted);
  font-size: clamp(0.94rem, 1.3vw, 1.04rem);
  line-height: 1.6;
}

.noscript-link {
  display: block;
  width: min(55rem, 78vw);
}

.noscript-link img {
  display: block;
  width: 100%;
  height: auto;
}

.no-js .brand-link,
.no-js #particle-canvas,
.no-js .hero-copy {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes drift {
  from {
    transform: translate3d(-2%, -1%, 0) scale(0.95);
  }
  to {
    transform: translate3d(5%, 4%, 0) scale(1.08);
  }
}

@media (max-width: 640px) {
  .site-shell {
    padding: 1.35rem 1.15rem 1.25rem;
  }

  .brand-stage {
    width: 100%;
    height: min(48vh, 22rem);
  }

  .brand-link,
  .noscript-link {
    width: min(92vw, 38rem);
  }

  .hero-copy {
    margin-top: -0.75rem;
  }

}

@media (max-height: 650px) and (orientation: landscape) {
  .brand-stage {
    height: 52vh;
  }

  .brand-link {
    width: min(46rem, 66vw);
  }

  .hero-copy p {
    margin-top: 0.4rem;
  }
}

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