/* Fightplan Work: the /work/walk-the-gym case page only (2026-11-21, KD-58).
   Loaded after styles.css, inner.css and work.css. Tokens come from styles.css (brand-tokens.json).
   Every default below is the still state: no JS and reduced motion both get it. work-walk-the-gym.js adds the clip.
   Blocks:
     .wg-film-sec   the walk on a black stage: the clip (16:9; 4:5 on phones), its caption and Pause button, the five stops
     .wg-specs      how it works, four facts two across (inner.css .specs)
     .wg-pano       the 360 picture from stop 2, laid flat
     .wg-tape       how it was made: four numbers, scoreboard style */

/* ---------- The walk ---------- */
.wg-film-sec{background:var(--black);border-top:1px solid var(--border);border-bottom:1px solid var(--border);
  padding:var(--space-7) 0 var(--space-7)}
/* the clip fits one laptop screen with its caption and the row of stops under it, and never shows past 1380 px */
.wg-wrap{width:min(calc(100% - 2 * var(--gutter)),1380px,max(640px,calc((100vh - 340px) * 16 / 9)));margin:0 auto}
.wg-film{position:relative;overflow:hidden;aspect-ratio:16 / 9;background:var(--bg);border:1px solid var(--border-strong)}
.wg-film img,.wg-film video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.wg-film video{opacity:0;transition:opacity 400ms var(--ease)}
.wg-film.is-on video{opacity:1}
.wg-cap-row{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--space-5)}
.wg-cap-row .work-cap{flex:1 1 auto;min-width:0;padding-bottom:var(--space-4)}
.wg-toggle{flex:none;display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-top:2px;padding:0 2px 0 0;border:0;background:none;
  color:var(--fg-2);font:inherit;font-size:var(--text-xs);font-weight:600;letter-spacing:.14em;text-transform:uppercase;cursor:pointer;
  transition:color 400ms var(--ease)}
.wg-toggle[hidden]{display:none}
.wg-toggle:hover{color:var(--fg)}
.wg-toggle:focus-visible{outline:2px solid var(--fg);outline-offset:2px}
.wg-toggle .icon{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}
.wg-toggle .i-play{display:none;fill:currentColor;stroke:none}
.wg-toggle.is-paused .i-pause{display:none}
.wg-toggle.is-paused .i-play{display:inline}
/* the five stops: one row, each a still and its name from Basin's site; the stop the clip is at is lit */
.wg-stops{list-style:none;margin:0;padding:var(--space-4) 0 0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:var(--space-3);
  border-top:1px solid var(--border-strong)}
.wg-stops li{margin:0;min-width:0}
.wg-stop{display:block;width:100%;padding:0;border:0;background:none;color:var(--muted);font:inherit;text-align:left;cursor:pointer}
.no-js .wg-stop{cursor:default}
.wg-stop img{display:block;width:100%;height:auto;aspect-ratio:16 / 9;border:1px solid var(--border);opacity:.62;
  transition:opacity 400ms var(--ease),border-color 400ms var(--ease)}
.wg-stop-cap{display:flex;align-items:baseline;gap:8px;padding-top:var(--space-2);font-size:var(--text-xs);font-weight:600;letter-spacing:.14em;
  text-transform:uppercase;line-height:1.4;transition:color 400ms var(--ease)}
.wg-stop-n{font-family:var(--font-display);font-weight:700;font-size:15px;letter-spacing:.06em}
.wg-stop:hover,.wg-stop.on{color:var(--fg)}
.wg-stop:hover img{opacity:.85}
.wg-stop.on img{opacity:1;border-color:var(--fg-2)}
.wg-stop:focus-visible{outline:2px solid var(--fg);outline-offset:3px}
/* no JS (nothing plays, nothing is lit): every stop at full strength */
.no-js .wg-stop{color:var(--fg-2)}
.no-js .wg-stop img{opacity:1}
@media (max-width:767px){
  .wg-film-sec{padding:var(--space-5) 0 var(--space-6)}
  .wg-wrap{width:calc(100% - 2 * var(--gutter))}
  /* phones: the clip is a 4:5 crop that follows each stop's subject */
  .wg-film{aspect-ratio:4 / 5}
  .wg-cap-row{gap:var(--space-3)}
  .wg-cap-row .work-cap{font-size:var(--text-sm)}
  /* the stops: a swipe row inside the section, the next one peeking in */
  .wg-stops{display:flex;gap:var(--space-3);margin:0 calc(-1 * var(--gutter));padding:var(--space-4) var(--gutter) 0;overflow-x:auto;
    overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:var(--gutter);scrollbar-width:none;border-top:0}
  .wg-stops::-webkit-scrollbar{display:none}
  .wg-stops li{flex:0 0 46%;scroll-snap-align:start}
}

/* ---------- How it works ---------- */
.wg-specs{margin-top:0;padding-bottom:var(--space-5);max-width:none}
.wg-pano{margin:0;max-width:820px}
.wg-pano img{display:block;width:100%;height:auto;border:1px solid var(--border)}
.wg-pano .work-cap{padding-bottom:0}

/* ---------- How it was made: four numbers ---------- */
.wg-tape{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--border-strong)}
.wg-tape > div{display:grid;align-content:start;gap:var(--space-2);padding:var(--space-4) var(--space-5) 0 0}
.wg-tape > div + div{padding-left:var(--space-5);border-left:1px solid var(--border)}
.wg-num{font-family:var(--font-display);font-weight:700;font-size:clamp(56px,6vw,84px);line-height:.9;color:var(--fg);font-variant-numeric:tabular-nums}
.wg-tape span{font-size:var(--text-sm);line-height:1.45;color:var(--fg-2)}
.wg-made-line{margin:var(--space-6) 0 0;max-width:62ch;font-size:var(--text-md);line-height:1.55;color:var(--fg-2)}
@media (max-width:1023px){
  .wg-tape{grid-template-columns:1fr 1fr}
  .wg-tape > div:nth-child(odd){padding-left:0;border-left:0}
  .wg-tape > div:nth-child(n+3){margin-top:var(--space-4);border-top:1px solid var(--border)}
}
@media (max-width:767px){
  .wg-tape > div{padding:var(--space-4) var(--space-3) var(--space-4) 0}
  .wg-tape > div + div{padding-left:var(--space-4)}
  .wg-tape > div:nth-child(odd){padding-left:0}
  .wg-tape > div:nth-child(n+3){margin-top:0}
  .wg-num{font-size:56px}
  .wg-made-line{margin-top:var(--space-5);font-size:var(--text-sm)}
}

/* ---------- Try it ---------- */
.wg-try .quiet-note{margin-top:0;max-width:52ch}
.wg-try .cta-row{margin-top:var(--space-5);gap:var(--space-3) var(--space-5)}
.wg-try .btn .icon{width:18px;height:18px}
.wg-try .link-arrow{color:var(--fg);min-height:44px}
@media (max-width:767px){
  .wg-try .cta-row{flex-direction:column;align-items:stretch}
  .wg-try .btn{width:100%}
  .wg-try .link-arrow{align-self:flex-start}
}

@media (prefers-reduced-motion:reduce){
  .wg-film video,.wg-toggle,.wg-stop img,.wg-stop-cap{transition:none}
}
