.hero-react-phone {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}
.enhanced .hero-react-phone.is-ready { opacity: 1; }
.enhanced #stage.phone-story-live > #css3d-device { opacity: 0; visibility: hidden; }
html.enhanced.dom-device #stage .hero-surface { display: none; }

.hero-react-front,
.hero-react-poster {
  position: absolute;
  top: var(--hero-phone-y);
  left: var(--hero-phone-x);
  height: min(85svh, calc(var(--hero-phone-h) * 1.15));
  width: auto;
  max-width: none;
  pointer-events: none;
  transform: translate(calc(-50% + clamp(-56px, var(--hero-phone-slide, 0px), 0px)), -50%)
    rotate(var(--hero-image-rotation, 0deg)) scale(var(--hero-phone-scale, 1));
}
.hero-react-poster { --hero-image-rotation: var(--hero-poster-tilt, 0deg); }
.hero-react-front { display: none; }
.enhanced .hero-surface.hero-front > .hero-react-front { display: block; }
.enhanced .hero-surface.hero-front > .hero-react-poster { visibility: hidden; }

.enhanced #stage.hero-active > .motion-studio { opacity: 0; }
.enhanced .home-page #stage.phone-story-live > .ground-shadow {
  visibility: visible;
  left: var(--story-shadow-x);
  top: var(--story-shadow-y);
  width: var(--story-shadow-width);
  height: 3%;
  opacity: .7;
}
.hero-react-screen {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

@media (max-width: 760px) and (orientation: portrait) {
  .hero-react-front,
  .hero-react-poster { height: calc(var(--hero-phone-h) * 1.12); }
}
