/* =====================================================================
   v8 · phone fix for How It Works (2026-11-19)
   On phones the five steps took the whole screen height and the chassis
   canvas collapsed to 0 px. Now the chassis keeps a fixed share of the
   screen, the list is compact and only the active step shows its line.
   ===================================================================== */
@media (max-width: 767px), (max-aspect-ratio: 1/1) {
  .ale2 .s4-stage { gap: 10px; padding-top: 78px; padding-bottom: 2svh; }
  .ale2 .s4-head > b:first-of-type, .ale2 .s4-head > b:first-of-type + br { display: none; }
  .ale2 .s4-head { font-size: clamp(24px, 6.6vw, 34px); line-height: 1.12; }
  .ale2 .s4-chassis { flex: 0 0 auto; height: 28svh; min-height: 150px; }
  .ale2 .s4-chassis canvas { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
  .ale2 .s4-steps li { padding: 9px 0 9px 16px; }
  .ale2 .s4-steps li::before { top: calc(9px + 0.5em); }
  .ale2 .s4-steps strong { font-size: clamp(14px, 3.9vw, 17px); letter-spacing: 0.1em; }
  .ale2 .omo-how-steps > li:not(.is-active) > span,
  .ale2 .omo-how-steps > li:not(.is-active) .omo-how-src { display: none; }
  .ale2 .omo-how-steps > li.is-active > span { font-size: clamp(14px, 3.7vw, 16px); }
}
/* reduced motion: nothing is pinned, so show every line */
@media (prefers-reduced-motion: reduce) and (max-width: 767px) {
  .ale2 .omo-how-steps > li:not(.is-active) > span { display: block; }
  .ale2 .omo-how-steps > li:not(.is-active) .omo-how-src { display: flex; }
}
@media (max-width: 767px), (max-aspect-ratio: 1/1) {
  .ale2 .s4-chassis .hy-dim { bottom: -16px; }
  .ale2 .omo-how-src { gap: 0.3em 1em; }
}
/* short phones (iPhone SE, browser bars showing) */
@media (max-width: 767px) and (max-height: 620px) {
  .ale2 .s4-stage { gap: 6px; padding-top: 70px; }
  .ale2 .s4-head { font-size: 22px; }
  .ale2 .s4-chassis { height: 25svh; min-height: 120px; }
  .ale2 .s4-steps li { padding: 6px 0 6px 16px; }
  .ale2 .s4-steps li::before { top: calc(6px + 0.5em); }
  .ale2 .omo-how-src em { letter-spacing: 0.05em; }
}
