:root {
  --page-black: #020303;
  --footer-height: clamp(5.5rem, 9vh, 7.2rem);
  --brand-size: clamp(13.75rem, 25vw, 27rem);
  --accent-gradient: linear-gradient(90deg, #ff0000, #ff6600, #ffcc00, #00ff00, #0099ff, #6633ff, #ff0000);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page-black);
  font-family: "Unbounded", Arial, Helvetica, sans-serif;
}

.construction-page {
  position: relative;
  overflow: hidden;
  background-color: var(--page-black);
  background-image:
    radial-gradient(circle at center, rgba(255, 255, 255, .04), rgba(0, 0, 0, .24) 56%, rgba(0, 0, 0, .58)),
    url("../../content/bg.jpg");
  background-position: center;
  background-size: cover;
  animation: pageIn .7s ease-out both;
}

.loading-stage {
  min-height: calc(90svh - var(--footer-height));
  padding-top: clamp(2rem, 5vh, 5rem);
  padding-bottom: clamp(2rem, 6vh, 4.5rem);
}

.brand-lockup {
  position: relative;
  width: var(--brand-size);
  aspect-ratio: 469.21 / 463.28;
  animation: markEntrance .8s cubic-bezier(.18, .9, .2, 1) both, logoBreath 4.6s ease-in-out .9s infinite;
  filter:
    drop-shadow(0 0 .8rem rgba(255, 255, 255, .12))
    drop-shadow(0 0 2.5rem rgba(255, 255, 255, .08));
}

.brand-layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.outer-spin {
  animation: logoOrbit 12s linear infinite;
  transform-origin: 50% 50%;
}

.ring {
  animation: fadeIn .45s ease-out both, colorWheelSpin 8s linear infinite;
  transform-origin: 50% 50%;
}

.color-wheel {
  animation: fadeIn .55s ease-out .1s both, colorGlow 3.2s ease-in-out .8s infinite, colorWheelSpin 8s linear infinite;
  transform-origin: 50% 50%;
}

.word-ring {
  animation: fadeIn .55s ease-out .08s both, textPulse 3.2s ease-in-out .8s infinite;
}

.lion {
  animation: lionPop .75s cubic-bezier(.16, .9, .2, 1) .12s both;
}

.loading-heading {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  color: #fff;
  font-size: 46px;
  font-weight: 800;
  line-height: .92;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 .12rem 0 rgba(255, 255, 255, .25),
    0 0 1.2rem rgba(255, 255, 255, .16);
  animation: headingIn .75s ease-out .26s both;
}

.loading-heading span:first-child {
  background: linear-gradient(90deg, #fff 0%, #fff 38%, #bcbcbc 50%, #fff 62%, #fff 100%);
  background-size: 240% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: headingShine 2.8s ease-in-out infinite;
}

.loading-dots {
  display: inline-block;
  width: 1.05em;
  color: #fff;
  text-align: left;
}

.rainbow-rule {
  width: 100%;
  height: clamp(.42rem, .78vw, .62rem);
  background: var(--accent-gradient);
  background-position: center;
  background-repeat: repeat-x;
  background-size: auto 100%;
  box-shadow:
    0 0 1.15rem rgba(0, 240, 255, .35),
    0 0 .7rem rgba(255, 0, 132, .18);
  animation: ruleSweep 1.2s ease-out both, ruleMove 12s linear 1.2s infinite;
}

.page-footer {
  min-height: var(--footer-height);
}

.footer-copy {
  color: #fff;
  font-size: 25px;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 0 1rem rgba(255, 255, 255, .14);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #fff;
  text-decoration: none;
  transition: opacity .2s ease, transform .2s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  opacity: .78;
  transform: translateY(-2px);
}

.social-links img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.social-links i {
  display: block;
  font-size: 30px;
  line-height: 1;
}

@keyframes pageIn {
  from {
    background-color: #000;
    filter: brightness(.65);
  }

  to {
    background-color: var(--page-black);
    filter: brightness(1);
  }
}

@keyframes markEntrance {
  from {
    opacity: 0;
    transform: scale(.88);
  }

  60% {
    opacity: 1;
    transform: scale(1.025);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes logoOrbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes colorWheelSpin {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes lionPop {
  from {
    opacity: 0;
    transform: scale(.62);
    filter: blur(.2rem);
  }

  62% {
    opacity: 1;
    transform: scale(1.06);
    filter: blur(0);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes colorGlow {
  0%,
  100% {
    filter: saturate(1.08) brightness(1);
  }

  50% {
    filter: saturate(1.32) brightness(1.18);
  }
}

@keyframes textPulse {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.18);
  }
}

@keyframes logoBreath {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-.35rem) scale(1.012);
  }
}

@keyframes headingIn {
  from {
    opacity: 0;
    transform: translateY(.7rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes headingShine {
  0%,
  42% {
    background-position: 130% 0;
  }

  100% {
    background-position: -80% 0;
  }
}

@keyframes ruleSweep {
  from {
    opacity: 0;
    transform: scaleX(0);
  }

  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes ruleMove {
  to {
    background-position: 100vw center;
  }
}

@media (max-width: 575.98px) {
  :root {
    --footer-height: 8rem;
    --brand-size: clamp(12.25rem, 72vw, 18rem);
  }

  .loading-heading {
    flex-wrap: wrap;
    max-width: 18rem;
  }

  .footer-copy {
    max-width: 21rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
