/* How it works on phones (Lumart, 15 Nov): a plain section, not pinned.
   Every step is open; steps after the first fade in as they're reached; the
   buttons show from the start. The rail is a thin black line with small black
   dots; as you scroll, an orange line replaces it and the dots it passes turn
   orange with a soft glow (js/hiw-m.js sets --fill). Desktop keeps .hiw-wrap. */
.hiw-m { display: none; }
@media (max-width: 960px) {
  .hiw-wrap { display: none; }
  .hiw-m { display: block; padding: clamp(44px, 7vh, 72px) 22px clamp(40px, 6vh, 60px); }
  .hiw-m .badge { margin-bottom: 26px; }
  .hiw-m__title { text-align: center; margin: 0 auto 36px; max-width: 16ch; font-size: clamp(30px, 8.5vw, 42px); line-height: 1.12; letter-spacing: -0.02em; }

  .hiw-m__steps { position: relative; list-style: none; margin: 0; padding: 0 0 0 34px; }
  .hiw-m__rail { position: absolute; left: 7px; top: var(--rail-top, 14px); bottom: var(--rail-bottom, 14px); width: 2px; background: var(--ink); border-radius: 2px; }
  .hiw-m__fill { position: absolute; left: 0; top: 0; width: 100%; height: var(--fill, 0px); background: var(--accent); border-radius: 2px; box-shadow: 0 0 6px rgba(239, 108, 35, 0.35); }

  .hiw-m__step { position: relative; padding: 0 0 34px; }
  .hiw-m__step:last-child { padding-bottom: 0; }
  /* the step's text fades in; its dot stays on the line from the start */
  .hiw-m__step > :not(.hiw-m__dot) { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
  .hiw-m__step.is-in > :not(.hiw-m__dot) { opacity: 1; transform: none; }
  /* Lumart, 15 Nov: dots bigger and centred on the line (rail centre = 8px into the list = -26px from a step) */
  .hiw-m__dot {
    position: absolute; left: -26px; top: 14px; width: 11px; height: 11px; border-radius: 50%; background: var(--ink);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 0 rgba(239, 108, 35, 0);
    transition: background 0.9s ease, box-shadow 0.9s ease, transform 0.9s ease; /* Lumart 15 Nov: black to orange, gradually */
  }
  .hiw-m__step.is-lit .hiw-m__dot { background: var(--accent); transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 0 14px 4px rgba(239, 108, 35, 0.45); } /* Lumart 15 Nov: one orange circle and its glow, no second ring */
  .hiw-m .step__tag { margin-bottom: 12px; font-size: 11.5px; padding: 5px 12px; }
  .hiw-m__h { font-family: var(--sans); font-size: 21px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 8px; }
  .hiw-m__p { font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

  .hiw-m__cta { display: flex; justify-content: center; gap: 10px; margin-top: 34px; padding-left: 0; } /* Lumart 15 Nov: centred under the steps */
  .hiw-m__cta .btn { flex: 1 1 0; min-width: 0; justify-content: center; text-align: center; white-space: nowrap; }
}
@media (max-width: 960px) and (prefers-reduced-motion: reduce) {
  .hiw-m__step > :not(.hiw-m__dot) { opacity: 1; transform: none; transition: none; }
}
