:root {
  color-scheme: dark;
  font-family: "Arial Black", Impact, sans-serif;
  background: #080808;
  color: #f5f1e9;
}

* {
  box-sizing: border-box;
}

body {
  display: grid;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 15%, #17285c 0, transparent 28rem),
    radial-gradient(circle at 85% 80%, #183d37 0, transparent 32rem),
    #080808;
  background-size: 140% 140%;
  animation: background-drift 16s ease-in-out infinite alternate;
}

.hero {
  position: relative;
  display: grid;
  align-content: center;
  width: min(100%, 100rem);
  min-height: 100vh;
  margin-inline: auto;
  padding: clamp(1.5rem, 5vw, 5rem);
  isolation: isolate;
}

.hero__particles {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__particle {
  position: absolute;
  width: 0.5rem;
  aspect-ratio: 1;
  opacity: 0;
  background: #79d2bd;
  box-shadow: 0 0 1rem #79d2bd;
  transform: rotate(45deg);
  animation: particle-float 12s linear infinite;
}

.hero__particle--one {
  top: 20%;
  animation-delay: -1s;
}

.hero__particle--two {
  top: 55%;
  width: 0.35rem;
  background: #847ce9;
  box-shadow: 0 0 1rem #847ce9;
  animation-delay: -6s;
}

.hero__particle--three {
  top: 82%;
  width: 0.65rem;
  animation-delay: -9s;
}

.hero__eyebrow,
.hero__tagline {
  margin: 0;
  font-family: Georgia, serif;
  font-style: italic;
  letter-spacing: 0;
}

.hero__eyebrow {
  color: #f0ad41;
  font-size: clamp(1rem, 2vw, 1.5rem);
  animation: reveal 700ms 100ms both;
}

.hero__title {
  max-width: 100%;
  margin: 0.05em 0;
  color: #f5f1e9;
  font-size: clamp(2rem, 13vw, 12rem);
  line-height: 0.82;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow: 0.06em 0.06em #5b58c9;
  animation: title-arrival 850ms 180ms both, shadow-shift 4s 1s ease-in-out infinite alternate;
  transition: transform 250ms ease;
}

.hero__title:hover {
  transform: rotate(-1deg) translateX(0.02em);
}

.hero__tagline {
  justify-self: end;
  color: #79d2bd;
  font-size: clamp(1.4rem, 3.5vw, 3rem);
  animation: reveal 700ms 450ms both;
}

.hero__test-link {
  justify-self: start;
  margin-top: clamp(2rem, 6vh, 5rem);
  padding: 0.55em 0;
  border-bottom: 0.14em solid #f0ad41;
  color: #f5f1e9;
  font-family: Georgia, serif;
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  font-style: italic;
  letter-spacing: 0;
  text-decoration: none;
  animation: reveal 700ms 650ms both;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.hero__test-link span {
  display: inline-block;
  color: #f0ad41;
  font-family: "Arial Black", Impact, sans-serif;
  font-style: normal;
  transition: transform 180ms ease;
}

.hero__test-link:hover {
  border-color: #79d2bd;
  color: #79d2bd;
  transform: translateX(0.2rem);
}

.hero__test-link:hover span {
  transform: translateX(0.3rem);
}

.hero__test-link:focus-visible {
  outline: 0.16rem solid #f0ad41;
  outline-offset: 0.28rem;
}

@keyframes background-drift {
  from {
    background-position: 0% 0%;
  }

  to {
    background-position: 100% 100%;
  }
}

@keyframes particle-float {
  0% {
    opacity: 0;
    translate: -5vw 18vh;
  }

  15%, 75% {
    opacity: 0.8;
  }

  100% {
    opacity: 0;
    translate: 110vw -15vh;
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    translate: 0 1rem;
  }

  to {
    opacity: 1;
    translate: 0;
  }
}

@keyframes title-arrival {
  from {
    opacity: 0;
    transform: translateY(2rem) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes shadow-shift {
  from {
    text-shadow: 0.06em 0.06em #5b58c9;
  }

  to {
    text-shadow: -0.04em 0.06em #2c9c9a;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 13vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}