/* Core Fitness and Wellness Centre — redesign mockup (black and red)
   Order: tokens, base, layout, header, footer, buttons, motion, home, shared pieces, pages, responsive */

/* ---------- Tokens ---------- */
:root {
  --bg: #050506;          /* page black */
  --bg-1: #0C0C0E;        /* raised bands */
  --bg-2: #141417;        /* cards and panels */
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #F4F4F5;
  --muted: #C2C3CA;
  --silver: #C3C5C9;      /* the gear in the logo */
  --red: #DA1A1C;         /* the logo red: fills and large type */
  --red-bright: #FF4548;  /* small red text on black */
  --red-deep: #A51214;
  --open: #35D07F;        /* "open now" status only */
  --soon: #FFB020;        /* closing soon, opening soon */
  --shut: #FF4548;        /* closed */

  --font-display: "Archivo", "Arial Black", "Segoe UI", system-ui, sans-serif;   /* wide heavy capitals */
  --font-body: "Barlow", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --gutter: clamp(1.125rem, 4vw, 2.5rem);
  --wrap: 78rem;
  --section: clamp(4rem, 9vw, 7.5rem);
  --header-h: 5.5rem;
  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --radius-lg: clamp(1.75rem, 1.2rem + 2.6vw, 2.5rem);
  /* cloud-shaped patches of page black: laid over a red glow, it turns the glow into smoke */
  --smoke: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='800'%3E%3Cfilter id='s' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004 0.006' numOctaves='3' seed='8' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.02  0 0 0 0 0.02  0 0 0 0 0.024  -2.2 0 0 0 1.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
  color-scheme: dark;
}

@property --iris {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 0%;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* fine film grain over everything: keeps large black areas from looking flat */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, iframe, video { max-width: 100%; }
img { display: block; height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--red-bright); }

p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(1.9rem, 4.2vw, 3.3rem); font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); font-stretch: 105%; letter-spacing: -0.01em; line-height: 1.15; }
h4 { font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.25; }

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
address { font-style: normal; }

/* the outline follows each element's own corners; forcing a radius here made pill buttons go square when focused */
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.way:focus-visible, .fact:focus-visible, .news-item:focus-visible { outline-color: var(--red-bright); }
::selection { background: var(--red); color: #fff; }

/* ---------- Layout ---------- */
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.section { padding-block: var(--section); position: relative; }
.section-tight { padding-block: calc(var(--section) * 0.6); position: relative; }
.section-raised { background: var(--bg-1); border-block: 1px solid var(--line); }

.section-head { margin-bottom: clamp(2rem, 4.5vw, 3.5rem); max-width: 46rem; }
.section-head p { margin-top: 1rem; font-size: 1.1em; color: var(--muted); max-width: 50ch; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.25rem 3rem; max-width: none; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.split-top { align-items: start; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--silver); }
.muted { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 2rem; }

/* ---------- Skip link ---------- */
.skip {
  position: absolute;
  left: 0.75rem;
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
}
.skip:focus { top: 0.75rem; color: var(--bg); }

/* ---------- Header ---------- */
core-header { display: block; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; }
/* site.js loads with defer, so the header is an empty box until it is drawn. Keep its real height (the row
   plus the 1px line under it) so nothing jumps, and the heroes pulled up under it stay where they will be. */
.js core-header:not([data-ready]) { min-height: calc(var(--header-h) + 1px); }

.site-header {
  position: relative;
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s;
}
/* The frosted bar is a layer behind the header, not the header itself: a blur filter on the header
   would trap the full-screen mobile menu inside it. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 5, 6, 0.82);
  opacity: 0;
  transition: opacity 0.35s;
}
.is-scrolled .site-header,
.menu-open .site-header { border-bottom-color: var(--line); }
.is-scrolled .site-header::before,
.menu-open .site-header::before { opacity: 1; -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
.header-row { display: flex; align-items: center; gap: clamp(0.75rem, 1.6vw, 1.75rem); min-height: var(--header-h); }
.brand { flex: none; display: block; }
.brand img { height: 3.9rem; width: auto; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: clamp(1rem, 1.9vw, 2rem); list-style: none; margin: 0; padding: 0; }
.main-nav a {
  position: relative;
  display: block;
  padding-block: 0.6rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--silver);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.25rem;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--text); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  min-height: 2.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
a.status:hover { color: var(--text); border-color: var(--line-strong); }
.status-dot { position: relative; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--muted); flex: none; }
/* only the dot's own status box: the phone menu is also .is-open when it is showing */
.is-open > .status-dot { background: var(--open); }
.is-open > .status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--open);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 70%, 100% { transform: scale(3.2); opacity: 0; } }

.menu-btn {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
}
.menu-btn-icon { display: grid; gap: 4px; width: 1.05rem; }
.menu-btn-icon i { display: block; height: 2px; background: currentColor; transition: transform 0.25s var(--ease), opacity 0.2s; }
.menu-btn[aria-expanded="true"] .menu-btn-icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-icon i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-btn-icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.5rem var(--gutter) 2.5rem;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu li a {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-decoration: none;
}
.mobile-menu li a[aria-current="page"] { color: var(--red-bright); }
.mobile-menu-foot { margin-top: 1.75rem; display: grid; gap: 0.75rem; justify-items: start; }
body.menu-open { overflow: hidden; }

.motion .mobile-menu:not([hidden]) li { animation: rise 0.5s var(--ease) both; animation-delay: calc(var(--n, 0) * 45ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Footer ---------- */
core-footer { display: block; }
.site-footer { position: relative; border-top: 1px solid var(--line); background: var(--bg-1); padding: clamp(3rem, 6vw, 5rem) 0 1.5rem; overflow: clip; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 1.4fr) minmax(0, 1.1fr); gap: 2.5rem clamp(1.5rem, 4vw, 3.5rem); }
.footer-brand img { height: 4.5rem; width: auto; }
.footer-brand p { margin-top: 1.1rem; max-width: 26ch; color: var(--muted); }
.site-footer h2 { font-family: var(--font-body); font-size: 0.875rem; font-weight: 700; letter-spacing: 0; color: var(--muted); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--red); }
.footer-hours { display: grid; grid-template-columns: auto auto; gap: 0.35rem 1.25rem; justify-content: start; margin: 0; }
.footer-hours dt { color: var(--muted); }
.footer-hours dt, .footer-hours dd { margin: 0; white-space: nowrap; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}
.footer-base p { margin: 0; max-width: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.footer-base a { text-decoration: underline; }

/* ---------- Phone action dock ---------- */
.dock { display: none; }
@media (max-width: 48rem) {
  .dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: rgba(12, 12, 14, 0.9);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transform: translateY(105%);
    transition: transform 0.4s var(--ease);
  }
  .dock-on .dock { transform: none; }
  .menu-open .dock { transform: translateY(105%); }
  .dock a { display: grid; justify-items: center; gap: 0.2rem; padding: 0.6rem 0.25rem 0.55rem; font-size: 0.8125rem; font-weight: 700; text-decoration: none; }
  .dock a + a { border-left: 1px solid var(--line); }
  .dock svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: var(--red-bright); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .dock a:focus-visible { outline-offset: -3px; }
  core-footer .site-footer { padding-bottom: calc(1.5rem + 4.25rem); }
  .motion-note { bottom: 5rem; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.1rem;
  padding: 0.7rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.25s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #F02427; color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.34); background: rgba(255, 255, 255, 0.03); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, 0.08); color: var(--text); }
.btn-small { min-height: 2.6rem; padding: 0.45rem 1.2rem; font-size: 0.9375rem; }

.btn-play { padding-inline: 0 0.75rem; border-color: transparent; background: none; }
.btn-play:hover { background: none; border-color: transparent; }
.play-dot {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color 0.2s, border-color 0.2s;
}
.play-dot svg { width: 0.9rem; height: 0.9rem; margin-left: 2px; fill: currentColor; }
.btn-play:hover .play-dot { background: var(--red); border-color: var(--red); color: #fff; }

.tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border: 1px solid rgba(255, 69, 72, 0.32);
  border-radius: 999px;
  background: #2A0607;
  color: var(--red-bright);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.5;
  vertical-align: middle;
  white-space: nowrap;
}
.tag-line { background: none; border: 1px solid var(--line-strong); color: var(--silver); }

/* ---------- Surfaces ---------- */
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
}
/* a soft light follows the pointer across a card */
.motion .card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(22rem circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.07), transparent 62%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.motion .card:hover::after { opacity: 1; }
.icon-chip {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.8rem;
  background: rgba(218, 26, 28, 0.14);
  color: var(--red-bright);
  flex: none;
}
.icon-chip svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* photos sit in black and white and come up in colour when you point at them */
.photo { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.08) brightness(0.9); transition: filter 0.6s var(--ease), transform 0.9s var(--ease); }
a:hover .photo img, .photo:hover img, a:focus-visible .photo img { filter: none; }

/* short muted film clips sit in the same frame as photos, with their own pause button */
.photo video { display: block; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.08) brightness(0.9); transition: filter 0.6s var(--ease); }
.photo:hover video, .photo:focus-within video { filter: none; }
.clip-toggle {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(5, 5, 6, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.clip-toggle:hover { background: var(--red); border-color: var(--red); }
.clip-toggle svg { width: 0.85rem; height: 0.85rem; fill: currentColor; }
.clip-toggle .icon-pause { display: none; }
.clip.is-playing .icon-pause { display: block; }
.clip.is-playing .icon-play { display: none; }

/* ---------- The cog (drawn in site.js from the gear in the logo) ---------- */
.cog { display: block; pointer-events: none; }
.cog svg { display: block; width: 100%; height: auto; overflow: visible; }
.cog path { fill: rgba(255, 255, 255, 0.035); stroke: rgba(255, 255, 255, 0.2); stroke-width: 0.5; vector-effect: non-scaling-stroke; }
.cog-red path { fill: rgba(218, 26, 28, 0.1); stroke: rgba(218, 26, 28, 0.7); }
.hero-cog svg, .page-head .cog svg { animation: spin 180s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Motion: reveal on scroll (only when motion is on) ---------- */
.motion [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 1.75rem, 0);
  transition: opacity 0.8s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--n, 0) * 80ms);
}
.motion [data-reveal="fade"] { transform: none; }
/* The wipe clips what is inside the frame, never the frame itself: a browser treats a fully clipped
   element as off screen, so clipping the frame would stop it ever being revealed. */
.motion [data-reveal="wipe"] { opacity: 1; transform: none; }
.motion [data-reveal="wipe"] > * {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s var(--ease), filter 0.6s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--n, 0) * 80ms), 0s, 0s;
}
.motion [data-reveal].is-in { opacity: 1; transform: none; }
.motion [data-reveal="wipe"].is-in > * { clip-path: inset(0 0 0 0); }

/* page-to-page transition */
@view-transition { navigation: auto; }
html.motion::view-transition-old(root) { animation: vt-out 0.22s ease both; }
html.motion::view-transition-new(root) { animation: vt-in 0.45s var(--ease) both; }
html:not(.motion)::view-transition-group(*),
html:not(.motion)::view-transition-old(*),
html:not(.motion)::view-transition-new(*) { animation: none !important; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* scroll progress line */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 70; background: var(--red); transform: scaleX(var(--page, 0)); transform-origin: left; pointer-events: none; }

/* ---------- Intro (first visit in a session) ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--bg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent var(--iris), #000 calc(var(--iris) + 0.5%));
  mask-image: radial-gradient(circle at 50% 50%, transparent var(--iris), #000 calc(var(--iris) + 0.5%));
}
.intro-mark { position: relative; width: min(60vw, 17rem); }
.intro-mark img { position: relative; width: 100%; opacity: 0; transform: scale(0.94); animation: intro-logo 0.7s var(--ease) 0.15s forwards; }
.intro-mark .cog { position: absolute; left: 50%; top: 50%; width: 190%; translate: -50% -50%; opacity: 0; animation: intro-cog 1.5s var(--ease) forwards; }
.intro.is-leaving { animation: intro-iris 0.9s cubic-bezier(0.7, 0, 0.2, 1) forwards; pointer-events: none; }
@keyframes intro-logo { to { opacity: 1; transform: none; } }
@keyframes intro-cog { 0% { opacity: 0; rotate: -90deg; } 30% { opacity: 1; } 100% { opacity: 1; rotate: 45deg; } }
@keyframes intro-iris { to { --iris: 110%; } }
html.intro-pending body { overflow: hidden; }
html.intro-pending body::before { content: ""; position: fixed; inset: 0; z-index: 199; background: var(--bg); }

/* ---------- Home: hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  margin-top: calc(-1 * var(--header-h));
  min-height: min(100svh, 58rem);
  display: grid;
  align-items: center;
  padding: calc(var(--header-h) + clamp(2rem, 6vw, 4rem)) 0 clamp(9rem, 16vw, 12rem);
  overflow: clip;
}
.hero-media {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(66%, 64rem);
  z-index: -3;
  /* the photo falls into black at the left, the bottom and the top, so the header sits on shadow */
  -webkit-mask-image: linear-gradient(90deg, transparent 2%, #000 46%), linear-gradient(0deg, transparent 6%, #000 42%), linear-gradient(180deg, transparent 0, #000 24%);
  -webkit-mask-composite: source-in, source-in;
  mask-image: linear-gradient(90deg, transparent 2%, #000 46%), linear-gradient(0deg, transparent 6%, #000 42%), linear-gradient(180deg, transparent 0, #000 24%);
  mask-composite: intersect;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 22%;
  filter: contrast(1.18) brightness(0.8);
  transform: translate3d(calc(var(--mx, 0) * -12px), calc(var(--sy, 0) * 0.14px + var(--my, 0) * -8px), 0);
  scale: 1.08;
  will-change: transform;
}
.hero-light {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(66%, 64rem);
  z-index: -2;
  background:
    radial-gradient(60% 55% at 78% 30%, rgba(218, 26, 28, 0.5), transparent 70%),
    linear-gradient(270deg, rgba(218, 26, 28, 0.28), transparent 45%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.hero-cog {
  position: absolute;
  right: clamp(-16rem, -12vw, -6rem);
  top: 46%;
  width: clamp(30rem, 62vw, 58rem);
  z-index: -1;
  translate: calc(var(--mx, 0) * 18px) calc(-50% + var(--my, 0) * 12px);
  transform: rotate(calc(var(--sy, 0) * 0.05deg + var(--idle, 0deg)));
  will-change: transform;
}

.hero-title {
  font-size: clamp(2.3rem, 11.2vw, 6.6rem);
  font-weight: 900;
  font-stretch: 125%;
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 1.25rem 0 0;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero-title .line > span { display: inline-block; }
.hero-sub { margin-top: 1.5rem; max-width: 33rem; font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.5; color: var(--silver); }

/* hero entrance: plays once the intro has cleared */
/* the headline rises, then fills out from narrow and light to wide and heavy */
.motion .hero-title .line > span { transform: translateY(110%); font-weight: 300; font-stretch: 75%; transition: transform 1s var(--ease), font-weight 1.2s var(--ease), font-stretch 1.2s var(--ease); transition-delay: calc(var(--n, 0) * 110ms), calc(0.35s + var(--n, 0) * 110ms), calc(0.35s + var(--n, 0) * 110ms); }
.motion .hero [data-enter] { opacity: 0; transform: translate3d(0, 1.25rem, 0); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(0.35s + var(--n, 0) * 90ms); }
.motion .hero-media img { opacity: 0; scale: 1.18; transition: opacity 1.6s ease 0.1s, scale 2.6s var(--ease) 0.1s; }
.motion .hero-cog { opacity: 0; transition: opacity 1.4s ease 0.3s; }
.motion.is-entered .hero-title .line > span { transform: none; font-weight: 900; font-stretch: 125%; }
.motion.is-entered .hero-media img { scale: 1.08; }
.motion.is-entered .hero [data-enter] { opacity: 1; transform: none; }
.motion.is-entered .hero-media img,
.motion.is-entered .hero-cog { opacity: 1; }

/* ---------- Home: facts row ---------- */
.facts-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 1rem;
  margin-top: calc(-1 * clamp(7rem, 12vw, 9rem));
}
.fact { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; background-color: rgba(12, 12, 14, 0.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); text-decoration: none; transition: border-color 0.25s, transform 0.4s var(--ease); }
a.fact:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-4px); }
.fact-top { display: flex; align-items: center; gap: 0.9rem; }
.fact-label { font-size: 0.875rem; color: var(--muted); }
.fact-note { margin: 0; font-size: 0.9375rem; color: var(--muted); }

.lane { display: flex; align-items: center; gap: 0.7rem; font-size: 0.8125rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.lane-track { flex: 1; position: relative; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); }
.lane-track::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--now, 0%); border-radius: 2px; background: var(--red); }
.lane-now { position: absolute; top: 50%; left: var(--now, 0%); width: 0.8rem; height: 0.8rem; margin: -0.4rem 0 0 -0.4rem; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(218, 26, 28, 0.35); }
.lane.is-closed .lane-track::before, .lane.is-closed .lane-now { display: none; }

/* ---------- Home: welcome ---------- */
.asks { list-style: none; margin: 0; padding: 0; }
.asks li {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.1vw, 2.5rem);
  line-height: 1.22;
  letter-spacing: -0.035em;
  color: var(--text);
}
.asks li.answer { color: var(--red); margin-top: 0.6em; }
/* each question lights up as it passes the middle of the screen */
.motion .asks li { opacity: clamp(0.22, calc((var(--p, 0) - var(--at)) * 9), 1); }

.welcome-photo { aspect-ratio: 4 / 5; }
.welcome-photo img { object-position: 60% 30%; }

/* ---------- Home: ways to train ---------- */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.way { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; text-decoration: none; isolation: isolate; border: 1px solid var(--line); }
.way .photo { position: absolute; inset: 0; z-index: -2; border-radius: 0; }
.way::before { content: ""; position: absolute; inset: 45% 0 0 0; z-index: -1; background: linear-gradient(180deg, transparent, rgba(5, 5, 6, 0.92) 62%); }
.way-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem; display: grid; gap: 0.6rem; }
.way-body p { margin: 0; color: var(--silver); font-size: 0.9688rem; }
.way h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.way-more { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem; font-weight: 700; font-size: 0.9375rem; }
.way-more::before { content: ""; width: 1.5rem; height: 2px; background: var(--red); transition: width 0.35s var(--ease); }
.way:hover { color: var(--text); }
.way:hover .photo img { transform: scale(1.05); }
.way:hover .way-more::before { width: 3rem; }

/* ---------- Prices ---------- */
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.per { font-size: 0.875rem; color: var(--muted); white-space: nowrap; }

/* ---------- Quotes ---------- */
.quote { margin: 0; padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: 1.5rem; }
.quote svg { width: 2rem; height: 2rem; fill: var(--red); }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.4; }
.quote figcaption { margin-top: auto; font-weight: 700; }
.quote figcaption span { display: block; font-weight: 500; color: var(--muted); font-size: 0.9rem; }

/* ---------- News list ---------- */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) auto; gap: 0.5rem 2rem; align-items: center; padding: 1.5rem 0; text-decoration: none; }
.news-item time { color: var(--muted); font-size: 0.9375rem; }
.news-item h3 { transition: color 0.2s; }
.news-item p { margin: 0.4rem 0 0; color: var(--muted); }
.news-item .photo { width: 9rem; aspect-ratio: 3 / 2; border-radius: var(--radius-sm); }
.news-item:hover { color: var(--text); }
.news-item:hover h3 { color: var(--red-bright); }

/* ---------- Visit / hours ---------- */
.visit-status { font-family: var(--font-display); font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; }
.visit-status span { display: block; color: var(--muted); }

/* ---------- Inner page head ---------- */
.page-head { position: relative; isolation: isolate; margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + clamp(2.5rem, 7vw, 5.5rem)) 0 clamp(2.5rem, 6vw, 4.5rem); overflow: clip; border-bottom: 1px solid var(--line); }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(50% 80% at 88% 0%, rgba(218, 26, 28, 0.22), transparent 70%); }
.page-head .cog { position: absolute; right: -9rem; top: -11rem; width: 34rem; z-index: -1; transform: rotate(calc(var(--sy, 0) * 0.06deg)); }
.page-title { font-size: clamp(1.7rem, 8vw, 5.25rem); font-weight: 900; font-stretch: 125%; letter-spacing: -0.01em; line-height: 0.95; text-transform: uppercase; }
.lede { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.5; color: var(--silver); max-width: 42ch; margin-top: clamp(1rem, 2.5vw, 1.5rem); }
.crumb { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; margin-bottom: 0.5rem; font-size: 0.9375rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.crumb::before { content: ""; width: 0.5rem; height: 0.5rem; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }

/* ---------- Memberships ---------- */
/* arriving from a link: the plan or pass you asked for flashes red (used in pages.css) */
@keyframes plan-flash { 0% { background-color: rgba(218, 26, 28, 0.35); } 100% { background-color: transparent; } }
.plan-featured { border-color: rgba(218, 26, 28, 0.75); background: linear-gradient(180deg, rgba(218, 26, 28, 0.2), rgba(218, 26, 28, 0.05)); }
.plan-featured:hover { border-color: var(--red-bright); }
.plan-featured p { color: var(--silver); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.25rem 0; font-weight: 700; font-size: 1.1em; cursor: pointer; list-style: none; transition: color 0.2s; }
.faq summary:hover { color: var(--red-bright); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 0.65rem; height: 0.65rem; margin-right: 0.3rem; border-right: 2px solid var(--red-bright); border-bottom: 2px solid var(--red-bright); transform: rotate(45deg); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding-bottom: 1.4rem; color: var(--silver); }
.faq details { scroll-margin-top: calc(var(--header-h) + 1rem); }
/* answers ease open where the browser can animate to a natural height */
:root { interpolate-size: allow-keywords; }
.motion .faq details::details-content { block-size: 0; overflow: clip; transition: block-size 0.4s var(--ease), content-visibility 0.4s allow-discrete; }
.motion .faq details[open]::details-content { block-size: auto; }

/* ---------- CTA band ---------- */
.band { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding: clamp(2rem, 5vw, 3.5rem); border-color: rgba(218, 26, 28, 0.5); background: linear-gradient(120deg, rgba(218, 26, 28, 0.28), rgba(218, 26, 28, 0.04) 60%); }
.band h2 { font-size: clamp(1.7rem, 3.6vw, 2.75rem); max-width: 18ch; }
.band p { color: var(--silver); margin-top: 0.75rem; }
.band .actions { margin-top: 0; }
.band .cog { position: absolute; right: -6rem; bottom: -9rem; width: 22rem; z-index: -1; transform: rotate(calc(var(--sy, 0) * 0.08deg)); }

/* ---------- Gym page ---------- */
.tour-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.tour-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tour-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.1) brightness(0.5); }
.tour-start {
  position: absolute;
  inset: 0;
  width: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.1rem;
  border: 0;
  background: radial-gradient(55% 60% at 50% 50%, rgba(218, 26, 28, 0.34), transparent 72%);
  color: var(--text);
  font: inherit;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.3vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
}
.tour-start:hover { color: var(--text); }
.tour-start .play-dot { position: relative; width: clamp(4rem, 8vw, 5.75rem); height: clamp(4rem, 8vw, 5.75rem); background: var(--red); border-color: var(--red); color: #fff; transition: transform 0.4s var(--ease); }
.tour-start .play-dot svg { width: 30%; height: 30%; }
.tour-start:hover .play-dot { transform: scale(1.08); }
.motion .tour-start .play-dot::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--red-bright); animation: ping 2.6s var(--ease) infinite; }
.tour-start:focus-visible { outline-offset: -6px; }

.lightbox { width: min(100vw, 72rem); max-width: 100vw; max-height: 100dvh; padding: 1rem; border: 0; background: transparent; color: var(--text); }
.lightbox::backdrop { background: rgba(5, 5, 6, 0.94); }
.lightbox[open] { animation: lb-in 0.35s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(0.97); } }
.lb-top, .lb-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.lb-top p { margin: 0; font-weight: 700; }
.lightbox figure { margin: 0.75rem 0; }
.lightbox img { margin-inline: auto; max-height: calc(100dvh - 11rem); width: auto; border-radius: var(--radius-sm); }
.lightbox figcaption { margin-top: 0.75rem; text-align: center; color: var(--muted); }
.lightbox img { transition: opacity 0.25s; touch-action: pan-y; }
.lightbox.is-loading img { opacity: 0.35; }
.lightbox figure { min-height: 12rem; display: grid; align-content: center; }

/* ---------- Trainers ---------- */
.profile-role { margin: 0.6rem 0 1.4rem; font-weight: 700; color: var(--red-bright); }
.chips { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li { padding: 0.35rem 0.9rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.9rem; font-weight: 600; color: var(--silver); }

/* ---------- Stories ---------- */
.story-kicker { margin: 0.6rem 0 1.4rem; font-weight: 700; color: var(--red-bright); }
.honours { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.honours li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: 0.75rem 0; border-top: 1px solid var(--line); }
.honours li:last-child { border-bottom: 1px solid var(--line); }
.honours .year { font-family: var(--font-display); font-weight: 700; color: var(--red-bright); }

/* ---------- Tick lists ---------- */
.checks { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.checks li { padding-left: 2rem; position: relative; font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.4em; width: 1rem; height: 0.5rem; border-left: 2px solid var(--red-bright); border-bottom: 2px solid var(--red-bright); transform: rotate(-45deg); }

/* ---------- Forms ---------- */
.form-panel { padding: clamp(1.5rem, 3.5vw, 2.5rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.field { display: grid; gap: 0.4rem; margin-bottom: 1.2rem; align-content: start; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.9688rem; }
.optional { font-weight: 500; color: var(--muted); }
.hint { font-size: 0.875rem; color: var(--muted); }
.input {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.7rem 0.95rem;
  /* field edges need 3:1 against the page to be findable; the hairline used elsewhere is only 1.7:1 */
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s, background-color 0.2s;
}
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--silver) 50%), linear-gradient(135deg, var(--silver) 50%, transparent 50%); background-position: calc(100% - 1.25rem) 50%, calc(100% - 0.9rem) 50%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: 2.5rem; }
select.input option { background: var(--bg-2); color: var(--text); }
textarea.input { min-height: 8rem; resize: vertical; }
.input:hover { border-color: rgba(255, 255, 255, 0.7); }
.input:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 1px; border-color: transparent; background: rgba(255, 255, 255, 0.07); }
.has-error .input { border-color: var(--red-bright); }
.error { margin: 0; color: var(--red-bright); font-weight: 700; font-size: 0.9rem; }
.error:empty { display: none; }
.form-done { padding: clamp(1.5rem, 3.5vw, 2.5rem); border-color: rgba(53, 208, 127, 0.5); }
.form-done h3 { margin-bottom: 0.6rem; }
.mock-note { margin-top: 1rem; font-size: 0.875rem; color: var(--muted); }

.map-box { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; text-align: center; padding: 1.5rem; background: radial-gradient(80% 80% at 50% 40%, rgba(218, 26, 28, 0.16), transparent 70%), var(--bg-2); border: 1px solid var(--line); }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: none; }

/* ---------- Article ---------- */
.article { max-width: 44rem; }
.article-meta { color: var(--muted); margin-top: 1.25rem; }
.article-photo { margin: 0 0 2.25rem; aspect-ratio: 16 / 9; }
.article-body p { font-size: 1.1em; color: var(--silver); }

/* ---------- Utilities ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }


/* =====================================================================
   Round two: 40 tweaks. Wide heavy capitals, smoky red light, cards lit
   from one corner, big figures with faint outline numerals behind them.
   ===================================================================== */

/* 1. Type: Archivo for display at full width, Barlow for text (tokens in :root) */
.asks li { letter-spacing: -0.015em; font-stretch: 105%; }
.visit-status { font-weight: 900; font-stretch: 112%; letter-spacing: -0.02em; }
.mobile-menu li a { font-stretch: 112%; letter-spacing: -0.01em; }

/* 2. Hero headline: outlined first line, solid second line */
@supports (-webkit-text-stroke: 1px) {
  .hero-title .line-outline > span { color: transparent; -webkit-text-stroke-width: max(1.5px, 0.02em); -webkit-text-stroke-color: var(--text); }
}

/* 3. A red square full stop closes the hero headline and every page title */
.hero-title .line:last-child > span::after,
.page-title::after { content: ""; display: inline-block; width: 0.18em; height: 0.18em; margin-left: 0.06em; background: var(--red); }

/* 4. Micro-labels: small tracked capitals for card labels, eyebrows and footer headings */
.fact-label, .site-footer h2, .eyebrow { font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600; font-stretch: 100%; letter-spacing: 0.14em; line-height: 1.3; text-transform: uppercase; color: var(--muted); }
.eyebrow { display: block; margin: 0 0 1rem; color: var(--red-bright); }
.site-footer h2 { margin-bottom: 1rem; }

/* 6. Burgundy smoke behind the hero and every page title */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -4; pointer-events: none; background: var(--smoke) center / cover, radial-gradient(46% 56% at 24% 40%, rgba(165, 18, 20, 0.42), transparent 72%), radial-gradient(32% 42% at 54% -6%, rgba(218, 26, 28, 0.24), transparent 70%), radial-gradient(38% 38% at 2% 80%, rgba(120, 10, 14, 0.36), transparent 75%); }
.page-head::before { background: var(--smoke) center / cover, radial-gradient(44% 100% at 84% 0%, rgba(218, 26, 28, 0.3), transparent 70%), radial-gradient(50% 120% at 44% -10%, rgba(165, 18, 20, 0.42), transparent 72%); }
.motion .hero::before, .motion .page-head::before { animation: haze-drift 26s ease-in-out infinite alternate; }
@keyframes haze-drift { from { transform: scale(1.08) translate3d(-1.5%, 1%, 0); opacity: 0.82; } to { transform: scale(1.08) translate3d(1.5%, -1%, 0); opacity: 1; } }

/* 7. Feature cards lit from one corner, over a dark red wash */
.plan-featured, .band { border-color: rgba(218, 26, 28, 0.5); background: radial-gradient(90% 150% at 0% 0%, rgba(165, 18, 20, 0.33), rgba(165, 18, 20, 0.1) 46%, transparent 74%) padding-box, linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02)) padding-box; }
@supports ((-webkit-mask-composite: xor) or (mask-composite: exclude)) {
  .plan-featured, .band { border-color: transparent; }
  .plan-featured::before, .band::before, a.fact::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, #FF7A7C 0%, rgba(218, 26, 28, 0.85) 9%, rgba(255, 255, 255, 0.12) 38%, rgba(255, 255, 255, 0.08) 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; pointer-events: none; }
}
a.fact::before { opacity: 0; transition: opacity 0.3s; }
a.fact:hover::before, a.fact:focus-visible::before { opacity: 1; }
.motion .plan-featured::after, .motion .band::after { background: radial-gradient(22rem circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 69, 72, 0.12), transparent 62%); }

/* 8. Panels take a bigger, softer corner */
.card, .way, .map-box { border-radius: var(--radius-lg); }
.fact, .motion-note { border-radius: 1.75rem; }

/* 9. Big faint outline numerals behind the three biggest figures */
.ghost { position: absolute; z-index: -1; font-family: var(--font-display); font-weight: 900; font-stretch: 125%; line-height: 0.8; letter-spacing: -0.02em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16); pointer-events: none; -webkit-user-select: none; user-select: none; }
@supports not (-webkit-text-stroke: 1px) { .ghost, .hero-ghost { display: none; } }

/* 11. A glowing red ring on the play buttons */
.btn-play .play-dot { position: relative; border-color: var(--red); box-shadow: 0 0 0 0.25rem rgba(218, 26, 28, 0.14), 0 0 1.25rem rgba(218, 26, 28, 0.5); }

/* 12. The phone menu opens on the same burgundy smoke */
.mobile-menu { background: var(--smoke) center top / 60rem 40rem, radial-gradient(120% 22rem at 85% 0%, rgba(165, 18, 20, 0.42), transparent 72%), radial-gradient(90% 16rem at 0% 9rem, rgba(120, 10, 14, 0.36), transparent 75%), var(--bg); }


/* 14. Section rules light up red at one end */
.section-raised { border-image: linear-gradient(to bottom right, rgba(255, 69, 72, 0.9), rgba(255, 255, 255, 0.1) 14%, rgba(255, 255, 255, 0.1) 86%, rgba(218, 26, 28, 0.7)) 1; }
.page-head, .site-footer { border-image: linear-gradient(90deg, rgba(255, 69, 72, 0.9), rgba(255, 255, 255, 0.1) 28%) 1; }

/* 15. Each glass card leads with one large figure */
.fact-figure { font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-size: clamp(1.9rem, 2.9vw, 2.6rem); line-height: 1; letter-spacing: -0.01em; text-transform: uppercase; white-space: nowrap; }
.fact-top { gap: 0.75rem; }

/* 16. A faint outline of the word CORE behind the hero */
.hero-ghost { position: absolute; left: -0.03em; bottom: -0.2em; z-index: -1; font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-size: clamp(8rem, 30vw, 27rem); line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.06); pointer-events: none; -webkit-user-select: none; user-select: none; }

/* 17. The first screen plays in order (headline, words, buttons, then the cards), and the cards lift on hover again */
.motion .facts-row .fact { animation: card-rise 0.9s var(--ease) backwards; animation-delay: calc(0.85s + var(--i, 0) * 110ms); animation-play-state: paused; }
.motion.is-entered .facts-row .fact { animation-play-state: running; }
@keyframes card-rise { from { opacity: 0; transform: translate3d(0, 1.75rem, 0); } }

/* 18. The play button's icon gets an orbiting arc on hover */
.btn-play .play-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--red-bright); opacity: 0; transition: opacity 0.3s; }
.motion .btn-play:hover .play-dot::after, .motion .btn-play:focus-visible .play-dot::after { opacity: 1; animation: orbit 1.1s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }

/* 19. The header sits on shadow over the hero photo */
.hero::after { content: ""; position: absolute; inset: 0 0 auto; height: calc(var(--header-h) + 4rem); z-index: -1; background: linear-gradient(180deg, rgba(5, 5, 6, 0.8), transparent); pointer-events: none; }

/* 20. The cog winds into place, then clicks one tooth when you reach for an action */
.hero-cog path { rotate: 0deg; transition: rotate 0.7s var(--ease); }
.motion .hero-cog path { rotate: -90deg; transition: rotate 1.8s var(--ease) 0.2s; }
.motion.is-entered .hero-cog path { rotate: 0deg; }
.motion.is-entered .hero:has(.actions .btn:hover, .actions .btn:focus-visible) .hero-cog path { rotate: 22.5deg; transition: rotate 0.6s var(--ease); }

/* 21. A soft red glow under the three cards gives the glass something to blur */
.facts-row::before { content: ""; position: absolute; inset: 15% 6% -25%; z-index: -1; background: radial-gradient(50% 60% at 50% 50%, rgba(218, 26, 28, 0.3), transparent 70%); pointer-events: none; }

/* 22. The hero photo settles back as it appears, and its red light breathes */
.motion .hero-light { animation: breathe 7s ease-in-out infinite alternate; }
@keyframes breathe { from { opacity: 0.7; } to { opacity: 1; } }

/* 23. The intro logo flies into its place in the header */
.intro-fly { position: fixed; z-index: 201; margin: 0; transform-origin: 0 0; transition: transform 0.85s cubic-bezier(0.7, 0, 0.2, 1); pointer-events: none; }

/* 24. The header holds still between pages and the red underline travels to the new page */
.main-nav a[aria-current="page"]::after { display: none; }
.nav-bar { position: absolute; left: 0; right: 0; bottom: 0.25rem; height: 2px; background: var(--red); }
.motion core-header { view-transition-name: site-header; }
.motion .nav-bar { view-transition-name: nav-bar; }

/* 25. The phone menu drops like a curtain and lifts away */
.motion .mobile-menu { clip-path: inset(0 0 100% 0); transition: clip-path 0.42s cubic-bezier(0.7, 0, 0.2, 1); }
.motion .mobile-menu.is-open { clip-path: inset(0 0 0 0); }

/* 26. The phone menu fits on one screen */
.mobile-menu li a { padding: clamp(0.5rem, 1.6vh, 1rem) 0; font-size: clamp(1.3rem, 3.4vh, 1.6rem); }
.mobile-menu-foot { margin-top: clamp(0.9rem, 2.4vh, 1.75rem); }

/* 29. Footer: live opening times, directions and taller link rows */
.footer-hours { display: grid; grid-template-columns: none; gap: 0.35rem; }
.footer-hours div { display: grid; grid-template-columns: 7.25rem auto; gap: 1rem; }
.footer-hours .is-today dt, .footer-hours .is-today dd { color: var(--text); font-weight: 700; }
.footer-hours .is-today dt::before { content: ""; display: inline-block; width: 0.45rem; height: 0.45rem; margin-right: 0.45rem; border-radius: 50%; background: var(--red); vertical-align: 0.12em; }
.footer-status { display: flex; align-items: center; gap: 0.6rem; margin: 1rem 0 0; font-weight: 600; color: var(--text); }
.site-footer ul { gap: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 2.5rem; }

/* 30. The status pill opens a small card of the week's hours */
.status-wrap { position: relative; display: inline-flex; }
.status-card { position: absolute; top: calc(100% + 0.6rem); right: 0; z-index: 5; display: grid; gap: 0.45rem; min-width: 17rem; padding: 0.9rem 1.1rem; border: 1px solid var(--line-strong); border-radius: 1rem; background: rgba(12, 12, 14, 0.96); box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.5); font-size: 0.875rem; color: var(--silver); white-space: nowrap; opacity: 0; visibility: hidden; transform: translateY(-0.35rem); transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s; }
.status-card span { display: flex; justify-content: space-between; gap: 1.5rem; }
.status-card b { font-weight: 600; color: var(--muted); }
.status-card .is-today, .status-card .is-today b { color: var(--text); font-weight: 700; }
.status-wrap:hover .status-card, .status-wrap:focus-within .status-card { opacity: 1; visibility: visible; transform: none; }

/* 32. One red word per page, underlined by a silver stroke that draws itself in */
.mark { position: relative; display: inline-block; color: var(--red); }
.mark svg { position: absolute; left: -2%; bottom: -0.24em; width: 104%; height: 0.34em; overflow: visible; fill: none; stroke: var(--silver); stroke-width: 3; stroke-linecap: round; pointer-events: none; }
.motion .mark path { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease) 0.35s; }
.motion .is-in .mark path, .motion .mark.is-in path { stroke-dashoffset: 0; }

/* 34. Prices set like a price board: raised pound sign, even figures */
.price { display: inline-block; font-stretch: 112%; letter-spacing: -0.01em; font-variant-numeric: tabular-nums lining-nums; }
.price::first-letter { font-size: 0.6em; vertical-align: 0.55em; margin-right: 0.04em; }

/* 37. No stranded last words */
p, li, dd, blockquote, figcaption { text-wrap: pretty; }

/* 38. A thick track with a white knob for today's hours */
.lane-track { height: 0.6rem; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
.lane-track::before { border-radius: 999px; background: linear-gradient(90deg, rgba(165, 18, 20, 0.75), var(--red)); }
.lane-now { width: 1.35rem; height: 1.35rem; margin: -0.675rem 0 0 -0.675rem; background: #fff; box-shadow: 0 0 0 0.3rem rgba(218, 26, 28, 0.28), 0 0 1rem rgba(218, 26, 28, 0.5); }
.lane-now::after { content: ""; position: absolute; inset: 0.38rem; border-radius: 50%; background: var(--red); }

/* 27 and 28 (phones): the header steps aside while you scroll down; a slim action bar */
@media (max-width: 48rem) {
  .motion core-header { transition: transform 0.35s var(--ease); }
  .motion.header-away core-header { transform: translateY(-100%); }
  /* 28. A slim action bar along the bottom with a call button, which steps aside at the footer */
  .dock { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom, 0px)); transform: translateY(110%); }
  .dock a + a { border-left: 0; }
  .dock .dock-call { display: grid; place-items: center; flex: none; width: 3.4rem; height: 3.4rem; padding: 0; border: 1px solid rgba(255, 255, 255, 0.34); border-radius: 50%; }
  .dock .dock-call:hover { border-color: var(--text); color: var(--text); }
  .dock .dock-call svg { stroke: var(--text); }
  .dock-near-end .dock { transform: translateY(110%); }
  core-footer .site-footer { padding-bottom: 1.5rem; }
}

/* =====================================================================
   Round three: one button system and a calmer home page
   ===================================================================== */
/* Three kinds of action only: red for the one main action, an outline for the rest, red text with a chevron for small links */
.btn { min-height: 3.25rem; padding: 0.75rem 1.6rem; gap: 0.6rem; font-size: 1.0625rem; font-weight: 600; letter-spacing: 0.01em; }
.btn-small { min-height: 2.6rem; padding: 0.45rem 1.15rem; font-size: 0.9375rem; }
.btn-red { background: linear-gradient(180deg, #E4262A 0%, #C8141A 100%); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0.75rem 1.75rem -0.75rem rgba(218, 26, 28, 0.8); }
.btn-red:hover { background: linear-gradient(180deg, #EE3236 0%, #D41A20 100%); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.75); background: rgba(255, 255, 255, 0.07); }
.btn-play, .btn-play:hover { border-color: transparent; background: none; box-shadow: none; padding-inline: 0 0.5rem; }

/* Home: the header's button waits until the hero's own has scrolled away, so nothing shows twice. The status waits
   with it, so the top of the home page has no opening status line (the hours card under the hero shows the times) */
core-header[current="home"] .header-row > .status-wrap,
core-header[current="home"] .header-cta { opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.dock-on core-header[current="home"] .header-row > .status-wrap,
.dock-on core-header[current="home"] .header-cta { opacity: 1; visibility: visible; }
/* Book: the header's 'Book free visit' button would only reload this page, so it is left off here,
   and the menu button moves over to the right in its place */
core-header[current="book"] .header-cta { display: none; }
core-header[current="book"] .menu-btn { margin-left: auto; }

/* =====================================================================
   Round four: one button, everywhere. Labels in bold wide capitals; red
   buttons carry an arrow that runs on hover and a sweep of light; outline
   buttons fill white from the left; every button lifts and presses in.
   ===================================================================== */
.btn, .menu-btn { font-family: var(--font-display); font-weight: 800; font-stretch: 110%; text-transform: uppercase; letter-spacing: 0.06em; }
.btn { font-size: 0.9375rem; transition: background-color 0.2s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s; }
.btn-small, .menu-btn { font-size: 0.8125rem; letter-spacing: 0.07em; }
.btn:not(.btn-play):hover { transform: translateY(-2px); }
.btn:active, .btn:not(.btn-play):active { transform: translateY(0) scale(0.97); }

/* red: an arrow in a dark disc, and a sweep of light on hover */
.btn-red { position: relative; isolation: isolate; overflow: hidden; padding-right: 0.6rem; }
.btn-red::after { content: ""; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h9M8.5 4.5 12 8l-3.5 3.5'/%3E%3C/svg%3E") 50% 50% / 0.95rem no-repeat, rgba(0, 0, 0, 0.24); }
.btn-red.btn-small { padding-right: 0.45rem; }
.btn-red.btn-small::after { width: 1.55rem; height: 1.55rem; background-size: 0.8rem; }
.btn-red::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.38) 50%, transparent 65%); transform: translateX(-120%); pointer-events: none; }
.btn-red:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1rem 2.25rem -0.75rem rgba(218, 26, 28, 0.95); }
.motion .btn-red:hover::before, .motion .btn-red:focus-visible::before { transform: translateX(120%); transition: transform 0.75s var(--ease); }
.motion .btn-red:hover::after, .motion .btn-red:focus-visible::after { animation: arrow-glide 0.7s var(--ease); }
@keyframes arrow-glide { 0% { background-position: 50% 50%; } 45% { background-position: 260% 50%; } 46% { background-position: -160% 50%; } 100% { background-position: 50% 50%; } }
/* the hero's button catches the light once, just after the page opens */
.motion.is-entered .hero .btn-red::before { animation: shine 1.1s var(--ease) 1.5s backwards; }
@keyframes shine { from { transform: translateX(-120%); } to { transform: translateX(120%); } }

/* outline: fills white from the left, label turns black */
.btn-ghost:not(.btn-play) { position: relative; isolation: isolate; overflow: hidden; }
.btn-ghost:not(.btn-play)::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--text); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); pointer-events: none; }
.btn-ghost:not(.btn-play):hover::before, .btn-ghost:not(.btn-play):focus-visible::before { transform: scaleX(1); }
.btn-ghost:not(.btn-play):hover, .btn-ghost:not(.btn-play):focus-visible { color: #0B0B0D; border-color: var(--text); }

/* ---------- The gym: two tabs under the hero, each opening its own panel ---------- */
.tabs { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: min(100%, 32rem); margin: 0 0 clamp(1.5rem, 3vw, 2rem); padding: 0.35rem; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255, 255, 255, 0.04); --tab: 0; }
.tab { position: relative; z-index: 1; min-height: 3rem; padding: 0 0.75rem; border: 0; border-radius: 999px; background: none; color: var(--silver); font-family: var(--font-display); font-weight: 800; font-stretch: 110%; font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: color 0.3s; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: #fff; }
.tab:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.tabs-glider { position: absolute; top: 0.35rem; bottom: 0.35rem; left: 0.35rem; width: calc((100% - 0.7rem) / 2); border-radius: 999px; background: linear-gradient(180deg, #E4262A 0%, #C8141A 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0.6rem 1.4rem -0.6rem rgba(218, 26, 28, 0.8); transform: translateX(calc(var(--tab) * 100%)); transition: transform 0.45s var(--ease); pointer-events: none; }
html:not(.js) .tabs { display: none; }
/* without JavaScript there is no switch, so every panel shows, one after the other */
html:not(.js) .tab-panel[hidden] { display: block !important; }
.motion .tab-panel.is-entering { animation: panel-in 0.45s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translate3d(0, 0.75rem, 0); } }

/* =====================================================================
   Round five: the cards under the hero, lit like the member app's points card
   ===================================================================== */
.fact { overflow: hidden; isolation: isolate; background: radial-gradient(120% 95% at 0% 0%, rgba(165, 18, 20, 0.5), transparent 62%), linear-gradient(160deg, rgba(120, 10, 20, 0.28), rgba(14, 14, 16, 0.94) 58%); background-color: rgba(14, 14, 16, 0.9); }
a.fact::before { opacity: 1; background: linear-gradient(140deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.07) 40%, rgba(255, 90, 100, 0.9)); }
.fact .ghost { right: -0.06em; bottom: -0.16em; font-size: clamp(5.5rem, 9vw, 7.5rem); -webkit-text-stroke-color: rgba(255, 255, 255, 0.11); }
.fact-figure { font-size: clamp(2rem, 3.2vw, 2.9rem); }
.fact-go { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: auto; padding-top: 0.25rem; color: var(--red-bright); font-weight: 700; }
.fact-go::after { content: ""; width: 0.45rem; height: 0.45rem; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.25s var(--ease); }
a.fact:hover .fact-go::after { transform: translateX(3px) rotate(45deg); }
.icon-chip { background: rgba(218, 26, 28, 0.2); }

/* the bar behind the header is solid enough to read over any text, even where the blur cannot reach */
.site-header::before { background: rgba(5, 5, 6, 0.95); }

/* =====================================================================
   Round six: colour back in, two numbers that set Core apart, the starter
   pack, and Training Pal in its own green with Bruno standing in the card
   ===================================================================== */
@media (max-width: 48rem) { .fact-figure { font-size: min(2rem, 8.6vw); } }

/* "Who Core is for": 16 years and 350 spaces */
.pledges { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem clamp(1.25rem, 3vw, 2.5rem); }
.pledges li { position: relative; display: grid; align-content: start; gap: 0.6rem; padding-top: 1.25rem; border-top: 1px solid var(--line-strong); }
.pledges li::before { content: ""; position: absolute; top: -2px; left: 0; width: 3.5rem; height: 3px; border-radius: 3px; background: var(--red); transform-origin: left; }
.motion .pledges li::before { transform: scaleX(0); transition: transform 0.9s var(--ease) 0.25s; }
.motion .pledges li.is-in::before { transform: none; }
.pledge-figure { font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-size: clamp(3rem, 5.5vw, 4.5rem); line-height: 0.85; letter-spacing: -0.02em; color: #fff; }
.pledge-text { max-width: 32ch; color: var(--muted); line-height: 1.45; }
.pledge-text b { color: var(--text); font-weight: 700; }
@media (max-width: 30rem) {
  .pledges { grid-template-columns: none; }
  .pledges li { grid-template-columns: 6.75rem minmax(0, 1fr); align-items: center; column-gap: 1rem; }
  .pledge-figure { font-size: 2.75rem; }
}

/* Training Pal: a green card on the home page and a page of its own, both in the app's own green */
.pal-section, .tp { --pal: #5AE74B; --pal-pad: clamp(1.25rem, 4vw, 3.25rem); }

/* the site's main button, in Training Pal's green: same shape, arrow and shine */
.btn-red.btn-pal { background: linear-gradient(180deg, #6CF05D 0%, #46C83A 100%); color: #051207; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0.75rem 1.75rem -0.75rem rgba(90, 231, 75, 0.85); }
.btn-red.btn-pal:hover { background: linear-gradient(180deg, #7DF56F 0%, #4FD343 100%); color: #051207; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1rem 2.25rem -0.75rem rgba(90, 231, 75, 1); }
.btn-red.btn-pal::after { background-color: rgba(5, 18, 7, 0.82); }
.btn-red.btn-pal:focus-visible { outline-color: #fff; }

/* "Core members only" and the struck-through usual price */
.pal-tag { display: inline-block; margin: 0; padding: 0.3rem 0.75rem; border: 1px solid rgba(90, 231, 75, 0.5); border-radius: 999px; background: rgba(90, 231, 75, 0.12); color: var(--pal); font-family: var(--font-display); font-weight: 800; font-stretch: 110%; font-size: 0.7rem; letter-spacing: 0.1em; line-height: 1.2; text-transform: uppercase; white-space: nowrap; }
.pal-price s, .tp-deal-price s, .tp-price-title s { color: var(--muted); font-weight: 600; text-decoration-thickness: 2px; text-decoration-color: #FF6366; }

/* the home page card: Bruno stands in the box, with only his head above the edge on wide screens */
.pal-card { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 40rem) clamp(6rem, 24vw, 13rem); grid-template-areas: "copy bruno" "more bruno"; justify-content: space-between; column-gap: clamp(0.5rem, 3vw, 3rem); margin-top: 2.5rem; padding: var(--pal-pad) var(--pal-pad) 0; border: 1px solid rgba(90, 231, 75, 0.45); border-radius: var(--radius-lg); background: radial-gradient(90% 85% at 88% 0%, rgba(45, 124, 36, 0.62), transparent 64%), linear-gradient(180deg, #0F1A0E 0%, #0A0B0C 75%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2.5rem 5rem -2.75rem rgba(90, 231, 75, 0.5); }
.pal-copy { grid-area: copy; min-width: 0; align-self: center; }
.pal-brand { display: flex; align-items: center; gap: 0.65rem; margin: 0 0 1rem; color: var(--pal); font-family: var(--font-display); font-weight: 800; font-stretch: 110%; font-size: 0.9rem; letter-spacing: 0.14em; text-transform: uppercase; }
.pal-brand img { width: auto; height: 1.7rem; }
.pal-title { margin: 0; font-size: clamp(1.3rem, 5.4vw, 2.75rem); line-height: 1; }
.pal-title .nowrap { white-space: nowrap; }
.pal-sub { margin: 0.8rem 0 0; font-size: 1.1rem; color: var(--muted); }
.pal-more { grid-area: more; min-width: 0; margin-top: 1.1rem; padding-bottom: var(--pal-pad); }
.pal-deal { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; margin: 0; }
.pal-price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.45rem; color: var(--silver); }
.pal-price b { font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-size: 1.75rem; line-height: 1; color: #fff; }
.pal-go { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 2.75rem; margin-top: 0.4rem; color: var(--pal); font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.pal-go::after { content: ""; width: 0.5rem; height: 0.5rem; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.25s var(--ease); }
.pal-go:hover { color: #8EF283; }
.pal-go:hover::after { transform: translateX(3px) rotate(45deg); }
.pal-go:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }
.pal-bruno { grid-area: bruno; display: block; width: 100%; height: auto; align-self: end; margin-top: calc(-1 * var(--pal-pad) - 2.25rem); filter: drop-shadow(0 0.9rem 0.9rem rgba(0, 0, 0, 0.6)); transform-origin: 50% 100%; pointer-events: none; }
.motion .pal-bruno { opacity: 0; transform: translate3d(0, 2.5rem, 0); transition: opacity 0.6s var(--ease) 0.25s, transform 0.9s var(--ease) 0.25s; }
.motion .pal-card.is-in .pal-bruno { opacity: 1; transform: none; animation: bruno-idle 5s ease-in-out 1.4s infinite; }
@keyframes bruno-idle { 0%, 100% { scale: 1; } 50% { scale: 1.012 1.022; } }
/* the narrowest phones: the tag takes two lines so it stays clear of Bruno */
@media (max-width: 24rem) { .pal-card .pal-tag { white-space: normal; } }

/* two ways to train now the team card has gone: wider cards that keep the faces in view */
.ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.way { aspect-ratio: 4 / 3; }
.way .photo img { object-position: 50% 25%; }

/* ---------- The Training Pal page ---------- */
.tp-hero { position: relative; isolation: isolate; margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + clamp(1.5rem, 4vw, 3rem)) 0 0; overflow: clip; border-bottom: 1px solid rgba(90, 231, 75, 0.4); }
.tp-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--smoke) center / cover, radial-gradient(60% 75% at 86% 12%, rgba(45, 124, 36, 0.6), transparent 70%), radial-gradient(45% 55% at 8% 100%, rgba(45, 124, 36, 0.25), transparent 70%), linear-gradient(180deg, #0C140C, #070808 72%); }
.tp-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem clamp(1.5rem, 4vw, 4rem); align-items: end; }
.tp-hero-copy { min-width: 0; padding-bottom: clamp(2rem, 4vw, 3rem); }
.tp-hero .actions { margin-top: 1.5rem; }
.tp-title { margin: 0; font-size: clamp(2.05rem, 5.2vw, 3.9rem); font-weight: 900; font-stretch: 115%; line-height: 1; letter-spacing: -0.02em; }
.tp-lime { color: var(--pal); }
.tp .lede { max-width: 38ch; }
.tp-deal { max-width: 31rem; margin-top: 1.4rem; padding: 1.1rem 1.25rem 1.2rem; border: 1px solid rgba(90, 231, 75, 0.45); border-radius: var(--radius); background: linear-gradient(160deg, rgba(45, 124, 36, 0.42), rgba(10, 12, 10, 0.72) 62%); }
.tp-deal-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.7rem; margin: 0.7rem 0 0; color: var(--silver); font-size: 1.15rem; }
.tp-deal-price b { font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-size: clamp(2.7rem, 6vw, 3.7rem); line-height: 0.9; color: #fff; }
.tp-deal-price s { font-size: 1.3rem; }
.tp-deal-note { margin: 0.7rem 0 0; max-width: 44ch; color: var(--silver); }

/* three Pals stand at the foot of the hero, Bruno in front */
.tp-crew { position: relative; display: flex; justify-content: center; align-items: flex-end; align-self: end; min-width: 0; }
.tp-crew::before { content: ""; position: absolute; left: 4%; right: 4%; bottom: -1.75rem; height: 5.5rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(90, 231, 75, 0.5), transparent); z-index: -1; }
.tp-crew img { display: block; width: auto; height: clamp(15rem, 33vw, 27rem); filter: drop-shadow(0 1rem 1rem rgba(0, 0, 0, 0.6)); }
.tp-crew .tp-crew-l, .tp-crew .tp-crew-r { height: clamp(12.5rem, 27.5vw, 22.5rem); }
.tp-crew .tp-crew-l { margin-right: -5%; }
.tp-crew .tp-crew-r { margin-left: -5%; }
.tp-crew .tp-crew-c { position: relative; z-index: 1; transform-origin: 50% 100%; }
.motion .tp-crew img { opacity: 0; transform: translate3d(0, 2.25rem, 0); transition: opacity 0.6s var(--ease), transform 0.9s var(--ease); }
.motion .tp-crew.is-in img { opacity: 1; transform: none; }
.motion .tp-crew.is-in .tp-crew-l { transition-delay: 0.15s; }
.motion .tp-crew.is-in .tp-crew-c { transition-delay: 0.3s; animation: bruno-idle 5s ease-in-out 1.6s infinite; }
.motion .tp-crew.is-in .tp-crew-r { transition-delay: 0.45s; }

/* the tour video, upright like the phone it was filmed on */
#tour, #core-price { scroll-margin-top: calc(var(--header-h) + 1rem); }
.tp-tour-grid { display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.tp-video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 1.75rem; border: 1px solid rgba(90, 231, 75, 0.5); background: #06110A; object-fit: contain; object-position: 50% 0; box-shadow: 0 0 0 0.45rem rgba(90, 231, 75, 0.07), 0 2.5rem 5rem -2rem rgba(90, 231, 75, 0.45); }
.tp .checks li::before { border-color: var(--pal); }

/* the app's own screens: five across on wide screens, a row you swipe on smaller ones */
.tp-rows { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.tp-row { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.tp-row h3 { margin: 0 0 0.4rem; font-size: 1.2rem; }
.tp-row p { margin: 0; color: var(--muted); font-size: 0.98rem; }
/* stills from the tour video: the top of the phone, its corners rounded like the handset, fading out at the foot */
.tp-shot { display: block; width: 100%; height: auto; border-radius: 14.5% 14.5% 0 0 / 9.2% 9.2% 0 0; -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, #000 78%, transparent 100%); }

/* the plan, in order */
.tp-path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.tp-path li { padding: clamp(1.25rem, 2.5vw, 1.75rem); }
.tp-step { display: inline-block; margin-bottom: 0.9rem; padding: 0.25rem 0.75rem; border: 1px solid rgba(90, 231, 75, 0.45); border-radius: 999px; background: rgba(90, 231, 75, 0.12); color: var(--pal); font-weight: 700; font-size: 0.875rem; }
.tp-path h3 { margin: 0 0 0.45rem; }
.tp-path p { margin: 0; color: var(--muted); }
.tp-extra { margin: 1.5rem 0 0; font-weight: 600; color: var(--silver); }

/* all twelve Pals, lined up */
.tp-pals-grid { display: grid; grid-template-columns: minmax(0, 12.5rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.tp-pal-shots { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.tp-pal-shots figure { margin: 0; }
.tp-pal-shots figcaption { margin-top: 0.35rem; font-size: 0.95rem; font-weight: 600; color: var(--silver); }
.tp-pal-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.5rem 0.5rem; align-items: start; }
.tp-pal-row li { display: grid; justify-items: center; gap: 0.1rem; text-align: center; min-width: 0; }
.tp-pal-row img { width: 100%; max-width: 6.5rem; height: auto; filter: drop-shadow(0 0.6rem 0.6rem rgba(0, 0, 0, 0.55)); transition: transform 0.35s var(--ease); }
.tp-pal-row li:hover img { transform: translateY(-0.4rem); }
.tp-pal-row b { margin-top: 0.6rem; }
.tp-pal-row span { font-size: 0.8125rem; line-height: 1.25; color: var(--muted); }

/* who is behind it, the price and the questions */
.tp-compare { margin-top: 1.5rem; font-weight: 600; color: var(--text); }
.tp-price-title { margin-top: 0.9rem; }
.tp-faq-title { margin-bottom: 1rem; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.tp .faq summary:hover { color: var(--pal); }
.tp .faq summary::after { border-color: var(--pal); }
.tp .section-raised { border-image: linear-gradient(to bottom right, rgba(90, 231, 75, 0.8), rgba(255, 255, 255, 0.1) 14%, rgba(255, 255, 255, 0.1) 86%, rgba(90, 231, 75, 0.6)) 1; }

@media (max-width: 64rem) {
  .tp-rows { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(72%, 17rem); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 1rem; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .tp-rows::-webkit-scrollbar, .tp-pal-row::-webkit-scrollbar { display: none; }
  .tp-row { scroll-snap-align: start; }
  .tp-path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-pals-grid { grid-template-columns: minmax(0, 1fr); }
  .tp-pal-shots { max-width: 12.5rem; margin-inline: auto; text-align: center; }   /* the one screenshot sits centred above the Pals */
  .tp-pal-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 6.5rem; gap: 0.75rem; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; margin-inline: calc(-1 * var(--gutter)); padding: 0.5rem var(--gutter) 1rem; scrollbar-width: none; }
}
@media (max-width: 48rem) {
  .tp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .tp-hero-copy { padding-bottom: 0; }
  .tp-crew img { height: 13.5rem; }
  .tp-crew .tp-crew-l, .tp-crew .tp-crew-r { height: 11.25rem; }
  .tp-tour-grid { grid-template-columns: minmax(0, 1fr); }
  .tp-video-wrap { width: min(100%, 21rem); margin-inline: auto; }
}
@media (max-width: 30rem) {
  .tp-path { grid-template-columns: minmax(0, 1fr); }
}
/* the smallest phones: keep the green button on the first screen (the deal is explained again further down) */
@media (max-width: 22.5rem) {
  .tp-title { font-size: 1.9rem; }
  .tp-deal { margin-top: 1.1rem; padding: 0.9rem 1rem 1rem; }
  .tp-deal-note { display: none; }
  .tp-hero .actions { margin-top: 1.15rem; }
}

/* =====================================================================
   Round seven: a traffic light for opening times. Red, amber and green on
   the home screen, and the same colours on every other open or closed dot
   ===================================================================== */
[data-light="red"] .status-dot { background: var(--shut); }
[data-light="amber"] .status-dot, [data-light="amber"] .status-dot::after { background: var(--soon); }
.visit-status .status-dot { display: inline-block; width: 0.7rem; height: 0.7rem; margin-right: 0.65rem; vertical-align: 0.12em; }
.fact[data-light="green"] .fact-top .icon-chip { background: rgba(53, 208, 127, 0.18); color: var(--open); }
.fact[data-light="amber"] .fact-top .icon-chip { background: rgba(255, 176, 32, 0.18); color: var(--soon); }

/* the home screen's light: a small housing with three lamps; the one that matches now is lit */
.hero-status { display: inline-flex; align-items: center; gap: 0.75rem; max-width: 100%; padding: 0.4rem 1.05rem 0.4rem 0.45rem; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; background: rgba(8, 8, 10, 0.7); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--text); text-decoration: none; transition: border-color 0.25s, background-color 0.25s; }
.hero-status:hover { border-color: rgba(255, 255, 255, 0.32); background-color: rgba(8, 8, 10, 0.78); color: var(--text); }
.hero-status:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.lights { display: inline-flex; flex: none; gap: 0.32rem; padding: 0.34rem 0.45rem; border-radius: 999px; background: #030304; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9); }
.light { position: relative; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--lamp); opacity: 0.2; transition: opacity 0.4s, box-shadow 0.4s; }
.light-red { --lamp: var(--shut); --lamp-glow: rgba(255, 69, 72, 0.55); }
.light-amber { --lamp: var(--soon); --lamp-glow: rgba(255, 176, 32, 0.55); }
.light-green { --lamp: var(--open); --lamp-glow: rgba(53, 208, 127, 0.55); }
[data-light="red"] .light-red, [data-light="amber"] .light-amber, [data-light="green"] .light-green { opacity: 1; box-shadow: 0 0 0.45rem 0.05rem var(--lamp), 0 0 1.2rem 0.15rem var(--lamp-glow); }
.hero-status-text { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.45rem; min-width: 0; font-size: 0.95rem; line-height: 1.25; color: var(--silver); }
.hero-status-text b { font-family: var(--font-display); font-weight: 800; font-stretch: 110%; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
[data-light="green"] .hero-status-text b { color: var(--open); }
[data-light="amber"] .hero-status-text b { color: var(--soon); }
[data-light="red"] .hero-status-text b { color: #FF6366; }   /* a touch lighter than the lamp so small text clears 4.5:1 */
.hero-status + .hero-title { margin-top: 1.1rem; }
@media (min-width: 64rem) {
  .hero-status { gap: 0.85rem; padding: 0.45rem 1.2rem 0.45rem 0.5rem; }
  .light { width: 0.8rem; height: 0.8rem; }
  .hero-status-text { font-size: 1.02rem; }
  .hero-status-text b { font-size: 0.86rem; }
}
/* 360px phones: a little tighter so every state fits on one line */
@media (max-width: 24rem) {
  .hero-status { gap: 0.55rem; padding-right: 0.85rem; }
  .lights { gap: 0.26rem; padding: 0.32rem 0.38rem; }
  .hero-status-text { column-gap: 0.35rem; font-size: 0.9rem; }
  .hero-status-text b { font-size: 0.76rem; }
}

/* motion: the lamps test themselves once as the page opens, then the lit one glows (green slowly, amber faster, red steady) */
.light::after { content: ""; position: absolute; inset: -0.3rem; border-radius: 50%; background: radial-gradient(circle, var(--lamp-glow), transparent 70%); opacity: 0; pointer-events: none; }
@keyframes lamp-check { 0%, 100% { opacity: 0.2; box-shadow: none; } 30%, 65% { opacity: 1; box-shadow: 0 0 0.5rem 0.1rem var(--lamp); } }
@keyframes lamp-breathe { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.85; } }
.motion.is-entered .hero-status .light { animation: lamp-check 0.45s ease-out backwards; }
.motion.is-entered .hero-status .light-red { animation-delay: 1.05s; }
.motion.is-entered .hero-status .light-amber { animation-delay: 1.25s; }
.motion.is-entered .hero-status .light-green { animation-delay: 1.45s; }
.motion.is-entered [data-light="green"] .light-green::after { animation: lamp-breathe 2.8s ease-in-out 2.2s infinite; }
.motion.is-entered [data-light="amber"] .light-amber::after { animation: lamp-breathe 1.3s ease-in-out 2.2s infinite; }

/* the "Got a question first?" line at the end of Join Core (memberships) and the "Already a member?" line on Training Pal */
.plan-help { margin: 1.25rem 0 0; color: var(--muted); }
.tp-how { margin: 1.25rem 0 0; color: var(--silver); }

/* ---------- Print: price lists and timetables come out as clean black on white ---------- */
@media print {
  :root { --bg: #fff; --bg-1: #fff; --bg-2: #fff; --text: #000; --muted: #444; --silver: #222; --line: #bbb; --line-strong: #888; --red-bright: #B00F12; }
  html, body { background: #fff; color: #000; font-size: 11pt; }
  body::after, core-header, .dock, .progress, .intro, .motion-note, .cog, .hero-media, .hero-light, .tour-frame, .map-box, .actions, .band, form, .site-footer .footer-brand img, .hero::before, .hero::after, .page-head::before, .hero-ghost, .ghost, .facts-row::before, .plan-featured::before, a.fact::before, .mark svg { display: none !important; }
  .tag { background: none; }
  .tabs { display: none; }
  .tab-panel[hidden] { display: block !important; }
  .section-raised, .page-head, .site-footer { border-image: none; }
  .hero, .page-head { margin-top: 0; padding: 0 0 1rem; min-height: 0; }
  .section, .section-tight { padding-block: 1rem; }
  .section-raised { border: 0; }
  .card { background: none; border: 1px solid #999; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .quote { break-inside: avoid; }
  .plan-featured { border: 2px solid #000; }
  .photo img { filter: none; }
  [data-reveal], [data-reveal] > *, .hero [data-enter], .hero-title .line > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .asks li { opacity: 1 !important; }
  .faq details { display: block; }
  .faq details::details-content { content-visibility: visible; block-size: auto; }
  .site-footer { background: none; border-top: 1px solid #999; }
  a { text-decoration: none; }
}

/* ---------- Responsive ---------- */
/* big desktop monitors: scale the whole system up a notch rather than leaving it small in the middle */
@media (min-width: 110rem) {
  html { font-size: 112.5%; }
}
@media (min-width: 150rem) {
  html { font-size: 125%; }
}

@media (max-width: 70rem) {
  .main-nav, .header-row > .status-wrap { display: none; }
  .menu-btn { display: inline-flex; }
  .header-cta { margin-left: auto; }
}

/* tablets: keep the hero words clear of the photo */
@media (max-width: 70rem) and (min-width: 48.0625rem) {
  .hero-sub { max-width: 23rem; }
  .hero-media { width: 60%; }
}

/* tablets keep three-up rows (cards) instead of one long phone-style column */
@media (max-width: 60rem) and (min-width: 48.0625rem) {
  .facts-row { grid-template-columns: 1fr 1fr; }
  .facts-row .fact:first-child { grid-column: 1 / -1; }
  .contact-facts .fact:first-child { grid-column: auto; }
  .way { aspect-ratio: auto; min-height: 25rem; }
  .way-body { padding: 1.1rem; }
  .way::before { inset: 22% 0 0 0; background: linear-gradient(180deg, transparent, rgba(5, 5, 6, 0.95) 58%); }
}

@media (max-width: 60rem) {
  .facts-row { margin-top: calc(-1 * clamp(5rem, 14vw, 7rem)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 48rem) {
  :root { --header-h: 4.5rem; }
  .brand img { height: 3.1rem; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .facts-row, .ways { grid-template-columns: 1fr; }
  /* taller cards and a deeper scrim: on a narrow card the words covered most of the photo */
  .way { aspect-ratio: auto; min-height: 23rem; }
  .way::before { inset: 22% 0 0 0; background: linear-gradient(180deg, transparent, rgba(5, 5, 6, 0.95) 58%); }
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 15rem); }
  .hero-media { inset: 0 0 auto 0; width: 100%; height: 24rem; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 96%); mask-image: linear-gradient(180deg, #000 30%, transparent 96%); -webkit-mask-composite: source-over; mask-composite: add; }
  .hero-media img { object-position: 62% 20%; }
  .hero-light { inset: 0 0 auto 0; width: 100%; height: 24rem; }
  .hero-cog { right: -16rem; top: 17rem; width: 34rem; }
  .hero-cog path { fill: rgba(255, 255, 255, 0.02); stroke: rgba(255, 255, 255, 0.1); }
  .news-item { grid-template-columns: minmax(0, 1fr) auto; }
  .news-item time { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; }
  .page-head .cog { width: 24rem; right: -10rem; top: -8rem; }
}

@media (max-width: 30rem) {
  .header-cta { display: none; }
  .menu-btn { margin-left: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .news-item .photo { display: none; }
  .actions .btn:not(.btn-play) { flex: 1 1 100%; }
  /* a closing box with a single button still gives it the full width */
  .band .actions { flex: 1 1 100%; }
  /* a little less side room, so 'Book your free visit' stays on one line */
  .band { padding-inline: 1.25rem; }
  .band .btn { letter-spacing: 0.02em; padding-left: 1.1rem; }
  .band .btn-ghost { padding-right: 1.1rem; }
}

/* Still version: the device asks for reduced motion (or the visitor switched animations off) */
.no-motion *, .no-motion *::before, .no-motion *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) {
  html:not(.js) *, html:not(.js) *::before, html:not(.js) *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Motion notice and toggle ---------- */
.motion-note { position: fixed; left: 1rem; bottom: 1rem; z-index: 80; width: min(24rem, calc(100vw - 2rem)); padding: 1.1rem 1.25rem; background-color: rgba(12, 12, 14, 0.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: 0.9375rem; }
.motion-note p { color: var(--silver); }
.motion-note strong { color: var(--text); }
.motion-note .actions { margin-top: 0.9rem; gap: 0.5rem; }
.link-btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--text); }

/* Round two, phones: the photo also fades at the top, and the smoke sits behind the headline */
@media (max-width: 48rem) {
  .hero-media { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 20%, #000 30%, transparent 96%); mask-image: linear-gradient(180deg, transparent 0, #000 20%, #000 30%, transparent 96%); }
  .hero::before { background: var(--smoke) center / cover, radial-gradient(34rem 17rem at 30% 25rem, rgba(165, 18, 20, 0.42), transparent 72%), radial-gradient(22rem 12rem at 100% 34rem, rgba(120, 10, 14, 0.36), transparent 75%); }
  .page-head::before { background: var(--smoke) center / cover, radial-gradient(90% 80% at 92% -8%, rgba(218, 26, 28, 0.3), transparent 70%), radial-gradient(120% 90% at 20% -30%, rgba(165, 18, 20, 0.42), transparent 72%); }
  .hero-ghost { bottom: 0; }
}

/* Round five, phones: the three cards become a row you swipe, with the next card peeking in */
@media (max-width: 48rem) {
  .facts-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: 0.75rem; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 0.75rem; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .facts-row::-webkit-scrollbar { display: none; }
  .facts-row .fact { scroll-snap-align: start; }
}

/* Round seven, phones: the hero starts a little higher so the light fits without pushing the main button down.
   Round ten: the photo is a fifth shorter (24rem, was 30rem) and the words start 3.25rem sooner, so the
   headline and the main button sit higher on the first screen */
@media (max-width: 48rem) {
  .hero { padding-top: calc(var(--header-h) + 9.5rem); }
}

/* Seven tabs: between tablet and wide desktop the header drops its hours pill so every tab and the button stay on one line */
@media (max-width: 82rem) and (min-width: 70.0625rem) {
  .header-row > .status-wrap { display: none; }
}
.header-cta { white-space: nowrap; }

/* ---------- Sticky starter pack offer (replaces the free visit dock) ---------- */
/* Desktop and tablet: the starter pack card floats bottom right once the first screen has gone */
nav.dock:has(.dock-offer) {
  position: fixed; right: clamp(1rem, 2vw, 1.75rem); bottom: clamp(1rem, 2vw, 1.75rem); left: auto; z-index: 55;
  display: block; padding: 0; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  transform: translateY(calc(100% + 2.5rem)); opacity: 0; transition: transform 0.5s var(--ease), opacity 0.3s;
}
.dock-on nav.dock:has(.dock-offer) { transform: none; opacity: 1; }
.dock-near-end nav.dock:has(.dock-offer), .menu-open nav.dock:has(.dock-offer) { transform: translateY(calc(100% + 2.5rem)); opacity: 0; }
/* Home: it also waits while the green £99 card under the hero is still on screen (site.js sets dock-wait) */
.dock-wait nav.dock:has(.dock-offer) { transform: translateY(calc(100% + 2.5rem)); opacity: 0; }
nav.dock:has(.dock-offer) .dock-call { display: none; }
.dock .dock-offer {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: auto; justify-items: start; gap: 0.55rem;
  width: 19.5rem; padding: 1.15rem 1.3rem 1.2rem; border-radius: 1.5rem;
  border: 1px solid rgba(255, 110, 115, 0.45);
  background: radial-gradient(120% 95% at 0% 0%, rgba(165, 18, 20, 0.55), transparent 62%), linear-gradient(160deg, rgba(120, 10, 20, 0.3), rgba(14, 14, 16, 0.96) 58%);
  background-color: rgba(14, 14, 16, 0.95);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 40px rgba(218, 26, 28, 0.18);
  color: var(--text); text-decoration: none; font-size: 1rem; font-weight: 500; text-align: left;
  transition: transform 0.35s var(--ease), border-color 0.25s;
}
.dock .dock-offer:hover { color: var(--text); transform: translateY(-3px); border-color: var(--red-bright); }
.dock .dock-offer:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; }
.dock-offer-top { display: flex; align-items: center; gap: 0.7rem; }
.dock .dock-offer .icon-chip { width: 2.4rem; height: 2.4rem; }
.dock .dock-offer .icon-chip svg { width: 1.15rem; height: 1.15rem; stroke: var(--red-bright); }
.dock-offer-label { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.dock-offer-price { font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-size: 2.6rem; line-height: 1; letter-spacing: -0.01em; }
.dock-offer-note { font-size: 0.9375rem; line-height: 1.4; color: var(--muted); max-width: 16rem; }
.dock-offer-go { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--red-bright); font-weight: 700; font-size: 1rem; }
.dock-offer-go::after { content: ""; width: 0.42rem; height: 0.42rem; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.25s var(--ease); }
.dock .dock-offer:hover .dock-offer-go::after { transform: translateX(3px) rotate(45deg); }
.dock-offer-ghost { position: absolute; z-index: -1; right: -0.06em; bottom: -0.2em; font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-size: 6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1); pointer-events: none; }

/* Phones: a slim offer bar across the bottom with the call button beside it */
@media (max-width: 48rem) {
  nav.dock:has(.dock-offer) {
    left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 0.6rem;
    padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line); background: rgba(8, 8, 10, 0.92);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    transform: translateY(110%); opacity: 1;
  }
  .dock-on nav.dock:has(.dock-offer) { transform: none; }
  .dock-near-end nav.dock:has(.dock-offer), .menu-open nav.dock:has(.dock-offer) { transform: translateY(110%); opacity: 1; }
  .dock-wait nav.dock:has(.dock-offer) { transform: translateY(110%); opacity: 1; }
  nav.dock:has(.dock-offer) .dock-call { display: grid; }
  .dock .dock-offer {
    flex: 1; min-width: 0; width: auto; min-height: 3.6rem;
    grid-template-columns: auto 1fr auto; grid-template-areas: "price label go" "price note go";
    align-items: center; column-gap: 0.8rem; row-gap: 0.1rem; padding: 0.5rem 0.9rem 0.5rem 1rem; border-radius: 1.1rem;
    box-shadow: none;
  }
  .dock .dock-offer:hover { transform: none; }
  .dock-offer-top { grid-area: label; align-self: end; }
  .dock .dock-offer .icon-chip { display: none; }
  .dock-offer-label { font-size: 0.6875rem; letter-spacing: 0.12em; }
  .dock-offer-price { grid-area: price; font-size: 2.1rem; }
  .dock-offer-note { grid-area: note; align-self: start; font-size: 0.8125rem; line-height: 1.25; color: var(--text); }
  .dock-offer-go { grid-area: go; font-size: 0; gap: 0; }
  .dock-offer-go::after { width: 0.55rem; height: 0.55rem; }
  .dock-offer-ghost { display: none; }
}
/* keyboard: while the offer (or the call button) has focus it shows, even where it would otherwise be tucked away */
nav.dock:has(.dock-offer):focus-within { transform: none; opacity: 1; }
@media print { nav.dock { display: none !important; } }
/* Small phones: a shorter line and a smaller price so the bar stays two lines tall */
@media (max-width: 23.5rem) {
  .dock-offer-long { display: none; }
  .dock .dock-offer { column-gap: 0.6rem; padding-inline: 0.8rem 0.7rem; }
  .dock-offer-price { font-size: 1.8rem; }
  .dock-offer-label { white-space: nowrap; letter-spacing: 0.08em; }
  nav.dock:has(.dock-offer) .dock-call { width: 3.1rem; height: 3.1rem; }
}

/* ---------- Starter pack in green: the home £99 card, the sticky £99 button and (in pages.css) the Memberships ticket ---------- */
:root { --sp: #34D27F; --sp-light: #A6F7C8; --sp-deep: #13995A; --sp-ink: #04150C; }
.facts-row .fact:first-child {
  background: radial-gradient(120% 95% at 0% 0%, rgba(52, 210, 127, 0.26), transparent 62%), linear-gradient(160deg, rgba(20, 120, 70, 0.22), rgba(14, 14, 16, 0.95) 58%);
  background-color: rgba(10, 16, 12, 0.94);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.8), 0 0 60px -12px rgba(52, 210, 127, 0.32);
}
.facts-row a.fact:first-child::before { background: linear-gradient(140deg, rgba(166, 247, 200, 0.95), rgba(52, 210, 127, 0.25) 40%, rgba(19, 153, 90, 0.95)); }
.facts-row .fact:first-child .icon-chip { background: rgba(52, 210, 127, 0.18); color: var(--sp); }
.facts-row .fact:first-child .fact-label { color: var(--sp-light); }
.facts-row .fact:first-child .fact-figure { background: linear-gradient(180deg, var(--sp-light) 10%, var(--sp) 55%, var(--sp-deep) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 14px rgba(52, 210, 127, 0.3)); }
.facts-row .fact:first-child .ghost { -webkit-text-stroke-color: rgba(52, 210, 127, 0.16); }
.facts-row .fact:first-child .fact-go { color: var(--sp); }
.facts-row a.fact:first-child:hover { border-color: var(--sp); }
.facts-row .fact:first-child:focus-visible { outline-color: var(--sp); }

/* the sticky £99 button */
.dock .dock-offer { border-color: rgba(52, 210, 127, 0.5); background: radial-gradient(120% 95% at 0% 0%, rgba(52, 210, 127, 0.3), transparent 62%), linear-gradient(160deg, rgba(20, 120, 70, 0.26), rgba(14, 14, 16, 0.96) 58%); background-color: rgba(10, 16, 12, 0.95); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 40px rgba(52, 210, 127, 0.16); }
.dock .dock-offer:hover { border-color: var(--sp); }
.dock .dock-offer:focus-visible { outline-color: var(--sp); }
.dock .dock-offer .icon-chip { background: rgba(52, 210, 127, 0.18); }
.dock .dock-offer .icon-chip svg { stroke: var(--sp); }
.dock-offer-price { background: linear-gradient(180deg, var(--sp-light) 10%, var(--sp) 60%, var(--sp-deep) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dock-offer-go { color: var(--sp); }
.dock-offer-ghost { -webkit-text-stroke-color: rgba(52, 210, 127, 0.14); }
@media (max-width: 48rem) { .dock .dock-offer { box-shadow: none; } }
/* Phones: the bar keeps to the price, the offer and the Training Pal week in green underneath; the "Starter pack" label steps out to save height */
@media (max-width: 48rem) {
  .dock .dock-offer { grid-template-areas: "price note go"; }
  .dock .dock-offer .dock-offer-top { display: none; }
  .dock-offer-note { align-self: center; font-weight: 600; }
  .dock-offer-comma { display: none; }
  .dock-offer-pal { display: block; margin-top: 0.15rem; font-size: 0.75rem; font-weight: 700; color: var(--sp); }
}

/* ---------- Home hours card: a clock; home find us card: a map ---------- */
.facts-row .fact { --lamp: var(--red-bright); }
.facts-row .fact[data-light="green"] { --lamp: var(--open); }
.facts-row .fact[data-light="amber"] { --lamp: var(--soon); }
.fact-clock { position: absolute; z-index: -1; right: -2.6rem; bottom: -3.2rem; width: 13.5rem; aspect-ratio: 1; pointer-events: none; }
.fact-clock svg { display: block; width: 100%; height: 100%; overflow: visible; }
.fact-clock .clk-face { fill: rgba(255, 255, 255, 0.025); stroke: rgba(255, 255, 255, 0.14); stroke-width: 1.5; }
.fact-clock .clk-wedge { fill: var(--lamp); opacity: 0.16; }
.fact-clock .clk-hour { stroke: rgba(255, 255, 255, 0.34); stroke-width: 3; stroke-linecap: round; }
.fact-clock .clk-min { stroke: rgba(255, 255, 255, 0.14); stroke-width: 1.2; }
.fact-clock .clk-h { stroke: rgba(255, 255, 255, 0.55); stroke-width: 6; stroke-linecap: round; }
.fact-clock .clk-m { stroke: var(--lamp); stroke-width: 3.5; stroke-linecap: round; filter: drop-shadow(0 0 4px var(--lamp)); }
.fact-clock .clk-pin { fill: #fff; stroke: var(--lamp); stroke-width: 3; }
.motion .fact-clock .clk-m, .motion .fact-clock .clk-h { transition: transform 0.6s var(--ease); }

.fact-map { position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: 78%; height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000 35%, transparent 96%); mask-image: linear-gradient(to left, #000 35%, transparent 96%); }
.fact-map .map-blocks rect { fill: rgba(255, 255, 255, 0.035); }
.fact-map .map-roads path { fill: none; stroke: rgba(255, 255, 255, 0.11); stroke-width: 5; stroke-linecap: round; }
.fact-map .map-main { fill: none; stroke: rgba(255, 255, 255, 0.18); stroke-width: 10; stroke-linecap: round; }
.fact-map .map-route { fill: none; stroke: var(--red-bright); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 7; opacity: 0.85; }
.fact-map .map-pin path { fill: var(--red); stroke: #fff; stroke-width: 1.5; }
.fact-map .map-pin-dot { fill: #fff; }
.fact-map .map-pulse { fill: rgba(218, 26, 28, 0.25); stroke: rgba(255, 69, 72, 0.6); stroke-width: 1; transform-box: fill-box; transform-origin: center; }
.motion .fact-map .map-route { animation: map-route 1.4s linear infinite; }
.motion .fact-map .map-pulse { animation: map-pulse 2.4s var(--ease) infinite; }
@keyframes map-route { to { stroke-dashoffset: -18; } }
@keyframes map-pulse { 0% { transform: scale(0.4); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
a.fact:hover .fact-map .map-roads path { stroke: rgba(255, 255, 255, 0.16); }
@media print { .fact-clock, .fact-map { display: none !important; } }
/* the whole clock shows, small, in the bottom right corner under the hours bar */
.fact-clock { z-index: 0; right: 1.25rem; bottom: 1.1rem; width: clamp(5.5rem, 7.5vw, 7rem); }
.fact-clock .clk-face { fill: rgba(0, 0, 0, 0.35); stroke: rgba(255, 255, 255, 0.28); stroke-width: 3; }
.fact-clock .clk-wedge { opacity: 0.32; }
.fact-clock .clk-hour { stroke: rgba(255, 255, 255, 0.6); stroke-width: 5; }
.fact-clock .clk-min { stroke: rgba(255, 255, 255, 0.22); stroke-width: 2; }
.fact-clock .clk-h { stroke: #fff; stroke-width: 9; }
.fact-clock .clk-m { stroke-width: 6; }
.fact-clock .clk-pin { stroke-width: 4; r: 7; }
.fact-map .map-main { stroke: rgba(255, 255, 255, 0.14); }
.fact-clock { width: 4.75rem; bottom: 1.25rem; right: 1.4rem; }
.fact-clock { top: 1.25rem; bottom: auto; right: 1.25rem; width: 4.75rem; }
@media (max-width: 23.5rem) { .fact-clock { width: 3.4rem; top: 1rem; right: 1rem; } }
.pal-partner { margin: 0.9rem 0 0; max-width: 44ch; font-size: 0.95rem; color: var(--silver); }

/* ---------- Main buttons in gold (was red). Training Pal buttons stay green; the starter pack's join button stays green (pages.css) ---------- */
.btn-red:not(.btn-pal) {
  background: linear-gradient(180deg, #FFE29A 0%, #F2C14E 48%, #D59E36 100%); color: #1A1305;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 0.75rem 1.75rem -0.75rem rgba(242, 193, 78, 0.75);
}
.btn-red:not(.btn-pal):hover { background: linear-gradient(180deg, #FFEAB0 0%, #F7CC62 48%, #DEA93F 100%); color: #1A1305; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 1rem 2.25rem -0.75rem rgba(242, 193, 78, 0.95); }
.btn-red:not(.btn-pal)::after { background-color: rgba(26, 19, 5, 0.82); }
.btn-red:not(.btn-pal)::before { background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.6) 50%, transparent 65%); }
.btn-red:not(.btn-pal):focus-visible { outline-color: #FFE29A; }

/* Tabs pop more: bigger, a red-lit frame, brighter labels and a glowing selected pill */
.tabs { width: min(100%, 36rem); padding: 0.4rem; border: 1px solid rgba(255, 69, 72, 0.55); background: linear-gradient(180deg, rgba(40, 10, 12, 0.85), rgba(14, 14, 16, 0.92)); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 34px -6px rgba(228, 38, 42, 0.55), 0 18px 40px -18px rgba(0, 0, 0, 0.9); }
.tab { min-height: 3.6rem; font-size: 1rem; font-weight: 900; letter-spacing: 0.07em; color: #E9E9EC; border-radius: 999px; transition: color 0.3s, background-color 0.3s; }
.tab:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.tab[aria-selected="true"]:hover { background: none; }
.tab[aria-selected="true"] { text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
.tabs-glider { top: 0.4rem; bottom: 0.4rem; left: 0.4rem; width: calc((100% - 0.8rem) / 2); background: linear-gradient(180deg, #FF5A5D 0%, #E4262A 45%, #B5121A 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.25), 0 0 26px rgba(255, 69, 72, 0.75), 0 0.8rem 1.6rem -0.5rem rgba(218, 26, 28, 0.9); }
@media (max-width: 30rem) { .tab { min-height: 3.25rem; font-size: 0.875rem; } }

/* Training Pal: the tour poster with one big play button */
.tp-video-wrap { position: relative; }
.tp-play { position: absolute; left: 50%; top: 71%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 0.7rem; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; font: inherit; }
.tp-play-dot { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #8BF57A, #39C82A 55%, #1E8E15); box-shadow: 0 0 0 0.5rem rgba(90, 231, 75, 0.18), 0 0 2.5rem rgba(90, 231, 75, 0.75), 0 1rem 2rem -0.5rem rgba(0, 0, 0, 0.8); transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.tp-play-dot svg { width: 2rem; height: 2rem; margin-left: 0.3rem; fill: #04140A; }
.tp-play-label { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.6rem 0.5rem 1rem; border: 1px solid rgba(90, 231, 75, 0.7); border-radius: 999px; background: rgba(4, 16, 8, 0.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; white-space: nowrap; box-shadow: 0 0 1.5rem rgba(90, 231, 75, 0.35); }
.tp-play-time { padding: 0.12rem 0.5rem; border-radius: 999px; background: rgba(90, 231, 75, 0.2); color: #8BF57A; font-size: 0.8rem; }
.tp-play:hover .tp-play-dot, .tp-play:focus-visible .tp-play-dot { transform: scale(1.08); box-shadow: 0 0 0 0.65rem rgba(90, 231, 75, 0.22), 0 0 3.25rem rgba(90, 231, 75, 0.9), 0 1rem 2rem -0.5rem rgba(0, 0, 0, 0.8); }
.tp-play:focus-visible { outline: none; }
.tp-play:focus-visible .tp-play-label { outline: 2px solid #fff; outline-offset: 3px; }
.motion .tp-play-dot { animation: none; position: relative; isolation: isolate; box-shadow: 0 0 2.5rem rgba(90, 231, 75, 0.7), 0 1rem 2rem -0.5rem rgba(0, 0, 0, 0.8); }
.motion .tp-play:hover .tp-play-dot, .motion .tp-play:focus-visible .tp-play-dot { box-shadow: 0 0 2.5rem rgba(90, 231, 75, 0.7), 0 1rem 2rem -0.5rem rgba(0, 0, 0, 0.8); }
.motion .tp-play-dot::before, .motion .tp-play-dot::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; pointer-events: none; }
/* the pulse: one ring that grows and fades (scale and opacity, so the compositor runs it), plus a soft glow that swells */
.motion .tp-play-dot::before { inset: -0.5rem; background: rgba(90, 231, 75, 0.18); animation: tp-ring 2.4s ease-in-out infinite; }
.motion .tp-play-dot::after { box-shadow: 0 0 3.25rem rgba(90, 231, 75, 0.4); opacity: 0; animation: tp-glow-b 2.4s ease-in-out infinite; }
@keyframes tp-ring { 50% { transform: scale(1.1455); opacity: 0.444; } }
@keyframes tp-glow-b { 50% { opacity: 1; } }
@keyframes tp-pulse { 0%, 100% { box-shadow: 0 0 0 0.5rem rgba(90, 231, 75, 0.18), 0 0 2.5rem rgba(90, 231, 75, 0.7), 0 1rem 2rem -0.5rem rgba(0, 0, 0, 0.8); } 50% { box-shadow: 0 0 0 0.9rem rgba(90, 231, 75, 0.08), 0 0 3.25rem rgba(90, 231, 75, 0.9), 0 1rem 2rem -0.5rem rgba(0, 0, 0, 0.8); } }
.tp-video-wrap.is-playing .tp-play { display: none; }
.tp-video { object-fit: cover; }

/* Training Pal: whole phone screens (not zoomed crops), each held at phone size */
.tp-shot { width: min(100%, 14rem); margin-inline: auto; border-radius: 9.5% 9.5% 0 0 / 4.75% 4.75% 0 0; -webkit-mask-image: linear-gradient(180deg, #000 84%, transparent 100%); mask-image: linear-gradient(180deg, #000 84%, transparent 100%); filter: drop-shadow(0 1.25rem 2rem rgba(90, 231, 75, 0.12)); }
.tp-pal-shots .tp-shot { width: min(100%, 12.5rem); }
@media (max-width: 48rem) { .tp-row .tp-shot { width: 82%; } }

/* Training Pal: the £10 price in gold */
.tp-deal-price b { background: linear-gradient(180deg, #FFE29A 10%, #F2C14E 55%, #B8862B 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 14px rgba(242, 193, 78, 0.35)); }

/* Training Pal on phones: the three Pals sit right under the headline, bigger, on a lit stage */
@media (max-width: 48rem) {
  .tp-hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .tp-hero-copy { display: contents; }
  .tp-hero-copy > .pal-brand { order: 1; }
  .tp-hero-copy > .tp-title { order: 2; }
  .tp-crew { order: 3; align-self: center; margin: 1.25rem 0 2rem; padding-top: 0.5rem; }
  .tp-hero-copy > .lede { order: 4; }
  /* the button comes before the £10 card, so it sits on the first screen (it says £10 itself) */
  .tp-hero-copy > .actions { order: 5; }
  .tp-hero-copy > .tp-deal { order: 6; }
  .tp-crew img { height: 13.25rem; }   /* round ten: a fifth smaller (was 16.5rem and 13.5rem) so the deal and button sit higher */
  .tp-crew .tp-crew-l, .tp-crew .tp-crew-r { height: 10.75rem; }
  .tp-crew .tp-crew-l { margin-right: -7%; }
  .tp-crew .tp-crew-r { margin-left: -7%; }
  .tp-crew::before { left: 2%; right: 2%; bottom: -1.1rem; height: 3.5rem; background: radial-gradient(closest-side, rgba(90, 231, 75, 0.55), rgba(90, 231, 75, 0.12) 70%, transparent); }
  .tp-crew::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -0.55rem; height: 1.6rem; border: 2px solid rgba(139, 245, 122, 0.55); border-radius: 50%; box-shadow: 0 0 1.25rem rgba(90, 231, 75, 0.5), inset 0 0 1rem rgba(90, 231, 75, 0.35); z-index: -1; }
}
@media (max-width: 48rem) { .tp-hero-copy > .tp-deal { margin-bottom: 2.25rem; } }
.tp-hero-copy { padding-bottom: clamp(2.25rem, 4vw, 3rem); }

/* ---------- Round eight: the Core team stand across the foot of the home hero ----------
   The headline and buttons sit in a band at the top. The cartoon team stands under them, to scale,
   with their legs fading behind the three cards. The picture is sized by the screen's height,
   so heads never run into the words. */
.hero-group { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
.hero-group .hero-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 25rem); grid-template-areas: "title side"; column-gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.hero-group .hero-title { grid-area: title; font-size: clamp(2.3rem, 7.4vw, 6.2rem); }
.hero-group .hero-side { grid-area: side; padding-bottom: 0.35rem; }
.hero-group .hero-sub { margin-top: 0; max-width: 25rem; }
.hero-group .actions { margin-top: 1.25rem; }
.hero-group .hero-media {
  position: relative; inset: auto; z-index: -2; display: block; align-self: center;
  width: min(92vw, 78rem, calc((100svh - 20rem) * 1.447)); min-width: min(100%, 40rem); height: auto;
  margin-top: clamp(0.75rem, 2vw, 1.5rem);
  /* the fade lives on the picture, not the link, so the link's focus ring is never masked away */
  -webkit-mask-image: none; mask-image: none;
}
.hero-group .hero-media img { height: auto; object-fit: contain; filter: none; scale: 1; transform: translate3d(calc(var(--mx, 0) * -6px), calc(var(--my, 0) * -4px), 0); transform-origin: 50% 100%; -webkit-mask-image: linear-gradient(0deg, transparent 3%, #000 30%); mask-image: linear-gradient(0deg, transparent 3%, #000 30%); }
.motion .hero-group .hero-media img { scale: 1.05; }
.motion.is-entered .hero-group .hero-media img { scale: 1; }
.hero-group .hero-media:focus-visible { outline: 2px solid var(--text); outline-offset: -4px; border-radius: var(--radius-sm, 0.5rem); }
/* the header's shadow sits behind the team, so it never darkens their faces */
.hero-group::after { z-index: -3; }
.hero-group .hero-light { inset: auto 0 0 0; width: 100%; height: 75%; z-index: -3; mix-blend-mode: normal; background: radial-gradient(40% 52% at 50% 64%, rgba(218, 26, 28, 0.32), transparent 72%); }
.hero-group .hero-cog, .hero-group .hero-ghost { z-index: -3; }
@media (min-width: 48.0625rem) {
  .hero-group { padding-bottom: 0; }
}
@media (max-width: 70rem) {
  .hero-group .hero-copy { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "side"; }
  .hero-group .hero-side { padding-bottom: 0; margin-top: 1.25rem; }
  .hero-group .hero-sub { max-width: 33rem; }
}
/* phones: the team comes first, right under the header, then the headline */
@media (max-width: 48rem) {
  .hero-group { padding-top: calc(var(--header-h) + 0.75rem); }
  .hero-group .hero-media { order: -1; width: 100%; min-width: 0; margin: 0 0 -0.75rem; -webkit-mask-image: none; mask-image: none; }
  .hero-group .hero-media img { -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 24%); mask-image: linear-gradient(0deg, transparent 0, #000 24%); }
  .hero-group .hero-light { inset: 0 0 auto 0; height: 24rem; background: radial-gradient(60% 46% at 50% 58%, rgba(218, 26, 28, 0.34), transparent 72%); }
  .hero-group .hero-title { font-size: clamp(2.3rem, 11.2vw, 6.6rem); }
}

/* ---------- Round nine: the team pop up around the site ----------
   A cameo is a small cartoon of one trainer attached to a box: peeking over its top edge, sitting on it,
   leaning out from its side, leaning an elbow on it or pushing it. It sits in a .cameo-host wrapper with
   the box, so a box that clips its own overflow never cuts the character off.
   Each one is a five-second looping animation (an animated WebP made from an Artlist video). It pops up
   from behind its box when it scrolls into view. The still frame shows first; site.js swaps in the
   animation only after the page has fully loaded and the cameo is on screen, and never when motion is
   off or the visitor has data saver on, so those visitors keep the still.
   Sizes and positions belong to the host (--ch height, --cx across); each character only knows its own
   shape (--ar) and where it touches the box (--grip, --seat, --elbow, --hands, --cut). */
.cameo-host { position: relative; }
.cameo { position: absolute; z-index: 4; display: block; height: var(--ch, 10rem); aspect-ratio: var(--ar, 1); pointer-events: none; }
.cameo img { display: block; width: 100%; height: 100%; max-width: none; filter: drop-shadow(0 0.7rem 0.9rem rgba(0, 0, 0, 0.6)); }
.motion [data-reveal="cameo"] { opacity: 1; transform: none; }
/* peek: head and hands over the top edge; the body is cut flat on the edge, clipped so it rises from behind the box */
.cameo-peek { bottom: calc(100% - var(--ch, 10rem) * var(--grip, 0.1)); left: var(--cx, 78%); translate: -50% 0; clip-path: inset(-100% -100% 0 -100%); }
.cameo-peek img { transform-origin: 50% 100%; }
/* sit: perched on the top edge, legs hanging down the front of the box */
.cameo-sit { top: 0; left: var(--cx, 80%); translate: -50% calc(-1 * var(--seat, 55%)); }
/* side: leaning out from behind the box's right edge */
.cameo-side { top: var(--cy, 50%); left: 100%; translate: calc(-1 * var(--cut, 0%)) -50%; clip-path: inset(-100% -100% -100% var(--cut, 0%)); }
/* elbow: standing to the right of the box, one elbow on its top edge */
.cameo-elbow { top: 0; left: calc(100% - var(--tuck, 1.5rem)); translate: 0 calc(-1 * var(--elbow, 40%)); }
/* push: standing to the left of the box, both hands flat on its left edge */
.cameo-push { top: 50%; right: 100%; translate: 0 calc(-1 * var(--hands, 30%)); }

/* the shape of each character, measured from its animation */
.cameo-mark { --ar: 416 / 340; --grip: 0.091; }
.cameo-abbey { --ar: 356 / 340; --grip: 0.103; }
.cameo-nathan { --ar: 452 / 340; --grip: 0.012; }
.cameo-kim { --ar: 178 / 440; --seat: 55%; }
.cameo-paul { --ar: 174 / 440; --cut: 5%; }
.cameo-alan { --ar: 208 / 480; --elbow: 40%; }
.cameo-chris { --ar: 372 / 440; --hands: 29.5%; }

/* pop up: each type enters its own way, once its box (the first of its kind in the host) has appeared */
.motion .cameo img { transition: translate 0.9s cubic-bezier(0.34, 1.4, 0.64, 1) 0.25s, opacity 0.5s ease 0.25s; }
.motion .cameo-peek img,
.motion .cameo-host:has(> [data-reveal]:not(.cameo):not(.is-in):first-of-type) .cameo-peek img { translate: 0 105%; }
.motion .cameo-sit img,
.motion .cameo-host:has(> [data-reveal]:not(.cameo):not(.is-in):first-of-type) .cameo-sit img { translate: 0 -40%; opacity: 0; }
.motion .cameo-side img { translate: -105% 0; }
.motion .cameo-push img { translate: -40% 0; opacity: 0; }
.motion .cameo-elbow img,
.motion .cameo-host:has(> [data-reveal]:not(.cameo):not(.is-in):first-of-type) .cameo-elbow img { translate: 0 -30%; opacity: 0; }
.motion .cameo.is-in img { translate: 0 0; opacity: 1; }
/* the contact cards rise in after the header, so Mark waits for them */
.motion .cameo-host-facts .cameo img { transition-delay: 1.5s; }

/* ---- where each one appears ---- */
/* contact: Mark over the info cards under the header */
.cameo-host-facts { --ch: clamp(7rem, 10vw, 9.5rem); --cx: 86%; }
/* contact: Paul leans out beside the opening times; the chart gives up a strip on that side */
.cameo-host-hours { --ch: clamp(9.5rem, 17vw, 15rem); padding-right: calc(var(--ch) * 0.3758); }
.cameo-host-hours .cameo-paul { top: clamp(1rem, 4vw, 3rem); left: auto; right: 0; translate: 0 0; }
/* memberships: Kim sits on the starter pack ticket */
.cameo-host-ticket { --ch: clamp(10rem, 17vw, 15rem); --cx: 57%; }
/* bootcamp: Alan leans on the week strip */
.cameo-host-camp { --ch: clamp(10rem, 19vw, 18rem); padding-right: calc(var(--ch) * 0.4333 - 1.25rem); }
.cameo-host-camp .cameo-alan { top: 0; left: auto; right: 0; translate: 0 calc(-1 * var(--elbow)); z-index: 3; }
/* stories: Nathan flexes over the results strip, which sits straight under the hero (on wide screens he stands
   over the middle one of the three). The hero keeps room under its buttons as tall as he is (the hero repeats
   his --ch), so he never covers them, whatever the screen's height */
.cameo-host-honours { --ch: clamp(7rem, 11vw, 10rem); --cx: 50%; }
.hero:has(+ .after-hero > .cameo-host-honours) { --ch: clamp(7rem, 11vw, 10rem); padding-bottom: calc(var(--ch) + 1.25rem); }
/* book: Abbey peeks over the 'Your free visit' card in the right-hand column */
.cameo-host-book { --ch: clamp(6.5rem, 9vw, 8.5rem); }
.cameo-host-book .cameo-abbey { left: auto; right: 6.5rem; translate: 50% 0; }
.book-section:has(.cameo-host-book) { padding-top: calc(clamp(2rem, 5vw, 3.5rem) + 2.5rem); }
/* gym: Chris pushes the gym / supplement bar switch along */
.cameo-host-switch { --ch: clamp(7rem, 11vw, 10.5rem); padding-left: calc(var(--ch) * 0.834); margin-bottom: calc(var(--ch) * 0.45 - 1.5rem); }
.cameo-host-switch .cameo-chris { left: 0; right: auto; }
/* home: Mark over the 'With a personal trainer' card */
.cameo-host-ways { --ch: clamp(7rem, 10vw, 9.5rem); --cx: 82%; }
/* news: Abbey over the list of posts */
.cameo-host-news { --ch: clamp(6.75rem, 8.5vw, 8rem); --cx: 62%; }
/* become a PT: Paul leans out from behind the photo, into the space beside the article */
.cameo-host-lean { --ch: clamp(11rem, 18vw, 16rem); }
/* 404 and message sent: peeking up from the bottom of the page header. The header keeps a strip under its
   buttons as tall as the character, so on any screen he stands below them, never on them */
.cameo-host-head { --ch: clamp(7rem, 11vw, 10rem); --cx: 84%; padding-bottom: calc(var(--ch) + 1.5rem); }
.cameo-host-head .cameo-peek { bottom: calc(-1 * var(--ch) * var(--grip)); clip-path: none; }

/* phones and tablets: the heading above the cards can reach across to Mark, so the cards keep room above them
   as tall as he is (this space and the gap under the heading overlap, so it is never added twice) */
@media (max-width: 70rem) {
  .cameo-host-ways { margin-top: calc(var(--ch) + 0.5rem); }
}
/* the article photo fills the width, so Paul needs a strip beside it */
@media (max-width: 54rem) {
  .cameo-host-lean { --ch: clamp(8.5rem, 24vw, 11rem); padding-right: calc(var(--ch) * 0.3758); }
  .cameo-host-lean .cameo-paul { left: auto; right: 0; translate: 0 -50%; }
}
/* one column on the booking page: the card comes first, so make room above it */
@media (max-width: 60rem) {
  .cameo-host-book .cameo-abbey { right: 3.5rem; }
}
/* phones: smaller cameos, and room above the boxes so a cameo never sits on the text or buttons above it */
@media (max-width: 48rem) {
  /* contact: the cards no longer rise into the hero; the hero's foot keeps room for Mark instead, as tall as he is */
  .cameo-host-facts { --ch: 6.75rem; --cx: 55%; }
  .cameo-host-facts > .facts-row { margin-top: 0; }
  .hero:has(+ .wrap > .cameo-host-facts) { --ch: 6.75rem; padding-bottom: calc(var(--ch) + 1rem); }
  .cameo-host-honours { --ch: 6.75rem; --cx: 72%; }
  .hero:has(+ .after-hero > .cameo-host-honours) { --ch: 6.75rem; }
  .cameo-host-ways { --ch: 6.75rem; --cx: 76%; }
  .cameo-host-news { --ch: 6.75rem; --cx: 76%; }
  /* phones 30rem and narrower move Kim to --cx 91% in pages.css, next to the starter pack's one-line name,
     and the memberships page sets the room above her there too */
  .cameo-host-ticket { --ch: 9.5rem; --cx: 90%; margin-top: calc(var(--ch) * 0.55 + 0.5rem); }
  .cameo-host-head { --ch: 6.75rem; --cx: 76%; }
  /* opening times: Paul keeps a slim strip beside the one-line days */
  .cameo-host-hours { --ch: 8.5rem; }
}
/* small phones: a narrower strip for Alan, and the bootcamp labels fitted to the narrower days */
@media (max-width: 31.25rem) {
  .cameo-host-camp { --ch: 8rem; }
  .cameo-host-camp .camp-days li.on span { font-size: clamp(0.7rem, 3.3vw, 0.95rem); font-stretch: 100%; letter-spacing: 0; }
  .cameo-host-camp .camp-days b { font-stretch: 100%; letter-spacing: 0.02em; }
  .cameo-host-switch { --ch: 5rem; }
  .cameo-host-switch .gx-switch .tab { padding: 0 0.2rem; font-size: 0.7rem; letter-spacing: 0.01em; }
}
/* the narrowest phones: the switch labels may take two lines beside Chris, and a smaller Paul leaves the opening times more room */
@media (max-width: 24rem) {
  .cameo-host-switch .gx-switch .tab { white-space: normal; line-height: 1.1; }
  .cameo-host-hours { --ch: 7.5rem; }
}
/* 320px screens have no room beside the switch, so Chris sits this one out */
@media (max-width: 21rem) {
  .cameo-host-switch { padding-left: 0; margin-bottom: 0; }
  .cameo-host-switch .cameo-chris { display: none; }
}
@media print {
  .cameo { display: none !important; }
  .cameo-host { padding: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; }
  .hero:has(+ .after-hero > .cameo-host-honours), .hero:has(+ .wrap > .cameo-host-facts) { padding-bottom: 1rem !important; }
}

/* =====================================================================
   Smooth scrolling
   ===================================================================== */
/* Slow background animations hold still while their part of the page is off screen (site.js adds .anim-off). They
   carry on from where they stopped, so nothing visible changes; the phone just stops redrawing what nobody can see. */
.anim-off, .anim-off::before, .anim-off::after, .anim-off *, .anim-off *::before, .anim-off *::after { animation-play-state: paused !important; }
/* ...except the movements tied to the scroll position (photo drift, cog turns), which must keep up with the page */
.anim-off .hero-media[data-sy] img, .anim-off [data-sy] { animation-play-state: running !important; }
/* Phones and tablets: frosted-glass blur makes the phone redraw everything behind the header, the £99 bar and the
   glass boxes on every frame of a scroll. On touch screens those boxes are a little more solid instead. */
@media (hover: none) and (pointer: coarse), (max-width: 48rem) {
  *, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .site-header::before { background: rgba(5, 5, 6, 0.99); }
  .hero-status { background: rgba(8, 8, 10, 0.86); }
  .tp-play-label { background: rgba(4, 16, 8, 0.92); }
  .fact { background-color: rgba(14, 14, 16, 0.94); }
}
/* the phone offer bar (on wider touch screens the offer is a rounded card with no bar behind it) */
@media (max-width: 48rem) { nav.dock:has(.dock-offer) { background: rgba(8, 8, 10, 0.99); } }

/* ---------- Scroll-driven effects on the compositor (browsers with CSS scroll-driven animations) ----------
   Same movements as the --sy / --p / --page custom properties site.js used to write every frame, as exact
   linear functions of the scroll position, so nothing looks different; they just move in step with the finger.
   site.js stops writing those properties where this is supported (CSS.supports('animation-timeline: scroll()')). */
@supports (animation-timeline: scroll()) {
  /* the red progress line: 0 at the top of the page, full width at the bottom */
  .progress { transform: scaleX(0); animation: sd-progress linear both; animation-timeline: scroll(root block); }
  @keyframes sd-progress { to { transform: scaleX(1); } }

  /* parallax and cog turns: linear in the scroll position over the first 2000px (the heroes are gone by then).
     The image's movement sits in `translate`, which is not multiplied by its scale: 0.14px x scale 1.08 = 0.1512px per px */
  .motion .hero-media[data-sy] img { animation: sd-hero-img linear both; animation-timeline: scroll(root block); animation-range: 0px 2000px; }
  @keyframes sd-hero-img { from { translate: 0 0; } to { translate: 0 302.4px; } }
  .motion .hero-cog[data-sy] { animation: sd-turn-005 linear both; animation-timeline: scroll(root block); animation-range: 0px 2000px; }
  @keyframes sd-turn-005 { from { rotate: 0deg; } to { rotate: 100deg; } }          /* 0.05deg per px */
  .motion .page-head .cog[data-sy] { animation: sd-turn-006 linear both; animation-timeline: scroll(root block); animation-range: 0px 2000px; }
  @keyframes sd-turn-006 { from { rotate: 0deg; } to { rotate: 120deg; } }          /* 0.06deg per px */
  /* the cog in the closing red box sits near the foot of the page, so its range runs to 20000px */
  .motion .band .cog[data-sy] { animation: sd-turn-008 linear both; animation-timeline: scroll(root block); animation-range: 0px 20000px; }
  @keyframes sd-turn-008 { from { rotate: 0deg; } to { rotate: 1600deg; } }         /* 0.08deg per px */

  /* the --p elements: a view timeline over the whole viewport (inset 0: the default would take off the page's scroll-padding-top) */
  /* home: each question lights up as it passes the middle of the screen (was opacity: clamp(.22, (p - at) * 9, 1)) */
  .motion .asks[data-scroll] { view-timeline: --asks block; view-timeline-inset: 0; }
  .motion .asks[data-scroll] li { animation: sd-ask linear both; animation-timeline: --asks;
    animation-range: cover calc(var(--at) * 100% + 2.4444%) cover calc(var(--at) * 100% + 11.1111%); }
  @keyframes sd-ask { from { opacity: 0.22; } to { opacity: 1; } }

  /* stories: the big ghost names drift across (odd chapters right to left, even ones left to right),
     and the front photo of each pair rises past the back one */
  .motion .chapter[data-scroll] { view-timeline: --chapter block; view-timeline-inset: 0; }
  .motion .chapter[data-scroll] .chapter-ghost { animation: sd-ghost-odd linear both; animation-timeline: --chapter; animation-range: cover 0% cover 100%; }
  .motion .chapter[data-scroll]:nth-child(even) .chapter-ghost { animation-name: sd-ghost-even; }
  @keyframes sd-ghost-odd { from { transform: translate3d(3rem, 0, 0); } to { transform: translate3d(-3rem, 0, 0); } }
  @keyframes sd-ghost-even { from { transform: translate3d(-3rem, 0, 0); } to { transform: translate3d(3rem, 0, 0); } }
  .motion .chapter[data-scroll] .layered .photo:last-child { animation: sd-layer linear both; animation-timeline: --chapter; animation-range: cover 0% cover 100%; }
  @keyframes sd-layer { from { translate: 0 1.5rem; } to { translate: 0 -1.5rem; } }
}

/* Touch: no grey-blue box flashes over a tapped link (Android); menu, nav and footer links answer a touch in the site's red,
   and buttons already press in. Keyboard focus styles are unchanged. */
html { -webkit-tap-highlight-color: transparent; }
.mobile-menu li a:active, .main-nav a:active, .site-footer a:active { color: var(--red-bright); }

/* Moving between pages of the site (html.nav-in, set by each page's head script): the same entrance, about half as long,
   so the next page is readable sooner. Visitors arriving from Google, a typed address or a reload get the full one. */
.motion.nav-in .hero-title .line > span { transition-duration: 0.6s, 0.7s, 0.7s; transition-delay: calc(var(--n, 0) * 70ms), calc(0.12s + var(--n, 0) * 70ms), calc(0.12s + var(--n, 0) * 70ms); }
.motion.nav-in .hero [data-enter] { transition-duration: 0.5s; transition-delay: calc(0.1s + var(--n, 0) * 50ms); }
.motion.nav-in .hero-media img { transition-duration: 0.8s, 1.4s; transition-delay: 0s, 0s; }
.motion.nav-in .hero-cog { transition-duration: 0.8s; transition-delay: 0.1s; }
.motion.nav-in .hero-cog path { transition-duration: 0.9s; transition-delay: 0.1s; }
