/* VeloVision "How it works": a plain static page. Nothing is pinned, scrubbed or moved by the scroll.
   Two sections, "Behind the pitcher" and "Beside the hitter": a framed clip (a poster picture under a muted, looping, inline video) and four numbered steps.
   Loaded after style.css, on how-it-works.html only. Rounded bubbles, pills and dots only. */

body { background: var(--bg); }
.pt { margin-top: clamp(20px, 3vw, 40px); }

/* ---------------------------------------------------------------- the framed clips */
.pt-frame, .ht-frame { position: relative; border-radius: var(--bubble); overflow: hidden; aspect-ratio: 16 / 10; background: #0f1a10; isolation: isolate; }
.pt-poster, .pt-video, .ht-poster, .ht-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pt-video, .ht-video { background: transparent; }

.pt-steps .n, .ht-steps .n { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 1.2rem; font-weight: 700; line-height: 1; }
.pt-steps h3, .ht-steps h3 { font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.01em; margin-top: 0.3rem; }
.pt-steps p, .ht-steps p { margin-top: 8px; color: var(--muted); max-width: 32ch; text-wrap: balance; }

/* ---------------------------------------------------------------- Behind the pitcher: heading, clip, then four steps in a row */
.pt-stage { padding: 0 var(--margin); margin-top: var(--gap-section); display: grid; gap: 18px; }
.pt-head { font-size: var(--step-display); line-height: 0.95; letter-spacing: -0.03em; max-width: 15ch; }
.pt-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pt-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-items: start; padding: clamp(20px, 2vw, 26px) clamp(20px, 2vw, 26px) 22px; background: var(--surface); border-radius: var(--bubble); }
@media (max-width: 1099px) { .pt-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px), (max-aspect-ratio: 1/1) { .pt-frame { aspect-ratio: 4 / 5; max-height: 80svh; } }
@media (max-width: 600px) { .pt-steps { grid-template-columns: minmax(0, 1fr); } }
/* wide landscape screens: the clip beside the heading and the steps, so the clip does not fill the whole screen */
@media (min-width: 1100px) and (min-aspect-ratio: 1/1) {
  .pt-stage { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: clamp(20px, 3vw, 56px); row-gap: clamp(24px, 3vw, 44px); }
  .pt-head { grid-column: 2; grid-row: 1; align-self: start; max-width: 12ch; }
  .pt-frame { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
  .pt-steps { grid-column: 2; grid-row: 2; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; }
}

/* ---------------------------------------------------------------- Beside the hitter: clip beside heading and steps (stacked on phones) */
.ht { margin: clamp(20px, 4vw, 56px) var(--margin) 0; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: clamp(20px, 3vw, 56px); align-items: start; }
.ht-copy h2 { font-size: var(--step-display); line-height: 0.95; letter-spacing: -0.03em; max-width: 12ch; }
.ht-steps { list-style: none; margin-top: clamp(24px, 3vw, 44px); display: grid; gap: 10px; }
.ht-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; align-items: start; padding: clamp(20px, 2vw, 28px); background: var(--surface); border-radius: var(--bubble); }
@media (max-width: 800px), (max-aspect-ratio: 1/1) {
  .ht { grid-template-columns: minmax(0, 1fr); row-gap: 18px; }
  .ht-copy { display: contents; }
  .ht-copy h2 { order: -1; max-width: 15ch; }
  .ht-frame { aspect-ratio: 4 / 5; max-height: 80svh; }
  .ht-steps { margin-top: 0; }
  .ht-steps p { max-width: none; }
}
