:root {
  color-scheme: dark;
  --bg: #05030a;
  --text: #ffffff;
  --muted: rgba(248, 242, 255, 0.58);
  --px: 0;
  --py: 0;
  --energy: 0;
}

* {
  box-sizing: border-box;
}

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

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100svh;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.scene {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 39%, rgba(100, 39, 178, 0.13), transparent 31%),
    linear-gradient(180deg, #030106 0%, #090411 56%, #030207 100%);
}

.sky,
.landscape,
.grain,
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sky {
  z-index: 0;
  overflow: hidden;
  transform: translate3d(calc(var(--px) * -5px), calc(var(--py) * -3px), 0);
  transition: transform 120ms linear;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(92px) saturate(145%);
  mix-blend-mode: screen;
  will-change: transform;
}

.aurora-left {
  width: min(76vw, 1040px);
  aspect-ratio: 1;
  top: -40%;
  left: -26%;
  opacity: 0.22;
  background:
    radial-gradient(circle, rgba(255, 87, 229, 0.92), rgba(170, 51, 255, 0.31) 39%, transparent 73%);
  animation: aurora-left 25s ease-in-out infinite alternate;
}

.aurora-right {
  width: min(80vw, 1120px);
  aspect-ratio: 1;
  top: -23%;
  right: -36%;
  opacity: 0.2;
  background:
    radial-gradient(circle, rgba(90, 99, 255, 0.88), rgba(115, 48, 225, 0.29) 41%, transparent 73%);
  animation: aurora-right 31s ease-in-out infinite alternate;
}

.aurora-horizon {
  width: 78vw;
  height: 26vw;
  min-height: 210px;
  left: 11vw;
  bottom: 9vh;
  opacity: 0.13;
  background:
    radial-gradient(ellipse, rgba(184, 75, 255, 0.78), rgba(77, 56, 200, 0.2) 44%, transparent 75%);
  animation: aurora-horizon 22s ease-in-out infinite alternate;
}

.stars {
  position: absolute;
  inset: -10%;
  background-repeat: repeat;
  will-change: transform;
}

.stars-far {
  opacity: 0.35;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.72) 0 0.52px, transparent 0.82px),
    radial-gradient(circle, rgba(155,118,255,0.64) 0 0.48px, transparent 0.8px);
  background-size: 83px 83px, 127px 127px;
  background-position: 9px 31px, 45px 13px;
  animation: stars-far 92s linear infinite;
}

.stars-near {
  opacity: 0.63;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.88) 0 0.74px, transparent 1.05px),
    radial-gradient(circle, rgba(211,166,255,0.72) 0 0.82px, transparent 1.12px);
  background-size: 157px 157px, 223px 223px;
  background-position: 17px 49px, 91px 107px;
  animation: stars-near 57s linear infinite;
}

.meteor {
  position: absolute;
  width: 145px;
  height: 1px;
  opacity: 0;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,0.9), rgba(182,125,255,0.2), transparent);
  filter: drop-shadow(0 0 5px rgba(226, 201, 255, 0.8));
}

.meteor-one {
  top: 20%;
  right: 18%;
  transform: rotate(-28deg);
  animation: meteor-one 24s ease-out infinite;
}

.meteor-two {
  top: 29%;
  left: 15%;
  transform: rotate(-23deg);
  animation: meteor-two 37s 11s ease-out infinite;
}

.brand {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 16vh;
  display: grid;
  justify-items: center;
  width: min(92vw, 940px);
  text-align: center;
  transform:
    translate3d(
      calc(-50% + var(--px) * 4px),
      calc(var(--py) * 3px),
      0
    );
  transition: transform 120ms linear;
}

.mark-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(132px, 17vw, 230px);
  aspect-ratio: 1;
  animation: mark-float 8s ease-in-out infinite;
}

.mark-glow {
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  background:
    radial-gradient(circle,
      rgba(244, 130, 255, calc(0.28 + var(--energy) * 0.16)),
      rgba(143, 56, 255, calc(0.13 + var(--energy) * 0.1)) 42%,
      transparent 73%);
  filter: blur(calc(25px + var(--energy) * 9px));
  transform: scale(calc(0.96 + var(--energy) * 0.07));
  transition: filter 180ms ease, transform 180ms ease;
  animation: glow-pulse 8s ease-in-out infinite;
}

.mark {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  filter:
    drop-shadow(0 0 14px rgba(210, 81, 255, 0.34))
    drop-shadow(0 0 42px rgba(117, 54, 255, 0.17));
}

.wordmark {
  margin-top: clamp(2px, 0.7vh, 8px);
}

h1 {
  margin: 0;
  font-size: clamp(2.05rem, 5.4vw, 4.45rem);
  font-weight: 560;
  line-height: 0.94;
  letter-spacing: clamp(0.25em, 1.8vw, 0.41em);
  text-indent: clamp(0.25em, 1.8vw, 0.41em);
  text-shadow: 0 0 28px rgba(157, 87, 255, 0.16);
}

.wordmark p {
  margin: clamp(14px, 2vh, 21px) 0 0;
  color: var(--muted);
  font-size: clamp(0.66rem, 1.05vw, 0.86rem);
  font-weight: 540;
  letter-spacing: clamp(0.21em, 0.78vw, 0.31em);
  text-indent: clamp(0.21em, 0.78vw, 0.31em);
  text-transform: uppercase;
}

.landscape {
  z-index: 2;
  top: auto;
  height: clamp(40vh, 45vw, 54vh);
  bottom: 0;
  overflow: hidden;
  transform: translate3d(calc(var(--px) * 8px), calc(var(--py) * 3px), 0);
  transition: transform 120ms linear;
}

.landscape picture,
.landscape picture img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.landscape picture {
  z-index: 2;
}

.landscape picture img {
  object-fit: cover;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.94) 18%, #000 62%, rgba(0,0,0,0.72) 88%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.94) 18%, #000 62%, rgba(0,0,0,0.72) 88%, transparent 100%);
  object-position: center 100%;
  opacity: 0.84;
  filter:
    saturate(0.84)
    contrast(1.02)
    brightness(0.94)
    drop-shadow(0 -8px 22px rgba(103, 59, 162, 0.08));
}

.mountain-haze {
  position: absolute;
  z-index: 1;
  left: 12%;
  right: 12%;
  top: 11%;
  height: 34%;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(166, 76, 244, 0.15), rgba(77, 48, 155, 0.05) 47%, transparent 75%);
  filter: blur(30px);
}

.fog {
  position: absolute;
  z-index: 3;
  left: -12%;
  width: 124%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse, rgba(132, 96, 154, 0.09), rgba(34, 24, 42, 0.025) 50%, transparent 74%);
  filter: blur(28px);
}

.fog-back {
  height: 26%;
  bottom: 20%;
  animation: fog-back 27s ease-in-out infinite alternate;
}

.fog-front {
  height: 24%;
  bottom: 2%;
  opacity: 0.66;
  animation: fog-front 34s ease-in-out infinite alternate;
}

.foreground {
  position: absolute;
  z-index: 4;
  left: -5%;
  right: -5%;
  bottom: -10%;
  height: 29%;
  border-radius: 50% 50% 0 0 / 19% 22% 0 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(28, 18, 38, 0.69), transparent 63%),
    linear-gradient(180deg, #07040b 0%, #020104 78%);
}

footer {
  position: absolute;
  z-index: 8;
  right: 0;
  bottom: 16px;
  left: 0;
  color: rgba(255,255,255,0.21);
  font-size: 0.58rem;
  font-weight: 580;
  letter-spacing: 0.29em;
  text-align: center;
  text-transform: uppercase;
}

.grain {
  z-index: 20;
  opacity: 0.045;
  mix-blend-mode: soft-light;
  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='.84' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.57'/%3E%3C/svg%3E");
}

.vignette {
  z-index: 19;
  background:
    radial-gradient(circle at 50% 42%, transparent 31%, rgba(0,0,0,0.13) 67%, rgba(0,0,0,0.71) 126%),
    linear-gradient(180deg, rgba(0,0,0,0.18), transparent 22%, transparent 73%, rgba(0,0,0,0.46));
}

@keyframes aurora-left {
  from { transform: translate3d(-7vw, -2vh, 0) scale(0.93); }
  to { transform: translate3d(17vw, 12vh, 0) scale(1.1); }
}

@keyframes aurora-right {
  from { transform: translate3d(7vw, -7vh, 0) scale(0.96); }
  to { transform: translate3d(-18vw, 11vh, 0) scale(1.13); }
}

@keyframes aurora-horizon {
  from { transform: translate3d(-5vw, 1vh, 0) scaleX(0.94); }
  to { transform: translate3d(6vw, -2vh, 0) scaleX(1.08); }
}

@keyframes stars-far {
  to { transform: translate3d(127px, -127px, 0); }
}

@keyframes stars-near {
  to { transform: translate3d(-157px, -157px, 0); }
}

@keyframes meteor-one {
  0%, 78%, 100% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(-28deg);
  }
  80% { opacity: 0.85; }
  86% {
    opacity: 0;
    transform: translate3d(-420px, 225px, 0) rotate(-28deg);
  }
}

@keyframes meteor-two {
  0%, 83%, 100% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(-23deg);
  }
  85% { opacity: 0.68; }
  91% {
    opacity: 0;
    transform: translate3d(380px, 180px, 0) rotate(-23deg);
  }
}

@keyframes mark-float {
  0%, 100% { transform: translateY(0) scale(0.988); }
  50% { transform: translateY(-5px) scale(1.012); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.58; }
  50% { opacity: 0.92; }
}

@keyframes fog-back {
  from { transform: translateX(-5%) scaleX(0.97); opacity: 0.45; }
  to { transform: translateX(5%) scaleX(1.05); opacity: 0.68; }
}

@keyframes fog-front {
  from { transform: translateX(5%) scaleX(1.04); }
  to { transform: translateX(-6%) scaleX(0.97); }
}

@media (max-width: 900px) {
  .brand {
    top: 13vh;
  }

  .mark-shell {
    width: clamp(126px, 35vw, 190px);
  }

  .landscape {
    height: 50vh;
  }

  .landscape picture img {
    object-position: 50% bottom;
  }

  .aurora {
    filter: blur(68px) saturate(138%);
  }

  .aurora-left,
  .aurora-right {
    width: 116vw;
  }
}

@media (max-height: 680px) and (orientation: landscape) {
  .brand {
    top: 6vh;
  }

  .mark-shell {
    width: min(25vh, 155px);
  }

  h1 {
    font-size: min(7vh, 3rem);
  }

  .wordmark p {
    margin-top: 10px;
  }

  .landscape {
    height: 59vh;
  }
}

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