/* =========================================================
   Effortless Planche — monochrome design tokens
   ========================================================= */
:root {
  --edge: clamp(20px, 2.6vw, 48px); /* distance of the header and page rail from the screen edge */
  --bg: #000;
  --surface: #0a0a0a;
  --card: #121212;
  --card-hi: #1a1a1a;
  --border: #262626;
  --border-hi: #3a3a3a;
  --muted: #a3a3a3;
  --fg: #fafafa;
  --fg-dim: #d4d4d4;

  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(80px, 12vw, 160px);
  --maxw: 1200px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 220ms;
  --nav-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* One continuous backdrop for the whole page: a soft pool of light that fades to black at the edges.
   Fixed, so sections never show seams; slightly lifted from pure black so floating cards cast visible shadows. */
body::before {
  content: "";
  position: fixed; inset: -10vh -10vw;
  z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 45% at 50% 38%, rgba(255,255,255,.07), transparent 70%),
    radial-gradient(120% 95% at 50% 45%, #111 0%, #080808 45%, #000 85%);
}
/* subtle film grain for depth */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); text-transform: uppercase; line-height: 1; margin: 0; letter-spacing: .01em; }
h2 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; }
h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: .02em; }
p { margin: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg .fill { fill: currentColor; stroke: none; }

:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.container--wide { max-width: 1640px; }
/* .paged-only shows only in desktop full-screen-page mode; .scroll-only only in normal scrolling mode */
.paged-only { display: none !important; }
.center { display: flex; justify-content: center; margin-top: 56px; }

.eyebrow { white-space: nowrap;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .875rem;
  font-weight: 600;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow::after { margin-left: -.28em; } /* cancel the trailing letter-spacing so both gaps match */
.lead { color: var(--fg-dim); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  font-family: var(--font-head); font-size: 1.125rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  border-radius: 999px; border: 1.5px solid var(--fg);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn svg { width: 20px; height: 20px; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--fg); color: var(--bg); box-shadow: 0 0 0 0 rgba(255,255,255,.0); }
.btn--primary:hover { background: transparent; color: var(--fg); box-shadow: 0 0 40px rgba(255,255,255,.15); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--border-hi); }
.btn--ghost:hover { border-color: var(--fg); background: rgba(255,255,255,.06); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 1rem; }
.btn--lg { min-height: 60px; padding: 0 40px; font-size: 1.25rem; }

.icon-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: transparent; color: var(--fg);
  border: 1.5px solid var(--border-hi); cursor: pointer;
  transition: border-color var(--dur), background var(--dur);
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { border-color: var(--fg); background: rgba(255,255,255,.06); }
.icon-btn:disabled { opacity: .35; cursor: default; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: background var(--dur), border-color var(--dur), backdrop-filter var(--dur);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--border);
}
.nav__inner { max-width: none; padding-inline: var(--edge); height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 1.25rem; min-height: 44px; }
.brand img { width: 56px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__tag { font-family: var(--font-head); font-weight: 500; font-size: .75rem; letter-spacing: .18em; color: var(--muted); margin-top: 3px; }
@media (max-width: 380px) { .brand__tag { font-size: .625rem; letter-spacing: .12em; } }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a:not(.btn) {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; font-size: 1rem;
  color: var(--muted); transition: color var(--dur); padding: 10px 0; position: relative;
}
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--fg);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease);
}
.nav__links a:not(.btn):hover { color: var(--fg); }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }
.nav__toggle { display: none; }
.nav__cta { display: flex; align-items: center; flex-shrink: 0; }
/* Phones: one compact row. The ::before fills the strip above the bar, which iOS Safari's floating
   address bar leaves see-through (page content showed through above the nav). */
@media (max-width: 560px) {
  :root { --nav-h: 60px; }
  .nav { background: rgba(0,0,0,.82); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-color: var(--border); }
  .nav::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 100vh; background: #000; }
  .nav__inner { gap: 12px; }
  .brand { gap: 8px; font-size: 1rem; letter-spacing: .04em; }
  .brand img { width: 38px; }
  .brand__name { white-space: nowrap; }
  .brand__tag { display: none; }
  .nav__cta .btn { min-height: 40px; padding-inline: 14px; font-size: .875rem; letter-spacing: .06em; white-space: nowrap; }
}
@media (max-width: 380px) { .nav__free { display: none; } }

@media (max-width: 900px) {
  .nav__toggle {
    display: grid; place-content: center; gap: 7px;
    width: 48px; height: 48px; background: none; border: 0; cursor: pointer; color: var(--fg);
  }
  .nav__toggle span { display: block; width: 26px; height: 2px; background: currentColor; transition: transform var(--dur) var(--ease); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto; height: calc(100dvh - var(--nav-h));
    flex-direction: column; align-items: stretch; gap: 0; padding: 24px var(--gutter);
    background: rgba(0,0,0,.96); backdrop-filter: blur(16px);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--dur), transform var(--dur), visibility var(--dur);
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a:not(.btn) { font-size: 1.75rem; padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--fg); }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 32px; min-height: 56px; font-size: 1.125rem; }
  .nav.menu-open { background: #000; }
}

/* ---------- Ambient skill reel (desktop page mode only) ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; display: none; }
/* flowing black-and-white "silk" background (drawn by WebGL in main.js) */
.ambient { background: #000; }
.ambient__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.6s ease; }
.ambient.is-ready .ambient__canvas { opacity: 1; }
.ambient::after { /* darken the middle a touch so text always reads well */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(0,0,0,.35), rgba(0,0,0,0) 100%);
}

/* ---------- Sections ---------- */
main { padding-top: var(--nav-h); }
.section { padding: var(--section-y) 0; position: relative; }
/* .section--shade intentionally has no background any more: the whole page shares one backdrop (body::before). */
.section__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; margin-bottom: 64px; }
.section__head--left { align-items: flex-start; text-align: left; margin-bottom: 0; }

/* ---------- Before / After ---------- */
/* Wider than the normal container so 3 pairs can be shown at near-testimonial size */
.ba-wrap { width: 100%; max-width: 1640px; margin: 0 auto; padding: 0 var(--gutter); }
/* Contained carousel: 3 pairs per view on desktop, 2 on tablet, 1 on phones,
   so it is always symmetric inside the page container. */
.ba-track {
  --ba-gap: 20px;
  --ba-per-view: 3;
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--ba-per-view) - 1) * var(--ba-gap)) / var(--ba-per-view));
  gap: var(--ba-gap); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 24px 0 72px; margin: -16px 0 -48px; /* space for floating shadows, without changing layout */
  scrollbar-width: none;
}
@media (max-width: 1023px) { .ba-track { --ba-per-view: 2; } }
@media (max-width: 640px)  { .ba-track { --ba-per-view: 1; } }
.ba-track::-webkit-scrollbar { display: none; }
.ba {
  scroll-snap-align: start;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding: 6px; border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, var(--card-hi), var(--card));
  border: 1px solid var(--border);
  transition: border-color var(--dur), transform var(--dur) var(--ease);
}
.ba:hover { border-color: var(--border-hi); }
.ba__clip { position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; background: #050505; }
.ba__clip video { width: 100%; height: 100%; object-fit: cover; }
.ba__clip::after {
  content: ""; position: absolute; inset: auto 0 0; height: 35%;
  background: linear-gradient(0deg, rgba(0,0,0,.75), transparent); pointer-events: none;
}
.ba__label {
  position: absolute; left: 12px; bottom: 12px; z-index: 1;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .2em; font-weight: 700; font-size: .9375rem;
  padding: 5px 12px; border-radius: 999px;
}
.ba__clip--before .ba__label { background: rgba(0,0,0,.6); color: var(--fg-dim); border: 1px solid var(--border-hi); }
.ba__clip--before video { filter: grayscale(.6) brightness(.85); }
.ba__clip--after .ba__label { background: var(--fg); color: var(--bg); }
.carousel-controls { position: relative; z-index: 5; display: flex; justify-content: center; gap: 12px; margin-top: 16px; } /* above the track's shadow padding, which overlaps this row */
html:not(.is-paged) #results { padding-top: 0; }

/* ---------- Who it's for ---------- */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.split .section__head { position: sticky; top: calc(var(--nav-h) + 40px); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid var(--border);
  transition: border-color var(--dur), background var(--dur);
}
.checklist li:hover { border-color: var(--border-hi); background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); }
.check { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: var(--bg); }
.check svg { width: 18px; height: 18px; stroke-width: 3; }
.checklist h3 { font-size: 1.375rem; margin-bottom: 6px; }
.checklist p { color: var(--muted); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split .section__head { position: static; }
}

/* ---------- Process: winding-road roadmap ---------- */
.roadmap { position: relative; max-width: 1040px; margin: 0 auto; }
.roadmap__road { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.roadmap__road path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.road-base { stroke: rgba(0,0,0,.6); stroke-width: 34; }
.road-dash { stroke: rgba(255,255,255,.22); stroke-width: 2; stroke-dasharray: 10 14; }
.road-progress { stroke: var(--fg); stroke-width: 3; filter: drop-shadow(0 0 6px rgba(255,255,255,.45)); }
.roadmap__list { list-style: none; margin: 0; padding: 0; position: relative; }
.milestone { display: flex; align-items: center; gap: 32px; padding: 44px 0; }
.milestone--left { padding-left: 8%; }
.milestone--right { flex-direction: row-reverse; padding-right: 8%; }
.milestone__node {
  flex: none; width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1;
  font-family: var(--font-head); font-weight: 800; font-size: 1.75rem; letter-spacing: .04em;
  background: radial-gradient(circle at 30% 30%, #2a2a2a, #0a0a0a 70%); color: var(--fg);
  border: 1.5px solid var(--border-hi);
  box-shadow: 0 0 0 8px rgba(0,0,0,.55), 0 14px 30px -8px rgba(0,0,0,.9);
  transition: background 400ms var(--ease), color 400ms var(--ease), border-color 400ms var(--ease), box-shadow 400ms var(--ease);
}
.milestone.is-reached .milestone__node { background: var(--fg); color: var(--bg); border-color: var(--fg); box-shadow: 0 0 0 8px rgba(0,0,0,.55), 0 0 40px rgba(255,255,255,.25); }
.milestone__card {
  max-width: 420px; padding: 26px 28px; border-radius: var(--radius); position: relative; z-index: 1;
  background: linear-gradient(135deg, #141414, #0b0b0b);
  border: 1px solid var(--border);
  transition: border-color var(--dur);
}
.milestone:hover .milestone__card { border-color: var(--border-hi); }
.milestone__step {
  display: block; margin-bottom: 8px;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .24em; font-size: .8125rem; font-weight: 600; color: var(--muted);
}
.milestone__card h3 { font-size: clamp(1.5rem, 2.6vw, 1.875rem); margin-bottom: 8px; }
.milestone__card p { color: var(--muted); }
.milestone--goal { flex-direction: column; gap: 20px; text-align: center; padding-top: 56px; }
.milestone__node--goal { width: 96px; height: 96px; }
.milestone__node--goal svg { width: 40px; height: 40px; }
.milestone__card--goal { background: none; border: 0; padding: 0; }
.milestone__card--goal h3 { font-size: clamp(2rem, 4vw, 2.75rem); }

@media (max-width: 767px) {
  .milestone, .milestone--right { flex-direction: row; align-items: flex-start; gap: 18px; padding: 18px 0; padding-left: 0; padding-right: 0; }
  .milestone__node { width: 56px; height: 56px; font-size: 1.25rem; box-shadow: 0 0 0 6px rgba(0,0,0,.55), 0 10px 24px -6px rgba(0,0,0,.9); }
  .milestone.is-reached .milestone__node { box-shadow: 0 0 0 6px rgba(0,0,0,.55), 0 0 30px rgba(255,255,255,.2); }
  .milestone__card { padding: 20px; }
  .road-base { stroke-width: 24; }
  .milestone--goal { flex-direction: row; align-items: center; text-align: left; padding-top: 28px; }
  .milestone__node--goal { width: 56px; height: 56px; }
  .milestone__node--goal svg { width: 26px; height: 26px; }
}

/* ---------- Coach: centred intro video ---------- */
.coach { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.coach .section__head { margin-bottom: 0; }
.coach__video { max-width: 1100px; }
/* YouTube intro video: thumbnail + YouTube-style play button until clicked, then the real player */
.yt {
  position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden;
  border-radius: calc(var(--radius) + 6px); border: 1px solid var(--border); background: #000;
}
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt__facade { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; color: #fff; font: inherit; text-align: left; }
.yt__facade > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter var(--dur); }
.yt__facade:hover > img { transform: scale(1.02); filter: brightness(.9); }
.yt svg path { stroke: none; }
.yt__play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); filter: drop-shadow(0 4px 14px rgba(0,0,0,.5)); }
.yt__play-bg { fill: #ff0033; transition: fill var(--dur), fill-opacity var(--dur); }
.yt__play { transition: transform var(--dur) var(--ease); }
.yt__facade:hover .yt__play, .yt__facade:focus-visible .yt__play { transform: translate(-50%, -50%) scale(1.1); }
.yt__brand {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 8px; border-radius: 6px; background: rgba(0,0,0,.72);
  font-size: .875rem; font-weight: 600;
}
.yt__brand svg { width: 22px; height: 22px; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tcard {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden;
  background: #050505; border: 1px solid var(--border);
  transition: border-color var(--dur), transform var(--dur) var(--ease);
}
.tcard:hover { border-color: var(--border-hi); }
.tcard video { width: 100%; height: 100%; object-fit: cover; }
.tcard__play {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; color: var(--fg);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 14px; padding: 24px;
  background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.35) 100%);
  transition: background var(--dur);
}
.tcard__play:hover { background: linear-gradient(0deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.05) 55%, rgba(0,0,0,.25) 100%); }
.tcard__icon {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform var(--dur) var(--ease), background var(--dur);
}
.tcard__icon svg { width: 26px; height: 26px; margin-left: 4px; }
.tcard__play:hover .tcard__icon { transform: scale(1.08); background: rgba(255,255,255,.95); color: #000; }
.tcard__meta { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em; font-weight: 600; font-size: .9375rem; color: var(--fg-dim); }
.tcard.is-playing .tcard__play { display: none; }
@media (max-width: 1024px) { .testimonials { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .testimonials { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; } }

/* ---------- Final CTA ---------- */
.cta {
  position: relative; padding: clamp(100px, 14vw, 180px) 0; overflow: hidden; text-align: center;
  background: radial-gradient(45% 55% at 50% 45%, rgba(255,255,255,.06), transparent 70%);
}
.cta__inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.cta__mark { width: min(420px, 80%); opacity: .9; margin-bottom: 8px; }
.cta h2 { font-size: clamp(3rem, 8vw, 6rem); }

/* ---------- Footer ---------- */
.footer { padding: 40px 0; position: relative; }
.footer::before {
  content: ""; position: absolute; top: 0; left: 50%; translate: -50% 0; width: min(90%, 1100px); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
}
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 8px; }
.footer__links a { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); transition: color var(--dur), background var(--dur); }
.footer__links a:hover { color: var(--fg); background: rgba(255,255,255,.06); }
.footer__links svg { width: 22px; height: 22px; }
.footer__copy { color: var(--muted); font-size: .9375rem; width: 100%; }
@media (min-width: 700px) { .footer__copy { width: auto; } }

/* =========================================================
   Full-screen pages (desktop): html.is-paged is set by main.js when the
   viewport is >= 1024px wide and >= 600px tall. The 4 sections stack on top
   of each other and crossfade + zoom between each other; scrolling loops.
   ========================================================= */
.is-paged body { overflow: hidden; }
.is-paged .scroll-only { display: none !important; }
.is-paged .paged-only { display: revert !important; }
.is-paged .ambient { display: block; }
.is-paged main { padding-top: 0; }
.is-paged .pages { position: fixed; inset: 0; }
/* Each page is a full-screen panel. During a page change main.js shrinks the panel into a floating
   rounded card, slides the stack of cards up/down, then grows the next card back to full screen. */
.is-paged .page {
  position: absolute; inset: 0;
  padding: calc(var(--nav-h) + 16px) 0 64px;
  display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  visibility: hidden; pointer-events: none;
  /* same soft-lit black as the page backdrop, slightly see-through so the skill reel glows faintly behind */
  background: rgba(0,0,0,.18);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 120px -20px rgba(0,0,0,.9);
  transform-origin: 50% 50%;
}
.is-paged .page::-webkit-scrollbar { display: none; }
.mode-switching .page { transition: none !important; }
.is-paged .page > * { margin-block: auto; } /* centre, but allow scrolling when taller than the screen */
/* 3D only while rolling between pages: at rest the pages are flat, because Safari mis-hit-tests clicks in 3D layers */
.is-rolling .pages { transform-style: preserve-3d; }
.is-rolling .page { backface-visibility: hidden; will-change: transform; } /* layer promotion only while rolling */
.is-paged .page.is-active { pointer-events: auto; z-index: 2; }
.is-paged .page.is-leaving { z-index: 1; }
.is-paged .nav, .is-paged .nav.is-scrolled { background: none; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.is-paged .nav__links a.is-current { color: var(--fg); }
.is-paged .nav__links a.is-current::after { transform: scaleX(1); }

/* compact headings so each page fits one screen */
.is-paged .section__head { margin-bottom: 28px; gap: 10px; }
.is-paged .section__head h2 { font-size: clamp(2.25rem, 3.4vw, 3.5rem); }
.is-paged .section__head:not(.section__head--left) > .lead { display: none; }

/* Page 1: testimonials above before/after (as on the scrolling site); the page scrolls inside itself */
.is-paged .page { padding-inline: calc(var(--edge) + 112px + 3vw); }
.is-paged .page .container, .is-paged .ba-wrap { padding-inline: 0; } /* the page already has side padding */
.is-paged .ba-track { --ba-gap: 16px; } /* keep clear of the page rail on the left */
/* sized from the screen height so a whole page fits without scrolling */
.is-paged #results .results { max-width: min(1500px, calc((100svh - 330px) * 3.375 + 40px)); }
.is-paged #testimonials .results { max-width: min(1280px, calc((100svh - 330px) * 2.25 + 60px)); }
.is-paged .results .section__head > .lead { display: block; }

/* Page 2: horizontal winding roadmap */
.is-paged .roadmap { --zig: 22px; --node: 56px; max-width: none; height: clamp(380px, calc(100svh - 324px), 600px); }
.is-paged .roadmap__list { display: grid; grid-template-columns: repeat(7, 1fr); height: 100%; }
/* nodes zig-zag around the middle line; cards sit above the highest / below the lowest node row so they never overlap a node */
.is-paged .milestone { position: relative; display: block; padding: 0; height: 100%; --ny: calc(50% + var(--zig)); }
.is-paged .milestone--right { --ny: calc(50% - var(--zig)); }
.is-paged .milestone__node { position: absolute; left: 50%; top: var(--ny); translate: -50% -50%; width: var(--node); height: var(--node); font-size: 1.25rem; }
.is-paged .milestone__node--goal { width: calc(var(--node) + 8px); height: calc(var(--node) + 8px); }
.is-paged .milestone__node--goal svg { width: 30px; height: 30px; }
.is-paged .milestone .milestone__card { /* extra specificity: must beat .js .float { position: relative } */
  --cw: min(calc(200% - 24px), 300px);
  position: absolute; left: calc(50% - var(--cw) / 2); width: var(--cw); max-width: none; /* centred on the node without using translate (the reveal animation owns translate) */
  padding: 16px 18px;
}
.is-paged .milestone--left .milestone__card, .is-paged .milestone--goal .milestone__card { bottom: calc(50% + var(--zig) + var(--node) / 2 + 14px); }
.is-paged .milestone:first-child .milestone__card { --cw: min(calc(150% - 12px), 300px); left: 0; } /* don't stick out past the content edge (rail is there) */
.is-paged .milestone--right .milestone__card { top: calc(50% + var(--zig) + var(--node) / 2 + 14px); }
.is-paged .milestone__card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.is-paged .milestone__card p { font-size: .875rem; line-height: 1.5; }
.is-paged .milestone__step { margin-bottom: 6px; font-size: .75rem; }
.is-paged .milestone__card--goal { text-align: center; padding: 0; }
.is-paged .milestone__card--goal h3 { font-size: 1.75rem; }

/* Page 3: coach intro video, sized from the screen height so it fits one page */
.is-paged .coach { gap: 22px; }
.is-paged .coach__video { max-width: min(1100px, calc((100svh - 300px) * 16 / 9)); }

/* Page 4: who it's for */
.is-paged .split { align-items: center; }
.is-paged .split .section__head { position: static; gap: 20px; }
.is-paged .split .section__head h2 { font-size: clamp(2.5rem, 4vw, 4rem); }
.is-paged .split .section__head .btn { margin-top: 8px; display: inline-flex !important; }
.is-paged .checklist { gap: 12px; }
.is-paged .checklist li { padding: 18px 22px; }
.is-paged .checklist h3 { font-size: 1.25rem; }

/* Pager: vertical rail on the left. Numbers on a thin line; the current page's segment is lit,
   and hovering a number shows its name. */
.pager { position: fixed; left: var(--edge); top: 50%; translate: 0 -50%; z-index: 40; }
.is-paged .pager { display: block !important; }
.pager__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pager__btn {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px;
  min-height: 36px; padding: 4px 8px 4px 12px; text-align: left;
  background: none; border: 0; cursor: pointer; color: var(--muted);
  font-family: var(--font-head); transition: color var(--dur);
}
.pager__btn::before, .pager__btn::after { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; }
.pager__btn::before { background: rgba(255,255,255,.16); }
.pager__btn::after { background: var(--fg); transform: scaleY(0); transform-origin: top; transition: transform 900ms var(--ease); }
.pager__btn:hover, .pager__btn[aria-current="true"] { color: var(--fg); }
.pager__btn[aria-current="true"]::after { transform: scaleY(1); }
.pager__num { display: none; }
.pager__label {
  font-weight: 600; font-size: .625rem; letter-spacing: .16em; text-transform: uppercase; line-height: 1.2;
  white-space: nowrap; opacity: .7; transition: opacity var(--dur);
}
.pager__btn:hover .pager__label, .pager__btn[aria-current="true"] .pager__label { opacity: 1; }

.corner { position: fixed; right: var(--edge); bottom: 14px; z-index: 40; align-items: center; gap: 4px; color: var(--muted); }
.is-paged .corner { display: flex !important; }
.corner a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; transition: color var(--dur), background var(--dur); }
.corner a:hover { color: var(--fg); background: rgba(255,255,255,.06); }
.corner svg { width: 20px; height: 20px; }
.corner__hint { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .24em; font-size: .75rem; margin-right: 12px; display: inline-flex; align-items: center; gap: 10px; }
.corner__hint::after { content: ""; width: 1px; height: 22px; background: linear-gradient(180deg, var(--fg), transparent); animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0%,100% { transform: translateY(-3px); opacity: .4; } 50% { transform: translateY(3px); opacity: 1; } }

/* ---------- Floating 3D cards ----------
   main.js adds .float to cards (testimonials, before/after, checklist, roadmap).
   Layered shadows make them hover above the backdrop; on desktop they tilt toward the cursor
   (--rx/--ry) with a soft glare (--mx/--my). */
.js .float {
  --rx: 0deg; --ry: 0deg; --lift: 0px;
  position: relative;
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)) translate3d(0, var(--lift), 0);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 2px 4px rgba(0,0,0,.45),
    0 18px 36px -12px rgba(0,0,0,.85),
    0 48px 90px -30px rgba(0,0,0,.95);
  transition: transform 500ms var(--ease), box-shadow 500ms var(--ease), border-color var(--dur), background var(--dur);
}
.js .float:hover {
  --lift: -8px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.1),
    0 4px 8px rgba(0,0,0,.45),
    0 30px 60px -16px rgba(0,0,0,.9),
    0 70px 120px -30px rgba(0,0,0,1),
    0 0 70px -20px rgba(255,255,255,.08);
}
.js .float.is-tilting { transition: transform 120ms linear, box-shadow 500ms var(--ease), border-color var(--dur), background var(--dur); }
.js .float::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.1), transparent 45%);
  opacity: 0; transition: opacity 300ms;
}
.js .float.is-tilting::after { opacity: 1; }

/* ---------- Reveal motion ----------
   Uses the individual translate/scale properties so it never conflicts with the 3D tilt transform. */
.js .reveal { opacity: 0; translate: 0 32px; scale: .97; transition: opacity 700ms var(--ease), translate 700ms var(--ease), scale 700ms var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; translate: none; scale: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
  .js .reveal { opacity: 1; translate: none; scale: none; }
  .js .float { transform: none; }
}
