.ess-cover .hero-handwriting-layer {
  position: absolute;
  z-index: 2;
  inset: 0;
  container-type: size;
  pointer-events: none;
}

.ess-cover .hero-handwriting {
  /* Follow the right-aligned, cover-cropped landscape image. */
  --photo-width: max(100cqw, calc(100cqh * 1672 / 941));
  --photo-height: max(100cqh, calc(100cqw * 941 / 1672));
  position: absolute;
  display: block;
  inset-inline-start: clamp(44%, calc(100% - var(--photo-width) * .44), 73%);
  inset-block-start: min(calc(50% + var(--photo-height) * .36), calc(100% - 3rem));
  width: min(21%, 16rem);
  height: auto;
  filter: drop-shadow(0 2px 6px #020713);
}

@media (max-width: 620px) {
  .ess-cover .hero-handwriting {
    /* The portrait image is center-cropped on mobile. */
    --photo-width: max(100cqw, calc(100cqh * 941 / 1672));
    --photo-height: max(100cqh, calc(100cqw * 1672 / 941));
    inset-inline-start: min(calc(47% + var(--photo-width) * .08), 55%);
    inset-block-start: min(calc(50% + var(--photo-height) * .23 + var(--mobile-hero-offset, 0px)), calc(100% - 2.5rem));
    width: min(40%, 11rem);
  }
}
