.cfi-loader {
  display: none;
}

@keyframes cfiLoaderIn {
  from { opacity: 0; transform: scale(.72); }
  60% { opacity: 1; }
  to { opacity: 1; transform: scale(1); }
}

@keyframes cfiLoaderBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.cfi-loader:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid !important;
  width: 100vw;
  height: 100vh;
  place-items: center;
  overflow: hidden;
  background: #f7f1e6;
  opacity: 1;
  transform: translateY(0);
  transition:
    transform .82s cubic-bezier(.7, 0, .25, 1),
    opacity .62s ease;
}

.cfi-loader::before,
.cfi-loader::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.cfi-loader::before {
  top: 0;
  right: 24px;
  width: clamp(96px, 15vw, 142px);
  aspect-ratio: 1;
  border-radius: 0 0 999px 999px;
  background: #c8d8e2;
}

.cfi-loader::after {
  bottom: 0;
  left: 0;
  width: clamp(82px, 13vw, 122px);
  aspect-ratio: 1;
  border-radius: 0 999px 0 0;
  background: #a8b394;
}

.cfi-loader.is-leaving {
  opacity: 0;
  transform: translateY(-101%);
}

.cfi-loader-lockup {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 32px;
}

.cfi-loader-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  animation: cfiLoaderIn .7s .12s cubic-bezier(.2, .9, .3, 1.2) both;
}

.cfi-loader-boundlearn,
.cfi-loader-program {
  display: block;
  width: 112px;
  height: auto;
  object-fit: contain;
}

.cfi-loader-divider {
  width: 1px;
  height: 40px;
  background: #d4af37;
}

.cfi-loader-accent {
  display: flex;
  min-height: 12px;
  align-items: center;
  gap: 14px;
  animation: cfiLoaderIn .7s .24s ease both;
}

.cfi-loader-accent span {
  width: 10px;
  height: 10px;
  animation: cfiLoaderBob 1s ease-in-out infinite;
}

.cfi-loader-accent span:nth-child(1) {
  border-radius: 999px;
  background: #c96b4f;
}

.cfi-loader-accent span:nth-child(2) {
  border-radius: 2px;
  background: #d4af37;
  animation-delay: .15s;
}

.cfi-loader-accent span:nth-child(3) {
  border-radius: 999px 999px 0 0;
  background: #a9c2d3;
  animation-delay: .3s;
}

@media (min-width: 600px) and (max-width: 1180px) {
  .cfi-loader-logos {
    gap: 20px;
  }

  .cfi-loader-boundlearn {
    width: 134px;
  }

  .cfi-loader-program {
    width: 142px;
  }

  .cfi-loader-divider {
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cfi-loader,
  .cfi-loader-logos,
  .cfi-loader-accent,
  .cfi-loader-accent span {
    animation: none;
    transition-duration: 1ms;
  }
}
