/* ==========================================================================
   The Jonas Academy — design system
   Fonts: Tanker (display) + Satoshi (text), self-hosted, ITF Free Font Licence
   ========================================================================== */

@font-face {
	font-family: "Tanker";
	src: url("../fonts/Tanker-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Satoshi";
	src: url("../fonts/Satoshi-Variable.woff2") format("woff2");
	font-weight: 300 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Satoshi";
	src: url("../fonts/Satoshi-VariableItalic.woff2") format("woff2");
	font-weight: 300 900;
	font-style: italic;
	font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
	/* Colour — taken from the logo and the gym itself */
	--navy: #0b183b;        /* logo outline navy: the base dark */
	--navy-2: #13254f;      /* raised surfaces on navy */
	--mat: #1e54c8;         /* the royal-blue wall mats: big colour fields */
	--strike: #33b5fc;      /* logo highlight blue: actions, focus, accents on dark */
	--canvas: #eef1f5;      /* cool ring-canvas grey: light sections */
	--white: #ffffff;
	--ink: #0b183b;         /* text on light = brand navy, never grey-black */
	--ink-soft: #46506a;
	--line-dark: rgba(255, 255, 255, 0.14);
	--line-light: rgba(11, 24, 59, 0.14);
	--error: #ff6b6b;

	/* Programme colours (timetable tags) */
	--p-tiny: #33b5fc;
	--p-junior: #1e54c8;
	--p-adult: #ffffff;
	--p-spar: #8fa3c7;
	--p-open: #46506a;
	--p-all: #0b183b;

	/* Type — Tanker for display, Satoshi for everything else.
	   Scale: perfect fourth (1.333) on an 18px base. */
	--f-display: "Tanker", "Impact", "Arial Narrow Bold", sans-serif;
	--f-text: "Satoshi", "Helvetica Neue", Arial, sans-serif;
	--t-xs: 0.8125rem;   /* 13 */
	--t-sm: 0.9375rem;   /* 15 */
	--t-base: 1.125rem;  /* 18 */
	--t-md: 1.5rem;      /* 24 */
	--t-lg: 2rem;        /* 32 */
	--t-xl: clamp(2.25rem, 4.5vw, 2.625rem);   /* 42 */
	--t-2xl: clamp(2.75rem, 6.5vw, 3.5625rem); /* 57 */
	--t-3xl: clamp(3.25rem, 9vw, 4.75rem);     /* 76 */
	--t-4xl: clamp(3.75rem, 12.5vw, 8.4rem);   /* 135 — hero only */

	/* Space */
	--s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
	--s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 7rem;
	--gutter: clamp(1.25rem, 5vw, 3.5rem);
	--max: 77.5rem; /* 1240px */
	--measure: 38rem; /* ~70 characters of body text */

	/* Shape: chamfered corners echo the cut corners of the logo lettering */
	--cut: 12px;
	--cut-sm: 7px;
	--chamfer: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
	--chamfer-sm: polygon(var(--cut-sm) 0, 100% 0, 100% calc(100% - var(--cut-sm)), calc(100% - var(--cut-sm)) 100%, 0 100%, 0 var(--cut-sm));

	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
	margin: 0;
	font-family: var(--f-text);
	font-size: var(--t-base);
	line-height: 1.55;
	font-weight: 450;
	color: var(--ink);
	background: var(--canvas);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 var(--s-4); max-width: var(--measure); }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }

.display, h1, h2 {
	font-family: var(--f-display);
	text-transform: uppercase;
	line-height: 0.92;
	letter-spacing: 0.005em;
}
h1, .t-4xl { font-size: var(--t-4xl); }
h2, .t-3xl { font-size: var(--t-3xl); }
.t-2xl { font-size: var(--t-2xl); }
h3 { font-family: var(--f-text); font-weight: 800; font-size: var(--t-md); line-height: 1.2; letter-spacing: -0.01em; }
h4 { font-family: var(--f-text); font-weight: 700; font-size: var(--t-base); line-height: 1.3; }
.lede { font-size: var(--t-md); line-height: 1.4; font-weight: 500; max-width: 32rem; }
.small { font-size: var(--t-sm); }
.muted { color: var(--ink-soft); }

:focus-visible { outline: 3px solid var(--strike); outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--strike); color: var(--navy); padding: var(--s-3) var(--s-4); font-weight: 700; }
.skip-link:focus { left: var(--s-4); top: var(--s-4); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--s-9); }
.section--tight { padding-block: var(--s-8); }
.on-navy { background: var(--navy); color: var(--white); }
.on-mat { background: var(--mat); color: var(--white); }
.on-canvas { background: var(--canvas); color: var(--ink); }
.on-white { background: var(--white); color: var(--ink); }
.on-navy .muted, .on-mat .muted { color: rgba(255, 255, 255, 0.72); }
.section-head { display: grid; gap: var(--s-5); margin-bottom: var(--s-7); max-width: 48rem; }

/* ---------- Offer bar ---------- */
.offer-bar {
	background: var(--strike);
	color: var(--navy);
	font-weight: 700;
	font-size: var(--t-sm);
	text-align: center;
	padding: var(--s-2) var(--gutter);
}
.offer-bar a { text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(11, 24, 59, 0.94);
	backdrop-filter: blur(8px);
	color: var(--white);
	border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap { display: flex; align-items: center; gap: var(--s-6); min-height: 4.5rem; }
.brand img { height: 3.25rem; width: auto; }
.nav { display: flex; gap: var(--s-5); margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: var(--t-sm); padding-block: var(--s-2); border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--strike); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: inherit; padding: var(--s-2); }
@media (max-width: 960px) {
	.nav { display: none; }
	.nav-toggle { display: block; }
	.site-header .btn { padding-inline: var(--s-4); margin-left: auto; }
	.site-header .wrap { gap: var(--s-3); }
	.nav-toggle { margin-left: 0; }
	.brand img { height: 2.75rem; }
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
	font-family: var(--f-text); font-weight: 800; font-size: var(--t-base); line-height: 1;
	text-decoration: none; cursor: pointer; white-space: nowrap;
	padding: 1.05rem 1.6rem;
	border: 0;
	clip-path: var(--chamfer-sm);
	transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.btn--primary { background: var(--strike); color: var(--navy); }
.btn--primary:hover { background: var(--white); }
.btn--mat { background: var(--mat); color: var(--white); }
.btn--mat:hover { background: var(--navy); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; clip-path: none; }
.btn--ghost:hover { background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 2px var(--white); }
.on-canvas .btn--ghost:hover, .on-white .btn--ghost:hover { background: var(--navy); color: var(--white); box-shadow: inset 0 0 0 2px var(--navy); }
.btn--sm { font-size: var(--t-sm); padding: 0.8rem 1.15rem; }
.btn:focus-visible { outline-offset: 4px; }
.link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--strike); }
.link:hover { text-decoration-color: currentColor; }

/* ---------- Rope band: the ring ropes, printed like the gym's own ---------- */
.rope {
	--rope-h: 3.5rem;
	position: relative; overflow: hidden;
	background: var(--mat);
	height: var(--rope-h);
	display: flex; align-items: center;
	border-block: 4px solid var(--white);
}
.rope__track {
	display: flex; flex: none; gap: 2.5rem; padding-right: 2.5rem;
	font-family: var(--f-display); font-size: 1.6rem; letter-spacing: 0.04em; text-transform: uppercase;
	color: var(--white);
	white-space: nowrap;
	animation: rope 38s linear infinite;
}
.rope__track span:nth-child(even) { color: var(--strike); }
@keyframes rope { to { transform: translateX(-100%); } }
.rope:hover .rope__track { animation-play-state: paused; }

/* ---------- Hero ---------- */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: min(92vh, 56rem);
	display: grid; align-items: end;
	color: var(--white);
	background: var(--navy);
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 35%; }
.hero__media::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(11,24,59,0.74) 0%, rgba(11,24,59,0.2) 50%, rgba(11,24,59,0) 100%),
		linear-gradient(0deg, rgba(11,24,59,0.85) 0%, rgba(11,24,59,0) 32%);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 1fr); gap: var(--s-7); align-items: end; padding-block: var(--s-9) var(--s-8); }
.hero h1 { max-width: 11ch; }
.hero .lede { margin-top: var(--s-5); }
@media (max-width: 900px) {
	.hero .wrap { grid-template-columns: 1fr; }
	/* Stacked layout: text spans the full width, so shade evenly (still lighter than the original) */
	.hero__media::after { background: linear-gradient(0deg, rgba(11,24,59,0.9) 0%, rgba(11,24,59,0.55) 50%, rgba(11,24,59,0.42) 100%); }
}

/* Free-week picker that sits beside the headline */
.picker {
	background: var(--white); color: var(--ink);
	padding: var(--s-6);
	clip-path: var(--chamfer);
}
.picker h2 { font-size: var(--t-xl); }
.picker p { margin-top: var(--s-3); font-size: var(--t-sm); color: var(--ink-soft); }
.picker__options { display: grid; gap: var(--s-2); margin-top: var(--s-5); }
.picker__option {
	display: grid; grid-template-columns: 1fr auto; align-items: center;
	padding: var(--s-4) var(--s-4) var(--s-4) var(--s-5);
	background: var(--canvas); text-decoration: none;
	border-left: 6px solid var(--c, var(--mat));
	transition: background-color 0.15s var(--ease);
}
.picker__option:hover { background: #dfe5ee; }
.picker__option strong { font-size: var(--t-base); font-weight: 800; }
.picker__option span { font-size: var(--t-sm); color: var(--ink-soft); }
.picker__option em { font-style: normal; font-weight: 800; color: var(--mat); font-size: var(--t-sm); }

/* ---------- Programme cards (photo with type over it) ---------- */
.programmes { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s-3); }
.programme {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: 26rem; display: flex; flex-direction: column; justify-content: flex-end;
	padding: var(--s-6); color: var(--white); text-decoration: none;
	grid-column: span 4;
}
.programme--wide { grid-column: span 6; }
.programme img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.programme::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(11,24,59,0.94) 0%, rgba(11,24,59,0.35) 55%, rgba(11,24,59,0.05) 100%); }
.programme:hover img { transform: scale(1.04); }
.programme h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: var(--t-2xl); line-height: 0.95; letter-spacing: 0.01em; }
.programme p { margin: var(--s-3) 0 0; font-size: var(--t-sm); max-width: 26rem; color: rgba(255,255,255,0.85); }
.age {
	align-self: flex-start; margin-bottom: var(--s-4);
	font-weight: 800; font-size: var(--t-xs);
	background: var(--c, var(--strike)); color: var(--navy);
	padding: 0.35rem 0.65rem; clip-path: var(--chamfer-sm);
}
@media (max-width: 900px) {
	.programme, .programme--wide { grid-column: span 12; min-height: 20rem; }
}

/* ---------- Steps (the free week really is a sequence) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { border-top: 4px solid var(--strike); padding-top: var(--s-5); counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-family: var(--f-display); font-size: var(--t-2xl); line-height: 1; color: var(--strike); margin-bottom: var(--s-4); }
.steps h3 { margin-bottom: var(--s-3); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Timetable ---------- */
.tt-legend { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-bottom: var(--s-6); font-size: var(--t-sm); font-weight: 600; }
.tt-legend span { display: inline-flex; align-items: center; gap: var(--s-2); }
.tt-legend i { width: 0.9rem; height: 0.9rem; background: var(--c); box-shadow: inset 0 0 0 1px rgba(11,24,59,0.25); }
.tt-tabs { display: none; gap: var(--s-1); margin-bottom: var(--s-4); overflow-x: auto; }
.tt-tabs button {
	flex: 1 1 0; min-width: 0;
	font: 800 var(--t-sm) var(--f-text); color: var(--ink);
	background: var(--white); border: 0; padding: var(--s-3) var(--s-2); cursor: pointer;
}
.tt-tabs button[aria-selected="true"] { background: var(--navy); color: var(--white); }
.tt { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s-2); }
.tt-day h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: var(--t-lg); line-height: 1; padding-bottom: var(--s-3); border-bottom: 3px solid var(--navy); margin-bottom: var(--s-2); }
.tt-day[data-today] h3 { border-color: var(--strike); }
.tt-day[data-today] h3::after { content: "Today"; margin-left: var(--s-2); padding: 0.2rem 0.45rem; font-family: var(--f-text); font-size: var(--t-xs); font-weight: 800; text-transform: none; color: var(--navy); background: var(--strike); vertical-align: middle; }
.tt-class { background: var(--white); padding: var(--s-3); margin-bottom: var(--s-2); border-left: 5px solid var(--c); }
.tt-class time { display: block; font-weight: 800; font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.tt-class b { display: block; font-weight: 600; font-size: var(--t-sm); line-height: 1.3; margin-top: 2px; }
.tt-class small { display: block; color: var(--ink-soft); font-size: var(--t-xs); margin-top: 2px; }
@media (max-width: 1000px) {
	.tt-tabs { display: flex; }
	.tt { grid-template-columns: 1fr; }
	.tt-day { display: none; }
	.tt-day.is-active { display: block; }
	.tt-day h3 { display: none; }
	.tt-class { display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--s-3); padding: var(--s-4); }
	.tt-class small { grid-column: 2; margin-top: -0.5rem; }
}

/* ---------- Pricing ---------- */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.price {
	background: var(--white); color: var(--ink);
	padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-4);
	box-shadow: inset 0 6px 0 var(--c, var(--mat));
	padding-top: calc(var(--s-6) + 6px);
}
.price h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: var(--t-xl); line-height: 1; }
.price__amount { font-family: var(--f-display); font-size: var(--t-3xl); line-height: 1; }
.price__amount small { font-family: var(--f-text); font-size: var(--t-sm); font-weight: 600; color: var(--ink-soft); margin-left: var(--s-1); }
.price ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); font-size: var(--t-sm); }
.price li { padding-left: 1.6rem; position: relative; }
.price li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 0.85rem; height: 0.5rem; border-left: 3px solid var(--mat); border-bottom: 3px solid var(--mat); transform: rotate(-45deg); }
.price .btn { margin-top: auto; }
.pt {
	margin-top: var(--s-3); background: var(--navy-2); color: var(--white);
	padding: var(--s-6); display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-6); align-items: center;
}
.pt h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: var(--t-xl); line-height: 1; }
.pt__rows { display: flex; flex-wrap: wrap; gap: var(--s-5) var(--s-7); }
.pt__rows div { display: grid; }
.pt__rows b { font-family: var(--f-display); font-weight: 400; font-size: var(--t-2xl); line-height: 1; color: var(--strike); }
.pt__rows span { font-size: var(--t-sm); font-weight: 600; opacity: 0.85; }
@media (max-width: 900px) { .pt { grid-template-columns: 1fr; gap: var(--s-5); } }
.reassure { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); margin-top: var(--s-6); font-weight: 700; font-size: var(--t-sm); }
.reassure span::before { content: "✓"; color: var(--strike); margin-right: var(--s-2); }
@media (max-width: 900px) { .prices { grid-template-columns: 1fr; } }

/* ---------- Coaches ---------- */
.coaches { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6) var(--s-5); }
.coach figure { margin: 0 0 var(--s-5); aspect-ratio: 4 / 5; overflow: hidden; background: var(--navy-2); clip-path: var(--chamfer); }
.coach figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.coach h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: var(--t-2xl); line-height: 0.95; }
.coach__nick { display: block; font-weight: 700; color: var(--strike); margin-top: var(--s-2); }
.coach__role { font-weight: 600; margin-top: var(--s-1); font-size: var(--t-sm); opacity: 0.8; }
.coach p { margin-top: var(--s-4); font-size: var(--t-sm); }
@media (max-width: 900px) { .coaches { grid-template-columns: 1fr; max-width: 28rem; } }

/* ---------- Fighter card ---------- */
.fighters { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.fighter { background: var(--navy-2); color: var(--white); text-decoration: none; }
.fighter figure { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: var(--mat); }
.fighter figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.fighter__body { padding: var(--s-4) var(--s-4) var(--s-5); }
.fighter h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: var(--t-xl); line-height: 0.95; }
.fighter__meta { font-size: var(--t-xs); font-weight: 600; opacity: 0.75; margin-top: var(--s-2); }
@media (max-width: 1000px) { .fighters { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Review ---------- */
.review { max-width: 44rem; }
.review blockquote { margin: 0; font-size: var(--t-lg); line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.review figcaption { margin-top: var(--s-5); font-weight: 700; }
.review figcaption span { font-weight: 500; opacity: 0.75; }

/* ---------- FAQ ---------- */
.faq { max-width: 48rem; border-top: 2px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--line-light); }
.faq summary {
	list-style: none; cursor: pointer;
	display: flex; justify-content: space-between; gap: var(--s-5);
	padding: var(--s-5) 0; font-weight: 800; font-size: var(--t-md); line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-display); font-size: var(--t-lg); line-height: 0.8; color: var(--mat); transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: var(--s-5); }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s-5); max-width: 36rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.field { display: grid; gap: var(--s-2); }
.field label { font-weight: 700; font-size: var(--t-sm); }
.field .hint { font-size: var(--t-xs); color: var(--ink-soft); }
.field input, .field select, .field textarea {
	font: 500 var(--t-base) var(--f-text); color: var(--ink);
	background: var(--white); border: 2px solid var(--line-light); border-radius: 0;
	padding: 0.85rem 1rem; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--mat); box-shadow: 0 0 0 3px rgba(51, 181, 252, 0.45); }
.field[data-error] input { border-color: #d64545; }
.field .error { color: #b42318; font-size: var(--t-sm); font-weight: 700; }
.check { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); align-items: start; font-size: var(--t-sm); }
.check input { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; accent-color: var(--mat); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Sponsors ---------- */
.sponsors { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--s-2); align-items: center; }
.sponsors li { list-style: none; background: var(--white); aspect-ratio: 3 / 2; display: grid; place-items: center; padding: var(--s-3); }
.sponsors img { max-height: 100%; width: auto; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: 0.85; transition: filter 0.2s, opacity 0.2s; }
.sponsors li:hover img { filter: none; opacity: 1; }
.sponsors { padding: 0; margin: 0; }
@media (max-width: 900px) { .sponsors { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--white); padding-block: var(--s-8) var(--s-6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-6); }
.site-footer h4 { margin-bottom: var(--s-3); color: var(--strike); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); font-size: var(--t-sm); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-base { border-top: 1px solid var(--line-dark); margin-top: var(--s-7); padding-top: var(--s-5); font-size: var(--t-xs); opacity: 0.7; display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: space-between; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
	.rope__track { animation: none; }
}

/* ---------- Animated fighter (knee strike) ----------
   Whole-figure motion: coil back on the standing foot, drive the knee up and forward,
   impact burst at the knee, settle into the logo pose. Plays once when it scrolls into
   view, replays on hover/tap. Static logo pose if reduced motion is on. */
.ja-fighter { display: block; width: 100%; height: auto; overflow: visible; }
.ja-fighter .ja-rig,
.ja-fighter .ja-ghost { transform-box: view-box; transform-origin: 405px 840px; }
.ja-fighter .ja-bg { transform-box: view-box; transform-origin: 531px 436px; }
.ja-fighter .ja-ghost { opacity: 0; }
.ja-fighter .ja-ghost--near { fill: var(--strike); }
.ja-fighter .ja-burst { opacity: 0; }
.ja-fighter .ja-burst__ring { fill: none; stroke: var(--white); stroke-width: 5; }
.ja-fighter .ja-burst__rays line { stroke: var(--strike); stroke-width: 7; stroke-linecap: square; }
.ja-fighter .ja-burst > * { transform-box: fill-box; transform-origin: center; }
.ja-fighter .ja-burst__rays { transform-box: view-box; transform-origin: 0 0; }

.ja-fighter.is-striking .ja-rig        { animation: ja-strike 1.5s cubic-bezier(.2,.7,.2,1) both; }
.ja-fighter.is-striking .ja-ghost--near{ animation: ja-strike 1.5s cubic-bezier(.2,.7,.2,1) 45ms both, ja-ghost 1.5s linear 45ms both; }
.ja-fighter.is-striking .ja-ghost--far { animation: ja-strike 1.5s cubic-bezier(.2,.7,.2,1) 90ms both, ja-ghost-far 1.5s linear 90ms both; }
.ja-fighter.is-striking .ja-bg         { animation: ja-bg 1.5s cubic-bezier(.2,.7,.2,1) both; }
.ja-fighter.is-striking .ja-burst      { animation: ja-burst-fade 1.5s linear both; }
.ja-fighter.is-striking .ja-burst__ring{ animation: ja-ring 1.5s cubic-bezier(.1,.8,.2,1) both; }
.ja-fighter.is-striking .ja-burst__rays{ animation: ja-rays 1.5s cubic-bezier(.1,.8,.2,1) both; }

@keyframes ja-strike {
	0%   { transform: rotate(-7deg) translate(-18px, 10px) scale(.98); }
	24%  { transform: rotate(-11deg) translate(-30px, 18px) scale(.965); }   /* coil */
	36%  { transform: rotate(4deg) translate(16px, -24px) scale(1.01); }     /* drive */
	50%  { transform: rotate(-1.2deg) translate(-3px, 4px) scale(1); }
	64%  { transform: rotate(.5deg) translate(1px, -1px); }
	100% { transform: none; }
}
@keyframes ja-ghost     { 0%, 26% { opacity: 0; } 33% { opacity: .55; } 44%, 100% { opacity: 0; } }
@keyframes ja-ghost-far { 0%, 26% { opacity: 0; } 33% { opacity: .25; } 42%, 100% { opacity: 0; } }
@keyframes ja-bg {
	0%   { transform: scale(.9); opacity: .65; }
	35%  { transform: scale(.94); opacity: .8; }
	42%  { transform: scale(1.07); opacity: 1; }
	58%  { transform: scale(.99); }
	100% { transform: none; opacity: 1; }
}
@keyframes ja-burst-fade { 0%, 34% { opacity: 0; } 37% { opacity: 1; } 62%, 100% { opacity: 0; } }
@keyframes ja-ring { 0%, 34% { transform: scale(.2); } 62%, 100% { transform: scale(2.1); stroke-width: 1; } }
@keyframes ja-rays { 0%, 34% { transform: scale(.4); } 55%, 100% { transform: scale(1.25); } }

.ja-fighter-wrap { cursor: pointer; -webkit-tap-highlight-color: transparent; }

@media (prefers-reduced-motion: reduce) {
	.ja-fighter.is-striking * { animation: none !important; }
	.ja-fighter-wrap { cursor: default; }
}

/* ---------- Home page ---------- */
.hero--home .hero__media img { object-position: 38% 40%; }
.section--flush-top { padding-top: 0; }
.section--rule { border-top: 1px solid var(--line-dark); }

.story__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s-8); align-items: center; }
.story__fighter { max-width: 30rem; width: 100%; justify-self: center; }
.story h2 { max-width: 12ch; }
.story__stat { margin: var(--s-6) 0 var(--s-5); font-weight: 700; font-size: var(--t-md); line-height: 1.2; max-width: 22rem; }
.story__stat span { display: block; font-family: var(--f-display); font-weight: 400; font-size: var(--t-4xl); line-height: 0.85; color: var(--strike); margin-bottom: var(--s-2); }
.story .btn { margin-top: var(--s-3); }
@media (max-width: 900px) { .story__grid { grid-template-columns: 1fr; gap: var(--s-6); } .story__fighter { max-width: 20rem; } }

.community { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); }
.community img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 900px) { .community { grid-template-columns: repeat(2, 1fr); } }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: var(--s-8); }
.split h2 { margin-bottom: var(--s-6); }
.book { background: var(--navy); color: var(--white); padding: var(--s-7) var(--s-6); align-self: start; clip-path: var(--chamfer); scroll-margin-top: 6rem; }
.book h2 { font-size: var(--t-2xl); margin-bottom: var(--s-4); }
.book__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-6) 0; }
.book__details { margin: 0; display: grid; gap: var(--s-4); font-size: var(--t-sm); }
.book__details dt { font-weight: 800; color: var(--strike); }
.book__details dd { margin: 0; }
.book .link { text-decoration-color: var(--strike); }

.sponsors-title { font-family: var(--f-text); text-transform: none; font-size: var(--t-sm); font-weight: 800; line-height: 1.2; margin-bottom: var(--s-5); color: var(--ink); }
section[id], #free-week { scroll-margin-top: 5rem; }

/* Mobile menu */
@media (max-width: 960px) {
	.nav.is-open {
		display: grid; position: absolute; top: 100%; left: 0; right: 0;
		background: var(--navy); padding: var(--s-4) var(--gutter) var(--s-6); gap: 0;
		border-bottom: 1px solid var(--line-dark);
	}
	.nav.is-open a { font-size: var(--t-md); padding: var(--s-3) 0; border-bottom: 1px solid var(--line-dark); }
}

/* ---------- Inner pages ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--s-9) var(--s-8); }
.page-hero__media { position: absolute; inset: 0; z-index: -1; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,24,59,0.95) 0%, rgba(11,24,59,0.7) 55%, rgba(11,24,59,0.45) 100%); }
.page-hero h1 { font-size: var(--t-3xl); }
.page-hero .lede { margin-top: var(--s-5); max-width: 36rem; }
.nav a[aria-current="page"] { border-color: var(--strike); }

.jump { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6); }
.jump a {
	text-decoration: none; font-weight: 700; font-size: var(--t-sm);
	padding: 0.55rem 0.9rem; background: rgba(255,255,255,0.08);
	border-left: 4px solid var(--c, var(--strike));
}
.jump a:hover { background: rgba(255,255,255,0.16); }

.class-block { padding-block: var(--s-8); scroll-margin-top: 5rem; }
.class-block__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); align-items: center; }
.class-block--flip .class-block__media { order: 2; }
.class-block__media { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; clip-path: var(--chamfer); }
.class-block__media img { width: 100%; height: 100%; object-fit: cover; }
.class-block__body .age { display: inline-block; margin-bottom: var(--s-4); }
.class-block__body h2 { font-size: var(--t-2xl); margin-bottom: var(--s-4); }
.class-block__when { list-style: none; padding: 0; margin: 0 0 var(--s-5); display: grid; gap: var(--s-1); font-weight: 800; }
.class-block__when li::before { content: ""; display: inline-block; width: 0.6rem; height: 0.6rem; background: var(--mat); margin-right: var(--s-3); }
.class-block__body .btn { margin-top: var(--s-2); }
@media (max-width: 900px) {
	.class-block__grid { grid-template-columns: 1fr; gap: var(--s-5); }
	.class-block--flip .class-block__media { order: 0; }
}

.guide { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: var(--s-3); }
.guide article { background: var(--canvas); padding: var(--s-5); border-top: 5px solid var(--c); }
.guide h3 { font-size: var(--t-base); }
.guide__when { font-weight: 800; color: var(--mat); font-size: var(--t-sm); margin: var(--s-2) 0 var(--s-3); }
.guide p:last-child { font-size: var(--t-sm); margin-bottom: 0; }

.book-band { scroll-margin-top: 5rem; }
.book-band__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s-6); align-items: center; }
.book-band h2 { font-size: var(--t-2xl); margin-bottom: var(--s-4); }
.book-band .book__actions { margin: 0; justify-content: flex-end; }
@media (max-width: 900px) { .book-band__grid { grid-template-columns: 1fr; } .book-band .book__actions { justify-content: flex-start; } }

.tt-noscript { columns: 2; font-size: var(--t-sm); }

.age--dark { color: var(--white); }

/* ---------- Coaches page ---------- */
.coach__link { text-decoration: none; }
.coach__link:hover { text-decoration: underline; text-decoration-color: var(--strike); text-underline-offset: 6px; }
.coach-profile { padding-block: var(--s-9) var(--s-8); scroll-margin-top: 5rem; }
.coach-profile__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--s-8); align-items: center; }
.coach-profile--flip .coach-profile__portrait { order: 2; }
.coach-profile__portrait { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; clip-path: var(--chamfer); background: var(--navy-2); }
.coach-profile__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.coach-profile__role { font-weight: 800; color: var(--mat); margin-bottom: var(--s-3); }
.on-navy .coach-profile__role { color: var(--strike); }
.coach-profile h2 { font-size: var(--t-3xl); margin-bottom: var(--s-5); }
.coach-profile__nick { display: block; font-size: 0.5em; color: var(--strike); margin-top: var(--s-2); }
.on-canvas .coach-profile__nick, .on-white .coach-profile__nick { color: var(--mat); }
.coach-profile .lede { margin-bottom: var(--s-5); }
.coach-facts { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-7); margin: var(--s-5) 0 var(--s-6); }
.coach-facts dt { font-size: var(--t-xs); font-weight: 800; opacity: 0.7; }
.coach-facts dd { margin: 0; font-weight: 800; font-size: var(--t-md); }
.coach-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-2); margin-top: var(--s-7); }
.coach-gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 30%; }
@media (max-width: 900px) {
	.coach-profile__grid { grid-template-columns: 1fr; gap: var(--s-6); }
	.coach-profile--flip .coach-profile__portrait { order: 0; }
	.coach-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* Before/after slider */
.before-after { --pos: 50%; max-width: 28rem; width: 100%; justify-self: center; }
.before-after__frame { position: relative; aspect-ratio: 3 / 5; overflow: hidden; clip-path: var(--chamfer); background: var(--navy-2); }
.before-after__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.before-after__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.before-after__before::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--strike); }
.before-after__tag { position: absolute; top: var(--s-4); font-weight: 800; font-size: var(--t-xs); padding: 0.3rem 0.6rem; background: var(--navy); color: var(--white); }
.before-after__tag--before { left: var(--s-4); }
.before-after__tag--after { right: var(--s-4); background: var(--strike); color: var(--navy); }
.before-after__range { width: 100%; margin-top: var(--s-4); accent-color: var(--strike); cursor: ew-resize; }

/* ---------- Memberships page ---------- */
.prices--page { margin-top: calc(var(--s-7) * -1); position: relative; }
.price__when { font-weight: 800; font-size: var(--t-sm); color: var(--mat); margin: 0; }
.price__actions { margin-top: auto; display: grid; gap: var(--s-3); justify-items: start; }
.price__actions .btn { margin-top: 0; }
.pt-page { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--s-8); align-items: start; }
.pt-page h2 { margin-bottom: var(--s-5); }
.pt-options { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); align-items: stretch; }
.pt-options article { background: var(--white); padding: var(--s-5); box-shadow: inset 0 5px 0 var(--strike); }
.pt-options h3 { font-size: var(--t-base); }
.pt-options__price { font-family: var(--f-display); font-size: var(--t-2xl); line-height: 1; margin: var(--s-3) 0; }
.pt-options__price small { font-family: var(--f-text); font-size: var(--t-sm); font-weight: 600; color: var(--ink-soft); margin-left: var(--s-1); }
.pt-options article p:last-child { font-size: var(--t-sm); margin: 0; }
.pt-options .btn { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 900px) { .pt-page, .pt-options { grid-template-columns: 1fr; } .prices--page { margin-top: 0; } }

/* ---------- About page ---------- */
.about-story { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--s-8); align-items: center; }
.about-story--flip { grid-template-columns: 0.9fr 1.1fr; }
.about-story h2 { margin-bottom: var(--s-5); }
.about-story .lede { margin-bottom: var(--s-5); }
.about-story__img { margin: 0; }
.about-story__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; clip-path: var(--chamfer); }
.about-story__img figcaption { font-size: var(--t-xs); font-weight: 700; margin-top: var(--s-3); opacity: 0.75; }
.about-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.about-pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.record-band { padding-block: var(--s-8); }
.record-lines { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.record-lines li { font-weight: 700; font-size: var(--t-md); line-height: 1.25; border-top: 4px solid var(--strike); padding-top: var(--s-4); }
.record-lines b { display: block; font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: var(--t-2xl); line-height: 0.95; color: var(--strike); margin-bottom: var(--s-2); }
.wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-2); }
.wall img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; }
@media (max-width: 900px) {
	.about-story, .about-story--flip { grid-template-columns: 1fr; gap: var(--s-6); }
	.record-lines { grid-template-columns: 1fr; }
	.wall { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.contact-card { background: var(--white); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); align-items: flex-start; box-shadow: inset 0 5px 0 var(--mat); }
.contact-card h2 { font-size: var(--t-xl); }
.contact-card address { font-style: normal; font-weight: 600; line-height: 1.5; }
.contact-card__big { font-weight: 800; font-size: clamp(1.05rem, 1.6vw, 1.35rem); margin: 0; white-space: nowrap; }
.contact-card__big a { text-decoration: none; }
.contact-card__times { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); font-size: var(--t-sm); }
.contact-card .btn { margin-top: auto; }
.contact-map { display: grid; gap: var(--s-3); }
.contact-map iframe { width: 100%; aspect-ratio: 1 / 1; border: 0; clip-path: var(--chamfer); background: var(--white); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .contact-cards { grid-template-columns: 1fr; } }

.sponsors a { display: grid; place-items: center; width: 100%; height: 100%; }
.sponsors a:focus-visible { outline-offset: 2px; }

/* ---------- Text pages, FAQ, free week, 404 ---------- */
.page-hero--plain { padding-block: var(--s-8) var(--s-7); }
.prose { max-width: 44rem; }
.prose h2 { font-size: var(--t-xl); margin: var(--s-7) 0 var(--s-4); }
.prose h3 { font-size: var(--t-base); margin: var(--s-5) 0 var(--s-2); }
.prose p, .prose li { max-width: none; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 var(--s-4); display: grid; gap: var(--s-2); }
.prose a { font-weight: 700; text-decoration-color: var(--strike); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose .updated { font-size: var(--t-sm); font-weight: 700; color: var(--ink-soft); }

.faq-page { display: grid; gap: var(--s-8); max-width: 48rem; }
.faq-page__group h2 { font-size: var(--t-2xl); margin-bottom: var(--s-4); }

.picker__actions { display: grid; gap: var(--s-2); margin-top: var(--s-5); }
.btn--ink { color: var(--navy); }
.why-list { list-style: none; padding: 0; margin: var(--s-6) 0; display: grid; gap: var(--s-4); font-size: var(--t-md); font-weight: 600; line-height: 1.35; }
.why-list li { padding-left: var(--s-6); position: relative; }
.why-list li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 0.9rem; height: 0.9rem; background: var(--strike); clip-path: polygon(30% 0, 100% 0, 100% 70%, 70% 100%, 0 100%, 0 30%); }

.not-found { min-height: 70vh; display: grid; align-items: center; }
.not-found__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s-8); align-items: center; }
.not-found__fighter { max-width: 24rem; width: 100%; justify-self: center; }
.not-found h1 { font-size: var(--t-4xl); }
.not-found .lede { margin: var(--s-5) 0 var(--s-6); }
.not-found__links { display: flex; flex-wrap: wrap; gap: var(--s-3); }
@media (max-width: 900px) { .not-found__grid { grid-template-columns: 1fr; gap: var(--s-6); } .not-found__fighter { max-width: 16rem; } }

.footer-legal { display: flex; gap: var(--s-4); }
