/* ============================================================
   SW Athletics - site styles (2026-11-15 redesign).
   Structure follows the house static build (Dream Chaser / Wolves):
   partials stamped by scripts/stamp.mjs, site.js, map.js + locations.json.
   Look = SW's own brand from theme.css: pure black and white, square
   corners, wide heavy Archivo for display, Wix Madefor Text for body.
   Colours below are the page skin; brand values live in theme.css.
   ============================================================ */

:root {
  /* DARK (default): SW's black and white */
  --c-bg: #050505; --c-panel: #0d0d0d; --c-panel-2: #151515;
  --c-line: rgba(255,255,255,.12); --c-line-2: rgba(255,255,255,.24);
  --c-fg: #ffffff; --c-muted: rgba(255,255,255,.68); --c-subtle: rgba(255,255,255,.46);
  --c-btn-bg: #ffffff; --c-btn-fg: #000000; --c-head: rgba(5,5,5,.74); --c-head-solid: rgba(5,5,5,.92);
  --c-invert-logo: 1; --c-dot-ring: #000; --c-shadow: rgba(0,0,0,.5);
  --map-filter: grayscale(1) invert(1) brightness(.85) contrast(1.15);
  --wrap: 1240px; --pad: clamp(20px, 4vw, 40px); --ease-out: cubic-bezier(.2,.7,.2,1);
}
/* LIGHT: the same brand flipped (white page, black type) */
html[data-theme="light"] {
  --c-bg: #dedcd6; --c-panel: #e8e6e1; --c-panel-2: #d2d0c9;
  --c-line: rgba(0,0,0,.14); --c-line-2: rgba(0,0,0,.26);
  --c-fg: #0d0d0d; --c-muted: rgba(0,0,0,.72); --c-subtle: rgba(0,0,0,.55);
  --c-btn-bg: #0d0d0d; --c-btn-fg: #f0efea; --c-head: rgba(222,220,214,.82); --c-head-solid: rgba(222,220,214,.96);
  --c-invert-logo: 0; --c-dot-ring: #fff; --c-shadow: rgba(0,0,0,.18);
  --map-filter: grayscale(1) contrast(1.05);
  color-scheme: light;
}
html { color-scheme: dark; }
/* An inverted band: light inside the dark site, dark inside the light site */
.section-light {
  --c-bg: #e2e0da; --c-panel: #ebe9e4; --c-panel-2: #d6d4cd; --c-line: rgba(0,0,0,.14); --c-line-2: rgba(0,0,0,.26);
  --c-fg: #0a0a0a; --c-muted: rgba(0,0,0,.68); --c-subtle: rgba(0,0,0,.5); --c-btn-bg: #0a0a0a; --c-btn-fg: #fff;
  background: var(--c-bg); color: var(--c-fg);
}
html[data-theme="light"] .section-light {
  --c-bg: #0a0a0a; --c-panel: #111; --c-panel-2: #1a1a1a; --c-line: rgba(255,255,255,.12); --c-line-2: rgba(255,255,255,.24);
  --c-fg: #fff; --c-muted: rgba(255,255,255,.68); --c-subtle: rgba(255,255,255,.46); --c-btn-bg: #fff; --c-btn-fg: #000;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--c-bg); color: var(--c-fg); transition: background-color .35s, color .35s;
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--c-fg); color: var(--c-bg); }
:focus-visible { outline: 2px solid var(--c-fg); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-panel { background: var(--c-panel); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--font-body); font-weight: 700; font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--c-subtle); margin: 0 0 18px;
}
.h-xl, .h-lg, .h-md, .h-sm {
  font-family: var(--font-display); font-weight: 900; font-stretch: 125%; text-transform: uppercase;
  line-height: .92; letter-spacing: -.01em; margin: 0;
}
.h-xl { font-size: clamp(44px, 7.4vw, 104px); }
.h-lg { font-size: clamp(36px, 5.2vw, 72px); }
.h-md { font-size: clamp(24px, 2.6vw, 34px); line-height: 1; }
.h-sm { font-size: 18px; line-height: 1.1; letter-spacing: .01em; }
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--c-fg); }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--c-muted); max-width: 60ch; margin: 22px 0 0; }
.small { font-size: 14px; color: var(--c-subtle); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 28px; background: var(--c-btn-bg); color: var(--c-btn-fg); border: 1px solid var(--c-btn-bg);
  font-family: var(--font-body); font-weight: 800; font-size: 14px; letter-spacing: .14em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background .25s, color .25s, transform .25s var(--ease-out);
}
.btn:hover { background: transparent; color: var(--c-fg); border-color: var(--c-fg); }
.btn .arr { transition: transform .25s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 12px; }
.btn-lg { min-height: 62px; padding: 0 34px; font-size: 15px; }
.text-link {
  display: inline-flex; align-items: center; gap: 10px; color: var(--c-fg); font-weight: 700; font-size: 14px;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--c-line-2); padding: 6px 0;
}
.text-link:hover { border-color: var(--c-fg); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--c-head);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-color: var(--c-line); background: var(--c-head-solid); }
.head-row { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: auto; filter: invert(var(--c-invert-logo)); }
.brand span { font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-size: 15px; letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) {
  text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--c-muted); position: relative; padding: 6px 0;
}
.nav a:not(.btn):hover, .nav a.is-on { color: var(--c-fg); }
.nav a.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--c-fg); }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--c-line-2); cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--c-fg); content: ""; transition: transform .3s, opacity .3s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; left: 0; right: 0; }
.nav-toggle span::after { top: 7px; left: 0; right: 0; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-bg { position: absolute; inset: -40px; pointer-events: none; background: url('assets/hero-poster.jpg') center 30% / cover; filter: blur(48px) saturate(.6) brightness(.35); opacity: .55; }
:root[data-theme="light"] .hero-bg { display: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border: 1px solid var(--c-line-2);
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; margin-top: 36px; }
.hero-media { position: relative; aspect-ratio: 9 / 16; width: min(100%, calc(78vh * 9 / 16)); margin-left: auto; border: 1px solid var(--c-line-2); background: #000; overflow: hidden; box-shadow: 0 40px 80px -30px var(--c-shadow); }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .75)); pointer-events: none; }
.hero-tag {
  position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; display: flex; justify-content: space-between; gap: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .85);
}
.hero-corner { display: none; position: absolute; width: 22px; height: 22px; border-color: #fff; border-style: solid; z-index: 2; }
.hero-corner.tl { top: 12px; left: 12px; border-width: 2px 0 0 2px; }
.hero-corner.br { bottom: 44px; right: 12px; border-width: 0 2px 2px 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--c-line); position: relative; }
.stat { padding: 26px 24px 4px 0; border-right: 1px solid var(--c-line); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-size: clamp(34px, 4vw, 54px); line-height: 1; }
.stat span { display: block; margin-top: 10px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--c-subtle); }

/* ---------- proof marquee ---------- */
.marquee { border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); overflow: hidden; background: var(--c-panel); }
.marquee-track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee-track span {
  padding: 22px 34px; font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-size: 15px;
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; color: var(--c-muted);
}
.marquee-track span::after { content: "\25CF"; margin-left: 34px; font-size: 8px; vertical-align: middle; color: var(--c-subtle); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- split / generic ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .lead { margin-top: 0; max-width: 46ch; }

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--c-line); border-left: 1px solid var(--c-line); }
.pillar { padding: 34px 30px 38px; border-right: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); transition: background .3s; }
.pillar:hover { background: var(--c-panel-2); }
.pillar .num { font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-size: 14px; color: var(--c-subtle); letter-spacing: .1em; }
.pillar h3 { margin: 40px 0 12px; }
.pillar p { margin: 0; color: var(--c-muted); font-size: 16px; }

/* ---------- programs + pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.plan { background: var(--c-panel); border: 1px solid var(--c-line); display: flex; flex-direction: column; }
.plan-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-panel-2); position: relative; }
.plan-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.plan:hover .plan-media img { transform: scale(1.04); }
.plan-badge {
  position: absolute; top: 16px; left: 16px; background: var(--c-btn-bg); color: var(--c-btn-fg); padding: 7px 12px;
  font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
}
.plan-body { padding: 32px 32px 34px; display: flex; flex-direction: column; flex: 1; color: var(--c-fg); }
.plan-body .h-md { margin-bottom: 10px; }
.plan-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; }
.plan-meta span { border: 1px solid var(--c-line-2); padding: 6px 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.price-list { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--c-line); }
.price-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--c-line); }
.price-list .what { font-weight: 600; }
.price-list .what small { display: block; font-weight: 400; color: var(--c-subtle); font-size: 13px; }
.price-list .amt { font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-size: 24px; white-space: nowrap; }
.price-list .amt small { font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--c-subtle); }
.price-list .free .amt { font-size: 20px; }
.plan-body .btn { margin-top: auto; width: 100%; }
.plan-foot { margin: 14px 0 0; font-size: 13px; color: var(--c-subtle); text-align: center; }
.plan-foot a { color: var(--c-fg); }

/* ---------- coach ---------- */
.coach-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--c-line-2); }
.coach-media img { width: 100%; height: 100%; object-fit: cover; }
.creds { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--c-line); }
.creds li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--c-line); color: var(--c-muted); }
.creds li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; background: var(--c-fg); }
.creds b { color: var(--c-fg); }

/* ---------- schedule ---------- */
.sched { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); }
.sched-day { background: var(--c-bg); padding: 34px 30px; }
.sched-day b { display: block; font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-size: clamp(40px, 4.5vw, 60px); line-height: 1; }
.sched-day .d { font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--c-subtle); }
.sched-day p { margin: 12px 0 0; color: var(--c-muted); font-size: 15px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { border-top: 2px solid var(--c-fg); padding-top: 26px; }
.step .n { font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-size: 64px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--c-subtle); }
.step h3 { margin: 18px 0 10px; }
.step p { margin: 0; color: var(--c-muted); font-size: 16px; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gallery figure { margin: 0; overflow: hidden; position: relative; background: var(--c-panel); aspect-ratio: 3 / 4; }
.gallery img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15); transition: transform .9s var(--ease-out), filter .5s; transform-origin: 50% 0; }
.gallery figure:hover img { transform: scale(1.05); filter: grayscale(0); }

/* ---------- location map ---------- */
.loc-list { list-style: none; margin: 30px 0; padding: 0; }
.loc-item {
  display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 16px; padding: 20px; width: 100%;
  border: 1px solid var(--c-line-2); background: var(--c-panel); text-decoration: none; color: var(--c-fg); transition: border-color .25s, background .25s;
}
.loc-item:hover { border-color: var(--c-fg); background: var(--c-panel-2); }
.loc-item b { display: block; font-size: 17px; }
.loc-item small { display: block; color: var(--c-muted); font-size: 14px; }
.loc-item .loc-days { color: var(--c-fg); font-weight: 700; letter-spacing: .04em; }
.map-frame { position: relative; aspect-ratio: 1 / 1; border: 1px solid var(--c-line-2); background: var(--c-panel); overflow: hidden; }
.map { position: absolute; inset: 0; }
.map .leaflet-tile-pane { filter: var(--map-filter); }
.map.map-failed::before { content: "Map could not load. Legacy Athletics, 9748 12 Avenue SW, Edmonton."; position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--c-muted); }
.map-live {
  position: absolute; top: 14px; left: 14px; z-index: 500; display: inline-flex; align-items: center; gap: 8px;
  background: var(--c-head-solid); color: var(--c-fg); border: 1px solid var(--c-line-2); padding: 7px 12px; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
}
.map-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-fg); animation: ping 2s infinite; }
.beacon { position: relative; display: block; width: 28px; height: 28px; }
.beacon i { position: absolute; inset: 8px; border-radius: 50%; background: var(--c-fg); box-shadow: 0 0 0 3px var(--c-dot-ring); }
.beacon::before, .beacon::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--c-fg); opacity: 0;
  animation: beacon 2.4s var(--ease-out) infinite; animation-delay: var(--d, 0s);
}
.beacon::after { animation-delay: calc(var(--d, 0s) + 1.2s); }
@keyframes beacon { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
.beacon-sm { width: 22px; height: 22px; }
.beacon-sm i { inset: 6px; }
.beacon-wrap { background: none; border: 0; }
.leaflet-container { background: var(--c-panel); font-family: var(--font-body); }
.sw-popup .leaflet-popup-content-wrapper { background: var(--c-panel); color: var(--c-fg); border-radius: 0; border: 1px solid var(--c-line-2); box-shadow: 0 20px 40px var(--c-shadow); }
.sw-popup .leaflet-popup-tip { background: var(--c-panel); }
.map-pop small { display: block; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--c-subtle); }
.map-pop b { display: block; font-size: 15px; margin: 2px 0 4px; }
.map-pop span { display: block; font-size: 13px; color: var(--c-muted); }
.map-pop a { display: inline-block; margin-top: 8px; color: var(--c-fg); font-weight: 700; font-size: 13px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--c-line); }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 24px 0;
  font-family: var(--font-display); font-weight: 900; font-stretch: 112%; font-size: clamp(17px, 1.6vw, 21px); text-transform: uppercase; letter-spacing: .01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--c-muted); max-width: 70ch; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; padding: clamp(90px, 12vw, 160px) 0; text-align: center; background: var(--c-bg); border-top: 1px solid var(--c-line); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: url("assets/card-group-2026-11.jpg") 50% 10% / cover no-repeat; opacity: .22; filter: grayscale(1); }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 0%, var(--c-bg) 75%); }
.cta-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.cta-inner .lead { margin: 24px auto 36px; text-align: center; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--c-line); position: relative; overflow: hidden; }
.page-hero .lead { max-width: 56ch; }
.crumbs { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--c-subtle); margin-bottom: 22px; }
.crumbs a { text-decoration: none; color: var(--c-muted); }

/* ---------- contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); }
.contact-card { background: var(--c-bg); padding: 32px 28px; text-decoration: none; transition: background .25s; display: block; }
.contact-card:hover { background: var(--c-panel-2); }
.contact-card small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--c-subtle); }
.contact-card b { display: block; margin-top: 12px; font-size: 18px; word-break: break-word; }

/* ---------- policies / prose ---------- */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--font-display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: 24px; margin: 48px 0 14px; }
.prose ul { padding-left: 20px; color: var(--c-muted); }
.prose li { margin: 8px 0; }
.prose p { color: var(--c-muted); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--c-line); padding: 72px 0 0; background: var(--c-bg); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.foot-brand p { color: var(--c-muted); max-width: 34ch; margin: 18px 0 22px; font-size: 15px; }
.foot-h { font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--c-subtle); margin: 0 0 16px; }
.site-footer a:not(.btn):not(.brand) { display: block; color: var(--c-muted); text-decoration: none; font-size: 15px; padding: 4px 0; }
.site-footer a:not(.btn):not(.brand):hover { color: var(--c-fg); }
.site-footer p { font-size: 15px; color: var(--c-muted); margin: 0 0 14px; }
.site-footer p a { display: inline !important; padding: 0 !important; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--c-line); font-size: 13px; color: var(--c-subtle); }
.foot-legal nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-legal nav a { display: inline !important; font-size: 13px !important; }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee-track, .pill .dot, .beacon::before, .beacon::after, .map-live .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero .hero-media { margin: 0 auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--c-line); }
  .plans { grid-template-columns: 1fr; }
  .pillars, .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--c-bg);
    border-bottom: 1px solid var(--c-line); padding: 8px var(--pad) 24px; transform: translateY(-120%); transition: transform .35s var(--ease-out);
    max-height: calc(100vh - 76px); overflow: auto;
  }
  .nav-open .nav { transform: none; }
  .nav a:not(.btn) { padding: 18px 0; border-bottom: 1px solid var(--c-line); font-size: 14px; }
  .nav a.is-on::after { display: none; }
  .nav .btn { margin-top: 20px; min-height: 54px; }
  .sched { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .head-row { height: 68px; }
  .nav { inset: 68px 0 auto 0; }
  .brand span { font-size: 13px; }
  .hero-actions .btn { width: 100%; }
  .stat { padding-right: 12px; }
  .stat + .stat { padding-left: 12px; }
  .stat:nth-child(3) { padding-left: 0; }
  .plan-body { padding: 26px 22px 28px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .loc-item { padding: 16px; }
}

/* ---------- theme toggle ---------- */
.theme-toggle {
  display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; background: transparent; color: var(--c-fg);
  border: 1px solid var(--c-line-2); border-radius: 50%; cursor: pointer; transition: border-color .25s, transform .4s var(--ease-out);
}
.theme-toggle:hover { border-color: var(--c-fg); transform: rotate(-12deg); }
.theme-toggle svg { grid-area: 1 / 1; transition: opacity .3s, transform .4s var(--ease-out); }
.theme-toggle .i-moon { opacity: 0; transform: scale(.6) rotate(-40deg); }
html[data-theme="light"] .theme-toggle .i-sun { opacity: 0; transform: scale(.6) rotate(40deg); }
html[data-theme="light"] .theme-toggle .i-moon { opacity: 1; transform: none; }

/* ---------- route finder (map) ---------- */
.route { margin: 26px 0 0; padding: 22px; border: 1px solid var(--c-line-2); background: var(--c-panel); }
.route label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--c-subtle); margin-bottom: 12px; }
.route-row { display: flex; gap: 10px; }
.route-row input {
  flex: 1; min-width: 0; height: 52px; padding: 0 16px; background: var(--c-bg); color: var(--c-fg); border: 1px solid var(--c-line-2);
  font: 500 16px var(--font-body); border-radius: 0;
}
.route-row input:focus { outline: none; border-color: var(--c-fg); }
.route-row .btn { min-height: 52px; padding: 0 20px; }
.route-modes { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.route-modes button {
  background: transparent; color: var(--c-muted); border: 1px solid var(--c-line); padding: 8px 12px; cursor: pointer;
  font: 700 12px var(--font-body); letter-spacing: .12em; text-transform: uppercase;
}
.route-modes button[aria-pressed="true"] { background: var(--c-fg); color: var(--c-bg); border-color: var(--c-fg); }
.route-sugs { list-style: none; margin: 8px 0 0; padding: 0; border: 1px solid var(--c-line); max-height: 220px; overflow: auto; }
.route-sugs:empty { display: none; }
.route-sugs button { display: block; width: 100%; text-align: left; padding: 12px 14px; background: var(--c-bg); color: var(--c-fg); border: 0; border-bottom: 1px solid var(--c-line); cursor: pointer; font: 500 14px var(--font-body); }
.route-sugs button:hover, .route-sugs button:focus { background: var(--c-panel-2); outline: none; }
.route-out { margin: 14px 0 0; font-size: 15px; color: var(--c-muted); min-height: 1.4em; }
.route-out b { color: var(--c-fg); font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: 22px; }
.route-out a { color: var(--c-fg); font-weight: 700; }
.route-line { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 2.2s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.me-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--c-bg); border: 3px solid var(--c-fg); box-shadow: 0 0 0 4px var(--c-line-2); }

@media (max-width: 560px) { .route-row { flex-direction: column; } .route-row .btn { width: 100%; } }
.head-tools { display: flex; align-items: center; gap: 10px; order: 3; }
@media (min-width: 861px) { .head-row { gap: 28px; } .nav { margin-left: auto; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--c-btn-bg); color: var(--c-btn-fg); padding: 10px 16px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }
.hero .h-xl { font-size: clamp(40px, 5.6vw, 84px); }
.leaflet-container .map-pop a, .sw-popup a { color: var(--c-fg) !important; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .pill { font-size: 10px; letter-spacing: .14em; padding: 8px 12px; } }
@media (max-width: 560px) {
  .route-row input { flex: none; width: 100%; height: 52px; }
  .btn { letter-spacing: .1em; padding: 0 20px; }
}

/* ---------- home: inside a session, why SW, program CTAs ---------- */
.btn-ghost { background: transparent; color: var(--c-fg); border-color: var(--c-line-2); }
.btn-ghost:hover { border-color: var(--c-fg); }
.plan-ctas { display: grid; gap: 10px; margin-top: auto; }
.plan-ctas .btn { width: 100%; }
.plan-body .plan-ctas + .plan-foot { margin-top: 14px; }
.ticks { list-style: none; margin: 4px 0 26px; padding: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--c-muted); }
.ticks li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; background: var(--c-fg); }
.inside-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-line); }
.inside-list li { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--c-line); }
.inside-list b { font-family: var(--font-display); font-stretch: 112%; font-weight: 900; text-transform: uppercase; font-size: 15px; letter-spacing: .03em; }
.inside-list span { color: var(--c-muted); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); }
.compare-col { background: var(--c-bg); padding: 32px 30px; }
.compare-col.is-sw { background: var(--c-panel-2); }
.compare-h { font-family: var(--font-display); font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: 20px; margin: 0 0 18px; }
.compare-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.compare-col li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--c-muted); }
.compare-col li::before { content: "\2013"; color: var(--c-subtle); }
.compare-col.is-sw li { color: var(--c-fg); }
.compare-col.is-sw li::before { content: "\2713"; color: var(--c-fg); font-weight: 900; }
@media (max-width: 860px) { .inside-list li { grid-template-columns: 1fr; gap: 6px; } .compare { grid-template-columns: 1fr; } }

/* ---------- map: the SW logo travels the path to the gym ---------- */
.sw-pin { width: 46px; height: 46px; border-radius: 50%; background: var(--c-fg); display: grid; place-items: center; box-shadow: 0 0 0 4px var(--c-bg), 0 10px 24px rgba(0,0,0,.45); }
.sw-pin img { width: 28px; height: auto; }
html:not([data-theme="light"]) .sw-pin img { filter: none; }
html[data-theme="light"] .sw-pin img { filter: invert(1); }
.sw-pin-home { animation: pinland .6s var(--ease-out); }
@keyframes pinland { 0% { transform: scale(1.5); } 100% { transform: scale(1); } }
.trail-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-fg); opacity: .6; }

/* ---------- inner page hero with a photo: balanced two columns ----------
   Headline sized to the column (not the full-width XL), photo at the same
   visual weight, both centred on one axis. Photos stay top-anchored so no
   head is ever cut. */
.page-hero .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(32px, 5vw, 80px); }
.page-hero .split .h-xl { font-size: clamp(40px, 5vw, 76px); }
.page-hero .split .lead { max-width: 46ch; }
.page-hero .split .hero-media { width: 100%; max-width: 460px; justify-self: end; aspect-ratio: 4 / 5; }
@media (max-width: 1020px) { .page-hero .split .hero-media { justify-self: start; max-width: 520px; } }
/* Leaflet sets marker-pane images to width:auto; keep the SW logo pin-sized. */
.leaflet-container .leaflet-marker-pane .sw-pin img { width: 28px !important; height: auto !important; max-width: 28px !important; }
.gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery figure:first-child { grid-column: span 2; aspect-ratio: 4 / 3; } }

/* ---------- story, mission + vision, video band ---------- */
.story { align-items: center; }
.story-media { position: relative; }
.story-photo { aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--c-line-2); }
.story-photo img { width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.story-badge { position: absolute; right: -18px; bottom: 28px; max-width: 240px; background: var(--c-btn-bg); color: var(--c-btn-fg); padding: 18px 20px; box-shadow: 0 20px 40px var(--c-shadow); }
.story-badge b { display: block; font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: 34px; line-height: 1; }
.story-badge span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.45; }
.story-copy { display: grid; gap: 16px; margin-top: 24px; max-width: 58ch; color: var(--c-muted); }
.story-copy p { margin: 0; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.mv-text { font-family: var(--font-display); font-weight: 900; font-stretch: 112%; text-transform: uppercase; font-size: clamp(24px, 2.8vw, 38px); line-height: 1.12; margin: 0; letter-spacing: -.005em; }
.mv-text .w { opacity: .18; transition: opacity .35s ease; }
.mv-text .w.on { opacity: 1; }
.video-frame { position: relative; width: 100%; max-width: 380px; justify-self: center; aspect-ratio: 9 / 16; border: 1px solid var(--c-line-2); overflow: hidden; background: #000; box-shadow: 0 40px 80px -30px var(--c-shadow); }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.hero-media img { will-change: transform; }

/* ---------- conversion: sticky mobile CTA + scroll progress ---------- */
.sticky-cta { display: none; }
@media (max-width: 860px) {
  .sticky-cta {
    display: flex; align-items: center; justify-content: center; gap: 10px; position: fixed; z-index: 60;
    left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    min-height: 54px; background: var(--c-btn-bg); color: var(--c-btn-fg); text-decoration: none; font-weight: 800; font-size: 14px;
    letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 16px 40px rgba(0,0,0,.45);
    transform: translateY(140%); transition: transform .45s var(--ease-out);
  }
  .sticky-cta.on { transform: none; }
  .site-footer { padding-bottom: 80px; }
}
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; background: var(--c-fg); transform-origin: 0 50%; transform: scaleX(0); }

@media (max-width: 1020px) { .mv-grid { grid-template-columns: 1fr; } .story-badge { right: 12px; } }
@media (prefers-reduced-motion: reduce) { .mv-text .w { opacity: 1; } .sticky-cta { transition: none; } [data-parallax] { transform: none !important; } }
/* parallax room: the photo is a little taller than its frame, so it never shows a gap while it drifts (heads sit below the trimmed top 4%) */
.hero > .wrap .hero-media img[data-parallax] { height: 108%; margin-top: -4%; }
.story-photo img { height: 112%; margin-top: -6%; }
@media (max-width: 1020px) { .story-badge { position: relative; right: auto; bottom: auto; max-width: none; margin: -28px 16px 0; } }

/* ---------- phone hero: the training video sits full-bleed behind the headline ---------- */
@media (max-width: 700px) {
  .hero .hero-grid { position: static; }
  .hero .hero-grid > div:first-child { position: relative; z-index: 2; }
  .hero .hero-media { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; margin: 0; max-width: none; border: 0; box-shadow: none; z-index: 0; }
  .hero .hero-media video { object-position: 50% 20%; }
  .hero .hero-media::after { background: linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.78) 55%, var(--c-bg) 100%); }
  .hero .hero-tag { display: none; }
  .hero .stats { position: relative; z-index: 2; }
  :root[data-theme="light"] .hero .hero-media::after { background: linear-gradient(180deg, rgba(222,220,214,.7) 0%, rgba(222,220,214,.88) 55%, var(--c-bg) 100%); }
}
