/* Integration contract (load after professional.css):
   section.identity-hero[data-hero][data-portrait-scroll-zone]
     > .hero-layout[data-portrait-scroll-sticky]
       > .identity-copy + .hero-visual
   .hero-visual retains .hero-composition > backdrop + portrait, then controls.
   JS derives progress from native scrollY over an in-flow ::after spacer.
   (Padding alone does not extend the sticky child's containing content box.)
   No scroll interception, timed keyframes, artwork edits or mask rescaling. */
[data-hero] { --split: 0%; --paint-drift: 0px; }
[data-hero] .portrait-stage { touch-action: pan-y; }
[data-hero], [data-hero] *, [data-hero] *::before, [data-hero] *::after,
.reveal, .reveal::before, .reveal::after {
  animation: none !important;
  transition: none !important;
}
/* Never require JavaScript or an entry timer to make content readable. */
.motion-ready .reveal:not(.is-visible) { opacity: 1; transform: none; }
[data-hero] .colour-block {
  transform: translateY(var(--backdrop-y, 0px)) rotate(-14deg);
}
[data-hero] .outline-orbit {
  transform: rotate(calc(-23deg + var(--orbit-turn, 0deg))) scaleX(.68);
}
[data-hero] .technical-marks {
  transform: translateY(var(--backdrop-y, 0px)) rotate(-7deg);
}
.identity-hero[data-portrait-scroll-zone] { overflow: visible; }
/* Enhancement is only enabled once the real motion module initializes. */
html[data-motion-ready="true"] .identity-hero[data-portrait-scroll-zone]::after {
  content: '';
  display: block;
  height: clamp(320px, 65vh, 580px);
  height: clamp(320px, 65svh, 580px);
}
html[data-motion-ready="true"] [data-portrait-scroll-sticky] {
  position: sticky;
  top: var(--portrait-sticky-top, 0px);
}
.identity-hero .hero-composition { height: 470px; margin: 0; }
.identity-hero .portrait-stage {
  top: 0; bottom: auto;
  width: 430px; height: 470px;
  max-width: 100%;
}
.identity-hero .hero-controls { margin-top: 8px; }
.identity-hero .hero-instruction { margin-bottom: 0; }
@media (max-width: 760px), (max-height: 500px) and (pointer: coarse) {
  .identity-hero .hero-composition {
    height: 340px;
    height: min(340px, 46svh);
  }
  .identity-hero .portrait-stage {
    width: 340px;
    height: 340px;
    height: min(340px, 46svh);
    top: 0;
  }
  .identity-hero .portrait-label { bottom: 5px; }
  .identity-hero .hero-backdrop { top: 0; }
  .identity-hero .colour-block { top: 84px; }
  .identity-hero .outline-orbit { top: 16px; width: 260px; height: 260px; }
  .identity-hero .hero-controls { margin-top: 0; gap: 20px; }
  .identity-hero .hero-controls button { min-height: 44px; font-size: 12px; }
  .identity-hero .hero-instruction { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-motion-ready="true"] .identity-hero[data-portrait-scroll-zone]::after { display: none; }
  html[data-motion-ready="true"] [data-portrait-scroll-sticky] { position: relative; top: 0; }
}
