/* The Brand Build Up: hero play (polish build P2, 22 Nov 2026). Pairs with assets/js/hero-play.js.
   proto-hero.css stays linked and unchanged; this sheet only adds to it. Selector ownership: this is the only
   polish sheet that sets transform, translate, rotate, transition or box-shadow on .slab.
   Everything is scoped to .js / phys-* classes: reduced motion and no JS render the live static slabs. */

/* B8: the failsafe shows the stack after 1.2 s (live 3 s) if the script never runs (keyframes in proto-hero.css) */
.phys-pending .hero .slab{animation:phys-failsafe 0s linear 1.2s forwards}

/* ---------- homepage A entry "slabs fall, title stacks" (package X, 24 Nov 2026), desktop and phone ----------
   From the first painted frame the slabs are in flight just above their places (higher each: the "10" slab, UP, BUILD,
   THE BRAND), in front of the header and unclipped; hero-play.js makes them fall (script animations) and sets .ha-entered
   when they have landed. Desktop: the copy waits in its mask until it rises (.ha-copied). Failsafe without a working script:
   the pose resolves to rest after 2.5 s. Reduced motion has no .js class: the composed rest state. */
html.js .hero .hero__title .slab{opacity:1}
html.js .hero .hero__title .slab--card{--ha-fall:84px}
html.js .hero .hero__title .slab--ink{--ha-fall:104px}
html.js .hero .hero__title .slab--yellow{--ha-fall:124px}
html.js .hero .hero-card--s1{--ha-fall:60px}
@media (max-width:899px){
  html.js .hero .hero__title .slab--card{--ha-fall:60px}
  html.js .hero .hero__title .slab--ink{--ha-fall:76px}
  html.js .hero .hero__title .slab--yellow{--ha-fall:92px}
  html.js .hero .hero-card--s1{--ha-fall:40px}
}
html.js:not(.ha-entered) .hero{z-index:60;clip-path:none}
html.js:not(.ha-entered) .hero .hero__title .slab,html.js:not(.ha-entered) .hero .hero-card--s1{
  translate:0 calc(-1 * var(--ha-fall,0px));animation:ha-rest 0s linear 2.5s forwards}
@media (hover:hover) and (pointer:fine) and (min-width:900px){
  html.js:not(.ha-copied) .hero :is(.hero__sub,.hero__support,.hero__actions){translate:0 100%;clip-path:inset(0 0 100% 0);
    animation:ha-rest 0s linear 2.5s forwards}
}
@keyframes ha-rest{to{translate:0 0;clip-path:inset(0 0 0 0)}}

/* touch: a vertical swipe on a slab always scrolls the page; horizontal swipes and taps reach the script */
.js .hero__title .slab{touch-action:pan-y}
.hero__title.phys-touch .slab{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
/* while a slab is held nothing in the hero can be selected (scoped to the hero, set by hero-play.js on <html>) */
.phys-grabbing .hero{-webkit-user-select:none;user-select:none}
/* while a press that started elsewhere in the hero is held (text selection), thrown slabs are skipped by hit-testing */
.hero__title.phys-through .slab{pointer-events:none}
