* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: #ffffff;
  font-family: "Times New Roman", serif;
  position: fixed;
  inset: 0;
  overscroll-behavior: none;
  max-width: 100%;
  overflow-x: hidden;
  touch-action: pan-y;
}

html {
  -webkit-text-size-adjust: 100%;
}

main {
  width: 100%;
  max-width: 100%;
  height: 100vh;
  height: -webkit-fill-available;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;

  opacity: 0;
  transition: opacity 1.2s ease;
}

body.loaded main {
  opacity: 1;
}

.logo {
  width: min(840px, 100vw);
  max-width: 100%;
  height: auto;
}

p {
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.65;
  position: absolute;
  bottom: 12vh;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  text-align: center;
}

.background {
  animation: zoom;
  animation-duration: 10 s;
  transform-origin: center center;
  will-change: transform;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: -webkit-fill-available;
  object-fit: cover;
  z-index: -2;

  /*fallback image for iOS Low Power Mode*/
  background-image: url("poster.jpg");
  background-size: cover;
  background-position: center;
}

main::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  z-index: -1;
  pointer-events: none;
}

@keyframes zoom {
  from {
    transform: translate3d(0, 0, 0) scale(1.03);
  }

  to {
    transform: translate3d(0, 0, 0) scale(1.1);
  }
}

/* mobile specifically */
@media screen and (max-width: 768px) {
  .logo {
    width: 80vw;
  }

  p {
    font-size: 14px;
    letter-spacing: 0.32rem;
    bottom: 11vh;
  }
}
