/* iK Lifts homepage styles (v3). Mobile-first. Colours come only from tokens.css. */

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-ink);
  color: var(--color-paper);
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  font-size: var(--step-0);
  line-height: 1.6;
  /* Hard guard against horizontal scroll (ring pseudo-elements, canvas, marquee). */
  overflow-x: clip;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

[id] {
  scroll-margin-top: 5rem;
}

/* Author display rules (grid, flex) must not override the hidden attribute. */
[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--color-brand);
  outline-offset: 3px;
}

.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-link {
  position: absolute;
  top: 0.5rem;
  left: var(--gutter);
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--color-paper);
  color: var(--color-ink);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Type ---------- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-5);
}

h2 {
  font-size: var(--step-4);
}

h3 {
  font-size: var(--step-2);
  line-height: 1.2;
}

p {
  margin: 0;
}

.eyebrow {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: var(--weight-body-strong);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.lead {
  font-size: var(--step-1);
  color: var(--color-paper);
  max-width: 40rem;
}

.section-lede {
  max-width: 44rem;
  color: var(--color-muted);
}

/* ---------- Layout primitives ---------- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(4rem, 10vw, 7rem);
}

.section-tint {
  background: color-mix(in srgb, var(--color-brand) 6%, var(--color-ink));
  border-block: 1px solid var(--color-line);
}

.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

/* ---------- Header and navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--color-ink);
  border-bottom: 1px solid var(--color-line);
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  min-height: 4rem;
  padding-block: 0.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: var(--step-2);
  letter-spacing: -0.01em;
  text-decoration: none;
  order: 1;
  margin-right: auto;
}

.wordmark-logo {
  width: 36px;
  height: 39px;
  flex: none;
}

.header-cta {
  order: 2;
  min-height: 44px;
  padding: 0.6rem 1rem;
  font-size: var(--step--1);
}

.nav-toggle {
  display: none;
  order: 3;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-muted);
  border-radius: 2px;
  color: var(--color-paper);
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.site-nav {
  order: 4;
  width: 100%;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Collapsible menu: only when site.js adds .nav-enhanced to the header. */
.nav-enhanced .nav-toggle {
  display: inline-flex;
}

.nav-enhanced .site-nav {
  display: none;
}

.nav-enhanced .site-nav.is-open {
  display: block;
}

.nav-enhanced .site-nav.is-open ul {
  flex-direction: column;
  align-items: stretch;
  padding-bottom: 0.5rem;
}

.nav-enhanced .site-nav.is-open a {
  display: flex;
  padding-inline: 0;
  border-top: 1px solid var(--color-line);
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.75rem 1.25rem;
  border-radius: 2px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: var(--weight-body-strong);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out),
    color 200ms var(--ease-out), filter 200ms var(--ease-out);
}

.btn-block {
  width: 100%;
}

/* Primary: brand fill with a slow ring that breathes behind the button. */
.btn-primary {
  background: var(--color-brand);
  color: var(--color-ink);
  border-color: var(--color-brand);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border: 2px solid var(--color-brand);
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  animation: ik-ring var(--ring-duration) var(--ease-out) infinite;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-primary:focus-visible {
  outline-color: var(--color-paper);
}

@keyframes ik-ring {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.06);
    opacity: 0;
  }
}

/* Secondary: outlined, no ring. */
.btn-secondary {
  background: transparent;
  color: var(--color-paper);
  border-color: var(--color-paper);
}

.btn-secondary:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

/* Text link: a 44px target with an underline. */
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.25rem;
  color: var(--color-paper);
  font-weight: var(--weight-body-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.text-link:hover {
  color: var(--color-brand);
}

.text-link-small {
  font-size: var(--step--1);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.hero-actions .btn {
  width: 100%;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.5rem, 7vw, 5rem);
}

/* A faint brand glow behind the globe, always present. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    circle at 80% 30%,
    color-mix(in srgb, var(--color-brand) 22%, transparent),
    transparent 60%
  );
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.hero-note {
  font-size: var(--step--1);
  color: var(--color-muted);
}

/* Heartbeat line: draws once every few seconds, a quiet pulse under the copy. */
.heartbeat {
  width: min(100%, 320px);
  height: 40px;
  color: var(--color-brand);
  overflow: visible;
}

.heartbeat-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
}

.hero-visual {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
}

/* The three.js canvas is appended inside .hero-globe by hero-three.js. */
.hero-globe {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 34rem;
  aspect-ratio: 5 / 6;
}

.hero-globe .globe-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

/* Dashed orbit behind the globe. Decorative. */
.hero-globe-ring {
  position: absolute;
  top: 46%;
  left: 50%;
  z-index: 0;
  width: 84%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--color-brand) 45%, transparent);
  pointer-events: none;
  animation: ik-spin 60s linear infinite;
}

/* If WebGL fails, hero-three.js adds .globe-fallback and this disc stands in. */
.hero-globe.globe-fallback {
  background: radial-gradient(
    circle at 35% 32%,
    var(--color-brand-bright),
    var(--color-brand) 38%,
    var(--color-brand-deep) 70%,
    var(--color-ink) 100%
  );
  border-radius: 50%;
  aspect-ratio: 1;
  max-width: 22rem;
  margin-inline: auto;
}

.hero-caption {
  font-size: var(--step--1);
  color: var(--color-muted);
  text-align: center;
}

@keyframes ik-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ik-beat {
  0% {
    stroke-dashoffset: 420;
    opacity: 1;
  }
  80% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

/* ---------- Marquee (decorative fitness strip) ---------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--color-line);
  padding-block: 1rem;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: ik-marquee 38s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: var(--step-2);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-muted);
  white-space: nowrap;
}

.marquee-track span::after {
  content: "";
  width: 0.45em;
  height: 0.45em;
  margin-inline: 2rem;
  background: var(--color-brand);
  transform: rotate(45deg);
}

@keyframes ik-marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Pillars (approach) ---------- */

.pillars {
  display: grid;
  gap: 2.5rem 2rem;
}

.pillar {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-line);
}

.pillar h3 {
  margin-top: 0.25rem;
}

.pillar p {
  color: var(--color-muted);
}

.pillar-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: var(--color-brand);
}

.pillar-icon svg {
  width: 48px;
  height: 48px;
  overflow: visible;
}

/* Approach icons: each moves once in a slow, quiet way. */
.pillar-icon-swing svg {
  transform-origin: 50% 50%;
  animation: ik-swing 4.8s ease-in-out infinite;
}

.pillar-icon-pulse path {
  stroke-dasharray: 70;
  stroke-dashoffset: 70;
  animation: ik-draw 3.6s ease-in-out infinite;
}

.pillar-icon-plates svg {
  animation: ik-press 3.2s ease-in-out infinite;
}

@keyframes ik-swing {
  0%,
  100% {
    transform: rotate(-7deg);
  }
  50% {
    transform: rotate(7deg);
  }
}

@keyframes ik-draw {
  0% {
    stroke-dashoffset: 70;
  }
  55%,
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes ik-press {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* ---------- Process ---------- */

.process {
  position: relative;
}

/* Track and fill: vertical on phones, horizontal on wider screens. */
.process-track {
  position: absolute;
  top: 1.125rem;
  bottom: 1.125rem;
  left: 1.125rem;
  width: 2px;
  background: var(--color-line);
}

.process-fill {
  position: absolute;
  inset: 0;
  background: var(--color-brand);
  transform-origin: top;
  transform: scaleY(1);
}

.process-steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.25rem;
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.process-index {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--color-ink);
  border: 2px solid var(--color-brand);
  color: var(--color-brand);
  font-family: var(--font-display);
  font-weight: var(--weight-display);
}

.process-step h3 {
  margin-bottom: 0.5rem;
}

.process-step p {
  color: var(--color-muted);
  max-width: 52ch;
}

/* ---------- Apply ---------- */

.apply-grid {
  display: grid;
  gap: 2.5rem;
}

.apply-intro {
  display: grid;
  gap: 1rem;
  justify-items: start;
  align-content: start;
}

.apply-intro h2 {
  margin-bottom: 0.25rem;
}

.apply-intro p {
  color: var(--color-muted);
  max-width: 46ch;
}

.apply-intro strong {
  color: var(--color-paper);
}

.apply-card {
  padding: clamp(1.25rem, 4vw, 2rem);
  background: color-mix(in srgb, var(--color-brand) 5%, var(--color-ink));
  border: 1px solid var(--color-line);
  border-radius: 2px;
}

.apply-form {
  display: grid;
  gap: 1.25rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-weight: var(--weight-body-strong);
}

.optional {
  font-weight: var(--weight-body);
  color: var(--color-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  background: var(--color-ink);
  color: var(--color-paper);
  border: 1px solid var(--color-muted);
  border-radius: 2px;
  font: inherit;
  font-size: 1rem; /* 16px stops iOS zooming on focus */
}

.field textarea {
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--color-muted);
  opacity: 1;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-brand);
  outline: 2px solid var(--color-brand);
  outline-offset: 1px;
}

.field.is-invalid input,
.field.is-invalid select {
  border-color: var(--color-error);
}

.field-error {
  font-size: var(--step--1);
  color: var(--color-error);
}

.apply-output {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-line);
}

.apply-output:focus {
  outline: none;
}

.apply-output-title {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: var(--step-2);
  line-height: 1.2;
}

.apply-message {
  width: 100%;
  min-height: 9rem;
  padding: 0.85rem 1rem;
  background: var(--color-ink);
  color: var(--color-paper);
  border: 1px solid var(--color-brand-deep);
  border-radius: 2px;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
}

.apply-actions {
  display: grid;
  gap: 0.75rem;
}

.apply-actions .btn {
  width: 100%;
}

.apply-status {
  min-height: 1.5rem;
  font-size: var(--step--1);
  color: var(--color-muted);
}

/* ---------- Results (video grid and client slots) ---------- */

.video-grid {
  display: grid;
  gap: 2.5rem 1.5rem;
}

.video-card {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.video-trigger {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  background: var(--color-ink);
  border: 1px solid var(--color-muted);
  border-radius: 2px;
  color: var(--color-paper);
  font: inherit;
  cursor: pointer;
  transition: border-color 200ms var(--ease-out);
}

.video-trigger img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}

.video-trigger:hover {
  border-color: var(--color-brand);
}

.video-trigger:hover img {
  transform: scale(1.03);
}

/* Play glyph: a brand disc with a slow ring, centred on the thumbnail. */
.play-glyph {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4rem;
  height: 4rem;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--color-brand);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-brand) 50%, transparent);
  transition: transform 200ms var(--ease-out);
}

.play-glyph::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  translate: -35% -50%;
  border-style: solid;
  border-width: 0.75rem 0 0.75rem 1.2rem;
  border-color: transparent transparent transparent var(--color-ink);
}

.play-glyph::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--color-brand);
  opacity: 0;
  animation: ik-ring var(--ring-duration) var(--ease-out) infinite;
}

.video-trigger:hover .play-glyph {
  transform: scale(1.08);
}

.video-title {
  font-size: var(--step-1);
  line-height: 1.3;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--color-muted);
  border-radius: 2px;
  overflow: hidden;
  background: var(--color-ink);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.client-results {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px dashed var(--color-muted);
  border-radius: 2px;
}

.client-results p {
  color: var(--color-muted);
  max-width: 56ch;
}

.result-slots {
  display: grid;
  gap: 0.75rem;
}

.result-slot {
  min-height: 5rem;
  padding: 1rem;
  border: 1px dashed var(--color-line);
  border-radius: 2px;
  color: var(--color-muted);
  font-size: var(--step--1);
}

/* ---------- Coach ---------- */

.coach-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.coach-portrait {
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  background: var(--color-brand);
}

/* Duotone: grayscale photo multiplied with the logo blue. No overlays or line patterns. */
.coach-figure {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(1.04);
  mix-blend-mode: multiply;
}

.coach-copy {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.coach-copy > p:not(.eyebrow) {
  max-width: 56ch;
}

.credentials {
  display: grid;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--color-muted);
  font-size: var(--step--1);
}

.credentials li {
  padding-left: 1.25rem;
  position: relative;
}

.credentials li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 2px;
  background: var(--color-brand);
}

/* ---------- FAQ ---------- */

.faq-wrap .section-head {
  margin-bottom: 2rem;
}

.faq {
  max-width: 62ch;
  border-top: 1px solid var(--color-line);
}

.faq details {
  border-bottom: 1px solid var(--color-line);
}

.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 1rem 2.5rem 1rem 0;
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: var(--step-1);
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  translate: 0 -50%;
  font-family: var(--font-body);
  font-size: var(--step-2);
  font-weight: var(--weight-body-strong);
  color: var(--color-brand);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  padding: 0 0 1.25rem;
  color: var(--color-muted);
}

/* ---------- Final call to action ---------- */

.final {
  position: relative;
  padding-block: clamp(4rem, 10vw, 6.5rem);
  text-align: center;
  border-top: 1px solid var(--color-line);
}

.final-inner {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
  max-width: 44rem;
}

.final p {
  color: var(--color-muted);
  max-width: 44ch;
}

.barbell {
  width: min(100%, 480px);
  height: auto;
  color: var(--color-brand);
}

.barbell-bar {
  stroke: var(--color-paper);
  stroke-width: 5;
  stroke-linecap: round;
}

.plate {
  fill: var(--color-brand);
}

.plate-l1,
.plate-r1 {
  fill: var(--color-brand-bright);
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 3rem;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: var(--step--1);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-note {
  margin-top: 0.5rem;
  max-width: 36ch;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  color: var(--color-paper);
}

.footer-legal {
  display: grid;
  gap: 0.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-line);
}

/* ---------- Cursor follower (added by site.js on fine pointers only) ---------- */

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 28px;
  height: 28px;
  border: 2px solid var(--color-brand);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
  transition: opacity 200ms var(--ease-out), scale 200ms var(--ease-out);
}

.cursor-ring.is-visible {
  opacity: 1;
}

.cursor-ring.is-grow {
  scale: 1.8;
}

/* ---------- Scroll reveal (only when site.js adds .js-motion) ---------- */

.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

.js-motion [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Process fill draws down (phones) or across (wider screens) as the steps arrive. */
.js-motion .process-fill {
  transform: scaleY(0);
  transition: transform 1600ms var(--ease-out);
}

.js-motion .process.is-in .process-fill {
  transform: scaleY(1);
}

/* Barbell plates slide in to meet the bar when the final section arrives. */
.js-motion .plate-l2,
.js-motion .plate-r2 {
  opacity: 0;
  transform: translateX(0);
  transition: transform 900ms var(--ease-out) 300ms, opacity 900ms var(--ease-out) 300ms;
}

.js-motion .plate-l1,
.js-motion .plate-r1 {
  opacity: 0;
  transition: transform 900ms var(--ease-out) 120ms, opacity 900ms var(--ease-out) 120ms;
}

.js-motion .plate-l2,
.js-motion .plate-l1 {
  transform: translateX(-28px);
}

.js-motion .plate-r2,
.js-motion .plate-r1 {
  transform: translateX(28px);
}

.js-motion .final-inner.is-in .plate {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Wider screens ---------- */

@media (min-width: 720px) {
  .hero-actions .btn {
    width: auto;
  }

  .apply-actions {
    grid-auto-flow: column;
    justify-content: start;
  }

  .apply-actions .btn {
    width: auto;
  }

  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-slots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-legal {
    grid-column: 1 / -1;
  }

  /* Process: a horizontal track across three columns. */
  .process-track {
    top: 1.125rem;
    bottom: auto;
    left: 1.125rem;
    right: 1.125rem;
    width: auto;
    height: 2px;
  }

  .process-fill {
    transform-origin: left;
  }

  .js-motion .process-fill {
    transform: scaleX(0);
  }

  .js-motion .process.is-in .process-fill {
    transform: scaleX(1);
  }

  .process-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }

  .process-step {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (min-width: 900px) {
  .header-cta {
    display: inline-flex;
  }

  .nav-toggle,
  .nav-enhanced .nav-toggle {
    display: none;
  }

  .site-nav,
  .nav-enhanced .site-nav,
  .nav-enhanced .site-nav.is-open {
    display: block;
    width: auto;
    order: 2;
  }

  .site-nav ul,
  .nav-enhanced .site-nav.is-open ul {
    flex-direction: row;
    align-items: center;
    padding-bottom: 0;
  }

  .nav-enhanced .site-nav.is-open a {
    border-top: 0;
    padding-inline: 0.75rem;
  }

  .header-cta {
    order: 3;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 4rem;
  }

  .hero-visual {
    order: 0;
  }

  .apply-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: 4rem;
  }

  .coach-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
  }

  .pillars {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Reduced motion: keep the content, drop the movement ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .marquee,
  .cursor-ring {
    display: none;
  }

  .heartbeat-line {
    stroke-dashoffset: 0;
  }

  .pillar-icon-pulse path {
    stroke-dashoffset: 0;
  }

  .btn-primary::after,
  .play-glyph::after {
    display: none;
  }
}

/* ---------- Lift (bench scene) ---------- */

.lift-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.lift-copy {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.lift-copy > p:not(.eyebrow) {
  color: var(--color-muted);
  max-width: 46ch;
}

.lift-scene {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
}

.lift-scene .globe-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (min-width: 900px) {
  .lift-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 4rem;
  }
}

/* ---------- Technique photo ---------- */

.technique {
  position: relative;
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 2px;
}

.technique img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  object-position: 50% 35%;
}

.technique figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1rem 1rem;
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: var(--step-1);
  background: linear-gradient(to top, var(--color-ink), transparent);
}

/* ---------- Hero photo (top of page) ---------- */

.hero-visual {
  align-self: end;
}

.hero-photo {
  width: 100%;
  max-width: 44rem;
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 0 40px color-mix(in srgb, var(--color-brand) 35%, transparent));
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2rem;
  }
}

/* Hero photo: fills the right column, fades into the page at the top and left. */
.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 22rem;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 28%), linear-gradient(to right, transparent 0%, #000 18%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 28%), linear-gradient(to right, transparent 0%, #000 18%);
  mask-composite: intersect;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .hero {
    padding-bottom: 0;
  }
}
