/* --------------------------------------------------------------------------
   UI/UX — work in progress
   -------------------------------------------------------------------------- */
.ui-ux {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100dvh;
  overflow: hidden;
  padding: var(--space-page);
  position: relative;
}

.ui-ux .branding__header {
  left: var(--space-page);
  position: absolute;
  top: clamp(3rem, 6vw, 5.5rem);
  z-index: 3;
}

.ui-ux__bouncer {
  color: #979797;
  height: auto;
  left: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  width: clamp(3.5rem, 9vw, 5.5rem);
  will-change: transform;
  z-index: 1;
}

.ui-ux__bouncer svg {
  display: block;
  height: auto;
  width: 100%;
}

.ui-ux__message {
  color: var(--color-white);
  font-size: clamp(2rem, 5.3vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: normal;
  position: relative;
  text-align: center;
  white-space: nowrap;
  z-index: 2;
}

.ui-ux__dots {
  display: inline-block;
  min-width: 1.5em;
  text-align: left;
}

.ui-ux__dot {
  opacity: 0;
}

.ui-ux__dot:nth-child(1) {
  animation: ui-ux-dot-1 1.8s ease infinite;
}

.ui-ux__dot:nth-child(2) {
  animation: ui-ux-dot-2 1.8s ease infinite;
}

.ui-ux__dot:nth-child(3) {
  animation: ui-ux-dot-3 1.8s ease infinite;
}

@keyframes ui-ux-dot-1 {
  0%,
  8% {
    opacity: 0;
  }

  12%,
  88% {
    opacity: 1;
  }

  92%,
  100% {
    opacity: 0;
  }
}

@keyframes ui-ux-dot-2 {
  0%,
  28% {
    opacity: 0;
  }

  32%,
  88% {
    opacity: 1;
  }

  92%,
  100% {
    opacity: 0;
  }
}

@keyframes ui-ux-dot-3 {
  0%,
  48% {
    opacity: 0;
  }

  52%,
  88% {
    opacity: 1;
  }

  92%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ui-ux__bouncer {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    will-change: auto;
  }

  .ui-ux__dot {
    animation: none;
    opacity: 1;
  }
}
