/* Keep the living character inside the creator logo's arch at every size. */
body[data-product="firmware"] .hero {
  display: block;
  min-height: 0;
  padding-top: 24px;
  padding-bottom: 24px;
}

body[data-product="firmware"] .hero-art {
  width: min(100%, 420px);
  height: auto;
  min-height: 0;
  margin: 0 auto;
  padding-bottom: 34px;
}

.homunculus-accessible-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.hero-emblem > .hero-homunculus {
  position: absolute;
  left: 50%;
  top: 52.5%;
  width: 50%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-emblem > .hero-homunculus > img {
  display: block;
  position: static;
  width: 100%;
  height: auto;
  max-width: none;
  border-radius: 0;
  filter: none;
  mix-blend-mode: normal;
  image-rendering: pixelated;
}

/* The supplied laboratory scene follows the logo, torches and little creature.
   Keep its entire title and room visible instead of cropping a background. */
.homunculus-laboratory {
  max-width: 1200px;
  padding-top: 0;
  padding-bottom: 28px;
}

.homunculus-laboratory > img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  box-shadow: 0 18px 60px #0006;
}

.homunculus-introduction {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 90px;
  padding-top: 16px;
  padding-bottom: 40px;
  text-align: center;
}

/* The supplied cutout already has 10% alpha. Keep a quiet Fire silhouette
   behind the introduction without fading the copy or blocking its links. */
.homunculus-introduction::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("fireangleshot-cutouts/fireangleshot-cutout-010pct.png")
    center 51% / min(1120px, 112vw) auto no-repeat;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, #000b 64%, transparent 88%);
  mask-image: radial-gradient(ellipse at center, #000 30%, #000b 64%, transparent 88%);
}

@media (max-width: 600px) {
  .homunculus-introduction::before {
    background-size: 220vw auto;
    background-position: center 48%;
  }
}

body[data-product="firmware"] .homunculus-introduction .hero-copy {
  /* Let the torch's screen blend reach the section backdrop. */
  container-type: normal;
  z-index: auto;
  max-width: 820px;
  margin: 0 auto;
}

/* Reuse the animated header artwork, cropped to a small flame on each side. */
.homunculus-introduction .hero-tagline {
  display: grid;
  grid-template-columns: 36px minmax(0, 27ch) 36px;
  align-items: start;
  gap: 12px;
  max-width: calc(27ch + 96px);
}

.tagline-torch {
  position: relative;
  display: block;
  width: 36px;
  aspect-ratio: 200 / 281;
  margin-top: -9px;
  overflow: hidden;
  mix-blend-mode: screen;
  opacity: .8;
  pointer-events: none;
}

.tagline-torch.left {
  transform: scaleX(-1);
}

.tagline-torch > img {
  position: absolute;
  top: 0;
  left: -50%;
  width: 250%;
  height: auto;
  max-width: none;
}

@media (max-width: 600px) {
  .homunculus-introduction .hero-tagline {
    grid-template-columns: 24px minmax(0, 1fr) 24px;
    gap: 8px;
  }

  .tagline-torch {
    width: 24px;
    margin-top: -3px;
  }
}

.homunculus-introduction .lead {
  margin-inline: auto;
}

.homunculus-introduction .hero-actions {
  justify-content: center;
  margin-top: 24px;
}

.homunculus-introduction .fine-print {
  margin-bottom: 0;
}
