*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html,
body {
  height: 100%;
}

body {
  background: #faf9f6;
  color: #111111;
  font-family: "Switzer", system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  cursor: default;
  user-select: none;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.cutout {
  position: absolute;
  top: 0;
  left: var(--x);
  width: var(--w);
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(17, 17, 17, 0.12));
  transform: translate(-50%, -40vh) rotate(var(--r0));
  animation: fall var(--dur) cubic-bezier(0.16, 0.84, 0.32, 1) var(--delay) both;
  will-change: transform;
}

@keyframes fall {
  from {
    transform: translate(-50%, -42vh) rotate(var(--r0));
    opacity: 0;
  }

  14% {
    opacity: 1;
  }

  to {
    transform: translate(-50%, var(--y)) rotate(var(--r1));
    opacity: 1;
  }
}

.stage {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(92vw, 56rem);
  pointer-events: none;
}

.logotype {
  margin: 0;
  font-family: "Switzer", system-ui, sans-serif;
  font-size: var(
    --logotype-size,
    min(calc((100vw - 8vw) / 4.8), 28vh)
  );
  font-weight: 400;
  font-kerning: normal;
  font-feature-settings: "kern" 1;
  letter-spacing: -0.045em;
  line-height: 0.85;
  white-space: nowrap;
  text-align: center;
  color: #111111;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.tagline {
  margin: calc(2.15rem + 45px) 0 0;
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
  color: rgba(17, 17, 17, 0.72);
  opacity: 0;
  transition: opacity 1s ease;
}

.status {
  position: fixed;
  left: 50%;
  bottom: max(1.5rem, env(safe-area-inset-bottom, 0px) + 1rem);
  z-index: 3;
  transform: translateX(-50%);
  margin: 0;
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

body.is-logo .logotype,
body.is-tagline .logotype,
body.is-tagline .tagline,
body.is-ready .logotype,
body.is-ready .tagline,
body.is-ready .status {
  opacity: 1;
}

@media (max-width: 720px) {
  .tagline {
    margin-top: calc(1.65rem + 45px);
    font-size: 0.72rem;
  }

  .status {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cutout {
    animation: none;
    transform: translate(-50%, var(--y)) rotate(var(--r1));
  }

  .logotype,
  .tagline,
  .status {
    transition: none;
    opacity: 1;
  }
}
