/* The atlas is two 3:4 panels side by side: body/neck first, head/connector second. */
.hero-visual--own {
  min-height: 480px;
}

.hero-visual--own > .hero-caption {
  top: 0;
}

.hero-visual--own .hero-companion {
  --hero-pivot-x: 50%;
  --hero-pivot-y: 38.9%;
  --hero-head-roll: 0deg;
  --hero-body-roll: 0deg;
  --hero-body-y: 0px;
  --hero-body-scale: 1;
  position: relative;
  z-index: 3;
  display: flex;
  width: min(100%, 360px);
  min-height: 510px;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  color: var(--text);
}

.hero-visual--own .hero-companion-stage {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 3 / 4;
  flex: 0 0 auto;
  isolation: isolate;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
  user-select: none;
}

/* Register the real two-part atlas at equal scale; the neck overlaps by 17 px
   in the source coordinate system. No original head remains on the body. */
.hero-visual--own .hero-companion-layer--body {
  transform: translateY(16%) scale(.8);
  transform-origin: 50% 0;
}

.hero-visual--own .hero-companion-layer--head {
  transform: scale(.8);
  transform-origin: 50% 0;
}

.hero-visual--own .hero-companion-figure,
.hero-visual--own .hero-companion-head-pivot,
.hero-visual--own .hero-companion-layer {
  position: absolute;
  inset: 0;
}

.hero-visual--own .hero-companion-figure {
  transform: translate3d(0, var(--hero-body-y), 0) rotate(var(--hero-body-roll)) scaleY(var(--hero-body-scale));
  transform-origin: var(--hero-pivot-x) var(--hero-pivot-y);
}

.hero-visual--own .hero-companion-head-pivot {
  transform: rotate(var(--hero-head-roll));
  transform-origin: var(--hero-pivot-x) var(--hero-pivot-y);
}

.hero-visual--own .hero-companion-layer {
  overflow: hidden;
  pointer-events: none;
}

.hero-visual--own .hero-companion-layer img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 200%;
  max-width: none;
  height: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

.hero-visual--own .hero-companion-layer--head img {
  left: -100%;
}

.hero-visual--own .hero-companion[data-motion="active"] .hero-companion-figure,
.hero-visual--own .hero-companion[data-motion="active"] .hero-companion-head-pivot {
  will-change: transform;
}

/* Keep the incumbent floating copy in quiet side lanes of the taller asset. */
.hero-visual--own > .visual-tag {
  top: 18px;
  left: 0;
}

.hero-visual--own > .visual-tag.right {
  left: auto;
  top: auto;
  right: 0;
  bottom: 82px;
}

.hero-visual--own > .visual-label {
  bottom: 15px;
  left: 10px;
}

@media (max-width: 1100px) {
  .hero-visual--own {
    min-height: 455px;
  }

  .hero-visual--own .hero-companion {
    width: min(100%, 320px);
    min-height: 455px;
  }

  .hero-visual--own .hero-companion-stage {
    width: min(100%, 320px);
  }
}

@media (max-width: 800px) {
  .hero-visual--own {
    min-height: 425px;
  }

  .hero-visual--own .hero-companion {
    width: min(100%, 300px);
    min-height: 425px;
  }

  .hero-visual--own .hero-companion-stage {
    width: min(100%, 300px);
  }

}

@media (max-width: 540px) {
  .hero-visual--own {
    min-height: 420px;
    padding-top: 32px;
  }

  .hero-visual--own .hero-companion {
    width: min(100%, 300px);
    min-height: 420px;
  }

  .hero-visual--own .hero-companion-stage {
    width: min(100%, 300px);
  }

  .hero-visual--own > .visual-tag {
    display: none;
  }

  .hero-visual--own > .visual-tag.right {
    right: 4px;
    bottom: 70px;
    transform: scale(.9);
    transform-origin: right bottom;
  }

  .hero-visual--own > .visual-label {
    display: none;
  }
}

