/* ==========================================================
   LOADING SCREEN
   The animated intro with the PCCL logo wipe + rolling ball. (id="intro" in index.html)
========================================================== */

#intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity .8s,visibility .8s;
}

#intro.out {
  opacity: 0;
  visibility: hidden;
}

#intro .lw {
  position: relative;
  width: min(44vw,230px);
}

#intro img {
  width: 100%;
  display: block;
  clip-path: inset(0 100% 0 0);
  animation: wipe 1.4s .5s cubic-bezier(.7,0,.2,1) forwards;
}

#intro .ball {
  position: absolute;
  top: 50%;
  left: 0;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,#ff7a3c,#c2260f);
  box-shadow: 0 6px 16px rgba(255,90,0,.5);
  opacity: 0;
  animation: roll 1.4s .5s cubic-bezier(.7,0,.2,1) forwards;
}

#intro .bar {
  width: min(44vw,230px);
  height: 2px;
  background: var(--ln);
  margin-top: 26px;
  overflow: hidden;
}

#intro .bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--or);
  animation: load 2.6s .3s ease forwards;
}

#intro .s1 {
  margin-top: 18px;
  font: 600 13px Poppins;
  letter-spacing: .5em;
  color: var(--or);
  opacity: 0;
  animation: fade .7s 1.9s forwards;
}

@keyframes wipe {
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes load {
  to {
    width: 100%;
  }
}

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

@keyframes roll {
  0% {
    opacity: 1;
    left: 0;
    transform: rotate(0);
  }
  99% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    left: calc(100% - 26px);
    transform: rotate(720deg);
  }
}
