/* Scroll reveal and grounding are scoped to the certificate folders only. */
.glass-cert-folder {
  transform: translate3d(0, 30px, 0) scale(.96);
  transition: opacity 1.05s cubic-bezier(.2, .75, .25, 1);
  will-change: opacity, transform;
}

@keyframes certFolderReveal {
  0% {
    opacity: 0;
    transform: translate3d(0, 30px, 0) scale(.96);
  }
  68% {
    opacity: 1;
    transform: translate3d(0, -3px, 0) scale(1.006);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes certFolderShadowReveal {
  0% { opacity: .08; transform: translateX(-50%) scale(.72); }
  100% { opacity: .78; transform: translateX(-50%) scale(1); }
}

.glass-cert-folder::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -9px;
  width: 78%;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(37, 49, 67, .19) 0%, rgba(37, 49, 67, .1) 43%, rgba(37, 49, 67, 0) 76%);
  filter: blur(8px);
  opacity: .35;
  transform: translateX(-50%) scale(.88);
  pointer-events: none;
  transition:
    opacity .9s ease,
    transform .9s cubic-bezier(.2, .75, .25, 1);
}

.glass-cert-folder.is-visible {
  animation: certFolderReveal 1.05s cubic-bezier(.2, .75, .25, 1) both;
  transform: translate3d(0, 0, 0) scale(1);
  will-change: auto;
}

.glass-cert-folder.is-visible::after {
  animation: certFolderShadowReveal .95s ease-out .12s both;
  opacity: .78;
  transform: translateX(-50%) scale(1);
}

.glass-cert-folder:nth-child(2) {
  transition-delay: .16s;
}

.glass-cert-folder:nth-child(2).is-visible {
  animation-delay: .16s;
}

.glass-cert-folder:nth-child(2)::after {
  transition-delay: .16s;
}

.glass-cert-folder:nth-child(2).is-visible::after {
  animation-delay: .28s;
}

@media (max-width: 700px) {
  .glass-cert-folder:nth-child(2),
  .glass-cert-folder:nth-child(2)::after,
  .glass-cert-folder:nth-child(2).is-visible,
  .glass-cert-folder:nth-child(2).is-visible::after {
    transition-delay: 0s;
    animation-delay: 0s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glass-cert-folder,
  .glass-cert-folder::after {
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
  }

  .glass-cert-folder {
    opacity: 1;
    transform: none;
    will-change: auto;
  }
}
