* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
}

:root {
  --bg-1: #c7c7c7;
  --bg-2: #a9a9a9;
  --bg-3: #8f8f8f;
}

body {
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,0.28), transparent 26%),
    radial-gradient(circle at 75% 72%, rgba(255,255,255,0.14), transparent 24%),
    linear-gradient(145deg, var(--bg-1) 0%, var(--bg-2) 45%, var(--bg-3) 100%);
}

.stage {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  isolation: isolate;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  z-index: 0;
  pointer-events: none;
}

.glow-1 {
  width: min(34vw, 360px);
  height: min(34vw, 360px);
  background: rgba(255, 255, 255, 0.22);
  left: 18%;
  top: 20%;
  animation: drift 10s ease-in-out infinite;
}

.glow-2 {
  width: min(28vw, 300px);
  height: min(28vw, 300px);
  background: rgba(120, 180, 255, 0.14);
  right: 18%;
  bottom: 18%;
  animation: drift 12s ease-in-out infinite reverse;
}

.logo {
  position: relative;
  z-index: 1;
  display: block;
  width: min(48.375vw, 483.75px);
  height: auto;
  max-height: 78vh;
  filter:
    drop-shadow(0 22px 36px rgba(0, 0, 0, 0.20))
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.16));
  animation: intro 1.15s ease-out both;
  transition: transform 220ms ease, filter 220ms ease;
}

.logo:hover {
  transform: scale(1.015);
  filter:
    drop-shadow(0 24px 40px rgba(0, 0, 0, 0.24))
    drop-shadow(0 0 22px rgba(255, 255, 255, 0.18));
}

@keyframes intro {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes drift {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(16px, -10px, 0);
  }
}

@media (max-width: 768px) {
  .stage {
    padding: 18px;
  }

  .logo {
    width: min(92vw, 560px);
    max-height: 68vh;
  }

  .glow-1 {
    left: 8%;
    top: 18%;
  }

  .glow-2 {
    right: 6%;
    bottom: 14%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo,
  .glow-1,
  .glow-2 {
    animation: none;
    transition: none;
  }
}
