/* Keyframes and motion-related UI */

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(197, 255, 69, 0.6);
  }
  70%,
  100% {
    box-shadow: 0 0 0 10px rgba(197, 255, 69, 0);
  }
}
@keyframes drop {
  0% {
    transform: translateY(-100%);
  }
  60%,
  100% {
    transform: translateY(100%);
  }
}
@keyframes mq {
  to {
    transform: translateX(-50%);
  }
}

/* Preloader, page-transition curtain and custom cursor */
.pre {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: var(--pad);
}
.pre-wrap {
  overflow: hidden;
}
.pre-w {
  display: block;
  font: 800 clamp(2rem, 8vw, 7rem)/1.05 var(--f-h);
  letter-spacing: 0.04em;
}
.pre-n {
  font: 500 clamp(2rem, 8vw, 7rem)/1.05 var(--f-h);
  color: var(--ac);
  font-variant-numeric: tabular-nums;
}
.pt {
  position: fixed;
  inset: 0;
  background: var(--ac);
  z-index: 150;
  visibility: hidden;
  pointer-events: none;
}
.cur-d,
.cur-r {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 300;
  display: none;
}
.has-cur .cur-d,
.has-cur .cur-r {
  display: block;
}
.cur-d {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--ac);
}
.cur-r {
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
}
.cur-r i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(245, 243, 239, 0.6);
  border-radius: 50%;
  transition:
    transform 0.5s var(--ease),
    background 0.3s,
    border-color 0.3s;
}
.cur-r span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 600 0.6rem var(--f-b);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000;
  opacity: 0;
  transition: opacity 0.3s;
}
.cur-r.on i {
  transform: scale(1.7);
}
.cur-r.lbl-on i {
  transform: scale(2.5);
  background: var(--ac);
  border-color: var(--ac);
}
.cur-r.lbl-on span {
  opacity: 1;
}
.has-cur,
.has-cur a,
.has-cur button,
.has-cur input,
.has-cur select,
.has-cur textarea {
  cursor: none;
}
.magnetic {
  transition:
    transform 0.3s var(--ease),
    background 0.4s,
    color 0.4s,
    border-color 0.4s;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .mq {
    animation: none;
  }
}
