/* Play once on view, and the frame a drawing sits in (issue #28). Shared:
   later pages load this file for their own hero animation and stills. */

/* A slot holding a drawing (in place of a jh-ph shape): the shape's
   corners, and as tall as its drawing, so the slot takes the drawing's
   ratio. Only the slot's own svg is sized, never one nested inside it. */
.jh-art { margin: 0; height: fit-content; border-radius: var(--radius-card); overflow: hidden; }
.jh-art > svg { display: block; width: 100%; height: auto; }
.sp-card .jh-art { margin-bottom: var(--space-12); }

/* A stage not yet in view holds its drawing on the first frame; only
   play-once.js adds and removes "is-waiting". */
[data-play-once].is-waiting *, [data-play-once].is-waiting *::before, [data-play-once].is-waiting *::after { animation-play-state: paused !important; }

/* Under reduced motion nothing on a stage moves, even if the setting
   changes while it plays; play-once.js also never starts it. */
@media (prefers-reduced-motion: reduce) {
  [data-play-once] *, [data-play-once] *::before, [data-play-once] *::after { animation: none !important; transition: none !important; }
}

/* In print a stage shows its still, even one never scrolled into view. */
@media print {
  [data-play-once] *, [data-play-once] *::before, [data-play-once] *::after { animation: none !important; }
}

/* Brand Identity only: the phone crops (notes.md lines 116-117),
   on classes only Brand's art files carry, so other pages get none of it.
   B2 and B6 switch where their slots turn 4:3; B7 on phones (16:10). */
.jh-art > .bv-b2p, .jh-art > .bv-b6p, .jh-art > .bv-b7p { display: none; }
@media (max-width: 899px) {
  .jh-art > .bv-b2, .jh-art > .bv-b6 { display: none; }
  .jh-art > .bv-b2p, .jh-art > .bv-b6p { display: block; }
}
@media (max-width: 699px) {
  .jh-art > .bv-b7 { display: none; }
  .jh-art > .bv-b7p { display: block; }
}
