/**
 * STRIDE — original Tunai theme for athletic training studios & run clubs.
 * "Track lanes at noon": bright white daylight, signal-orange lane stripes,
 * forward-leaning italic caps, speed ticks and a checkered finish line.
 * Scoped under .stride-theme.
 */

.stride-theme {
  --st-bg: #fcfcfb;
  --st-ink: #101d33;
  --st-muted: #5c6678;
  --st-wash: #eef0f3;
  --st-orange: #f05a24;
  --st-orange-deep: #cf4517;
  --st-orange-soft: rgba(240, 90, 36, 0.12);
  --st-orange-line: rgba(240, 90, 36, 0.26);
  --st-on-orange: #ffffff;
  --st-line: rgba(16, 29, 51, 0.12);
  --st-line-soft: rgba(16, 29, 51, 0.07);
  --fx-accent: var(--st-orange);
  --fx-spot: var(--st-orange-soft);
  --st-display: "Archivo", "Inter", sans-serif;
  --st-body: "Inter", ui-sans-serif, system-ui, sans-serif;

  background: var(--st-bg);
  color: var(--st-ink);
  font-family: var(--st-body);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

.stride-theme *,
.stride-theme *::before,
.stride-theme *::after {
  box-sizing: border-box;
}

.stride-theme img {
  max-width: 100%;
  display: block;
}

.stride-theme a {
  color: inherit;
  text-decoration: none;
}

.st-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Root chrome: bright light page, orange scrollbar thumb. */
:root:has(.stride-theme) {
  color-scheme: light;
  scrollbar-width: thin;
  scrollbar-color: rgba(240, 90, 36, 0.55) #eef0f3;
}

/* Faint wide track lanes sweeping the top of the canvas — noon light. */
.stride-theme::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: repeating-linear-gradient(
    100deg,
    rgba(16, 29, 51, 0.03) 0 3px,
    transparent 3px 120px
  );
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.35) 40%, transparent 68%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.35) 40%, transparent 68%);
}

.stride-theme > *:not(:where(.st-deco)) {
  position: relative;
  z-index: 1;
}

.stride-theme ::selection {
  background: var(--st-orange);
  color: #fff;
}

/* ── Signature marks ─────────────────────────────────────────────────── */

/* Speed ticks — three short parallel slashes. */
.st-ticks {
  display: inline-block;
  flex: 0 0 auto;
  width: 21px;
  height: 11px;
  background: repeating-linear-gradient(90deg, var(--st-orange) 0 4px, transparent 4px 8.5px);
  transform: skewX(-24deg);
}

/* Finish line — dashed checker strip. */
.st-finish {
  display: block;
  height: 10px;
  background: repeating-conic-gradient(var(--st-ink) 0% 25%, #fff 0% 50%);
  background-size: 10px 10px;
}

/* Eyebrow chip — navy plate with orange ticks, leaning forward. */
.st-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 8px 18px 8px 15px;
  background: var(--st-ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}

/* Display type helper — heavy forward-leaning caps. */
.st-hero h1,
.st-sec-head h2,
.st-visit-panel h2 {
  font-family: var(--st-display);
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.st-go {
  font-style: inherit;
  color: var(--st-orange);
}

/* ── Buttons: parallelogram slabs that surge forward ─────────────────── */
.st-btn {
  position: relative;
  display: inline-block;
  padding: 15px 36px;
  background: var(--st-orange);
  color: var(--st-on-orange);
  font-family: var(--st-display);
  font-style: italic;
  font-weight: 900;
  font-size: 13.5px;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  clip-path: polygon(13px 0, 100% 0, calc(100% - 13px) 100%, 0 100%);
  border: 0;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s;
  overflow: hidden;
}

/* Sheen streak sweeps through on hover — the surge. */
.st-btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
  transition: left 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.st-btn:hover {
  transform: translateX(6px);
  background: var(--st-orange-deep);
}

.st-btn:hover::after,
.st-btn:focus-visible::after {
  left: 125%;
}

.st-btn--ghost {
  background: transparent;
  color: var(--st-ink);
  box-shadow: inset 0 0 0 2px var(--st-ink);
}

.st-btn--ghost:hover {
  background: var(--st-ink);
  color: var(--st-bg);
}

/* Specificity guard: `.stride-theme a` outranks `.st-btn`; re-state colours. */
.stride-theme .st-btn {
  color: var(--st-on-orange);
}

.stride-theme .st-btn--ghost {
  color: var(--st-ink);
}

.stride-theme .st-btn--ghost:hover {
  color: var(--st-bg);
}

/* The clipped button crops an offset outline — draw the ring inside it. */
.stride-theme :is(a, button):focus-visible {
  outline: 2px solid var(--st-orange);
  outline-offset: 3px;
}

.stride-theme .st-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -7px;
}

.stride-theme .st-btn--ghost:focus-visible {
  outline-color: var(--st-orange);
}

/* ── Nav ─────────────────────────────────────────────────────────────── */
.st-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 28px;
  background: rgba(252, 252, 251, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--st-line);
}

.st-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--st-display);
  font-style: italic;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.st-nav-links a {
  position: relative;
  padding-bottom: 4px;
  color: var(--st-muted);
  transition: color 0.2s;
}

.st-nav-links a:hover {
  color: var(--st-ink);
}

/* Slanted orange underline snaps in — scrollspy keeps it drawn. */
.st-nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--st-orange);
  transform: skewX(-24deg) scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.st-nav-links a:hover::after,
.st-nav-links a.fx-active::after {
  transform: skewX(-24deg) scaleX(1);
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.st-hero {
  padding: 84px 0 0;
}

.st-hero h1 {
  margin: 0 0 20px;
  font-size: calc(clamp(40px, 8.4vw, 106px) * var(--tx-scale, 1));
  line-height: 0.98;
  overflow-wrap: anywhere;
  text-wrap: balance;
  /* Italic overhang breathing room at the line end. */
  padding-right: 0.06em;
}

/* Splittext clips each word in its own box — give italics overhang room. */
.stride-theme [data-splittext] .fx-w {
  padding-right: 0.12em;
  margin-right: -0.12em;
}

.st-hero-sub {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.st-hero-sub p {
  margin: 0;
  color: var(--st-muted);
  font-size: 17px;
  max-width: 50ch;
}

.st-hero-cta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* Hero photo: finish-line strip on the top edge, stat chips riding it. */
.st-hero-img {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow:
    0 30px 60px -26px rgba(16, 29, 51, 0.45),
    0 12px 28px -18px rgba(240, 90, 36, 0.28);
}

.st-hero-img img {
  width: 100%;
  height: min(60vh, 540px);
  object-fit: cover;
}

.st-hero-img .st-finish {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  opacity: 0.92;
}

.st-hero-stats {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.st-hero-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 18px;
  background: rgba(252, 252, 251, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--st-ink);
}

.st-hero-stats b {
  font-family: var(--st-display);
  font-style: italic;
  font-weight: 900;
  font-size: 16px;
  color: var(--st-orange);
  font-variant-numeric: tabular-nums;
}

/* The track under the hero — lane bands with one signal-orange lane. */
.st-lanes {
  height: 52px;
  margin-top: 44px;
  background:
    linear-gradient(180deg, transparent 0 15px, var(--st-orange) 15px 26px, transparent 26px 100%),
    repeating-linear-gradient(180deg, var(--st-wash) 0 11px, var(--st-bg) 11px 15px);
}

/* ── Ticker ──────────────────────────────────────────────────────────── */
.st-marquee {
  background: var(--st-ink);
  color: #fff;
  padding: 13px 0;
}

.st-marquee em {
  position: relative;
  padding: 0 38px;
  font-family: var(--st-display);
  font-style: italic;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.st-marquee em::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 21px;
  height: 11px;
  translate: 0 -50%;
  background: repeating-linear-gradient(90deg, var(--st-orange) 0 4px, transparent 4px 8.5px);
  transform: skewX(-24deg);
}

/* ── Sections ────────────────────────────────────────────────────────── */
.st-section {
  padding: 100px 0 0;
}

.st-section:last-of-type {
  padding-bottom: 0;
}

.st-sec-head {
  margin-bottom: 46px;
}

.st-sec-head h2 {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.02;
  overflow-wrap: anywhere;
  padding-right: 0.08em;
}

/* Lane dashes racing out from under the heading. */
.st-sec-head::after {
  content: "";
  display: block;
  margin-top: 18px;
  height: 8px;
  width: 132px;
  background: repeating-linear-gradient(90deg, var(--st-orange) 0 26px, transparent 26px 36px);
  transform: skewX(-24deg);
  transform-origin: left bottom;
}

/* ── Services: the training menu ─────────────────────────────────────── */
.st-menu {
  border-top: 1px solid var(--st-line);
}

.st-svc {
  position: relative;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 26px 10px;
  border-bottom: 1px solid var(--st-line);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.st-svc > * {
  position: relative;
  z-index: 1;
}

/* Orange lane streak surges in behind the hovered row. */
.st-svc::before {
  content: "";
  position: absolute;
  inset: 8px -14px;
  z-index: 0;
  background:
    repeating-linear-gradient(180deg, transparent 0 10px, rgba(255, 255, 255, 0.5) 10px 12px),
    linear-gradient(90deg, var(--st-orange-soft), rgba(240, 90, 36, 0.03) 85%);
  transform: skewX(-12deg) scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.st-svc:hover {
  transform: translateX(6px);
}

.st-svc:hover::before {
  transform: skewX(-12deg) scaleX(1);
}

/* Big outlined index number. */
.st-svc-idx {
  flex: 0 0 auto;
  min-width: 76px;
  font-family: var(--st-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1;
  letter-spacing: 0;
  color: transparent;
  -webkit-text-stroke: 1.6px rgba(16, 29, 51, 0.32);
  font-variant-numeric: tabular-nums;
  transition: -webkit-text-stroke-color 0.25s;
}

.st-svc:hover .st-svc-idx {
  -webkit-text-stroke-color: var(--st-orange);
}

.st-svc-main {
  min-width: 0;
  flex: 1;
}

.st-svc-name {
  display: block;
  font-family: var(--st-display);
  font-style: italic;
  font-weight: 800;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  padding-right: 0.1em;
  transition: color 0.2s;
}

.st-svc:hover .st-svc-name {
  color: var(--st-orange-deep);
}

.st-svc-meta {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--st-muted);
}

.st-svc-tail {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

/* Duration as a lane-striped pill. */
.st-svc-dur {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--st-line);
  background: repeating-linear-gradient(90deg, var(--st-wash) 0 12px, #fff 12px 15px);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--st-ink);
}

.st-svc-price {
  font-family: var(--st-display);
  font-style: italic;
  font-weight: 900;
  font-size: 19px;
  color: var(--st-orange);
  font-variant-numeric: tabular-nums;
  padding-right: 0.08em;
}

.st-svc-book {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--st-ink);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.22s, transform 0.22s;
}

.st-svc:hover .st-svc-book {
  opacity: 1;
  transform: translateX(0);
}

/* ── Gallery: forward-slanted tiles, navy duotone ────────────────────── */
.st-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.st-gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--st-wash);
  clip-path: polygon(20px 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
  transition: clip-path 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.st-gallery figure:hover,
.st-gallery figure:focus-visible {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.st-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

/* Light sheen that sprints across on hover (curtain uses ::before — free). */
.st-gallery figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
  transform: translateX(-130%);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.st-gallery figure:hover::after {
  transform: translateX(130%);
}

.st-gallery figure:hover img {
  transform: scale(1.05);
}

/* ── Team: the coaches ───────────────────────────────────────────────── */
.st-team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}

.st-coach {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--st-line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 30px -20px rgba(16, 29, 51, 0.35);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s;
}

/* Forward lean on hover. */
.st-coach:hover {
  transform: translateX(6px) skewX(-1.5deg);
  box-shadow:
    0 22px 44px -22px rgba(16, 29, 51, 0.4),
    0 10px 24px -16px rgba(240, 90, 36, 0.35);
}

.st-coach img {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
}

.st-coach-blank {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  background:
    linear-gradient(180deg, transparent 0 44%, var(--st-orange-soft) 44% 52%, transparent 52%),
    repeating-linear-gradient(180deg, var(--st-wash) 0 14px, #fff 14px 18px);
}

.st-coach-band {
  position: relative;
  display: block;
  padding: 15px 18px 16px;
  background: var(--st-ink);
  color: #fff;
}

.st-coach-band .st-ticks {
  position: absolute;
  top: 18px;
  right: 16px;
}

.st-coach-band b {
  display: block;
  font-family: var(--st-display);
  font-style: italic;
  font-weight: 800;
  font-size: 15.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.3;
  overflow-wrap: anywhere;
  padding-right: 28px;
}

.st-coach-title {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

/* ── Classes: upcoming sessions ──────────────────────────────────────── */
.st-classes {
  display: grid;
  gap: 12px;
}

.st-class {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 20px 26px;
  background: #fff;
  border: 1px solid var(--st-line);
  border-radius: 8px;
  box-shadow: 0 10px 24px -18px rgba(16, 29, 51, 0.3);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s;
}

.st-class::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 8px 0 0 8px;
  background: var(--st-orange);
  transform: scaleY(0);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.st-class:hover {
  transform: translateX(6px);
  box-shadow:
    0 16px 34px -20px rgba(16, 29, 51, 0.35),
    0 8px 20px -14px rgba(240, 90, 36, 0.3);
}

.st-class:hover::before {
  transform: scaleY(1);
}

.st-class-main {
  min-width: 0;
}

.st-class b {
  font-family: var(--st-display);
  font-style: italic;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.st-class-when {
  display: block;
  margin-top: 3px;
  color: var(--st-muted);
  font-size: 13px;
}

.st-class-seats {
  font-family: var(--st-display);
  font-style: italic;
  font-weight: 900;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--st-orange);
  white-space: nowrap;
  padding-right: 0.08em;
}

.st-class-seats.is-full {
  color: var(--st-muted);
}

/* ── Visit: navy trackside panel ─────────────────────────────────────── */
.st-visit {
  padding: 100px 0;
}

.st-visit-panel {
  position: relative;
  background: var(--st-ink);
  color: #eef1f6;
  border-radius: 12px;
  padding: 60px 52px 54px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 44px;
  align-items: center;
  overflow: hidden;
  box-shadow:
    0 30px 70px -30px rgba(16, 29, 51, 0.6),
    0 14px 34px -20px rgba(240, 90, 36, 0.3);
}

/* Night lanes across the panel + a warm glow from the top corner. */
.st-visit-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 90% at 88% 8%, rgba(240, 90, 36, 0.22), transparent 62%),
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.045) 0 3px, transparent 3px 64px);
  pointer-events: none;
}

/* Beat `.st-visit-panel > *` (same specificity, later) with a compound. */
.st-visit-panel .st-finish--panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0.85;
}

.st-visit-panel > * {
  position: relative;
}

.st-visit-panel h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.05;
  text-wrap: balance;
  overflow-wrap: anywhere;
  padding-right: 0.08em;
}

.st-visit-panel p {
  margin: 0 0 8px;
  color: rgba(238, 241, 246, 0.75);
}

.st-visit-panel .st-visit-info a {
  color: #fff;
  border-bottom: 2px solid var(--st-orange);
  transition: color 0.2s;
}

.st-visit-panel .st-visit-info a:hover {
  color: var(--st-orange);
}

.st-outlets {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  font-size: 13.5px;
}

.st-outlets li {
  margin-bottom: 6px;
  padding-left: 16px;
  background:
    linear-gradient(var(--st-orange), var(--st-orange)) 2px 50% / 7px 2px no-repeat;
}

.st-visit-panel .st-outlets a {
  border-bottom: 0;
  color: rgba(238, 241, 246, 0.65);
}

.st-visit-panel .st-outlets a:hover {
  color: #fff;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.st-footer {
  border-top: 1px solid var(--st-line);
  padding: 28px 0 40px;
  color: var(--st-muted);
  font-size: 13px;
}

.st-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.st-footer a {
  transition: color 0.2s;
}

.st-footer a:hover {
  color: var(--st-orange-deep);
}

.st-footer-social {
  display: flex;
  gap: 20px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ── Motion ──────────────────────────────────────────────────────────── */

/* Reveals surge in from behind the start line. */
.tfx .stride-theme [data-reveal] {
  opacity: 0;
  translate: -26px 10px;
  transition: opacity 0.5s ease, translate 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tfx .stride-theme [data-reveal].is-in {
  opacity: 1;
  translate: 0 0;
}

/* Hero intro: copy sprints in from the left. */
.stride-theme .st-hero > .st-wrap > *,
.stride-theme .st-hero-img,
.stride-theme .st-lanes {
  animation: st-in 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.stride-theme .st-hero > .st-wrap > h1 { animation-delay: 0.06s; }
.stride-theme .st-hero > .st-wrap > .st-hero-sub { animation-delay: 0.14s; }
.stride-theme .st-hero-img { animation-delay: 0.22s; }
.stride-theme .st-lanes { animation-delay: 0.3s; }

@keyframes st-in {
  from {
    opacity: 0;
    translate: -34px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stride-theme .st-hero > .st-wrap > *,
  .stride-theme .st-hero-img,
  .stride-theme .st-lanes {
    animation: none;
  }

  .tfx .stride-theme [data-reveal] {
    opacity: 1;
    translate: 0 0;
    transition: none;
  }

  .st-btn,
  .st-svc,
  .st-coach,
  .st-class,
  .st-gallery figure,
  .st-gallery figure::after,
  .st-gallery img {
    transition: none !important;
  }
}

/* ── Mobile bar ──────────────────────────────────────────────────────── */
.st-mobile-bar {
  display: none;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .st-section {
    padding-top: 84px;
  }

  .st-visit {
    padding: 84px 0;
  }
}

@media (max-width: 860px) {
  .st-nav-links {
    display: none;
  }

  .st-hero {
    padding-top: 56px;
  }

  .st-lanes {
    margin-top: 32px;
    height: 40px;
  }

  .st-section {
    padding-top: 72px;
  }

  .st-visit {
    padding: 72px 0;
  }

  .st-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .st-gallery figure {
    clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  }

  .st-visit-panel {
    grid-template-columns: 1fr;
    padding: 46px 32px 40px;
  }
}

@media (max-width: 720px) {
  .st-nav > .st-btn {
    display: none;
  }

  .st-mobile-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(252, 252, 251, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--st-line);
    justify-content: center;
  }

  .st-mobile-bar .st-btn {
    width: 100%;
    text-align: center;
  }

  .st-footer {
    padding-bottom: 116px;
  }
}

@media (max-width: 640px) {
  .st-hero h1 {
    font-size: calc(clamp(34px, 10.5vw, 52px) * var(--tx-scale, 1));
  }

  .st-hero-img img {
    height: min(48vh, 400px);
  }

  .st-hero-stats {
    left: 12px;
    bottom: 12px;
    gap: 6px;
  }

  .st-hero-stats span {
    padding: 7px 12px;
    gap: 5px;
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .st-hero-stats b {
    font-size: 14px;
  }

  .st-svc {
    gap: 16px;
    padding: 22px 6px;
    flex-wrap: wrap;
  }

  .st-svc-idx {
    min-width: 48px;
    font-size: 28px;
  }

  .st-svc-main {
    flex: 1 1 60%;
  }

  .st-svc-tail {
    margin-left: 64px;
    flex-basis: 100%;
    gap: 12px;
  }

  .st-svc-book {
    display: none;
  }

  .st-class {
    padding: 18px 20px;
  }

  .st-marquee em {
    font-size: 12.5px;
    padding: 0 28px;
  }
}

@media (max-width: 480px) {
  .st-gallery {
    grid-template-columns: 1fr;
  }

  .st-gallery figure {
    aspect-ratio: 16 / 10;
  }

  .st-team {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }

  .st-coach-band {
    padding: 12px 14px 13px;
  }

  .st-coach-band b {
    font-size: 13.5px;
    padding-right: 0;
  }

  .st-coach-band .st-ticks {
    display: none;
  }

  .st-svc-tail {
    margin-left: 0;
  }

  .st-hero-sub {
    margin-bottom: 38px;
  }
}

/* ── Deco: trackside ambience — speed ticks sprinting across the lanes,
   lane arrows, stopwatches and torn finish-line fragments. ── */
.st-deco {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Sprinting ticks — short skewed dashes racing left → right. */
.st-sprint {
  position: absolute;
  left: 0;
  width: 34px;
  height: 5px;
  background: var(--st-orange);
  opacity: 0;
  animation: st-sprint linear infinite;
}

@keyframes st-sprint {
  0% { transform: translateX(-20vw) skewX(-24deg); opacity: 0; }
  10% { opacity: var(--st-sprint-o, 0.16); }
  88% { opacity: var(--st-sprint-o, 0.16); }
  100% { transform: translateX(120vw) skewX(-24deg); opacity: 0; }
}

.st-sprint--1 { top: 7%; animation-duration: 12s; }
.st-sprint--2 { top: 13%; width: 22px; height: 4px; animation-duration: 18s; animation-delay: -8s; --st-sprint-o: 0.1; }
.st-sprint--3 { top: 21%; width: 46px; animation-duration: 10s; animation-delay: -3s; }
.st-sprint--4 { top: 29%; width: 20px; height: 3px; animation-duration: 21s; animation-delay: -13s; --st-sprint-o: 0.08; }
.st-sprint--5 { top: 37%; animation-duration: 14s; animation-delay: -6s; }
.st-sprint--6 { top: 45%; width: 28px; height: 4px; animation-duration: 17s; animation-delay: -10s; --st-sprint-o: 0.12; }
.st-sprint--7 { top: 53%; width: 42px; animation-duration: 11s; animation-delay: -1.5s; }
.st-sprint--8 { top: 61%; width: 22px; height: 3px; animation-duration: 20s; animation-delay: -15s; --st-sprint-o: 0.09; }
.st-sprint--9 { top: 69%; animation-duration: 13s; animation-delay: -5s; }
.st-sprint--10 { top: 77%; width: 30px; height: 4px; animation-duration: 16s; animation-delay: -11s; --st-sprint-o: 0.12; }
.st-sprint--11 { top: 85%; width: 44px; animation-duration: 12.5s; animation-delay: -4s; }
.st-sprint--12 { top: 92%; width: 24px; height: 3px; animation-duration: 19s; animation-delay: -16s; --st-sprint-o: 0.09; }
.st-sprint--13 { top: 17%; width: 32px; animation-duration: 15s; animation-delay: -9s; --st-sprint-o: 0.13; }
.st-sprint--14 { top: 57%; width: 36px; animation-duration: 13.5s; animation-delay: -2.5s; }
.st-sprint--15 { top: 81%; width: 26px; height: 4px; animation-duration: 22s; animation-delay: -18s; --st-sprint-o: 0.1; }

/* Navy variants — a second lane of quieter traffic. */
.st-sprint--2,
.st-sprint--5,
.st-sprint--8,
.st-sprint--11,
.st-sprint--14 {
  background: rgba(16, 29, 51, 0.6);
}

/* Lane arrows — painted on the tarmac, pointing down the straight. */
.st-deco-arrows {
  position: absolute;
  width: 80px;
  height: 42px;
  color: var(--st-orange);
  opacity: 0.07;
  transform: skewX(-8deg);
  animation: st-lope 20s ease-in-out infinite alternate;
}

.st-deco-arrows--1 { top: 24%; left: 3%; }
.st-deco-arrows--2 { bottom: 14%; right: 4%; width: 60px; height: 32px; color: rgba(16, 29, 51, 0.7); opacity: 0.05; animation-delay: -9s; animation-duration: 25s; }

/* Stopwatches — hovering trackside, hands mid-lap. */
.st-deco-watch {
  position: absolute;
  width: 58px;
  height: 66px;
  color: rgba(16, 29, 51, 0.7);
  opacity: 0.06;
  animation: st-lope 23s ease-in-out infinite alternate;
}

.st-deco-watch--1 { top: 12%; right: 6%; transform: rotate(10deg); animation-delay: -5s; }
.st-deco-watch--2 { top: 62%; left: 5%; width: 44px; height: 50px; color: var(--st-orange); opacity: 0.07; transform: rotate(-12deg); animation-delay: -14s; animation-duration: 27s; }

/* Finish-line fragments. */
.st-deco-checker {
  position: absolute;
  width: 88px;
  height: 29px;
  color: rgba(16, 29, 51, 0.7);
  opacity: 0.05;
  transform: skewX(-16deg);
  animation: st-lope 18s ease-in-out infinite alternate;
}

.st-deco-checker--1 { top: 42%; right: 2%; animation-delay: -7s; }
.st-deco-checker--2 { bottom: 6%; left: 12%; width: 66px; height: 22px; animation-delay: -12s; animation-duration: 24s; }

@keyframes st-lope {
  from { translate: 0 0; }
  to { translate: 16px -14px; }
}

/* ── Large anchored ornaments — race-day gear at the viewport edges. ── */

/* Finisher's medal swinging on its ribbon from the top edge. */
.st-deco-medal {
  position: absolute;
  top: -4px;
  left: 6%;
  width: 86px;
  height: 152px;
  filter: drop-shadow(0 8px 18px rgba(242, 178, 52, 0.35));
  animation: st-hang 6.5s ease-in-out infinite;
  transform-origin: 50% 0;
}

/* Coach's stopwatch on a lanyard at the top-right. */
.st-deco-bigwatch {
  position: absolute;
  top: -4px;
  right: 5%;
  width: 96px;
  height: 164px;
  opacity: 0.95;
  filter: drop-shadow(0 8px 18px rgba(16, 29, 51, 0.18));
  animation: st-hang 8s ease-in-out infinite;
  animation-delay: -3.4s;
  transform-origin: 50% 0;
}

/* Running shoe toeing out of the bottom-left corner. */
.st-deco-shoe {
  position: absolute;
  bottom: -12px;
  left: -46px;
  width: 230px;
  height: 126px;
  opacity: 0.85;
  transform: rotate(-8deg);
  animation: st-lope 22s ease-in-out infinite alternate;
}

/* Track-lane curve banking out of the bottom-right corner. */
.st-deco-lanes {
  position: absolute;
  bottom: -70px;
  right: -70px;
  width: 230px;
  height: 230px;
  opacity: 0.6;
}

@keyframes st-hang {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}

@media (max-width: 720px) {
  .st-deco-bigwatch,
  .st-deco-shoe {
    display: none;
  }

  .st-deco-medal { width: 60px; height: 108px; }
  .st-deco-lanes { width: 150px; height: 150px; bottom: -50px; right: -50px; }
}

@media (prefers-reduced-motion: reduce) {
  .st-deco * {
    animation: none !important;
  }
}
