:root {
  --bg: #141733;
  --bg-top: #1a1e42;
  --bg-mid: #141733;
  --bg-bottom: #0f1228;
  --text: #fbfbfb;
  --glow: rgba(251, 251, 251, 0.055);
  --glow-soft: rgba(251, 251, 251, 0.03);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Avenir, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

body {
  position: relative;
  overflow: hidden;
}

.page-bg,
.page-bg::before,
.page-bg::after,
.grain,
.vignette,
.glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.page-bg {
  background:
    radial-gradient(circle at 50% 16%, rgba(255,255,255,0.04), transparent 34%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 50%, var(--bg-bottom) 100%);
}

.page-bg::before,
.page-bg::after {
  content: "";
  will-change: transform, opacity;
}

.page-bg::before {
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,0.03), transparent 28%),
    radial-gradient(circle at 72% 34%, rgba(130,150,255,0.018), transparent 34%),
    radial-gradient(circle at 58% 74%, rgba(255,255,255,0.012), transparent 30%);
  opacity: 0.9;
  animation: ambientFloatA 22s ease-in-out infinite alternate;
}

.page-bg::after {
  background:
    radial-gradient(circle at 66% 18%, rgba(255,255,255,0.022), transparent 24%),
    radial-gradient(circle at 24% 68%, rgba(90,110,255,0.016), transparent 32%),
    radial-gradient(circle at 78% 82%, rgba(255,255,255,0.01), transparent 26%);
  opacity: 0.72;
  animation: ambientFloatB 29s ease-in-out infinite alternate;
}

.vignette {
  background: radial-gradient(circle at center, transparent 38%, rgba(0,0,0,0.24) 100%);
}

.grain {
  opacity: 0.045;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='180' height='180' filter='url(%23n)' opacity='1'/></svg>");
  background-size: 220px 220px;
}

.glow {
  inset: auto;
  border-radius: 999px;
  filter: blur(64px);
  will-change: transform, opacity;
}

.glow-a {
  left: 10%;
  top: 14%;
  width: 260px;
  height: 260px;
  background: var(--glow-soft);
  animation: pulseA 18s ease-in-out infinite alternate;
}

.glow-b {
  right: 12%;
  top: 24%;
  width: 180px;
  height: 180px;
  background: var(--glow);
  animation: pulseB 24s ease-in-out infinite alternate;
}

.stage-wrap {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 5vh 24px;
  text-align: center;
}

.stage-block {
  display: grid;
  justify-items: center;
  align-items: center;
  row-gap: 0px;
  width: min(72vw, 720px);
  max-width: 720px;
  margin: 0 auto;
}

.stage {
  width: 100%;
  max-width: 100%;
  display: grid;
  place-items: center;
  margin: 0 auto;
}

.logo-sequence {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  user-select: none;
  filter: drop-shadow(0 0 16px rgba(255,255,255,0.045));
}

.hello-row {
  display: flex;
  justify-content: center;
  align-items: center;
  justify-self: center;
  width: 100%;
  max-width: 100%;
  margin-top: -28px;
}

.hello-link {
  display: inline-block;
  color: rgba(251,251,251,0.82);
  text-decoration: none;
  text-transform: lowercase;
  letter-spacing: 0.16em;
  font-size: 13px;
  font-weight: 300;
  transition:
    color 220ms ease,
    letter-spacing 220ms ease,
    transform 220ms ease,
    text-shadow 220ms ease;
}

.hello-link:hover,
.hello-link:focus-visible {
  color: rgba(251,251,251,1);
  letter-spacing: 0.2em;
  transform: translateY(-1px);
  text-shadow: 0 0 12px rgba(255,255,255,0.12);
  outline: none;
}

@keyframes ambientFloatA {
  0% { transform: translate3d(-3%, -2%, 0) scale(1); }
  50% { transform: translate3d(2.2%, 2.8%, 0) scale(1.05); }
  100% { transform: translate3d(-1.5%, 4%, 0) scale(1.03); }
}

@keyframes ambientFloatB {
  0% { transform: translate3d(2.5%, -1.5%, 0) scale(1); }
  50% { transform: translate3d(-2%, 2.2%, 0) scale(1.04); }
  100% { transform: translate3d(3%, -2.2%, 0) scale(1.02); }
}

@keyframes pulseA {
  0% { transform: translate3d(0,0,0) scale(1); opacity: 0.22; }
  50% { transform: translate3d(18px,-12px,0) scale(1.06); opacity: 0.32; }
  100% { transform: translate3d(-12px,14px,0) scale(1.03); opacity: 0.24; }
}

@keyframes pulseB {
  0% { transform: translate3d(0,0,0) scale(1); opacity: 0.18; }
  50% { transform: translate3d(-14px,10px,0) scale(1.06); opacity: 0.3; }
  100% { transform: translate3d(12px,-12px,0) scale(1.04); opacity: 0.22; }
}

@media (prefers-reduced-motion: reduce) {
  .page-bg::before,
  .page-bg::after,
  .glow-a,
  .glow-b {
    animation: none;
  }
}

@media (max-width: 900px) {
  .stage-block {
    width: min(80vw, 640px);
  }
}

@media (max-width: 640px) {
  .stage-wrap {
    padding: 4vh 20px;
  }

  .stage-block {
    width: min(88vw, 520px);
    row-gap: 0px;
  }

  .hello-link {
    font-size: 12px;
    letter-spacing: 0.12em;
  }

  .glow-a {
    width: 180px;
    height: 180px;
  }

  .glow-b {
    width: 120px;
    height: 120px;
  }
}
