.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-block: 2rem 5rem;
}

.hero__portrait {
  position: relative;
  order: -1;
  width: min(70vw, 520px);
  aspect-ratio: 1;
  justify-self: center;
}

.hero__portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(to top, transparent, #000 10%), linear-gradient(to right, transparent, #000 6%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to top, transparent, #000 10%), linear-gradient(to right, transparent, #000 6%);
  mask-composite: intersect;
}

.hero__portrait canvas {
  position: absolute;
  inset: -30%;
  display: none;
  width: 160%;
  max-width: none;
  height: 160%;
  pointer-events: none;
}

.hero__portrait.is-canvas canvas {
  display: block;
}

.hero__portrait.is-canvas img {
  opacity: 0;
  pointer-events: none;
}

.hero__text {
  position: relative;
  z-index: 1;
}

.hero__title {
  display: grid;
  gap: 0.1em;
  font-size: var(--fs-hero);
  font-weight: 700;
  overflow-wrap: break-word;
}

.hero__line {
  display: block;
}

.hero__title em {
  font-style: normal;
  color: var(--accent-hero);
}

.hero__intro {
  max-width: 44ch;
  margin-top: 1.5rem;
  color: var(--fg-muted);
}

.hero__cue {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 50%;
  text-decoration: none;
  transform: translateX(-50%);
  animation: cue-bob 2s ease-in-out infinite;
}

@keyframes cue-bob {
  50% {
    transform: translate(-50%, 6px);
  }
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
  }

  .hero__title {
    font-size: clamp(2.75rem, 5.2vw, 5.5rem);
  }

  .hero__portrait {
    order: 0;
    width: min(38vw, 520px);
  }
}
