/* ============================================================
   MUSCULUS.AI — site.css
   Page-level layout built ON colors_and_type.css tokens (--ax-*).
   No new colors/fonts invented — tokens only. No gradients.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100%; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--ax-focus); outline-offset: 2px; }

/* Fluid heading sizes (tokens give the desktop peak; scale down on mobile) */
.ax-display { font-size: clamp(40px, 8vw, 86px); }
.ax-h1 { font-size: clamp(34px, 6vw, 67px); }
.ax-h2 { font-size: clamp(28px, 4vw, 41px); }
.ax-h3 { font-size: clamp(22px, 2.6vw, 32px); }
/* Dark sections are the loud editorial beats — larger, tighter headings */
.section--dark .ax-h2 { font-size: clamp(32px, 4.8vw, 56px); line-height: 1.08; }

/* ── Layout primitives ─────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--ax-content-max); margin-inline: auto; padding-inline: var(--ax-fluid-md); }
.section { padding-block: var(--ax-fluid-lg); }
.section--tight { padding-block: var(--ax-fluid-md); }
.section--dark { background: var(--ax-canvas-dark); color: var(--ax-text-on-dark); }
.section--surface { background: var(--ax-surface); }
.stack > * + * { margin-top: var(--ax-fluid-sm); }
.eyebrow-rule { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow-rule::before { content: ""; width: 28px; height: 2px; background: var(--ax-signal); }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86); backdrop-filter: var(--ax-blur);
  border-bottom: 1px solid var(--ax-grey-100);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--ax-space-md); min-height: 64px; }
.site-nav { display: flex; align-items: center; gap: var(--ax-fluid-md); }
.site-nav a:not(.ax-btn) { font-size: var(--ax-size-body-sm); color: var(--ax-text-subdued); transition: color var(--ax-duration-short) var(--ax-ease-base); }
.site-nav a:not(.ax-btn):hover { color: var(--ax-text); }
/* The header CTA keeps its white label (nav link colour must not bleed in) */
.site-nav a.ax-btn--signal { color: #fff; font-size: var(--ax-size-body-sm); padding: 9px 18px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ax-ink); margin: 4px 0; }

/* ── Wordmark logo (analogous to Athorix.ai — red dot) ──────── */
.logo {
  font-family: var(--ax-font-display);
  font-weight: 600; font-size: 24px; letter-spacing: 0.05em;
  text-transform: uppercase; line-height: 1; color: var(--ax-ink);
  display: inline-flex; align-items: baseline;
}
.logo__dot { color: var(--ax-signal); }
.logo--light { color: #fff; }

/* ── Buttons (extend tokens) ───────────────────────────────── */
.ax-btn, .ax-btn-secondary { text-decoration: none; white-space: nowrap; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--ax-space-md); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--ax-fluid-lg); align-items: center; padding-block: var(--ax-fluid-lg); }
.hero h1 { max-width: 15ch; }
.hero__media { position: relative; aspect-ratio: 4 / 5; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); }

/* ── Hero HUD / findings overlay (the signature element) ─────
   Illustrative sample report rendered over the hero photo:
   corner brackets, scan line, floating metric tags, severity bar. */
.hud { position: relative; aspect-ratio: 4 / 5; background: var(--ax-grey-900); overflow: hidden;
  box-shadow: inset 0 0 140px 40px rgba(1,2,5,0.7); }   /* vignette → HUD pops */
.hud__photo { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.68) contrast(1.1) brightness(0.74); }
/* Scrim darkens the PHOTO for legibility only — must sit BELOW the info tags,
   otherwise it tints the metric cards (esp. the green symmetry block). */
.hud::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(1,2,5,0.30) 0%, rgba(1,2,5,0) 32%, rgba(1,2,5,0.48) 100%); pointer-events: none; }
.hud__grid { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--ax-grey-600) 1px, transparent 1px), linear-gradient(90deg, var(--ax-grey-600) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 75%); }
/* The scan line is the "pen": it sweeps once and draws the overlay (see hudSweep). */
.hud__scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 3; background: var(--ax-signal); box-shadow: 0 0 18px 2px rgba(230,57,70,0.55); opacity: 0; }

/* Analysis overlay (real biomech mark-up, isolated to the body) — revealed top→down,
   in lockstep with the scan line. Hidden until the line passes (clip from the top). */
.hud__overlay { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hud__corner { position: absolute; z-index: 4; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.85); }
.hud__corner--tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.hud__corner--tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.hud__corner--bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.hud__corner--br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.hud__tag, .hud__metric { position: absolute; z-index: 4; background: rgba(1,2,5,0.58); backdrop-filter: blur(10px); border: 1px solid var(--ax-grey-600); border-radius: var(--ax-radius-xs); padding: 10px 12px; color: #fff; }
.hud__tag { top: 26px; left: 26px; }
.hud__metric--tr { top: 26px; right: 26px; min-width: 132px; }
.hud__metric--bl { bottom: 26px; left: 26px; }
.hud__label { font-family: var(--ax-font-mono); font-size: 10px; letter-spacing: var(--ax-track-label); text-transform: uppercase; color: var(--ax-text-on-dark-quiet); }
.hud__idx { font-family: var(--ax-font-mono); font-size: 11px; letter-spacing: 0.06em; color: #fff; }
.hud__idx b { color: var(--ax-signal); }
.hud__name { font-family: var(--ax-font-display); font-weight: 500; font-size: 15px; margin-top: 3px; }
.hud__live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ax-font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ax-text-on-dark-quiet); margin-top: 6px; }
.hud__live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ax-signal); box-shadow: 0 0 6px 1px rgba(230,57,70,0.6); animation: hudBlink 1.4s steps(2) infinite; }
@keyframes hudBlink { 50% { opacity: 0.2; } }
.hud__val { font-family: var(--ax-font-num); font-size: 34px; line-height: 1; font-feature-settings: "tnum" 1; margin-top: 4px; }
.hud__val em, .hud__val i { font-style: normal; font-size: 0.5em; color: var(--ax-text-on-dark-quiet); }
.hud__sevbar { display: flex; gap: 2px; margin-top: 8px; height: 5px; }
.hud__sevbar span { border-radius: 1px; }
.hud__sevbar .s-normal { background: var(--ax-sev-normal); }
.hud__sevbar .s-minor { background: var(--ax-sev-minor); }
.hud__sevbar .s-significant { background: var(--ax-sev-significant); }
.hud__sevbar .s-critical { background: var(--ax-sev-critical); }
.hud__chip { display: inline-block; margin-top: 7px; font-family: var(--ax-font-body); font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; color: #fff; padding: 3px 7px; border-radius: var(--ax-radius-xs); }
.hud__chip--normal { background: var(--ax-sev-normal); }
.hud__chip--minor { background: var(--ax-sev-minor); }
/* Bottom-right, on the SAME 26px baseline as the metric cards (and clear of the
   corner bracket) so it lines up with the other HUD components, not below them. */
.hud__caption { position: absolute; z-index: 4; bottom: 26px; right: 26px; font-family: var(--ax-font-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ax-text-on-dark-quiet); }
/* Reduced motion: no sweep — overlay is simply shown in place, the pen is hidden. */
@media (prefers-reduced-motion: reduce) { .hud__live .dot { animation: none; } .hud__scan { display: none; } }

/* ── Metabar (trust numbers) ───────────────────────────────── */
.metabar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--ax-grey-100); border-block: 1px solid var(--ax-grey-100); }
.metabar__cell { background: var(--ax-canvas); padding: var(--ax-fluid-md); }
.section--dark .metabar { background: var(--ax-grey-700); border-color: var(--ax-grey-700); }
.section--dark .metabar__cell { background: var(--ax-canvas-dark); }
.metabar__num { font-family: var(--ax-font-num); font-size: clamp(46px, 6vw, 72px); font-weight: 500; line-height: 0.92; letter-spacing: -0.01em; font-feature-settings: "tnum" 1; }
.metabar__label { font-family: var(--ax-font-mono); font-size: var(--ax-size-micro); letter-spacing: var(--ax-track-label); text-transform: uppercase; color: var(--ax-text-quiet); margin-top: 12px; max-width: 22ch; }
.section--dark .metabar__label { color: var(--ax-text-on-dark-quiet); }

/* ── Cards / grids ─────────────────────────────────────────── */
.grid { display: grid; gap: var(--ax-grid-gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { border: 1px solid var(--ax-grey-100); border-radius: var(--ax-radius-md); padding: var(--ax-fluid-md); background: var(--ax-canvas); transition: border-color var(--ax-duration-short) var(--ax-ease-base); }
.card:hover { border-color: var(--ax-grey-300); }
.card__kicker { font-family: var(--ax-font-mono); font-size: var(--ax-size-micro); letter-spacing: var(--ax-track-label); text-transform: uppercase; color: var(--ax-signal); }
.card__title { font-family: var(--ax-font-display); font-size: var(--ax-size-h4); font-weight: 500; line-height: 1.15; margin: 10px 0 8px; }
.card__body { font-size: var(--ax-size-body-sm); color: var(--ax-text-subdued); line-height: 1.55; }
.card--feature { display: flex; flex-direction: column; }
.card--feature.is-new { border-color: var(--ax-signal); }
.card .tag-new { display: inline-block; font-family: var(--ax-font-mono); font-size: 10px; letter-spacing: var(--ax-track-label); text-transform: uppercase; color: #fff; background: var(--ax-signal); padding: 2px 6px; border-radius: var(--ax-radius-xs); margin-bottom: 8px; }

/* ── Featured audience card (full-width, the new segment) ───── */
.audience-lead { display: flex; align-items: center; justify-content: space-between; gap: var(--ax-fluid-md); flex-wrap: wrap;
  border: 1px solid var(--ax-signal); border-radius: var(--ax-radius-md); padding: var(--ax-fluid-md); background: var(--ax-canvas); transition: box-shadow var(--ax-duration-short) var(--ax-ease-base); }
.audience-lead:hover { box-shadow: var(--ax-shadow-sm); }
.audience-lead__cta { flex: none; }
.card__link { font-size: var(--ax-size-body-sm); color: var(--ax-signal); font-weight: 500; }
.card__link:hover { color: var(--ax-signal-deep); }

/* ── "What it gives you" — 3 wins (dark) ───────────────────── */
.win { border-top: 1px solid var(--ax-grey-700); padding-top: var(--ax-fluid-md); }
.win__no { font-family: var(--ax-font-num); font-size: 34px; line-height: 1; color: var(--ax-signal); font-feature-settings: "tnum" 1; }
.win h3 { font-family: var(--ax-font-display); font-weight: 500; font-size: var(--ax-size-h4); margin: 12px 0 8px; color: #fff; line-height: 1.15; }
.win p { color: var(--ax-text-on-dark-quiet); font-size: var(--ax-size-body-sm); line-height: 1.55; margin: 0; }

/* ── 7 tests grid ──────────────────────────────────────────── */
.tests { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--ax-grey-100); border: 1px solid var(--ax-grey-100); }
.test { background: var(--ax-canvas); padding: var(--ax-fluid-md); display: flex; flex-direction: column; gap: 6px; }
.test__idx { font-family: var(--ax-font-mono); font-size: var(--ax-size-micro); letter-spacing: 0.06em; color: var(--ax-signal); }
.test__name { font-family: var(--ax-font-display); font-weight: 500; font-size: 17px; line-height: 1.15; }
.test__focus { font-size: var(--ax-size-caption); color: var(--ax-text-quiet); }
.test--soft .test__idx { color: var(--ax-text-quiet); }

/* ── Analysis gallery (real annotated frames) ──────────────── */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ax-grid-gap); }
.shot { margin: 0; }
.shot__media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--ax-grey-900); }
.shot__media img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { font-family: var(--ax-font-mono); font-size: var(--ax-size-caption); letter-spacing: 0.03em; color: var(--ax-text-subdued); margin-top: 10px; }
.shot figcaption b { display: block; font-family: var(--ax-font-display); font-weight: 500; font-size: 15px; letter-spacing: 0; color: var(--ax-text); text-transform: none; }

/* ── Start / tiers ladder ──────────────────────────────────── */
.tiers { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--ax-grid-gap); }
.tier { border: 1px solid var(--ax-grey-200); border-radius: var(--ax-radius-md); padding: var(--ax-fluid-md); background: var(--ax-canvas); }
.tier--paid { border-color: var(--ax-signal); }
.tier__tag { font-family: var(--ax-font-mono); font-size: var(--ax-size-micro); letter-spacing: var(--ax-track-label); text-transform: uppercase; color: var(--ax-text-quiet); }
.tier--paid .tier__tag { color: var(--ax-signal); }
.tier__num { font-family: var(--ax-font-num); font-size: clamp(40px, 6vw, 72px); line-height: 1; margin: 8px 0; font-feature-settings: "tnum" 1; }
.tier__num small { font-size: 0.3em; color: var(--ax-text-quiet); letter-spacing: 0.04em; }
.tier p { color: var(--ax-text-subdued); font-size: var(--ax-size-body-sm); line-height: 1.55; margin: 0; }
.tier__note { font-family: var(--ax-font-mono); font-size: var(--ax-size-caption); color: var(--ax-text-quiet); margin-top: 12px; }

/* ── Numbered steps ────────────────────────────────────────── */
.steps { counter-reset: step; }
.step { display: grid; grid-template-columns: auto 1fr; gap: var(--ax-fluid-md); padding-block: var(--ax-fluid-md); border-top: 1px solid var(--ax-grey-100); }
.step__num { counter-increment: step; font-family: var(--ax-font-num); font-size: clamp(28px, 3.4vw, 44px); font-weight: 400; color: var(--ax-grey-300); line-height: 1; }
.step__num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-family: var(--ax-font-display); font-weight: 500; font-size: var(--ax-size-h4); margin: 0 0 6px; }
.step p { margin: 0; color: var(--ax-text-subdued); font-size: var(--ax-size-body-sm); line-height: 1.55; }

/* ── Bullet list with red tick ─────────────────────────────── */
.ticklist { list-style: none; padding: 0; margin: 0; }
.ticklist li { position: relative; padding-left: 28px; margin-bottom: 14px; line-height: 1.55; color: var(--ax-text-subdued); }
.ticklist li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 2px; background: var(--ax-signal); }
.ticklist strong { color: var(--ax-text); font-weight: 600; }
.section--dark .ticklist strong { color: var(--ax-text-on-dark); }
.section--dark .ticklist li { color: var(--ax-text-on-dark-quiet); }

/* ── FAQ accordion ─────────────────────────────────────────── */
.faq { border-top: 1px solid var(--ax-grey-100); }
.faq__item { border-bottom: 1px solid var(--ax-grey-100); }
.faq__q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: var(--ax-fluid-md) 36px var(--ax-fluid-md) 0; position: relative; font-family: var(--ax-font-display); font-weight: 500; font-size: var(--ax-size-h4); color: var(--ax-text); line-height: 1.2; }
.faq__q::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--ax-signal); transition: transform var(--ax-duration-short) var(--ax-ease-base); }
.faq__item[open] .faq__q::after { content: "–"; }
.faq__a { padding: 0 0 var(--ax-fluid-md); color: var(--ax-text-subdued); line-height: 1.6; max-width: 70ch; }
details.faq__item > summary { list-style: none; }
details.faq__item > summary::-webkit-details-marker { display: none; }

/* ── Forms ─────────────────────────────────────────────────── */
.form { display: grid; gap: var(--ax-space-md); max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--ax-size-body-sm); color: var(--ax-text-subdued); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--ax-size-body); color: var(--ax-text);
  background: var(--ax-canvas); border: 1px solid var(--ax-grey-200);
  border-radius: var(--ax-radius-xs); padding: 12px 14px; width: 100%;
}
.section--dark .field input, .section--dark .field select, .section--dark .field textarea { background: var(--ax-surface-dark); border-color: var(--ax-grey-600); color: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ax-signal); outline-offset: 1px; border-color: transparent; }
.field textarea { min-height: 96px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--ax-size-caption); color: var(--ax-text-quiet); }
.section--dark .consent { color: var(--ax-text-on-dark-quiet); }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.consent a { text-decoration: underline; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: var(--ax-size-body-sm); min-height: 1.2em; }
.form__status.is-ok { color: var(--ax-success); }
.form__status.is-err { color: var(--ax-error); }
.section--dark .form__status.is-ok { color: var(--ax-success-dark); }
.section--dark .form__status.is-err { color: var(--ax-error-dark); }
/* ── Buttons aligned 1:1 to athorix.ai — geometry, motion, hover, arrow ──
   Same palette/fonts as athorix.ai, so only shape + interaction differ.
   Motion uses athorix.ai's exact ease (0.165,0.84,0.44,1) / 200ms. */
.ax-btn, .ax-btn-secondary {
  min-height: 48px; line-height: 1; gap: 10px;
  transition: background 200ms cubic-bezier(0.165, 0.84, 0.44, 1),
              color 200ms cubic-bezier(0.165, 0.84, 0.44, 1),
              border-color 200ms cubic-bezier(0.165, 0.84, 0.44, 1);
}
.ax-btn { border: 1px solid transparent; }
/* Primary (the one red action): red → near-black on hover, border tracks fill */
.ax-btn--signal { border-color: var(--ax-signal); }
.ax-btn--signal:hover, .ax-btn--signal:focus-visible { background: var(--ax-ink); border-color: var(--ax-ink); color: #fff; }
/* On dark surfaces red→ink = black-on-black; invert to paper instead (athorix.ai) */
.section--dark .ax-btn--signal:hover, .section--dark .ax-btn--signal:focus-visible,
.site-footer .ax-btn--signal:hover, .site-footer .ax-btn--signal:focus-visible {
  background: #fff; color: var(--ax-ink); border-color: #fff;
}
/* Secondary = athorix.ai "ghost": inverts to a solid fill on hover */
.ax-btn-secondary:hover, .ax-btn-secondary:focus-visible { background: var(--ax-ink); color: #fff; border-color: var(--ax-ink); }
/* Secondary on dark surfaces: white label + muted border at rest, inverts to paper on hover */
.section--dark .ax-btn-secondary { color: #fff; border-color: var(--ax-grey-600); }
.section--dark .ax-btn-secondary:hover, .section--dark .ax-btn-secondary:focus-visible { background: #fff; color: var(--ax-ink); border-color: #fff; }
/* Arrow rides the button's flex gap; slides 3px on hover/focus (athorix.ai) */
.ax-btn__arrow { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .ax-btn__arrow { transition: transform 200ms cubic-bezier(0.165, 0.84, 0.44, 1); }
  .ax-btn:hover .ax-btn__arrow, .ax-btn:focus-visible .ax-btn__arrow,
  .form__submit:hover .ax-btn__arrow, .form__submit:focus-visible .ax-btn__arrow { transform: translateX(3px); }
}
.form__status.is-ok::before { content: "✓ "; font-weight: 600; }

/* ── Form success state — replace fields with confirmation after submit ── */
.form__done { display: none; text-align: center; padding: 24px 0 8px; }
.form.is-sent > *:not(.form__done) { display: none; }
.form.is-sent .form__done { display: block; }
.form__done-check { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ax-signal); color: #fff; font-size: 30px; line-height: 1; margin-bottom: var(--ax-space-md); }
.form__done-title { font-family: var(--ax-font-display); font-weight: 600; font-size: 24px; line-height: 1.15; margin: 0 0 6px; color: var(--ax-text); }
.form__done-sub { line-height: 1.6; margin: 0; color: var(--ax-text-subdued); }
.section--dark .form__done-title { color: #fff; }
.section--dark .form__done-sub { color: var(--ax-text-on-dark-quiet); }
/* modal: collapse header so only the confirmation shows */
.lead-modal__box.is-sent .lead-modal__label,
.lead-modal__box.is-sent .lead-modal__title,
.lead-modal__box.is-sent .lead-modal__body { display: none; }

/* ── Lead modal (popup) — athorix.ai app-modal, rebuilt on Athorix tokens ── */
.lead-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.lead-modal[hidden] { display: none; }
.lead-modal__overlay { position: absolute; inset: 0; background: rgba(1, 2, 5, 0.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); cursor: pointer; }
.lead-modal__box { position: relative; z-index: 1; background: var(--ax-canvas); border: 1px solid var(--ax-ink); padding: clamp(28px, 4vw, 44px); width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; }
@media (prefers-reduced-motion: no-preference) { .lead-modal__box { animation: leadModalIn 280ms var(--ax-ease-base); } }
@keyframes leadModalIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.lead-modal__close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; font-size: 20px; line-height: 1; color: var(--ax-text-quiet); transition: color var(--ax-duration-short) var(--ax-ease-base); }
.lead-modal__close:hover, .lead-modal__close:focus-visible { color: var(--ax-ink); }
.lead-modal__label { font-family: var(--ax-font-mono); font-size: var(--ax-size-micro); letter-spacing: var(--ax-track-label); text-transform: uppercase; color: var(--ax-signal); margin: 0 0 12px; }
.lead-modal__title { margin: 0 0 10px; }
.lead-modal__body { color: var(--ax-text-subdued); font-size: var(--ax-size-body-sm); line-height: 1.6; margin: 0 0 20px; }
.lead-modal .form { max-width: none; }
body.modal-open { overflow: hidden; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer { background: var(--ax-canvas-dark); color: var(--ax-text-on-dark); padding-block: var(--ax-fluid-lg); }
.footer__top { display: grid; grid-template-columns: 1.5fr 2fr; gap: var(--ax-fluid-lg); align-items: start; }
.footer__brand { max-width: 36ch; }
.footer__tagline { color: var(--ax-text-on-dark-quiet); font-size: var(--ax-size-body-sm); line-height: 1.6; margin: 16px 0 0; }
.footer__cta { margin-top: var(--ax-space-md); color: #fff; }
.footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ax-fluid-md); }
.footer__col h4 { font-family: var(--ax-font-mono); font-size: var(--ax-size-micro); letter-spacing: var(--ax-track-label); text-transform: uppercase; color: var(--ax-text-on-dark-quiet); margin: 0 0 16px; }
.footer__col a { display: block; width: max-content; max-width: 100%; color: var(--ax-text-on-dark-quiet); font-size: var(--ax-size-body-sm); margin-bottom: 11px; line-height: 1.4; transition: color var(--ax-duration-short) var(--ax-ease-base); }
.footer__col a:hover { color: #fff; }
.footer__badges { display: flex; flex-wrap: wrap; gap: var(--ax-space-sm); margin-top: var(--ax-fluid-lg); }
.footer__badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--ax-grey-700); border-radius: var(--ax-radius-xs); padding: 7px 12px; font-family: var(--ax-font-mono); font-size: var(--ax-size-caption); letter-spacing: 0.02em; color: var(--ax-text-on-dark-quiet); }
.footer__badge::before { content: ""; width: 6px; height: 6px; background: var(--ax-signal); border-radius: var(--ax-radius-xs); }
/* ── Footer legal: short disclaimer + bottom bar (full requisites live on /requisites) ── */
.footer__disclaimer { margin: var(--ax-fluid-md) 0 0; padding-top: var(--ax-fluid-md); border-top: 1px solid var(--ax-grey-800); max-width: 86ch; font-size: var(--ax-size-caption); line-height: 1.6; color: var(--ax-text-quiet); }
.footer__bottom { margin-top: var(--ax-fluid-md); padding-top: var(--ax-space-md); border-top: 1px solid var(--ax-grey-800); }
.footer__copy { margin: 0; color: var(--ax-text-on-dark-quiet); font-size: var(--ax-size-caption); }
/* compact legal footer used on internal pages (/cookie) */
.footer__legal { margin-top: var(--ax-fluid-md); padding-top: var(--ax-fluid-md); border-top: 1px solid var(--ax-grey-800); font-size: var(--ax-size-caption); color: var(--ax-text-quiet); line-height: 1.6; }
.footer__legal p { margin: 0 0 8px; max-width: 92ch; }
.footer__legal a { color: var(--ax-text-on-dark-quiet); text-decoration: underline; }
.footer__legal a:hover { color: #fff; }
.footer__legal .footer__copy { margin-top: 14px; }

/* ── Heritage stat-line (proof: teams, sports, Olympic, pubs) ── */
.statline { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--ax-grid-gap);
  border-top: 1px solid var(--ax-grey-100); padding-top: var(--ax-fluid-md); }
.statline__num { font-family: var(--ax-font-num); font-weight: 500; font-size: clamp(34px, 4vw, 54px);
  line-height: 0.95; letter-spacing: -0.01em; font-feature-settings: "tnum" 1; }
.statline__label { font-family: var(--ax-font-mono); font-size: var(--ax-size-micro);
  letter-spacing: var(--ax-track-label); text-transform: uppercase; color: var(--ax-text-quiet);
  margin-top: 10px; max-width: 22ch; line-height: 1.4; }
@media (max-width: 700px) { .statline { grid-template-columns: 1fr 1fr; gap: var(--ax-fluid-md); } }

/* ── Club crests strip (permission granted — see CLAUDE.md) ──── */
.clubs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ax-fluid-lg); }
.clubs img { height: 56px; width: auto; opacity: 0.85; filter: grayscale(1); transition: opacity var(--ax-duration-short) var(--ax-ease-base), filter var(--ax-duration-short) var(--ax-ease-base); }
.clubs img:hover { opacity: 1; filter: none; }

/* ── Compliance badges row ─────────────────────────────────── */
.badges { display: flex; flex-wrap: wrap; gap: var(--ax-space-sm); margin-top: var(--ax-fluid-md); }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ax-font-mono); font-size: var(--ax-size-caption);
  letter-spacing: 0.02em; color: var(--ax-text-subdued);
  border: 1px solid var(--ax-grey-200); border-radius: var(--ax-radius-xs);
  padding: 7px 12px;
}
.badge::before { content: ""; width: 6px; height: 6px; background: var(--ax-signal); border-radius: var(--ax-radius-xs); }

/* ── Disclaimer band ───────────────────────────────────────── */
.disclaimer { font-size: var(--ax-size-caption); color: var(--ax-text-quiet); line-height: 1.6; max-width: 80ch; }

/* ── Fade-in on scroll (respects reduced-motion via JS guard) ── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--ax-duration-long) var(--ax-ease-base), transform var(--ax-duration-long) var(--ax-ease-base); }
.reveal.is-in { opacity: 1; transform: none; }

/* ════════════════════════════════════════════════════════════
   POLISH — "diagnostic instrument × Swiss sports print"
   One idea, deepened: corner brackets, telemetry labels, the
   scanline accent and grid texture carried across the page.
   All on existing tokens. No gradients (line-grid texture only,
   same as the HUD). Motion gated by prefers-reduced-motion.
   ════════════════════════════════════════════════════════════ */

::selection { background: var(--ax-signal-tint); color: var(--ax-ink); }

/* — Orchestrated hero entrance (runs once on load) — */
@media (prefers-reduced-motion: no-preference) {
  .hero .stack > * { opacity: 0; animation: heroIn 0.7s var(--ax-ease-base) both; }
  .hero .stack > *:nth-child(1) { animation-delay: 0.05s; }
  .hero .stack > *:nth-child(2) { animation-delay: 0.13s; }
  .hero .stack > *:nth-child(3) { animation-delay: 0.21s; }
  .hero .stack > *:nth-child(4) { animation-delay: 0.29s; }
  .hero .stack > *:nth-child(5) { animation-delay: 0.37s; }
  .hero .hud { opacity: 0; animation: heroHud 0.9s var(--ax-ease-base) 0.22s both; }
  .hero .hud__tag { opacity: 0; animation: heroIn 0.6s var(--ax-ease-base) 0.7s both; }
  .hero .hud__metric--tr { opacity: 0; animation: heroIn 0.6s var(--ax-ease-base) 0.85s both; }
  .hero .hud__metric--bl { opacity: 0; animation: heroIn 0.6s var(--ax-ease-base) 1s both; }
  /* The signature: scan line sweeps once and "draws" the biomech overlay onto the body.
     Both run linear so the red line edge stays glued to the reveal boundary. */
  .hud__overlay { clip-path: inset(0 0 100% 0); animation: hudDraw 2.4s linear 1.15s forwards; }
  .hud__scan { animation: hudSweep 2.4s linear 1.15s forwards; }
}
@keyframes heroIn  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes heroHud { from { opacity: 0; transform: scale(1.025); } to { opacity: 1; transform: none; } }
@keyframes hudDraw  { to { clip-path: inset(0 0 0% 0); } }
@keyframes hudSweep { 0% { top: 0%; opacity: 0; } 5% { opacity: 1; } 94% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* — Instrument-panel section index (injected by site.js) — */
.ax-eyebrow.is-indexed::before { content: none; }      /* drop the rule; number leads */
.sec-no { font-family: var(--ax-font-mono); font-size: var(--ax-size-micro);
  letter-spacing: 0.1em; color: var(--ax-signal); margin-right: 10px; }
.sec-no::after { content: ""; display: inline-block; width: 18px; height: 1px;
  background: var(--ax-grey-300); vertical-align: middle; margin-left: 10px; }
.section--dark .sec-no::after { background: var(--ax-grey-600); }

/* — Engineered line-grid texture on dark sections (matches HUD) — */
.section--dark { position: relative; overflow: hidden; }
.section--dark > .wrap { position: relative; z-index: 1; }
.section--dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.4;
  background-image: linear-gradient(var(--ax-grey-800) 1px, transparent 1px),
                    linear-gradient(90deg, var(--ax-grey-800) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000, transparent 80%);
  mask-image: radial-gradient(circle at 70% 30%, #000, transparent 80%);
}

/* — Ghost numeral: one grid-breaking editorial moment (methodology) — */
#methodology { isolation: isolate; }
#methodology::after {
  content: "69"; position: absolute; right: -2vw; bottom: -6vw; z-index: 0;
  font-family: var(--ax-font-num); font-weight: 400; font-size: 42vw; line-height: 0.7;
  color: #fff; opacity: 0.03; pointer-events: none; letter-spacing: -0.02em;
}

/* — Metabar: signal top-rule + scoreboard hover — */
.metabar { border-top: 2px solid var(--ax-signal); }
.metabar__cell { transition: background var(--ax-duration-short) var(--ax-ease-base); }
.metabar__cell:hover { background: var(--ax-grey-50); }
.section--dark .metabar__cell:hover { background: var(--ax-grey-900); }

/* — Micro-interactions — */
.card { transition: border-color var(--ax-duration-short) var(--ax-ease-base),
        transform var(--ax-duration-short) var(--ax-ease-base),
        box-shadow var(--ax-duration-short) var(--ax-ease-base); }
@media (prefers-reduced-motion: no-preference) {
  .card:hover { transform: translateY(-2px); box-shadow: var(--ax-shadow-sm); }
}
.site-nav a:not(.ax-btn) { position: relative; }
.site-nav a:not(.ax-btn)::after { content: ""; position: absolute; left: 0; bottom: -4px;
  height: 1px; width: 100%; background: var(--ax-signal); transform: scaleX(0);
  transform-origin: left; transition: transform var(--ax-duration-short) var(--ax-ease-base); }
.site-nav a:not(.ax-btn):hover::after { transform: scaleX(1); }
.ax-btn, .ax-btn--signal { transition: background var(--ax-duration-short) var(--ax-ease-base), transform var(--ax-duration-short) var(--ax-ease-base); }
@media (prefers-reduced-motion: no-preference) { .ax-btn:active, .ax-btn-secondary:active { transform: translateY(1px); } }
.clubs img { transition: opacity var(--ax-duration-short) var(--ax-ease-base), filter var(--ax-duration-short) var(--ax-ease-base), transform var(--ax-duration-short) var(--ax-ease-base); }
@media (prefers-reduced-motion: no-preference) { .clubs img:hover { transform: translateY(-2px); } }
.test { transition: background var(--ax-duration-short) var(--ax-ease-base); }
.test:hover { background: var(--ax-grey-50); }

/* — Mobile: tame the ghost numeral — */
@media (max-width: 700px) { #methodology::after { font-size: 60vw; bottom: -10vw; } }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media, .hud { aspect-ratio: 4 / 5; order: -1; max-height: 70vh; }
  .tests { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: 1fr 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .audience-lead { flex-direction: column; align-items: flex-start; }
  .audience-lead__cta { width: 100%; justify-content: center; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: var(--ax-fluid-md); }
  .metabar { grid-template-columns: repeat(2, 1fr); }
  .site-nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ax-canvas); border-bottom: 1px solid var(--ax-grey-100); padding: var(--ax-space-md); transform: translateY(-120%); transition: transform var(--ax-duration-short) var(--ax-ease-base); }
  .site-nav.is-open { transform: none; }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--ax-grey-100); }
  .site-nav .ax-btn--signal { margin-top: 8px; justify-content: center; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .tests, .shots { grid-template-columns: 1fr; }
  .footer__nav { grid-template-columns: 1fr 1fr; gap: var(--ax-fluid-md); }
  /* HUD on a phone: the floating cards overlap at narrow widths — hide them.
     The drawn overlay + scan line + corner brackets read clean on their own. */
  .hud__tag, .hud__metric, .hud__caption { display: none; }
}

/* — Tracing beam: red line draws down the #how steps on scroll (JS sets --beam) — */
.steps--beam { position: relative; padding-left: 30px; }
.steps--beam::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0;
  width: 2px; background: var(--ax-grey-100); }
.steps__beamfill { position: absolute; left: 10px; top: 0; height: 100%; width: 2px;
  background: var(--ax-signal); transform: scaleY(var(--beam, 0)); transform-origin: top;
  will-change: transform; }
.steps--beam .step__num { transition: color var(--ax-duration-moderate) var(--ax-ease-base); }
.steps--beam .step.is-passed .step__num { color: var(--ax-signal); }

/* — Focus cards: hovered audience card stays crisp, siblings dim — */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  #audiences .card--feature { transition: opacity var(--ax-duration-short) var(--ax-ease-base),
    border-color var(--ax-duration-short) var(--ax-ease-base),
    transform var(--ax-duration-short) var(--ax-ease-base),
    box-shadow var(--ax-duration-short) var(--ax-ease-base); }
  #audiences .grid:hover .card--feature:not(:hover) { opacity: 0.55; }
}
