* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #000;
}

.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #000;
}

.backgrounds {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.background {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  z-index: 0;
  transition: opacity 800ms ease-in-out;
  pointer-events: none;
  user-select: none;
}

.background.is-previous {
  opacity: 1;
  z-index: 1;
}

.background.is-active {
  opacity: 1;
  z-index: 2;
}

.logo {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: block;
  width: 25vw;
  height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
}

@media (max-width: 768px) {
  .logo {
    width: 50vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .background {
    transition: none;
  }
}
