/* The Combat Coach — stone and lightning
   Fonts are self-hosted. No inline styles or scripts anywhere (strict CSP). */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/poppins-800.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/oswald-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }

:root {
  /* stone */
  --stone: #17191c;
  --stone-2: #202327;
  --stone-3: #2a2e33;
  --groove-dark: rgba(0, 0, 0, .6);
  --groove-light: rgba(255, 255, 255, .055);
  /* chalk */
  --chalk: #edebe6;
  --text: #d4d2cd;
  --muted: #a3a8ac;
  /* lightning */
  --blue: #33b6f2;
  --blue-rgb: 51, 182, 242;
  --blue-hot: #8fd8fa;
  --blue-ink: #03121b;
  /* rings */
  --mind: #9d7bff;      --mind-rgb: 157, 123, 255;
  --strength: #ff5a3c;  --strength-rgb: 255, 90, 60;
  --defence: #33b6f2;   --defence-rgb: 51, 182, 242;
  --mobility: #2ee59d;  --mobility-rgb: 46, 229, 157;
  --nutrition: #ffb21f; --nutrition-rgb: 255, 178, 31;

  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-display: "Oswald", "Poppins", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4.5vw, 40px);
  --radius: 3px;
  --header-h: 68px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  color-scheme: dark;
  background-color: var(--stone);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--font-body);
  color: var(--text);
  background-color: var(--stone);
  background-image: linear-gradient(rgba(12, 14, 16, .52), rgba(12, 14, 16, .52)), url("../img/stone.webp");
  background-size: auto, 1024px 1024px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
p { margin: 0 0 1em; max-width: 64ch; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-hot); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
strong { color: var(--chalk); font-weight: 600; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--chalk);
  margin: 0 0 .5em;
  line-height: 1.1;
  letter-spacing: -.015em;
  text-wrap: balance;
}
/* headings: Oswald, upper case, for a bit more punch */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .005em; }
h2 { font-size: clamp(2rem, 1.35rem + 2.7vw, 3.25rem); line-height: 1.02; }
h3 { font-size: clamp(1.3rem, 1.12rem + .7vw, 1.6rem); letter-spacing: .03em; }
h4 { font-size: 1.2rem; font-weight: 600; }

/* letters cut into the stone */
.carved {
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .07), 0 8px 28px rgba(0, 0, 0, .55);
}

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--blue); color: var(--blue-ink); padding: 10px 16px; border-radius: var(--radius);
  font: 600 1rem var(--font-head); text-decoration: none;
}
.skip:focus { top: 12px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.small { font-size: .9375rem; color: var(--muted); }
.small a { color: var(--chalk); }
.small a:hover { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: .7em 1.25em;
  border-radius: var(--radius); border: 0;
  font: 600 1rem/1.2 var(--font-head); letter-spacing: .005em;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, box-shadow .2s ease, color .15s ease;
}
.btn--lg { min-height: 54px; padding: .8em 1.45em; font-size: 1.0625rem; }
.btn--solid {
  background: var(--blue); color: var(--blue-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .18), 0 10px 28px -8px rgba(var(--blue-rgb), .55);
}
.btn--solid:hover { background: #58c6f7; color: var(--blue-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -2px 0 rgba(0, 0, 0, .18), 0 0 34px rgba(var(--blue-rgb), .5); }
.btn--ghost {
  background: rgba(255, 255, 255, .035); color: var(--chalk);
  box-shadow: inset 0 0 0 1.5px rgba(237, 235, 230, .32);
}
.btn--ghost:hover { color: #fff; box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 22px -6px rgba(var(--blue-rgb), .6); }
.btn--amber {
  background: var(--nutrition); color: #1d1300;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .18), 0 10px 28px -8px rgba(var(--nutrition-rgb), .5);
}
.btn--amber:hover { background: #ffc24d; color: #1d1300; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- stone slab (raised) ---------- */
.slab {
  background-color: var(--stone-2);
  background-image:
    linear-gradient(155deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, .22)),
    linear-gradient(rgba(40, 44, 49, .8), rgba(40, 44, 49, .8)),
    url("../img/stone.webp");
  background-size: auto, auto, 1024px 1024px;
  background-position: 0 0, 0 0, 41% 63%;
  border-radius: var(--radius);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, .09),
    inset -1px -1px 0 rgba(0, 0, 0, .65),
    0 22px 44px -22px rgba(0, 0, 0, .9);
}

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(17, 19, 22, .88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .65), 0 2px 0 rgba(255, 255, 255, .035);
}
.top__in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand {
  display: grid; grid-template-columns: 40px auto; column-gap: 11px; align-items: center;
  color: var(--chalk); text-decoration: none; padding-block: 8px;
}
.brand img { grid-row: 1 / span 2; width: 40px; height: 40px; }
.brand__name { font: 700 1.0625rem/1.1 var(--font-head); letter-spacing: -.01em; }
.brand__by { font: 500 .8125rem/1.25 var(--font-body); color: var(--muted); }
.brand:hover { color: #fff; }

.menu-btn {
  display: none;
  min-height: 44px; padding: .5em 1em;
  background: rgba(255, 255, 255, .04); color: var(--chalk);
  border: 0; border-radius: var(--radius); box-shadow: inset 0 0 0 1.5px rgba(237, 235, 230, .3);
  font: 600 1rem var(--font-head); cursor: pointer;
}
.nav ul { list-style: none; display: flex; gap: 2px; }
.nav ul a {
  display: block; color: var(--text); text-decoration: none;
  font: 500 .9375rem/1.2 var(--font-head); padding: .6em .75em; border-radius: var(--radius);
}
.nav ul a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.nav__actions { display: flex; gap: 10px; }
.nav__actions .btn { min-height: 44px; padding: .55em 1.05em; font-size: .9375rem; }

@media (min-width: 960px) {
  .nav { display: flex; align-items: center; gap: 18px; }
}
@media (max-width: 959px) {
  .nav { padding-bottom: 16px; }
  .nav ul { flex-direction: column; }
  .nav ul a { padding: .85em .25em; font-size: 1.0625rem; border-bottom: 1px solid rgba(255, 255, 255, .06); border-radius: 0; }
  .nav__actions { margin-top: 16px; }
  .nav__actions .btn { flex: 1; min-height: 50px; font-size: 1rem; }
  .top__in { flex-wrap: wrap; }
  .js .menu-btn { display: inline-flex; align-items: center; }
  .js .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 6px var(--gutter) 22px;
    background: rgba(17, 19, 22, .98);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .05), 0 30px 40px -20px rgba(0, 0, 0, .9);
  }
  .js.nav-open .nav { display: block; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(32px, 6vw, 88px) clamp(56px, 7vw, 96px);
  background:
    radial-gradient(48% 58% at 74% 46%, rgba(var(--blue-rgb), .14), rgba(var(--blue-rgb), 0) 72%),
    radial-gradient(120% 80% at 40% -10%, rgba(255, 255, 255, .045), rgba(255, 255, 255, 0) 60%);
}
.hero__in { display: grid; gap: clamp(20px, 4vw, 40px); align-items: center; }
@media (min-width: 900px) {
  .hero__in { grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr); }
  .hero__mark { order: 2; }
}
.hero h1 {
  font-size: clamp(2.5rem, 1.2rem + 4.6vw, 4.25rem);
  font-weight: 700; line-height: .98; letter-spacing: .005em;
  margin-bottom: .42em;
  color: var(--chalk);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 {
    background-image: linear-gradient(180deg, #f7f5f0 0%, #e2e2e0 48%, #a9afb4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 -1px 0 rgba(0, 0, 0, .7)) drop-shadow(0 10px 26px rgba(0, 0, 0, .6));
  }
}
.hero h1 span { display: block; }
.lede { font-size: clamp(1.125rem, 1.02rem + .38vw, 1.3rem); line-height: 1.6; color: var(--text); max-width: 34em; }
.hero__note { margin: 22px 0 0; color: var(--muted); font-size: 1rem; }
.hero__note a { color: var(--chalk); }
.hero__note a:hover { color: #fff; }

/* the mark: fist first, then the enso brushes round it, then the lightning */
.hero__mark { position: relative; }
.mark { position: relative; width: min(440px, 74vw); aspect-ratio: 1 / 1; margin-inline: auto; }
@media (max-width: 899px) { .mark { width: min(300px, 64vw); } }
.mark__enso, .mark__fist { position: absolute; inset: 13%; width: 74%; height: 74%; }
.mark__bolt { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--blue); opacity: .78; overflow: visible; }

@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 360deg; }
.mark__enso {
  -webkit-mask-image: conic-gradient(from 52deg, #000 var(--sweep), transparent 0);
  mask-image: conic-gradient(from 52deg, #000 var(--sweep), transparent 0);
}
@media (prefers-reduced-motion: no-preference) {
  .mark__fist { animation: fist-in .75s cubic-bezier(.2, .8, .2, 1) .15s both; }
  .mark__enso { animation: enso-draw 1.5s cubic-bezier(.62, .04, .3, 1) .75s both; }
  .mark__bolt { animation: bolt-flash 1.2s linear 2.15s both; }
}
@keyframes fist-in { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }
@keyframes enso-draw { from { --sweep: 0deg; } to { --sweep: 360deg; } }
@keyframes bolt-flash {
  0% { opacity: 0; } 7% { opacity: 1; } 13% { opacity: .1; } 21% { opacity: .95; }
  28% { opacity: .25; } 42% { opacity: 1; } 100% { opacity: .78; }
}

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(64px, 8.5vw, 116px); }
.section::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  width: min(100% - 2 * var(--gutter), var(--wrap) - 2 * var(--gutter));
  margin-inline: auto; height: 2px;
  background:
    linear-gradient(var(--groove-dark), var(--groove-dark)) top / 100% 1px no-repeat,
    linear-gradient(var(--groove-light), var(--groove-light)) bottom / 100% 1px no-repeat;
}
.section__head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head p:last-child { margin-bottom: 0; }

/* ---------- rings ---------- */
.tablet--mind, .panel--mind { --c: var(--mind); --c-rgb: var(--mind-rgb); }
.tablet--strength, .panel--strength { --c: var(--strength); --c-rgb: var(--strength-rgb); }
.tablet--defence, .panel--defence { --c: var(--defence); --c-rgb: var(--defence-rgb); }
.tablet--mobility, .panel--mobility { --c: var(--mobility); --c-rgb: var(--mobility-rgb); }
.tablet--nutrition, .panel--nutrition { --c: var(--nutrition); --c-rgb: var(--nutrition-rgb); }

.ringset__pick {
  border: 0; margin: 0 0 clamp(14px, 2vw, 20px); padding: 0; min-width: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(6px, 1.4vw, 16px);
}
.ringset__pick legend {
  grid-column: 1 / -1; padding: 0; margin-bottom: 14px;
  font: 500 1rem var(--font-body); color: var(--muted);
}
.ring-input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.tablet {
  position: relative; aspect-ratio: 1 / 1;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(6px, 1.6vw, 20px);
  cursor: pointer; user-select: none;
  color: var(--text);
  transition: box-shadow .25s ease, transform .2s ease;
}
.tablet:hover { transform: translateY(-2px); }
.tablet__icon { position: relative; width: clamp(28px, 6vw, 64px); aspect-ratio: 1 / 1; display: grid; place-items: center; }
.tablet__icon .icon {
  width: 100%; height: 100%;
  color: rgba(var(--c-rgb), .72);
  transition: color .25s ease;
}
.tablet__bolt {
  position: absolute; inset: -36%; width: 172%; height: 172%; max-width: none;
  color: var(--c); opacity: 0; transition: opacity .3s ease; overflow: visible;
}
.tablet__name { font: 600 clamp(.72rem, .5rem + 1vw, 1.3rem)/1.15 var(--font-head); color: var(--chalk); letter-spacing: -.01em; }
.tablet__name .long { display: none; }
@media (min-width: 760px) {
  .tablet__name .short { display: none; }
  .tablet__name .long { display: inline; }
}
@media (max-width: 759px) {
  .tablet { align-items: center; text-align: center; justify-content: center; gap: 6px; }
}
.ring-input:checked + .tablet {
  box-shadow:
    inset 0 0 0 1.5px rgba(var(--c-rgb), .75),
    inset 0 0 26px rgba(var(--c-rgb), .14),
    0 0 34px -6px rgba(var(--c-rgb), .55),
    0 22px 44px -22px rgba(0, 0, 0, .9);
}
.ring-input:checked + .tablet .tablet__bolt { opacity: 1; }
.ring-input:checked + .tablet .icon { color: var(--c); }
.ring-input:focus-visible + .tablet { outline: 3px solid var(--c); outline-offset: 4px; }

.panel { --pad: clamp(22px, 4vw, 48px); position: relative; overflow: hidden; padding: var(--pad); margin-bottom: 16px; }
.panel {
  box-shadow:
    inset 0 0 0 1px rgba(var(--c-rgb), .38),
    inset 1px 1px 0 rgba(255, 255, 255, .08),
    0 0 70px -30px rgba(var(--c-rgb), .55),
    0 22px 44px -22px rgba(0, 0, 0, .9);
}
.panel__grid { display: grid; gap: clamp(20px, 4vw, 48px); }
@media (min-width: 860px) { .panel__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.panel__title { color: var(--c); margin-bottom: .6em; }
.panel__teaching {
  font: 600 clamp(1.45rem, 1.15rem + 1.2vw, 2.1rem)/1.18 var(--font-head);
  color: var(--chalk); letter-spacing: -.02em; margin-bottom: .7em;
}
.panel__source { color: var(--muted); font-size: 1rem; margin: 0; }
.panel__list { list-style: none; display: grid; gap: 14px; }
.panel__list li {
  position: relative; padding-left: 26px;
}
.panel__list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 10px; height: 10px; transform: rotate(45deg);
  background: var(--c); box-shadow: 0 0 12px rgba(var(--c-rgb), .8);
}
/* each fundamental's illustration: one half of the panel, blended into the stone */
.panel__art { display: none; }
.panel.has-art .panel__art { display: block; position: relative; pointer-events: none; }
.panel__art img { width: 100%; height: 100%; object-fit: cover; object-position: var(--art-x, 40%) var(--art-y, 50%); filter: saturate(.92) contrast(1.04) brightness(.92); }
.panel__art::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 80% at 30% 50%, rgba(0, 0, 0, 0) 55%, rgba(18, 20, 23, .55)),
    linear-gradient(0deg, rgba(var(--c-rgb), .10), rgba(var(--c-rgb), 0) 40%);
}
.panel.has-art .panel__body { position: relative; }
@media (max-width: 859px) {
  .panel.has-art .panel__art {
    margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) 0;
    aspect-ratio: 4 / 3;
    -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 58%, transparent 100%);
  }
  .panel.has-art .panel__body { margin-top: -64px; }
}
@media (min-width: 860px) {
  .panel.has-art { min-height: 540px; }
  .panel.has-art .panel__art {
    position: absolute; top: 0; bottom: 0; left: 0; width: 52%;
    -webkit-mask-image: linear-gradient(90deg, #000 50%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 50%, transparent 100%);
  }
  .panel.has-art .panel__body { margin-left: 46%; }
  .panel.has-art .panel__grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}
@supports selector(:has(*)) {
  .ringset .panel { display: none; }
  .ringset:has(#r-mind:checked) .panel--mind,
  .ringset:has(#r-strength:checked) .panel--strength,
  .ringset:has(#r-defence:checked) .panel--defence,
  .ringset:has(#r-mobility:checked) .panel--mobility,
  .ringset:has(#r-nutrition:checked) .panel--nutrition { display: block; }
}
@supports not selector(:has(*)) {
  .ringset__pick { display: none; }
}

/* ---------- ranks ---------- */
.ranks__in { display: grid; gap: clamp(28px, 5vw, 56px); }
@media (min-width: 960px) { .ranks__in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; } }
.ranks .section__head { margin-bottom: 0; }
.ladder { margin: 0; }
.ladder__steps {
  list-style: none; display: grid; grid-template-columns: repeat(13, minmax(0, 1fr));
  align-items: end; gap: clamp(3px, .7vw, 7px); height: clamp(190px, 26vw, 280px);
  padding-top: 30px;
}
.step {
  position: relative; height: var(--h, 20%);
  border-radius: 2px 2px 0 0;
  background-color: var(--stone-3);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0) 30%, rgba(0, 0, 0, .3)), linear-gradient(rgba(44, 48, 53, .75), rgba(44, 48, 53, .75)), url("../img/stone.webp");
  background-size: auto, auto, 1024px 1024px;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .1), inset -1px 0 0 rgba(0, 0, 0, .6);
}
.s1 { --h: 14%; } .s2 { --h: 20.7%; } .s3 { --h: 24.9%; } .s4 { --h: 29.4%; } .s5 { --h: 34.4%; }
.s6 { --h: 39.5%; } .s7 { --h: 45.2%; } .s8 { --h: 51.7%; } .s9 { --h: 58.9%; } .s10 { --h: 67%; }
.s11 { --h: 76%; } .s12 { --h: 87%; } .s13 { --h: 100%; }
.s1 { background-position: 0 0, 0 0, 10% 20%; } .s4 { background-position: 0 0, 0 0, 30% 70%; } .s8 { background-position: 0 0, 0 0, 60% 30%; } .s11 { background-position: 0 0, 0 0, 80% 50%; }
.step__pts {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  font: 600 .75rem/1 var(--font-head); color: var(--muted); white-space: nowrap;
}
.step--top {
  box-shadow: inset 0 0 0 1.5px rgba(var(--blue-rgb), .8), 0 0 30px -4px rgba(var(--blue-rgb), .6);
}
.step--top .step__pts { color: var(--blue); left: auto; right: 0; transform: none; }
.s1 .step__pts { left: 0; transform: none; }
@media (max-width: 1100px) { .step:not(.s1):not(.s7):not(.s13) .step__pts { display: none; } }
@media (max-width: 520px) { .s7 .step__pts { display: none; } }
.ladder figcaption { margin-top: 14px; color: var(--muted); font-size: .9375rem; }
.ladder figcaption strong { color: var(--blue); }
.ranks__boards { margin: 18px 0 0; color: var(--text); }

/* ---------- join ---------- */
.slab--join {
  padding: clamp(24px, 5vw, 64px);
  display: grid; gap: clamp(28px, 5vw, 64px);
  box-shadow:
    inset 0 0 0 1px rgba(var(--blue-rgb), .35),
    inset 1px 1px 0 rgba(255, 255, 255, .09),
    0 0 90px -40px rgba(var(--blue-rgb), .6),
    0 24px 50px -24px rgba(0, 0, 0, .9);
}
@media (min-width: 900px) { .slab--join { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.price { display: flex; align-items: baseline; gap: 12px; margin: 0 0 24px; color: var(--muted); font: 500 1.125rem var(--font-body); }
.price__num { font: 700 clamp(3.4rem, 2.4rem + 4vw, 5rem)/1 var(--font-display); color: var(--chalk); letter-spacing: 0; text-transform: uppercase; }
.ticks { list-style: none; display: grid; gap: 10px; margin-bottom: 24px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .42em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue);
  transform: rotate(-45deg);
}
.join__side h3 { margin-bottom: .8em; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; min-height: 38px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px; width: 36px; height: 36px; display: grid; place-items: center;
  font: 700 1rem var(--font-head); color: var(--blue);
  border-radius: 2px; box-shadow: inset 0 0 0 1.5px rgba(var(--blue-rgb), .6);
  background: rgba(var(--blue-rgb), .06);
}
.join__side .small { margin-top: 22px; }

/* ---------- photos ---------- */
.photo {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--stone-3);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 0 0 5px rgba(36, 40, 45, .9), 0 0 0 6px rgba(255, 255, 255, .05), 0 30px 60px -30px rgba(0, 0, 0, .95);
}
.photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.05) brightness(.9); }
.photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 12, 14, 0) 50%, rgba(10, 12, 14, .5)), radial-gradient(120% 100% at 50% 40%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .35));
}
.photo--wide { aspect-ratio: 16 / 10; }
.photo--tall { aspect-ratio: 4 / 5; }
.photo--story { aspect-ratio: 3 / 2; }

/* ---------- classes ---------- */
.classes__grid { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (min-width: 900px) { .classes__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); } }
.classes__grid .photo { box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 0 0 5px rgba(36, 40, 45, .9), 0 0 0 6px rgba(var(--blue-rgb), .25), 0 0 60px -20px rgba(var(--blue-rgb), .45), 0 30px 60px -30px rgba(0, 0, 0, .95); }
.times { list-style: none; display: grid; gap: 10px; margin: 0 0 20px; }
.times li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 18px;
}
.times .day { font: 600 1.125rem var(--font-head); color: var(--chalk); }
.times .time { font: 700 1.375rem var(--font-display); color: var(--blue); letter-spacing: .005em; text-transform: uppercase; }
.classes__info .small { margin-top: 18px; }
.gym { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 2vw, 18px); margin-top: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .gym { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gym figure { margin: 0; }
.gym .photo { aspect-ratio: 1 / 1; }
.gym figcaption { margin-top: 12px; font: 500 .9375rem var(--font-body); color: var(--muted); }
.gym__kit { margin-top: 22px; }

/* ---------- coaching ---------- */
.coaching__grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .coaching__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.coaching__grid .photo { max-width: 460px; justify-self: center; width: 100%; }
.boxing { margin-top: clamp(64px, 9vw, 112px); }
.boxing > p { margin-bottom: 28px; }
.plaques { list-style: none; display: grid; gap: clamp(14px, 2vw, 22px); margin-bottom: 28px; }
@media (min-width: 820px) { .plaques { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plaque { padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; }
.plaque h4 { margin-bottom: .2em; }
.plaque__price { font: 700 2.4rem/1.05 var(--font-display); color: var(--chalk); letter-spacing: .005em; margin: 0 0 6px; }
.plaque__meta { color: var(--blue); font: 600 .9375rem var(--font-head); margin-bottom: 14px; }
.plaque p:last-child { margin-bottom: 0; font-size: 1rem; }

/* ---------- forty grams ---------- */
.forty {
  background: radial-gradient(40% 60% at 22% 45%, rgba(var(--nutrition-rgb), .09), rgba(var(--nutrition-rgb), 0) 70%);
}
.forty__grid { display: grid; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .forty__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.forty__mark { position: relative; width: min(340px, 68vw); aspect-ratio: 1 / 1; margin-inline: auto; color: var(--nutrition); }
.forty__mark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.forty__mark span {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 700 clamp(5rem, 3.2rem + 6vw, 8rem)/1 var(--font-display); letter-spacing: .005em;
  color: var(--nutrition); text-shadow: 0 0 34px rgba(var(--nutrition-rgb), .35), 0 2px 0 rgba(0, 0, 0, .5);
  padding-right: .06em;
}
.forty h2 { color: var(--chalk); }
.bowls { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.bowls li {
  padding: 10px 16px; font: 600 1rem var(--font-head); color: var(--chalk);
  box-shadow: inset 0 0 0 1px rgba(var(--nutrition-rgb), .45), inset 1px 1px 0 rgba(255, 255, 255, .08);
}
.packs { border-collapse: collapse; width: 100%; max-width: 30rem; margin-bottom: 4px; }
.packs caption { text-align: left; font: 600 1.125rem var(--font-head); color: var(--chalk); margin-bottom: 8px; }
.packs th, .packs td { text-align: left; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-weight: 400; }
.packs th { color: var(--text); }
.packs td { text-align: right; color: var(--chalk); font: 600 1.0625rem var(--font-head); }
.packs td span { display: block; font: 400 .875rem var(--font-body); color: var(--muted); }
.forty .small { margin-top: 20px; }

/* ---------- story ---------- */
.story__grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .story__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.quote { margin: 30px 0 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--blue); }
.quote p { font: 600 clamp(1.2rem, 1.05rem + .6vw, 1.45rem)/1.4 var(--font-head); color: var(--chalk); margin-bottom: 10px; letter-spacing: -.01em; }
.quote footer { color: var(--muted); font-size: .9375rem; }

/* ---------- first session ---------- */
.first__grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .first__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.first__grid .photo { max-width: 420px; width: 100%; justify-self: center; }
.contact { margin: 36px 0 0; display: grid; gap: 14px; }
.contact div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; color: var(--chalk); }
.contact a { color: var(--chalk); }
.contact a:hover { color: #fff; }

/* ---------- footer ---------- */
.foot { position: relative; padding-block: 56px 40px; background: rgba(10, 11, 13, .55); box-shadow: 0 -1px 0 rgba(0, 0, 0, .6), 0 -2px 0 rgba(255, 255, 255, .035); }
.foot__in { display: grid; gap: 28px; }
@media (min-width: 860px) { .foot__in { grid-template-columns: 1fr auto; align-items: start; } }
.foot__brand { display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; align-items: center; }
.foot__brand img { width: 56px; height: 56px; }
.foot__brand p { margin: 0; color: var(--muted); }
.foot__brand p strong { font-family: var(--font-head); font-size: 1.0625rem; }
.foot__tag { grid-column: 1 / -1; margin-top: 18px !important; color: var(--text) !important; font: 600 1rem var(--font-head); }
.foot__links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot__links a { color: var(--text); text-decoration: none; font: 500 1rem var(--font-head); padding: 6px 0; display: inline-block; }
.foot__links a:hover { color: #fff; text-decoration: underline; }
.foot__legal { grid-column: 1 / -1; margin: 8px 0 0; font-size: .875rem; color: var(--muted); }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .mark__enso { -webkit-mask-image: none; mask-image: none; }
}

/* Windows high contrast: drop the stone-filled headline */
@media (forced-colors: active) {
  .hero h1 { background: none; color: CanvasText; filter: none; }
  .tablet, .panel, .slab { forced-color-adjust: auto; }
}


/* ---------- the rank names under the ladder (v29) ---------- */
.ladder__names { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 214px), 1fr)); gap: 6px 22px; counter-reset: rk; }
.ladder__names li { counter-increment: rk; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); }
.ladder__names .rn { font-family: var(--font-display, var(--font-head)); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: .9rem; color: var(--text); }
.ladder__names .rn::before { content: counter(rk, decimal-leading-zero); margin-right: 10px; color: var(--muted); font-size: .75rem; letter-spacing: .08em; }
.ladder__names .rp { color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ladder__names li:last-child .rn, .ladder__names li:last-child .rp { color: var(--blue); }

/* the Forty Grams logo inside the lightning ring (website v30) */
.forty__mark img {
  position: absolute; left: 50%; top: 50%; width: 60%; height: auto; transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 26px rgba(var(--nutrition-rgb), .28)) drop-shadow(0 2px 0 rgba(0, 0, 0, .45));
}
.fortybadge { display: inline-block; margin-top: 18px; padding: 10px 14px; border-radius: 12px; background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px rgba(var(--nutrition-rgb), .35); }
.fortybadge img { display: block; width: 104px; height: auto; }
.fortybadge:hover, .fortybadge:focus-visible { box-shadow: inset 0 0 0 1px rgba(var(--nutrition-rgb), .7), 0 0 22px -6px rgba(var(--nutrition-rgb), .5); }

/* ---------- Forty Grams, my other business, in its own colours (website v31) ---------- */
.forty { background: none; }
.fg {
  --fg-maroon: #5A1A20; --fg-deep: #24090c; --fg-terra: #C2735A; --fg-cream: #F1E5DF;
  position: relative; overflow: hidden; border-radius: 26px; padding: clamp(24px, 4.4vw, 56px); color: var(--fg-cream);
  background: radial-gradient(110% 80% at 12% 0%, #7a2a31 0%, var(--fg-maroon) 38%, var(--fg-deep) 100%);
  box-shadow: inset 0 0 0 1px rgba(194, 115, 90, .35), 0 40px 80px -40px rgba(0, 0, 0, .85);
}
.fg__top { display: grid; gap: 22px; align-items: center; }
@media (min-width: 860px) { .fg__top { grid-template-columns: minmax(220px, 300px) 1fr; gap: 52px; } }
.fg__logo { display: block; width: min(300px, 72%); height: auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35)); }
.fg__eyebrow { font: 600 .8125rem/1.2 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-terra); margin: 0 0 10px; }
.fg .fg__title { font: 700 clamp(1.9rem, 1.3rem + 2.4vw, 3rem)/1.08 var(--font-head); text-transform: none; letter-spacing: -.02em; color: var(--fg-cream); margin: 0 0 14px; }
.fg__lede { color: rgba(241, 229, 223, .86); font-size: 1.0625rem; line-height: 1.6; max-width: 40rem; margin: 0; }
.fg__bowls { list-style: none; display: grid; gap: 18px; margin: clamp(28px, 4vw, 44px) 0; padding: 0; }
@media (min-width: 760px) { .fg__bowls { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fg__bowl { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: rgba(241, 229, 223, .06); box-shadow: inset 0 0 0 1px rgba(241, 229, 223, .12); }
.fg__bowl img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.fg__info { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 18px; }
.fg .fg__info h3 { font: 700 1.1875rem/1.2 var(--font-head); text-transform: none; letter-spacing: -.01em; color: var(--fg-cream); margin: 0; }
.fg__info p { margin: 0; color: rgba(241, 229, 223, .78); font-size: .9375rem; line-height: 1.55; }
.fg__info .fg__macros { margin-top: auto; padding-top: 6px; color: var(--fg-cream); font: 600 .9375rem var(--font-head); }
.fg__macros b { color: var(--fg-terra); font-size: 1.25rem; }
.fg__macros span { color: rgba(241, 229, 223, .45); margin: 0 4px; }
.fg__order { display: grid; gap: 28px; align-items: start; }
@media (min-width: 860px) { .fg__order { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 52px; } }
.fg .packs { max-width: none; }
.fg .packs caption, .fg .packs td { color: var(--fg-cream); }
.fg .packs th { color: rgba(241, 229, 223, .82); }
.fg .packs th, .fg .packs td { border-bottom-color: rgba(241, 229, 223, .14); }
.fg .packs td span { color: rgba(241, 229, 223, .6); }
.fg__cta p { margin: 16px 0 0; color: rgba(241, 229, 223, .8); font-size: .9375rem; line-height: 1.6; }
.fg__cta .fg__why { color: rgba(241, 229, 223, .62); font-size: .875rem; }
.btn--forty { background: var(--fg-cream); color: var(--fg-maroon); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12), 0 12px 28px -12px rgba(0, 0, 0, .6); }
.btn--forty:hover, .btn--forty:focus-visible { background: #fff; color: var(--fg-maroon); }
/* the footer: Forty Grams, my other business */
.foot__forty { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; text-decoration: none; color: var(--chalk); }
.foot__forty img { width: 40px; height: 40px; border-radius: 10px; }
.foot__forty span { display: grid; font: 600 .9375rem/1.3 var(--font-head); }
.foot__forty small { font: 400 .8125rem var(--font-body); color: var(--muted); }
.foot__forty:hover span { color: #fff; }
/* the ChatGPT pictures have the sculpture in the middle: keep it in the bright half of the panel */
@media (min-width: 860px) { .panel.has-art .panel__art img { object-position: var(--art-x, 62%) 50%; } }
/* the small Forty Grams badge in the Nutrition panel, in Forty Grams colours too */
.fortybadge { background: linear-gradient(135deg, #6b2128, #3a1015); box-shadow: inset 0 0 0 1px rgba(194, 115, 90, .5); }
.fortybadge:hover, .fortybadge:focus-visible { box-shadow: inset 0 0 0 1px rgba(194, 115, 90, .9), 0 0 22px -6px rgba(194, 115, 90, .6); }


/* ---------- v7: review changes ---------- */
.hero__trust { color: var(--muted); font-size: 1rem; margin: -.25em 0 0; }
.ranks__lead { font: 700 clamp(1.15rem, 1rem + .6vw, 1.45rem)/1.25 var(--font-display); text-transform: uppercase; letter-spacing: .02em; color: var(--chalk); }
.firstfour { padding: clamp(18px, 3vw, 28px); margin: 28px 0; }
.firstfour h3 { margin-bottom: .75em; }
.firstfour ol { list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 1em; }
.firstfour li { font-size: .98rem; }
.firstfour li strong { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; color: var(--blue); }
.faq { margin-top: 36px; display: grid; gap: 10px; max-width: 820px; }
.faq h3 { margin-bottom: .4em; }
.faq details { background: rgba(255, 255, 255, .035); border-radius: var(--radius); box-shadow: inset 0 0 0 1px rgba(237, 235, 230, .12); }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 14px 48px 14px 18px; font: 600 1.02rem/1.35 var(--font-head); color: var(--chalk); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--blue); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0; padding: 0 18px 16px; font-size: .98rem; }
.where { font-size: .98rem; }
.photo--video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--stone-2); }
.fg__facts { list-style: none; display: grid; gap: 8px; margin: 0 0 1em; }
.fg__facts li { padding-left: 1.1em; position: relative; }
.fg__facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--nutrition); }
.motto { margin-top: 12px; font: 700 1rem/1.3 var(--font-display); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); text-align: center; }

/* v8: three gym photos */
.gym { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 900px) { .gym { grid-template-columns: repeat(3, minmax(0, 1fr)); } }


/* ---------- v34: separate pages, the fist demo, contact ---------- */
.eyebrow { font: 600 .8125rem/1.2 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin: 0 0 12px; }
.nav ul a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--blue); }
@media (max-width: 959px) { .nav ul a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--blue); padding-left: .75em; } }

.pagehero {
  position: relative; padding-block: clamp(40px, 7vw, 96px) clamp(36px, 5vw, 72px);
  background: radial-gradient(55% 70% at 82% 30%, rgba(var(--blue-rgb), .12), rgba(var(--blue-rgb), 0) 70%);
}
.pagehero h1 { font-size: clamp(2.3rem, 1.3rem + 3.8vw, 4.2rem); line-height: 1; max-width: 17ch; margin-bottom: .4em; }
.pagehero .lede { max-width: 44rem; }
.pagehero__note { margin: 16px 0 0; }
.pagehero--story h1 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem); line-height: 1.02; }

.morelink { margin: 18px 0 0; font: 600 1rem var(--font-head); color: var(--muted); }
.morelink a { color: var(--blue); text-decoration: none; }
.morelink a::after { content: " \2192"; }
.morelink a:hover { color: var(--blue-hot); text-decoration: underline; }
.morelink--forty { color: rgba(241, 229, 223, .75); }
.morelink--forty a { color: var(--fg-cream); }

/* the fist demo: the app's own fist, lighting finger by finger */
.fistdemo { margin: clamp(28px, 4vw, 44px) 0 0; padding: clamp(20px, 3.4vw, 40px); display: grid; gap: clamp(20px, 4vw, 48px); align-items: center; }
@media (min-width: 820px) { .fistdemo { grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); } }
.fistdemo__art { position: relative; width: min(280px, 68vw); aspect-ratio: 1 / 1; margin: 0 auto 56px; }
@media (min-width: 820px) { .fistdemo__art { margin-bottom: 40px; } }
.fistdemo__art img, .fistdemo__art svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fd-mind, .fd-l--mind { --c: var(--mind); --c-rgb: var(--mind-rgb); }
.fd-strength, .fd-l--strength { --c: var(--strength); --c-rgb: var(--strength-rgb); }
.fd-defence, .fd-l--defence { --c: var(--defence); --c-rgb: var(--defence-rgb); }
.fd-mobility, .fd-l--mobility { --c: var(--mobility); --c-rgb: var(--mobility-rgb); }
.fd-nutrition, .fd-l--nutrition { --c: var(--nutrition); --c-rgb: var(--nutrition-rgb); }
.fd-f { fill: var(--c); stroke: rgba(255, 255, 255, .28); stroke-width: 3; }
.fd-enso { opacity: 1; filter: drop-shadow(0 0 16px rgba(var(--blue-rgb), .45)); }
.fd-closed { position: absolute; left: 0; right: 0; top: 100%; margin: 4px 0 0; text-align: center; font: 700 1.1rem/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .06em; color: var(--chalk); }
.fd-closed span { display: block; margin-top: 4px; font: 600 .875rem var(--font-head); letter-spacing: .01em; text-transform: none; color: var(--blue); }
.fistdemo__title { font: 700 1.25rem/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .03em; color: var(--chalk); margin: 0 0 14px; }
.fistdemo__list { list-style: none; display: grid; gap: 12px; margin: 0 0 16px; }
.fd-l { display: grid; grid-template-columns: 12px minmax(0, 1fr); column-gap: 14px; align-items: center; }
.fd-l::before { content: ""; grid-row: 1 / span 2; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px rgba(var(--c-rgb), .7); }
.fd-l b { grid-column: 2; color: var(--chalk); font: 600 1rem/1.3 var(--font-head); }
.fd-l span { grid-column: 2; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.fistdemo figcaption .small { margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .fd-f, .fd-l, .fd-enso, .fd-closed { animation-duration: 14s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-fill-mode: both; }
  .fd-mind { animation-name: fd-1; } .fd-strength { animation-name: fd-2; } .fd-defence { animation-name: fd-3; } .fd-mobility { animation-name: fd-4; } .fd-nutrition { animation-name: fd-5; }
  .fd-l--mind { animation-name: fdl-1; } .fd-l--strength { animation-name: fdl-2; } .fd-l--defence { animation-name: fdl-3; } .fd-l--mobility { animation-name: fdl-4; } .fd-l--nutrition { animation-name: fdl-5; }
  .fd-enso { animation-name: fd-enso; }
  .fd-closed { animation-name: fd-closed; }
}
@keyframes fd-1 { 0%, 6% { fill: #2b3036; stroke: rgba(255,255,255,.13); } 9%, 84% { fill: var(--c); stroke: rgba(255,255,255,.28); } 91%, 100% { fill: #2b3036; stroke: rgba(255,255,255,.13); } }
@keyframes fd-2 { 0%, 16% { fill: #2b3036; stroke: rgba(255,255,255,.13); } 19%, 84% { fill: var(--c); stroke: rgba(255,255,255,.28); } 91%, 100% { fill: #2b3036; stroke: rgba(255,255,255,.13); } }
@keyframes fd-3 { 0%, 26% { fill: #2b3036; stroke: rgba(255,255,255,.13); } 29%, 84% { fill: var(--c); stroke: rgba(255,255,255,.28); } 91%, 100% { fill: #2b3036; stroke: rgba(255,255,255,.13); } }
@keyframes fd-4 { 0%, 36% { fill: #2b3036; stroke: rgba(255,255,255,.13); } 39%, 84% { fill: var(--c); stroke: rgba(255,255,255,.28); } 91%, 100% { fill: #2b3036; stroke: rgba(255,255,255,.13); } }
@keyframes fd-5 { 0%, 46% { fill: #2b3036; stroke: rgba(255,255,255,.13); } 49%, 84% { fill: var(--c); stroke: rgba(255,255,255,.28); } 91%, 100% { fill: #2b3036; stroke: rgba(255,255,255,.13); } }
@keyframes fdl-1 { 0%, 6% { opacity: .38; } 9%, 84% { opacity: 1; } 91%, 100% { opacity: .38; } }
@keyframes fdl-2 { 0%, 16% { opacity: .38; } 19%, 84% { opacity: 1; } 91%, 100% { opacity: .38; } }
@keyframes fdl-3 { 0%, 26% { opacity: .38; } 29%, 84% { opacity: 1; } 91%, 100% { opacity: .38; } }
@keyframes fdl-4 { 0%, 36% { opacity: .38; } 39%, 84% { opacity: 1; } 91%, 100% { opacity: .38; } }
@keyframes fdl-5 { 0%, 46% { opacity: .38; } 49%, 84% { opacity: 1; } 91%, 100% { opacity: .38; } }
@keyframes fd-enso { 0%, 55% { opacity: .1; filter: none; } 60%, 84% { opacity: 1; filter: drop-shadow(0 0 16px rgba(var(--blue-rgb), .45)); } 91%, 100% { opacity: .1; filter: none; } }
@keyframes fd-closed { 0%, 58% { opacity: 0; transform: translateY(6px); } 62%, 82% { opacity: 1; transform: none; } 88%, 100% { opacity: 0; transform: none; } }

/* the five fundamentals, benefit first, programmes inside */
.funds { display: grid; gap: 12px; max-width: 900px; }
.fund--mind { --c: var(--mind); --c-rgb: var(--mind-rgb); }
.fund--strength { --c: var(--strength); --c-rgb: var(--strength-rgb); }
.fund--defence { --c: var(--defence); --c-rgb: var(--defence-rgb); }
.fund--mobility { --c: var(--mobility); --c-rgb: var(--mobility-rgb); }
.fund--nutrition { --c: var(--nutrition); --c-rgb: var(--nutrition-rgb); }
.fund { border-radius: var(--radius); background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(237, 235, 230, .12), inset 3px 0 0 var(--c); }
.fund summary { cursor: pointer; list-style: none; position: relative; display: grid; gap: 3px; padding: 16px 52px 16px 22px; }
.fund summary::-webkit-details-marker { display: none; }
.fund summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--c); font-size: 1.5rem; line-height: 1; }
.fund[open] summary::after { content: "\2013"; }
.fund__name { font: 700 1.2rem/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .03em; color: var(--c); }
.fund__teach { color: var(--chalk); font: 600 1rem/1.35 var(--font-head); }
.fund__body { padding: 0 22px 20px; }
.fund__body p { font-size: .98rem; }

.ctaband__in { padding: clamp(28px, 5vw, 56px); }
.ctaband h2 { margin-bottom: .35em; }
.ctaband p { margin-bottom: 0; }
.notecard { padding: clamp(22px, 3vw, 32px); margin-top: clamp(32px, 5vw, 56px); max-width: 46rem; }
.first__grid .notecard { margin-top: 0; }
.notecard h3 { margin-bottom: .4em; }
.notecard .btn { margin-top: 6px; }

.plaques--big { margin-bottom: 0; }
.plaque--big { --c: var(--blue); --c-rgb: var(--blue-rgb); }
.plaque--big .eyebrow { margin-bottom: 8px; }
.plaque--big h3 { margin-bottom: .15em; }
.plaque--big .panel__list { margin: 8px 0 18px; gap: 10px; }
.plaque--big .panel__list li { font-size: .98rem; }
.plaque__for { color: var(--muted); margin-top: auto !important; font-size: .95rem !important; }
.howgrid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 900px) { .howgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.howgrid h2 { margin-bottom: .7em; }
.howgrid .faq { margin-top: 0; }
#approach { --c: var(--blue); --c-rgb: var(--blue-rgb); }
#approach .panel__list { margin: 22px 0 0; }
#approach .panel__list a { white-space: nowrap; }

.faq--page { margin-top: 0; }
.faq--page h2 { margin-bottom: .45em; }
.faqgroups { display: grid; gap: 40px; }
.faqgroups .faq { margin-top: 0; }

.foot__contact { margin: 14px 0 0; color: var(--muted); font-size: .9375rem; }
.foot__contact a { color: var(--text); }
.foot__contact a:hover { color: #fff; }

/* the Forty Grams page */
.fortypage { padding-top: clamp(28px, 5vw, 64px); }
.fg .fg__h2, .fg .fg__card h2 { font: 700 clamp(1.3rem, 1.1rem + .8vw, 1.7rem)/1.2 var(--font-head); text-transform: none; letter-spacing: -.01em; color: var(--fg-cream); }
.fg .fg__h2 { margin: clamp(32px, 4vw, 48px) 0 0; }
.fg .fg__card h2 { margin: 0 0 10px; font-size: 1.2rem; }
.fg__top .actions { margin-top: 22px; }
.vegtag { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; font: 600 .75rem/1.5 var(--font-head); vertical-align: middle; color: #1b2a17; background: #a8d59a; }
.fg__info .fg__allergens { color: var(--fg-cream); }
.fg__allergens strong { color: var(--fg-cream); }
.fg__nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: auto 0 0; padding-top: 10px; }
.fg__nums div { text-align: center; padding: 8px 4px; border-radius: 10px; background: rgba(0, 0, 0, .2); }
.fg__nums dt { font: 500 .75rem/1.2 var(--font-body); color: rgba(241, 229, 223, .62); }
.fg__nums dd { margin: 3px 0 0; font: 700 1rem/1.1 var(--font-head); color: var(--fg-cream); }
.fg__nums div:first-child dd { color: var(--fg-terra); }
.fg__note { margin: 14px 0 0; color: rgba(241, 229, 223, .78); font-size: .9375rem; }
.fg__infogrid { display: grid; gap: 18px; margin-top: clamp(28px, 4vw, 44px); }
@media (min-width: 900px) { .fg__infogrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fg__card { padding: 20px 22px; border-radius: 18px; background: rgba(241, 229, 223, .06); box-shadow: inset 0 0 0 1px rgba(241, 229, 223, .12); }
.fg__card p { color: rgba(241, 229, 223, .84); font-size: .98rem; margin: 0 0 10px; }
.fg__card p:last-child { margin-bottom: 0; }
.fg__card a { color: var(--fg-cream); }
.fortypage .fg__cta { margin-top: clamp(28px, 4vw, 44px); }

/* the motto sits on the photo (the frame crops anything below it) */
.photo .motto { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; margin: 0; padding: 18px 16px; color: var(--chalk); text-shadow: 0 2px 10px rgba(0, 0, 0, .75); }
/* room between the fist demo and the fundamentals picker */
.rings .fistdemo { margin-bottom: clamp(36px, 5vw, 56px); }
/* the footer: brand on the left, the longer link list on the right */
@media (min-width: 860px) { .foot__in { grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); } }

/* 404 page: links to the main pages */
.notfound { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .notfound { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .notfound { grid-template-columns: repeat(3, 1fr); } }
.notfound__link { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px; text-decoration: none; color: inherit; }
.notfound__link b { font-family: var(--font-display); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em; color: var(--blue); }
.notfound__link span { opacity: .8; }
.notfound__link:hover b, .notfound__link:focus-visible b { text-decoration: underline; text-underline-offset: 4px; }

/* client reviews */
.reviews__item { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.reviews__item + .reviews__item { margin-top: clamp(48px, 7vw, 88px); }
@media (min-width: 900px) { .reviews__item { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .reviews__item--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .reviews__item--flip .reviews__photos { order: 2; } }
.reviews__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reviews__shot { position: relative; margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(237,235,230,.12); background: var(--stone-2); }
.reviews__shot img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 5; object-fit: cover; }
.reviews__shot figcaption { position: absolute; left: 10px; bottom: 10px; font: 600 .75rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--chalk); background: rgba(23,25,28,.82); padding: 7px 10px; border-radius: 999px; }
.reviews__shot + .reviews__shot figcaption { background: var(--blue); color: #03121b; }
.reviews__wins { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 22px; }
.reviews__wins li { border: 1px solid rgba(51,182,242,.45); color: var(--chalk); border-radius: 999px; padding: 6px 14px; font-size: .9rem; }
.reviews__quote { margin: 0; padding: 0 0 0 20px; border-left: 3px solid var(--blue); }
.reviews__quote p { color: var(--text); line-height: 1.65; }
.reviews__quote footer { color: var(--chalk); font-weight: 600; margin-top: 6px; }
.reviews__quote footer span { color: var(--muted); font-weight: 400; }
