.home-page .immersive-hero__visual {
  container-type: size;
}

.home-hero-filters {
  position: absolute;
}

/* A shared canvas keeps all three layers aligned when the hero is cropped. */
.home-hero-scene {
  position: absolute;
  width: max(100cqw, 175.268cqh);
  aspect-ratio: 1800 / 1027;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.home-page .home-hero-scene img {
  position: absolute;
  inset: 0;
  object-position: center;
  opacity: 1;
}

.home-page .home-hero-scene .home-hero-background {
  opacity: .7;
}

.home-page .home-hero-scene .home-hero-platform {
  transform: translateY(14%);
  filter: url(#home-platform-cutout);
}

.home-page .home-hero-scene .home-hero-character {
  inset: auto 21% 3% auto;
  width: auto;
  height: 72%;
  object-fit: contain;
}

.home-page .hero-note {
  position: relative;
  z-index: 4;
  width: fit-content;
  max-width: 64ch;
  margin: 40px 0 0;
  padding: 16px 20px;
  font-size: clamp(15px, 1.5vw, 20px);
  line-height: 1.7;
  text-align: left;
  text-wrap: pretty;
  background: linear-gradient(90deg,
      rgba(238, 233, 220, .92),
      rgba(238, 233, 220, .72));
  backdrop-filter: blur(5px);
}

.home-page .immersive-hero__title {
  font-size: clamp(76px, 10vw, 215px);
}

.home-page .immersive-hero__title .shift {
  display: inline-block;
  position: relative;
  margin-top: .05em;
  margin-left: .42em;
  padding: .14em .08em .04em;
  color: #f7f3e8;
  background: #98432f;
  font-weight: 900;
  text-shadow: none;
}

.hero-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-self: end;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
}

.hero-capabilities li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.hero-capabilities li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--rust);
}

.selected-projects {
  background-color: #e9e4d6;
}

.selected-projects .section-head {
  align-items: start;
}

.selected-projects .section-title {
  max-width: 10ch;
}

.selected-projects-intro {
  max-width: 46ch;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.project-tech li {
  padding: 6px 8px;
  border: 1px solid currentColor;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
}

.project:is(:hover, :focus-visible, :active) .project-tech {
  color: #d6d9d1;
}

.selected-projects-all {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
  padding: 18px var(--pad);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  transition: color .3s ease, background-color .3s ease;
}

.selected-projects-all span {
  font-size: 18px;
}

.selected-projects-all:is(:hover, :focus-visible) {
  color: var(--paper);
  background: var(--ink);
}

.home-footer {
  padding: 28px var(--pad);
  background: #0d1514;
}

.home-page .project--portal {
  --project-hover: #274950;
}

@media (max-width: 760px) {
  .home-hero-scene {
    left: 65%;
    transform: translate(-65%, -50%);
  }

  .home-page .immersive-hero__title {
    font-size: 18vw;
    line-height: .82;
    top: 100px;
  }

  .home-page .immersive-hero__title .shift {
    margin-left: .28em;
  }

  .home-page .hero-note {
    width: auto;
    margin-top: 28px;
    padding: 14px 12px;
  }

  .hero-capabilities {
    gap: 9px 16px;
  }

  .selected-projects-intro {
    margin-top: 20px;
  }

  .project-tech {
    margin-top: 14px;
  }
}
