.brand-wordmark {
  display: block;
  line-height: 0;
}

.brand-wordmark img {
  display: block;
  width: 330px;
  height: auto;
  max-width: min(44vw, 330px);
  object-fit: contain;
  object-position: left center;
}

.visual-label {
  z-index: 5;
  align-items: center;
}

.visual-label b {
  flex: 0 0 auto;
  margin-left: 1rem;
}

.hero h1 em {
  display: inline-block;
  white-space: nowrap;
}

.hero .lead {
  width: max-content;
  max-width: 100%;
}

.contact h2 {
  font-size: clamp(2.3rem, 3.2vw, 3.4rem);
}

.game-screen {
  position: absolute;
  top: 55%;
  right: 30px;
  left: 30px;
  z-index: 2;
  margin: 0;
  overflow: hidden;
  border-radius: 15px;
  background: #102f2b;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.28);
  transform: translateY(-50%);
}

.game-screen img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  object-position: center center;
  background: #176b4b;
}

.game-screen figcaption {
  display: block;
  min-height: 42px;
  padding: 0.65rem 7rem 0.55rem 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
}

.app-icon {
  position: absolute;
  right: 18px;
  bottom: 26px;
  z-index: 3;
  width: clamp(76px, 18%, 112px);
  aspect-ratio: 1;
  border: 4px solid var(--paper);
  border-radius: 24%;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
  transform: rotate(-4deg);
}

footer {
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1fr) minmax(220px, 1fr);
  align-items: center;
  column-gap: 2rem;
  row-gap: 1.5rem;
}

.footer-wordmark {
  min-width: 0;
  max-width: 100%;
  justify-self: start;
  line-height: 0;
}

.footer-wordmark img {
  display: block;
  width: 290px;
  height: auto;
  max-width: 100%;
}

.footer-tagline {
  justify-self: center;
  margin: 0;
  text-align: center;
}

.footer-links {
  justify-self: end;
}

footer .legal {
  grid-column: 1 / -1;
  margin: 0;
  text-align: left;
}

@media (max-width: 860px) {
  footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-tagline {
    justify-self: end;
    text-align: right;
  }

  .footer-links {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 1100px) {
  .hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
  }

  .game-visual {
    min-height: 0;
  }

  .game-screen {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    margin: 1.15rem 0 3.35rem;
    transform: none;
  }
}

@media (max-width: 540px) {
  .brand-wordmark img {
    width: 270px;
    max-width: 58vw;
  }

  .game-visual {
    min-height: 0;
  }

  .game-screen {
    top: auto;
    right: auto;
    left: auto;
    margin: 1rem 0 3rem;
    transform: none;
  }

  .app-icon {
    right: 10px;
    bottom: 20px;
    width: 78px;
    border-width: 3px;
  }

  .game-screen figcaption {
    min-height: 38px;
    padding: 0.55rem 5.5rem 0.45rem 0.7rem;
    font-size: 0.58rem;
  }

  footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-wordmark,
  .footer-tagline,
  .footer-links {
    grid-column: 1;
    justify-self: start;
    text-align: left;
  }

  .footer-wordmark img {
    width: 260px;
    height: auto;
  }
}
