@keyframes blc-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes blc-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 1.1rem, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes blc-rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes blc-drift-one {
  0%,
  100% {
    transform: translate3d(-3%, -2%, 0) scale(1);
  }
  50% {
    transform: translate3d(3%, 2.5%, 0) scale(1.06);
  }
}

@keyframes blc-drift-two {
  0%,
  100% {
    transform: translate3d(2%, 1.5%, 0) scale(1.04);
  }
  50% {
    transform: translate3d(-2.5%, -2%, 0) scale(0.98);
  }
}

@keyframes blc-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.site-header {
  animation: blc-fade var(--duration-slow) var(--ease-out) both;
}

.hero__eyebrow {
  animation: blc-rise 720ms var(--ease-out) 90ms both;
}

.hero__title {
  animation: blc-rise 820ms var(--ease-out) 180ms both;
}

.hero__lead {
  animation: blc-rise 820ms var(--ease-out) 300ms both;
}

.hero__thanks {
  animation: blc-rise 820ms var(--ease-out) 390ms both;
}

.hero__meta {
  animation: blc-rise 820ms var(--ease-out) 470ms both;
}

.hero__visual {
  animation: blc-rise 980ms var(--ease-out) 260ms both;
}

.site-footer {
  animation: blc-fade 900ms var(--ease-out) 620ms both;
}

@media (prefers-reduced-motion: no-preference) {
  .ambient__glow--one .ambient__drift {
    animation: blc-drift-one 30s ease-in-out infinite alternate;
  }

  .ambient__glow--two .ambient__drift {
    animation: blc-drift-two 38s ease-in-out infinite alternate;
  }

  .emblem__ring--outer {
    animation: blc-rotate 52s linear infinite;
  }

  .emblem__orbit {
    animation: blc-rotate 26s linear infinite reverse;
  }

  .status__dot {
    animation: blc-pulse 3.8s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header,
  .hero__eyebrow,
  .hero__title,
  .hero__lead,
  .hero__thanks,
  .hero__meta,
  .hero__visual,
  .site-footer {
    animation: none;
  }

  .ambient__glow--one .ambient__drift,
  .ambient__glow--two .ambient__drift,
  .emblem__ring--outer,
  .emblem__orbit,
  .status__dot {
    animation: none;
  }

  .lang__trigger,
  .lang__chevron,
  .lang__panel,
  .lang__item,
  .lang__marker,
  .skip-link {
    transition: none;
  }

  .emblem {
    transform: none;
  }
}
