/* Approved v8 geometry, original mascot, one shared viewport. No hero-height override. */
#shared-hero {
  --hero-orbit-inset:18px;
  --hero-orbit-bottom:60px;
  --hero-business-fit-size:min(var(--hero-mascot-size),calc((100vw - var(--hero-orbit-inset) * 2) / 1.6));
  --hero-orbit-size:calc(var(--hero-business-fit-size) * 1.6);
  --hero-business-x:clamp(calc(var(--hero-orbit-size) / 2 + var(--hero-orbit-inset)),var(--hero-mascot-x),calc(100% - var(--hero-orbit-size) / 2 - var(--hero-orbit-inset)));
  /* .616129 = mascot center drop .1 + half of the original 1240:800 artwork. */
  --hero-business-y:min(var(--hero-mascot-y),calc(100% - var(--hero-orbit-bottom) - var(--hero-business-fit-size) * .6161290322580645));
}
.shared-orbit { position:absolute; display:block; max-width:none; left:var(--hero-business-x); top:calc(var(--hero-business-y) + var(--hero-business-fit-size) * .1); width:var(--hero-orbit-size); height:auto; aspect-ratio:31 / 20; object-fit:contain; transform:translate(-50%,-50%); opacity:0; pointer-events:none; }
.shared-orbit-back { z-index:1; }
.shared-orbit-front { z-index:3; }
body[data-mode=business] .shared-mascot { z-index:2; }
body[data-mode=business] .shared-orbit { opacity:1; }
body[data-mode=business] .shared-mascot,body[data-mode=business] .pm-mascot-probe { left:var(--hero-business-x); top:var(--hero-business-y); width:var(--hero-business-fit-size); height:var(--hero-business-fit-size); }
body[data-mode=business] .shared-portal,body[data-mode=business] .shared-road { opacity:0; visibility:hidden; }
/* Proof occupies the full mobile text column. Fit the complete art BELOW it,
   using the same geometry for static fallback and the runtime mascot probe. */
@media(max-width:600px) and (min-height:721px) and (orientation:portrait) {
  #shared-hero {
    --hero-business-safe-top:max(520px,calc(440px + 22vw));
    --hero-business-fit-size:min(var(--hero-mascot-size),calc((100vw - var(--hero-orbit-inset) * 2) / 1.6),calc((100svh - var(--hero-orbit-bottom) - var(--hero-business-safe-top)) / 1.1161290322580645));
    --hero-business-y:clamp(calc(var(--hero-business-safe-top) + var(--hero-business-fit-size) * .5),var(--hero-mascot-y),calc(100% - var(--hero-orbit-bottom) - var(--hero-business-fit-size) * .6161290322580645));
  }
}
/* On a shallow landscape screen the art stays in its right-hand column. */
@media(min-width:601px) and (max-height:500px) {
  #shared-hero { --hero-business-fit-size:min(var(--hero-mascot-size),calc((100vw * .42 - 36px) / 1.6)); }
}
