.hero::before {
  content: "";
  position: absolute;
  inset: -8rem -6rem auto;
  height: 30rem;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38rem 22rem at 32% 35%,
      rgba(217, 173, 82, 0.09), transparent 65%),
    radial-gradient(30rem 20rem at 72% 22%,
      rgba(139, 167, 163, 0.07), transparent 65%);
  filter: blur(48px);
  animation: aurora 19s ease-in-out infinite alternate;
}

@keyframes aurora {
  from {
    transform: translate3d(-3%, 0, 0) scale(1);
  }
  to {
    transform: translate3d(3%, 4%, 0) scale(1.07);
  }
}

.brand .mark-stem {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: draw 0.6s ease-out 0.15s forwards;
}

.brand .mark-high {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw 0.7s ease-out 0.55s forwards;
}

.brand .mark-low {
  opacity: 0;
  animation: appear 0.45s ease-out 1.1s forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes appear {
  to {
    opacity: 1;
  }
}

.top-links a {
  background: linear-gradient(currentColor, currentColor)
    no-repeat 50% calc(100% - 0.1em) / 0 1px;
  transition: background-size 0.25s ease, color 0.2s;
}

.top-links a:hover {
  background-size: 100% 1px;
}

.card:hover {
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(217, 173, 82, 0.07);
}

.theme-strip img {
  transition: border-color 0.25s, transform 0.25s;
}

.theme-strip figure:hover img {
  transform: translateY(-3px);
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--stagger, 0ms);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.term-caret {
  animation: blink 1.1s steps(2, start) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.term-list li {
  transition: opacity 0.35s ease, background 0.35s ease;
}

.term.filtered .term-list li:not(.hit) {
  opacity: 0;
}

.term.filtered .term-list li.hit {
  background: rgba(217, 173, 82, 0.08);
}

.term.filtered .term-list li:nth-child(2) {
  transition-delay: 40ms;
}

.term.filtered .term-list li:nth-child(3) {
  transition-delay: 80ms;
}

.term.filtered .term-list li:nth-child(5) {
  transition-delay: 120ms;
}

.term.filtered .term-list li:nth-child(6) {
  transition-delay: 160ms;
}

.term.filtered .term-list li:nth-child(7) {
  transition-delay: 200ms;
}

@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none;
  }
  .brand .mark-stem, .brand .mark-high {
    stroke-dashoffset: 0;
    animation: none;
  }
  .brand .mark-low {
    opacity: 1;
    animation: none;
  }
  .js .reveal, .js .reveal.in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .term-caret {
    animation: none;
  }
  .term-list li, .btn, .card, .theme-strip img,
  .top-links a {
    transition: none;
  }
}
