/* One-shot Hero entrances. The existing scroll/hover transforms retain ownership. */
body[data-page-type="home"] #hero:not(.hero-entry-ready) .hero-title,
body[data-page-type="about"] #hero:not(.hero-entry-ready) .about-hero-intro,
body[data-page-type="services"] #hero:not(.hero-entry-ready) #serviceHeroTitle,
body[data-page-type="contact"] #hero:not(.hero-entry-ready) #contactHeroTitle {
  opacity: 0 !important;
}
#hero:not(.hero-entry-ready) .about-hero-portrait,
#hero:not(.hero-entry-ready) .service-hero-orbits,
#hero:not(.hero-entry-ready) .service-hero-shape video,
#hero:not(.hero-entry-ready) .contact-hero-blob { visibility: hidden; }
#hero:not(.hero-entry-done) .vision-marquee-track { animation-play-state: paused !important; }

.hero-entry-managed .hero-entry-word,
.hero-entry-managed .hero-entry-unit {
  display: inline-block !important;
  white-space: pre !important;
  vertical-align: baseline;
}
.hero-entry-managed .hero-entry-unit { opacity: 0; filter: blur(9px); }
.hero-entry-managed:not(.hero-entry-done) .hero-title .char { animation: none !important; }
.hero-entry-managed:not(.hero-entry-done) .claim-line .char,
.hero-entry-managed:not(.hero-entry-done):not(.is-cta-hover) .claim-word-front .char {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}

.hero-entry-managed:not(.hero-entry-done) .service-hero-shape video,
.hero-entry-managed:not(.hero-entry-done) .service-hero-orbits {
  scale: var(--hero-entry-scale, 1);
  opacity: var(--hero-entry-opacity, 1);
  transform-origin: 50% 50%;
}
/* Keep the centring translation outside the scale: individual `scale`
   would also scale the translation and displace these positioned media. */
.hero-entry-managed:not(.hero-entry-done) .about-hero-portrait {
  transform: translateX(-50%) scale(var(--hero-entry-scale, .75));
  opacity: var(--hero-entry-opacity, 0);
  transform-origin: 50% 50%;
}
.hero-entry-home-return:not(.hero-entry-done) .video-stage {
  transform: translate(-50%, -50%) scale(var(--hero-entry-scale, .08));
  opacity: var(--hero-entry-opacity, 0);
  transform-origin: 50% 50%;
}
body[data-page-type="about"] #hero:not(.hero-entry-done) .about-hero-subtitle {
  opacity: calc(var(--about-copy-opacity, 1) * var(--hero-entry-opacity, 0));
}
body[data-page-type="about"] #hero:not(.hero-entry-done) .vision-marquee {
  opacity: calc(var(--about-copy-opacity, 1) * var(--hero-entry-opacity, 0));
}
body[data-page-type="services"] #hero:not(.hero-entry-done) .service-hero-copy--intro > p,
body[data-page-type="contact"] #hero:not(.hero-entry-done) .contact-hero-copy > p {
  opacity: var(--hero-entry-opacity, 0);
}
.hero-entry-managed:not(.hero-entry-done) .contact-hero-blob {
  translate: 0px var(--hero-entry-y, 0px);
}
