@font-face {
  font-family: "Nush Motion";
  src: url("/fonts/NushMotion-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  ascent-override: 70%;
  descent-override: 0%;
  line-gap-override: 0%;
}

:root {
  color-scheme: dark;
  background: #000;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #000; }

main {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: clip;
}

.logo {
  margin: 0;
  display: flex;
  font-family: "Nush Motion", sans-serif;
  font-size: clamp(2.8rem, 16vw, 9rem);
  font-style: normal;
  font-weight: 400;
  font-synthesis: none;
  font-variant-ligatures: common-ligatures;
  font-feature-settings: "liga" 1;
  line-height: 1;
  letter-spacing: 0;
  color: #f4efff;
  text-shadow: none;
  animation: glow-awaken .8s 1.8s ease-out both, aurora-glow 6s 2.6s ease-in-out infinite;
}

.logo-letter { display: block; animation: letter-fall .95s cubic-bezier(.22,.6,.35,1) both; }
.logo-letter:nth-child(1) { animation-delay: .08s; }
.logo-letter:nth-child(2) { animation-delay: .28s; }
.logo-letter:nth-child(3) { animation-delay: .48s; }
.logo-letter:nth-child(4) { animation-delay: .68s; }

@keyframes letter-fall {
  0% { opacity: 0; transform: translate3d(0,-70svh,0) rotate(-9deg); }
  10% { opacity: 1; }
  68% { opacity: 1; transform: translate3d(0,7px,0) rotate(2deg) scaleY(.95); }
  84% { opacity: 1; transform: translate3d(0,-7px,0) rotate(-1deg); }
  100% { opacity: 1; transform: none; }
}

@keyframes glow-awaken {
  from {
    text-shadow:
      0 0 5px rgb(245 221 255 / 0%),
      -8px 0 20px rgb(140 66 255 / 0%),
      9px 3px 36px rgb(206 54 255 / 0%),
      -12px -4px 58px rgb(92 30 220 / 0%);
  }
  to {
    text-shadow:
      0 0 5px rgb(245 221 255 / 55%),
      -8px 0 20px rgb(140 66 255 / 80%),
      9px 3px 36px rgb(206 54 255 / 50%),
      -12px -4px 58px rgb(92 30 220 / 25%);
  }
}

@keyframes aurora-glow {
  0%, 100% {
    text-shadow:
      0 0 5px rgb(245 221 255 / 55%),
      -8px 0 20px rgb(140 66 255 / 80%),
      9px 3px 36px rgb(206 54 255 / 50%),
      -12px -4px 58px rgb(92 30 220 / 25%);
  }
  33% {
    text-shadow:
      0 0 7px rgb(251 232 255 / 75%),
      9px -4px 25px rgb(199 72 255 / 95%),
      -10px 5px 44px rgb(110 54 255 / 65%),
      14px 0 64px rgb(175 30 240 / 35%);
  }
  66% {
    text-shadow:
      0 0 6px rgb(237 222 255 / 65%),
      5px 5px 22px rgb(118 74 255 / 90%),
      -12px -3px 40px rgb(222 60 255 / 60%),
      0 8px 60px rgb(132 28 240 / 30%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo, .logo-letter { animation: none; opacity: 1; transform: none; }
  .logo { text-shadow: 0 0 6px #b580d980, 0 0 24px #9142d960; }
}

