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

.desterro-logo {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6f8ba4;
  text-decoration: none;
  z-index: 1001;
  white-space: nowrap;
  display: inline-grid;
  place-items: center;
  text-align: center;
  width: max-content;
}

.desterro-logo__short,
.desterro-logo__full {
  grid-area: 1 / 1;
  justify-self: center;
  align-self: center;
  transition: opacity 0.5s ease-in-out;
}

.desterro-logo__short {
  opacity: 0.35;
}

.desterro-logo__full {
  opacity: 0;
}

.desterro-logo:hover .desterro-logo__short {
  opacity: 0;
}

.desterro-logo:hover .desterro-logo__full {
  opacity: 0.65;
}

@media (max-width: 640px) {
  .desterro-logo {
    bottom: 1rem;
    font-size: 0.7rem;
  }
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-word {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: min(66vh, 26vw);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  overflow: hidden;
  transform: scaleY(2.2);
  color: #0d161e;
  position: relative;
}

.hero-word__text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation-duration: 3s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

.hero-word__text--slow {
  animation-name: heroWordSlow;
}

.hero-word__text--stays {
  animation-name: heroWordStays;
}

.hero-word__text--bath {
  animation-name: heroWordBath;
}

.hero-word__text--house {
  animation-name: heroWordHouse;
}

@keyframes heroWordSlow {
  0%,
  24.99% {
    opacity: 1;
  }
  25%,
  100% {
    opacity: 0;
  }
}

@keyframes heroWordStays {
  0%,
  24.99% {
    opacity: 0;
  }
  25%,
  49.99% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes heroWordBath {
  0%,
  49.99% {
    opacity: 0;
  }
  50%,
  74.99% {
    opacity: 1;
  }
  75%,
  100% {
    opacity: 0;
  }
}

@keyframes heroWordHouse {
  0%,
  74.99% {
    opacity: 0;
  }
  75%,
  100% {
    opacity: 1;
  }
}
