html,
body {
  background:
    radial-gradient(ellipse 92% 72% at 50% 38%, #070910 0%, transparent 58%),
    radial-gradient(ellipse 80% 50% at 50% 100%, #04050c 0%, #000000 72%),
    #000000;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.sky__haze {
  position: absolute;
  inset: -24%;
  background:
    radial-gradient(ellipse 72% 52% at 24% 30%, rgb(8 11 24 / 0.16) 0%, transparent 74%),
    radial-gradient(ellipse 66% 46% at 76% 66%, rgb(6 9 20 / 0.14) 0%, transparent 76%),
    radial-gradient(ellipse 52% 38% at 50% 18%, rgb(12 8 24 / 0.06) 0%, transparent 72%);
  filter: blur(72px);
  opacity: 0.3;
}

.sky__atmosphere,
.sky__stars,
.sky__grain,
.sky__vignette {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.sky__atmosphere {
  opacity: 0.5;
}

.sky__grain {
  opacity: 0.02;
  background-repeat: repeat;
  background-size: 128px 128px;
}

.sky__vignette {
  background: radial-gradient(ellipse 74% 66% at 50% 46%, transparent 44%, rgb(0 0 0 / 0.42) 100%);
}

.js .sky__stars,
.js .sky__atmosphere {
  opacity: 0;
}

.scene {
  min-height: 100vh;
  min-height: 100dvh;
  transform-origin: 50% 48%;
}

.js:not(.is-ready) .scene {
  opacity: 0.86;
  transform: scale(1.012);
}

.intro {
  display: none;
}

.js .intro {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

.intro__mask {
  position: fixed;
  left: 0;
  width: 100%;
  height: 50vh;
  overflow: visible;
  background: #000;
  will-change: transform;
}

.intro__mask--top {
  top: 0;
}

.intro__mask--bottom {
  bottom: 0;
}

.intro__mask-fade,
.intro__mask-blur {
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.intro__mask-fade {
  height: 28px;
}

.intro__mask--top .intro__mask-fade {
  bottom: 0;
  background: linear-gradient(to bottom, #000 0%, #050508 42%, transparent 100%);
}

.intro__mask--bottom .intro__mask-fade {
  top: 0;
  background: linear-gradient(to top, #000 0%, #050508 42%, transparent 100%);
}

.intro__mask-blur {
  height: 20px;
  filter: blur(10px);
}

.intro__mask--top .intro__mask-blur {
  bottom: -10px;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0.88) 0%, transparent 100%);
}

.intro__mask--bottom .intro__mask-blur {
  top: -10px;
  background: linear-gradient(to top, rgb(0 0 0 / 0.88) 0%, transparent 100%);
}

.intro__line {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 10000;
  width: min(22vw, 176px);
  height: 1px;
  background: #c77dff;
  box-shadow:
    0 0 5px rgb(199 125 255 / 0.32),
    0 0 12px rgb(157 78 221 / 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.welcome {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 10.5vh var(--space-md) 14vh;
  text-align: center;
}

.welcome__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 56rem);
}

.welcome__eyebrow {
  margin: 0 0 2.6rem;
  color: rgb(216 218 226 / 0.26);
  font-size: clamp(0.66rem, 1vw, 0.74rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  line-height: 1.5;
}

.welcome__wordmark {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.12em 0 0.06em;
  font-size: clamp(1.55rem, 0.2rem + 8.6vw, 8.5rem);
  font-weight: 800;
  letter-spacing: 0.036em;
  line-height: 0.9;
  --flow-ax: 22;
  --flow-ay: 28;
  --flow-bx: 78;
  --flow-by: 70;
  --spec-x: 0;
  --spec-y: 0;
  --light: 0;
  --mouse-u: 0;
  --mouse-v: 0;
  filter: drop-shadow(0 0 calc(5px + var(--light) * 4px) rgb(157 78 221 / calc(0.04 + var(--light) * 0.04)));
  user-select: none;
  white-space: nowrap;
  cursor: default;
}

.welcome__letter {
  position: relative;
  display: inline-block;
  padding: 0 0.01em;
}

.welcome__letter-body {
  position: relative;
  display: block;
}

.welcome__glyph {
  display: block;
}

.welcome__glyph--depth,
.welcome__glyph--flow,
.welcome__glyph--sheen,
.welcome__glyph--spec,
.welcome__glyph--edge {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.welcome__glyph--depth {
  background-image: linear-gradient(
    180deg,
    rgb(90 48 130 / 0.18) 0%,
    rgb(32 14 58 / 0.12) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: translate(0, 0.04em);
  filter: blur(2.5px);
  opacity: 0.26;
}

.welcome__glyph--base {
  background-image: linear-gradient(
    168deg,
    rgb(228 184 255 / 0.46) 0%,
    rgb(199 125 255 / 0.32) 34%,
    rgb(157 78 221 / 0.2) 68%,
    rgb(28 8 48 / 0.1) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.welcome__glyph--flow {
  background-image: radial-gradient(
    ellipse 58% 72% at calc(var(--flow-ax) * 1%) calc(var(--flow-ay) * 1%),
    rgb(199 125 255 / 0.4) 0%,
    rgb(228 184 255 / 0.14) 30%,
    transparent 64%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
}

.welcome__wordmark.is-flowing .welcome__glyph--flow {
  opacity: calc(0.4 + var(--light) * 0.18);
}

.welcome__glyph--sheen {
  background-image: radial-gradient(
    ellipse 46% 54% at calc(var(--flow-bx) * 1%) calc(var(--flow-by) * 1%),
    rgb(255 248 255 / 0.16) 0%,
    rgb(228 184 255 / 0.08) 34%,
    transparent 60%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
}

.welcome__wordmark.is-flowing .welcome__glyph--sheen {
  opacity: 0.36;
}

.welcome__glyph--spec {
  background-image: radial-gradient(
    ellipse 44% 58% at calc(50% + var(--mouse-u) * 16% + var(--spec-x) * 0.5%) calc(44% + var(--mouse-v) * 12% + var(--spec-y) * 0.35%),
    rgb(255 248 255 / 0.24) 0%,
    rgb(228 184 255 / 0.08) 38%,
    transparent 66%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
}

.welcome__wordmark.is-lit .welcome__glyph--spec {
  opacity: calc(0.34 + var(--light) * 0.28);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.welcome__glyph--edge {
  background-image: linear-gradient(
    180deg,
    rgb(228 184 255 / calc(0.12 + var(--light) * 0.14)) 0%,
    transparent 46%,
    rgb(157 78 221 / calc(0.05 + var(--light) * 0.1)) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
}

.welcome__wordmark.is-flowing .welcome__glyph--edge {
  opacity: calc(0.16 + var(--light) * 0.22);
}

.welcome__wordmark.is-tracking .welcome__letter-body {
  will-change: transform;
}

.welcome__slogan {
  max-width: 22.5rem;
  margin: 1.55rem 0 0;
  color: rgb(216 218 226 / 0.25);
  font-size: clamp(0.84rem, 1.25vw, 0.98rem);
  font-weight: 300;
  letter-spacing: 0.018em;
  line-height: 1.8;
}

.js .welcome__eyebrow,
.js .welcome__letter,
.js .welcome__slogan {
  opacity: 0;
}

[data-quality="mobile"] .welcome__glyph--sheen,
[data-quality="mobile"] .welcome__glyph--edge,
[data-quality="mobile"] .welcome__glyph--depth {
  display: none;
}

[data-quality="mobile"] .sky__atmosphere {
  display: none;
}

@media (max-width: 430px) {
  .welcome {
    padding: 11vh var(--space-sm) 13vh;
  }

  .welcome__eyebrow {
    margin-bottom: 1.75rem;
    letter-spacing: 0.16em;
  }

  .welcome__wordmark {
    font-size: clamp(1.45rem, 7vw, 2.35rem);
    letter-spacing: 0.02em;
  }

  .welcome__slogan {
    max-width: 19rem;
    margin-top: 1.2rem;
  }

  .sky__haze {
    filter: blur(48px);
    opacity: 0.28;
  }

  .intro__line {
    width: min(36vw, 140px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro {
    display: none !important;
  }

  .js .scene,
  .js[data-quality="desktop"] .scene {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .js .sky__stars {
    opacity: 1;
  }

  .js .sky__atmosphere {
    opacity: 0.5;
  }

  .welcome__glyph--flow {
    --flow-ax: 48;
    --flow-ay: 42;
    opacity: 0.5;
  }

  .welcome__glyph--sheen {
    --flow-bx: 58;
    --flow-by: 40;
    opacity: 0.34;
  }

  .welcome__glyph--edge {
    opacity: 0.22;
  }

  .js .welcome__eyebrow,
  .js .welcome__letter,
  .js .welcome__slogan {
    opacity: 1;
    transform: none;
  }

  .welcome__glyph--spec {
    opacity: 0.62;
  }

  .welcome__wordmark.is-tracking .welcome__letter-body {
    will-change: auto;
  }
}
