/* Pinned feature walk · Scroll Story Kit
   Static (no JS, reduced motion): a grid of cards, picture over title over text.
   Motion: the section pins for --sk-walk-len of scroll; the list on the left steps through the features and the
   picture for the current one fades up on the right. Up to 6 items. */
.sk-walk { --sk-walk-len: 380vh; }
.sk-walk-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--sk-gap); margin: 40px 0 0; padding: 0; list-style: none; counter-reset: sk-walk; }
.sk-walk-item { counter-increment: sk-walk; }
.sk-walk-art { margin: 0 0 16px; }
.sk-walk-art svg { display: block; width: 100%; height: auto; border-radius: var(--sk-radius); }
.sk-walk-item .sk-h3::before { content: counter(sk-walk, decimal-leading-zero); display: block; margin-bottom: 6px; font: 700 var(--sk-size-small)/1 var(--sk-font-mono); letter-spacing: 0; color: var(--sk-accent-text); }
.sk-walk-meter { display: none; }

:root.sk-on .sk-walk { height: var(--sk-walk-len); padding: 0; }
:root.sk-on .sk-walk-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; padding: 0 var(--sk-gutter); }
:root.sk-on .sk-walk-grid { position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 5vw, 72px); align-items: center; min-height: min(560px, 80svh); }
:root.sk-on .sk-walk-list { display: block; margin-top: 28px; }
:root.sk-on .sk-walk-item { --on: 0; padding: 14px 0 14px 22px; border-left: 3px solid var(--sk-line); transition: border-color var(--sk-step) var(--sk-ease); }
:root.sk-on .sk-walk-item .sk-h3 { opacity: calc(.42 + .58 * var(--on)); transition: opacity var(--sk-step) var(--sk-ease); }
:root.sk-on .sk-walk-item .sk-h3::before { display: inline; margin: 0 10px 0 0; }
:root.sk-on .sk-walk-item .sk-text { max-height: calc(var(--on) * 8em); margin-top: calc(var(--on) * 8px); opacity: var(--on); overflow: clip; transition: max-height var(--sk-step) var(--sk-ease), opacity var(--sk-step) var(--sk-ease), margin var(--sk-step) var(--sk-ease); }
:root.sk-on .sk-walk-art { position: absolute; top: 50%; right: 0; width: calc(50% - clamp(12px, 2.5vw, 36px)); margin: 0; opacity: var(--on); transform: translateY(calc(-50% + (1 - var(--on)) * 28px)) scale(calc(.96 + .04 * var(--on))); transition: opacity var(--sk-step) var(--sk-ease), transform var(--sk-step) var(--sk-ease); pointer-events: none; }
:root.sk-on .sk-walk-art svg { box-shadow: var(--sk-shadow); }
:root.sk-on .sk-walk-meter { display: block; position: absolute; left: 0; right: 0; bottom: -18px; height: 3px; border-radius: 3px; background: var(--sk-line); overflow: clip; }
:root.sk-on .sk-walk-meter i { display: block; height: 100%; background: var(--sk-accent); transform-origin: 0 50%; transform: scaleX(var(--sk-p)); }

/* the current step: data-sk-step comes from core/sk-scroll.js; before it lands the first item shows */
:root.sk-on .sk-walk:not([data-sk-step]) .sk-walk-item:nth-child(1),
:root.sk-on .sk-walk[data-sk-step="0"] .sk-walk-item:nth-child(1),
:root.sk-on .sk-walk[data-sk-step="1"] .sk-walk-item:nth-child(2),
:root.sk-on .sk-walk[data-sk-step="2"] .sk-walk-item:nth-child(3),
:root.sk-on .sk-walk[data-sk-step="3"] .sk-walk-item:nth-child(4),
:root.sk-on .sk-walk[data-sk-step="4"] .sk-walk-item:nth-child(5),
:root.sk-on .sk-walk[data-sk-step="5"] .sk-walk-item:nth-child(6) { --on: 1; border-left-color: var(--sk-accent); }

@media (max-width: 760px) {
  :root.sk-on .sk-walk-pin { align-items: start; padding-top: 20px; }
  :root.sk-on .sk-walk-grid { grid-template-columns: 1fr; min-height: 0; padding-top: min(36svh, 62vw); }
  :root.sk-on .sk-walk-art { top: 0; left: 0; right: 0; width: auto; max-width: 440px; margin: 0 auto; transform: translateY(calc((1 - var(--on)) * 20px)); }
  :root.sk-on .sk-walk-art svg { width: auto; max-width: 100%; height: min(32svh, 56vw); margin: 0 auto; }
  :root.sk-on .sk-walk-list { margin-top: 16px; }
  :root.sk-on .sk-walk-item { padding: 8px 0 8px 16px; }
  :root.sk-on .sk-walk-copy .sk-kicker { display: none; }
  :root.sk-on .sk-walk-copy .sk-h2 { font-size: clamp(1.6rem, 1rem + 3vw, 2.2rem); }
  :root.sk-on .sk-walk-meter { bottom: -10px; }
}
@media (prefers-reduced-motion: reduce) {
  .sk-walk-item .sk-h3, .sk-walk-item .sk-text, .sk-walk-art { transition: none !important; }
}
