/* ===========================================================================
   SECTIONS — homepage bands (About → Contact)
   Scaffolding only. Each block is intentionally restrained; refine a section
   once its content and photography are approved.
   Section-agnostic patterns (.vub-card, .vub-grid, .vub-section__head) live in
   base.css — reuse them rather than adding near-duplicates here.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   2. ABOUT THE CLUB — text beside a portrait image
--------------------------------------------------------------------------- */
.vub-about__layout {
	display: grid;
	gap: var(--vub-grid-gap);
	grid-template-columns: 1fr;
	align-items: center;
}

/* Its own paragraphs only: the eyebrow is a <p> as well, and keeps its red. */
.vub-about__body > p { color: var(--vub-text-muted); }

.vub-about__body .vub-section__head { margin-bottom: var(--vub-space-md); }

.vub-about__marks {
	display: flex;
	flex-wrap: wrap;
	gap: var(--vub-space-lg);
	margin-top: var(--vub-space-xl);
	padding-top: var(--vub-space-lg);
	border-top: var(--vub-rule);
}

.vub-about__mark-value {
	display: block;
	font-family: var(--vub-font-display);
	font-size: var(--vub-text-2xl);
	font-weight: var(--vub-weight-black);
	line-height: 1;
	color: var(--vub-white);
}

.vub-about__mark-label {
	font-size: var(--vub-text-xs);
	letter-spacing: var(--vub-tracking-wide);
	text-transform: uppercase;
	color: var(--vub-text-muted);
}

/* The photograph's frame: the box over the frame's bounding rectangle, and the
   construction lines over that — about.php. The marks off the corners run on
   past the box by up to a tenth of its width on each side and an eighth below.
   Beside the copy they have the column gap and the container's gutter to run
   into (responsive.css); stacked, the frame is inset that far instead, so no
   mark is cut off at the screen edge or runs into the copy above. */
.vub-about__frame {
	position: relative;
	margin: 8% 8% 11%;
}

/* In full colour, at full strength. On the homepage that is the gym with its
   lights off (about.php) — the lights come on at the far end, on the About
   page — so the dark is the picture's own, not a filter over it. */
.vub-about__frame .vub-media {
	clip-path: var(--vub-frame-clip);
	/* No ground of its own: what shows at the clip's edges should be the page,
	   not a grey panel cut to the frame. */
	background-color: transparent;
}

/* The clip cuts away the focus ring with everything else outside the frame,
   so the frame's own lines carry it: up to full strength while the link has
   keyboard focus, alongside the caption the focus brings up. */
.vub-theme .vub-about__frame .vub-media--link:focus-visible { outline: none; }

.vub-about__frame:has(.vub-media--link:focus-visible) .vub-lines { opacity: 1; }

/* ---------------------------------------------------------------------------
   3. WHY CHOOSE US — numbered feature cards
--------------------------------------------------------------------------- */
.vub-why__grid { --min: 260px; }

/* The rule above each card is red all the time, not only on hover. */
.vub-why__item {
	position: relative;
	padding-top: var(--vub-space-lg);
	border-top: 2px solid var(--vub-red);
}

/* Side by side, the cards share their rows — number, title, text — so a title
   that runs to two lines moves every card's text down with it and the texts
   all start level. Without subgrid each card simply stacks its own. */
@supports (grid-template-rows: subgrid) {
	.vub-why__item {
		display: grid;
		grid-row: span 3;
		grid-template-rows: subgrid;
		row-gap: 0;
		align-content: start;
	}
}

.vub-why__number {
	display: block;
	margin-bottom: var(--vub-space-2xs);
	font-family: var(--vub-font-mono);
	font-size: var(--vub-text-xs);
	letter-spacing: var(--vub-tracking-wider);
	color: var(--vub-red);
}

.vub-why__title { margin-bottom: var(--vub-space-2xs); font-size: var(--vub-text-lg); }

.vub-why__text { color: var(--vub-text-muted); font-size: var(--vub-text-base); margin: 0; }

/* ---------------------------------------------------------------------------
   4. TRAINING PROGRAMS — image cards
--------------------------------------------------------------------------- */
.vub-programs__grid { --min: 300px; }

/* The card is one control: its "View program" button, stretched over the
   whole card by its ::after (below), so it is the only thing to click or tab
   to. --vub-program-focus (set on the card from the program's 'focus', in
   inc/programs.php) is the point of the photograph kept in view and zoomed
   towards. */
.vub-program {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: var(--vub-rule);
	border-radius: var(--vub-radius-box);
	background-color: var(--vub-surface-2);
	transition: border-color var(--vub-duration) var(--vub-ease);
}

.vub-program__media {
	flex: none;
	aspect-ratio: 4 / 3;
	border-radius: 0;
}

.vub-program__media img {
	object-position: var(--vub-program-focus, 50% 50%);
	transform-origin: var(--vub-program-focus, 50% 50%);
	transition: transform 600ms var(--vub-ease-out);
}

.vub-program__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: var(--vub-space-lg);
	gap: var(--vub-space-2xs);
}

.vub-program__level {
	font-size: var(--vub-text-xs);
	font-weight: var(--vub-weight-bold);
	letter-spacing: var(--vub-tracking-wider);
	text-transform: uppercase;
	color: var(--vub-red);
}

.vub-program__title { margin: 0; font-size: var(--vub-text-xl); }

.vub-theme .vub-program__text { color: var(--vub-text-muted); font-size: var(--vub-text-base); margin: 0; }

/* Pushed to the card's foot, so the sessions line and the button sit level
   across a row of cards however long each description runs. */
.vub-program__foot {
	margin-top: auto;
	padding-top: var(--vub-space-sm);
}

.vub-theme .vub-program__meta {
	margin: 0;
	padding-top: var(--vub-space-md);
	font-size: var(--vub-text-sm);
	color: var(--vub-text-faint);
	border-top: var(--vub-rule);
}

.vub-theme .vub-program__open {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--vub-space-xs);
	width: 100%;
	margin: var(--vub-space-md) 0 0;
	padding: 0.95em 1.1em;
	border: var(--vub-border-width) solid var(--vub-border-strong);
	border-radius: var(--vub-radius-button);
	background-color: transparent;
	color: var(--vub-white);
	font-size: var(--vub-text-sm);
	font-weight: var(--vub-weight-bold);
	line-height: 1;
	letter-spacing: var(--vub-tracking-wide);
	text-transform: uppercase;
	text-align: left;
	cursor: pointer;
	transition: var(--vub-transition-color);
}

/* Shown once assets/js/programs.js is running; without it there is no window
   to open, so there is no button either. */
.vub-programs:not(.is-live) .vub-program__open { display: none; }

/* The whole card is the button's to click. */
.vub-program__open::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.vub-program__open svg {
	flex: none;
	max-width: none;
	width: 1.15em;
	height: 1.15em;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform var(--vub-duration) var(--vub-ease-out), color var(--vub-duration-fast) var(--vub-ease);
}

/* Tabbed to: a red edge, the button's border and arrow in red (and the
   photograph a little closer, unless motion is turned down). A pointer that
   can hover gets the same on hover — responsive.css, so a tap on a touch
   screen never leaves a card stuck in it. */
.vub-program:has(:focus-visible) { border-color: color-mix(in srgb, var(--vub-red) 60%, transparent); }

.vub-theme .vub-program:has(:focus-visible) .vub-program__open { border-color: var(--vub-red); }

.vub-program:has(:focus-visible) .vub-program__open svg {
	color: var(--vub-red);
	transform: translateX(3px);
}

/* Astra's blue on a focused button, after a click: keep the theme's own. */
.vub-theme .vub-program__open:focus:not(:focus-visible) {
	background-color: transparent;
	color: var(--vub-white);
	outline: none;
}

/* The focus ring goes round the whole card, which is what the button covers.
   Where :has() is missing, the button keeps a ring of its own. */
.vub-theme .vub-program__open:focus-visible {
	outline: 2px solid var(--vub-focus);
	outline-offset: 2px;
}

@supports selector(:has(*)) {
	.vub-theme .vub-program__open:focus-visible { outline: none; }

	.vub-program:has(.vub-program__open:focus-visible) {
		outline: 2px solid var(--vub-focus);
		outline-offset: 4px;
	}
}

/* ---------------------------------------------------------------------------
   4b. The program's details window — one native <dialog> for every card,
   filled by assets/js/programs.js. On a phone, the photograph, then the
   words, then the facts and the way to get in touch, one under the other;
   side by side from 1024px (responsive.css). Scrolls inside itself when the
   screen is short; the close button stays put.
--------------------------------------------------------------------------- */
.vub-program-modal {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: clamp(0.75rem, 4vh, 2.5rem) clamp(0.75rem, 4vw, 2.5rem);
	border: 0;
	background: transparent;
	color: var(--vub-text);
	font-size: var(--vub-text-base);
	letter-spacing: normal;
	text-align: left;
	overflow: hidden;
}

.vub-program-modal[open] {
	display: flex;
	align-items: center;
	justify-content: center;
}

.vub-program-modal::backdrop {
	background-color: var(--vub-overlay);
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
	opacity: 0;
	transition: opacity 220ms var(--vub-ease);
}

.vub-program-modal.is-shown::backdrop { opacity: 1; }

.vub-program-modal__card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(100%, 34rem);
	max-height: 100%;
	border: var(--vub-border-width) solid var(--vub-border-strong);
	background-color: var(--vub-surface);
	box-shadow: var(--vub-shadow-lg);
	opacity: 0;
	transform: translateY(14px) scale(0.985);
	transition: opacity 220ms var(--vub-ease), transform 280ms var(--vub-ease-out);
}

.vub-program-modal.is-shown .vub-program-modal__card {
	opacity: 1;
	transform: none;
}

.vub-program-modal__scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
}

.vub-program-modal__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas:
		"media"
		"main"
		"aside"
		"action";
}

.vub-program-modal__media {
	grid-area: media;
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background-color: var(--vub-surface-2);
}

.vub-program-modal__media[hidden] { display: none; }

.vub-program-modal__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--vub-program-focus, 50% 50%);
}

.vub-program-modal__main {
	grid-area: main;
	padding: clamp(1.25rem, 4vw, 2.25rem) clamp(1.25rem, 4vw, 2.25rem) clamp(1.5rem, 4vw, 2.25rem);
}

.vub-theme .vub-program-modal__level {
	margin: 0 0 0.6rem;
	padding-right: 3rem;
	font-size: var(--vub-text-xs);
	font-weight: var(--vub-weight-bold);
	line-height: 1.4;
	letter-spacing: var(--vub-tracking-wider);
	text-transform: uppercase;
	color: var(--vub-red);
}

.vub-theme .vub-program-modal__title {
	margin: 0 0 1rem;
	font-family: var(--vub-font-display);
	font-size: clamp(1.75rem, 1.6vw + 1.2rem, 2.375rem);
	font-weight: var(--vub-weight-black);
	line-height: 1;
	letter-spacing: 0.005em;
	text-transform: uppercase;
	color: var(--vub-white);
}

.vub-theme .vub-program-modal__intro {
	margin: 0;
	font-size: var(--vub-text-md);
	line-height: 1.6;
	color: var(--vub-text);
}

.vub-theme .vub-program-modal__heading {
	margin: 1.6rem 0 0.55rem;
	font-family: var(--vub-font-body);
	font-size: var(--vub-text-xs);
	font-weight: var(--vub-weight-bold);
	line-height: 1.4;
	letter-spacing: var(--vub-tracking-wider);
	text-transform: uppercase;
	color: var(--vub-white);
}

.vub-theme .vub-program-modal__text {
	margin: 0;
	font-size: var(--vub-text-base);
	line-height: 1.6;
	color: var(--vub-text-muted);
}

/* What a session includes: short items, two to a row where they fit, each
   on a small red square. */
.vub-theme .vub-program-modal__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(13rem, 100%), 1fr));
	gap: 0.45rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vub-theme .vub-program-modal__list li {
	position: relative;
	margin: 0;
	padding-left: 1.1rem;
	font-size: var(--vub-text-base);
	line-height: 1.5;
	color: var(--vub-text-muted);
}

.vub-program-modal__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.6em;
	width: 0.4rem;
	height: 0.4rem;
	background-color: var(--vub-red);
}

/* The facts and the way to get in touch: one panel at the foot on a phone;
   side by side, the facts under the photograph and the button at the foot of
   the words (responsive.css). */
.vub-program-modal__aside {
	grid-area: aside;
	padding: clamp(1.25rem, 4vw, 2rem) clamp(1.25rem, 4vw, 2.25rem) 1.5rem;
	border-top: var(--vub-rule);
	background-color: var(--vub-surface-2);
}

.vub-theme .vub-program-modal__facts { margin: 0; }

.vub-program-modal__action {
	grid-area: action;
	padding: 0 clamp(1.25rem, 4vw, 2.25rem) clamp(1.25rem, 4vw, 2rem);
	background-color: var(--vub-surface-2);
}

.vub-program-modal__fact {
	display: grid;
	gap: 0.3rem;
	padding: 0.8rem 0;
	border-bottom: var(--vub-rule);
}

.vub-program-modal__fact:first-child { padding-top: 0; }

.vub-program-modal__fact[hidden] { display: none; }

.vub-theme .vub-program-modal__fact dt {
	margin: 0;
	font-size: var(--vub-text-xs);
	font-weight: var(--vub-weight-bold);
	line-height: 1.4;
	letter-spacing: var(--vub-tracking-wider);
	text-transform: uppercase;
	color: var(--vub-text-faint);
}

.vub-theme .vub-program-modal__fact dd {
	display: grid;
	gap: 0.2rem;
	margin: 0;
	font-size: var(--vub-text-base);
	font-weight: var(--vub-weight-semibold);
	line-height: 1.45;
	color: var(--vub-white);
}

.vub-theme .vub-program-modal__contact {
	width: 100%;
	padding-block: 1.1em;
	line-height: 1.2;
	text-align: center;
}

.vub-theme .vub-program-modal__contact:hover,
.vub-theme .vub-program-modal__contact:focus-visible {
	color: var(--vub-white);
}

/* "Sample program details", while the details are samples ('sample' in
   inc/programs.php) — as the coaches' profiles say it. */
.vub-theme .vub-program-modal__note {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 1.25rem 0 0;
	font-size: var(--vub-text-xs);
	line-height: 1;
	letter-spacing: 0.12em;
	color: var(--vub-text-faint);
	white-space: nowrap;
}

.vub-theme .vub-program-modal__note[hidden] { display: none; }

.vub-program-modal__note::before,
.vub-program-modal__note::after {
	content: "";
	flex: 1;
	height: 1px;
	background-color: var(--vub-border);
}

.vub-theme .vub-program-modal__close {
	position: absolute;
	z-index: 2;
	top: 0.75rem;
	right: 0.75rem;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	margin: 0;
	padding: 0;
	border: var(--vub-border-width) solid rgba(255, 255, 255, 0.3);
	border-radius: var(--vub-radius-button);
	background-color: rgba(8, 9, 10, 0.6);
	color: var(--vub-white);
	cursor: pointer;
	transition: var(--vub-transition-color);
}

.vub-program-modal__close svg {
	width: 1.25rem;
	height: 1.25rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
}

.vub-theme .vub-program-modal__close:hover,
.vub-theme .vub-program-modal__close:focus-visible {
	border-color: var(--vub-red);
	background-color: var(--vub-red);
	color: var(--vub-white);
}

.vub-theme .vub-program-modal__close:focus:not(:focus-visible) {
	border-color: rgba(255, 255, 255, 0.3);
	background-color: rgba(8, 9, 10, 0.6);
	outline: none;
}

.vub-theme .vub-program-modal__close:focus-visible {
	outline: 2px solid var(--vub-focus);
	outline-offset: 2px;
}

/* The page under an open window holds still. The gutter is kept, so where a
   scrollbar takes room nothing shifts sideways when it goes. */
html.vub-program-modal-open {
	overflow: hidden;
	scrollbar-gutter: stable;
}

/* ---------------------------------------------------------------------------
   5. TRAINING SCHEDULE — responsive table
--------------------------------------------------------------------------- */
/* Trying out: some room above, next to none below.

   The wall: lighter than the surface the other sections share, so the clock
   formed in it has room to show its shadow. The clock takes its colour from
   this too, so the two cannot drift apart. */
.vub-schedule {
	--vub-schedule-wall: #1c1f23;
	/* In a band the band's picture is formed in this wall as relief (base.css),
	   drawn on exactly this colour — design/band_backdrop.swift, `tall`. */
	--vub-relief-wall: var(--vub-schedule-wall);

	padding-top: calc(var(--vub-section-y) * 0.75);
	padding-bottom: 10px;
	background-color: var(--vub-schedule-wall);
}

/* Still its own wall in a band, until the relief takes over (.is-relief). */
.vub-band > .vub-schedule { background-color: var(--vub-schedule-wall); }

/* The heading, and the clock beside it on the right half — one above the
   other until there is room; see responsive.css. */
.vub-schedule__top {
	display: grid;
	gap: var(--vub-space-lg);
	align-items: end;
	margin-bottom: var(--vub-space-xl);
}

.vub-schedule__top .vub-section__head { margin-bottom: 0; }

/* The clock, formed in the wall — neumorphism. The section's background is
   the wall, and every figure and letter is the wall's own colour, raised out
   of it: caught by the light at its top left, falling into shadow at its
   bottom right. Nothing but those two shadows says it is there, so the wall
   behind must stay the clock's own colour. In the homepage band it carries the
   band's picture, formed in it the same way and in that same colour
   (.vub-relief, base.css), so the clock is one more piece of the wall's relief.

   Laid out as the clock it follows — the hours tall on the left, the minutes
   at their top right, the day and date under them, ending on the hours'
   baseline. Everything is sized in the clock's own width (cqi), so it is the
   same object at every size, its relief with it.

   Hidden until main.js has set the real time on it — see schedule.php. */
.vub-clock {
	container-type: inline-size;
	visibility: hidden;
}

.vub-clock.is-live { visibility: visible; }

.vub-clock__face {
	/* How far the figures stand out of the wall — the same for every line, so
	   the hours, minutes, day and date are all one depth. */
	--vub-clock-lift: 0.18cqi;

	display: flex;
	justify-content: flex-end;
	gap: 3cqi;
	color: var(--vub-schedule-wall);
	font-family: var(--vub-font-body);
	font-weight: 500;   /* one weight throughout, so every line stands out of the wall alike */
	font-variant-numeric: tabular-nums;
	line-height: 1;
	white-space: nowrap;

	/* The relief: a softened edge of light and of shadow, which rounds the
	   letters off into the wall rather than cutting them out of it, then the
	   wide, light shadow they stand out in. No soft light to match it — on a
	   wall this dark that reads as a glow, not as the wall. */
	text-shadow:
		calc(var(--vub-clock-lift) * -1.2) calc(var(--vub-clock-lift) * -1.2) calc(var(--vub-clock-lift) * 2.6) rgba(255, 255, 255, 0.1),
		calc(var(--vub-clock-lift) * 0.6) calc(var(--vub-clock-lift) * 0.6) var(--vub-clock-lift) rgba(0, 0, 0, 0.45),
		calc(var(--vub-clock-lift) * 3.2) calc(var(--vub-clock-lift) * 3.2) calc(var(--vub-clock-lift) * 8) rgba(0, 0, 0, 0.35);
}

/* Each line trimmed to its capitals and baseline, so the minutes' top meets
   the hours' top and the date sits on the hours' baseline exactly. */
.vub-clock__hours,
.vub-clock__minutes,
.vub-clock__day,
.vub-clock__date {
	display: block;
	text-box: trim-both cap alphabetic;
}

.vub-clock__hours {
	font-size: 44cqi;
	letter-spacing: -0.02em;
}

.vub-clock__side {
	display: flex;
	flex-direction: column;
	gap: 2.4cqi;
}

.vub-clock__minutes {
	margin-bottom: auto;
	font-size: 17cqi;
}

.vub-clock__day,
.vub-clock__date {
	font-size: 6.4cqi;
}

.vub-schedule__scroll {
	position: relative;   /* holds the cells' hidden labels in, or they widen the page on a phone */
	overflow-x: auto;
	border: var(--vub-rule);
	border-radius: var(--vub-radius-box);
	-webkit-overflow-scrolling: touch;
}

.vub-schedule__table {
	width: 100%;
	border-collapse: collapse;
	min-width: 720px;
	/* Astra gives a table a bottom margin, which left an empty strip inside the
	   frame below the last row, where the column lines stopped short. */
	margin: 0;
	/* ...and only a top and left edge: close it along the bottom too, in the
	   same light grey as its column lines. */
	border-bottom-width: 1px;
	font-size: var(--vub-text-sm);
}

.vub-schedule__table th,
.vub-schedule__table td {
	padding: var(--vub-space-sm) var(--vub-space-md);
	text-align: left;
	border-bottom: var(--vub-rule);
	vertical-align: middle;
}

.vub-schedule__table thead th {
	background-color: var(--vub-surface-2);
	font-size: var(--vub-text-xs);
	font-weight: var(--vub-weight-bold);
	letter-spacing: var(--vub-tracking-wide);
	text-transform: uppercase;
	color: var(--vub-text-muted);
	white-space: nowrap;
}

.vub-schedule__table tbody tr:last-child td { border-bottom: 0; }

.vub-schedule__table tbody tr:hover { background-color: var(--vub-surface); }

.vub-schedule__time {
	font-family: var(--vub-font-mono);
	color: var(--vub-white);
	white-space: nowrap;
}

.vub-schedule__class { color: var(--vub-white); font-weight: var(--vub-weight-semibold); }

.vub-schedule__tag {
	display: inline-block;
	padding: 0.25em 0.7em;
	border-radius: var(--vub-radius-pill);
	background-color: var(--vub-red-soft);
	color: var(--vub-red);
	font-size: var(--vub-text-xs);
	font-weight: var(--vub-weight-semibold);
	letter-spacing: var(--vub-tracking-wide);
	text-transform: uppercase;
}

/* The level's words, inside its pill — painted on the wall with the rest of
   the timetable (schedule.php), while the pill keeps its own ground. */
.vub-schedule__tag-label { display: block; }

.vub-schedule__note {
	margin-top: var(--vub-space-md);
	font-size: var(--vub-text-sm);
	color: var(--vub-text-faint);
}

/* On the relief wall the timetable is painted on it too (.vub-ink, base.css),
   so nothing of it may be a solid panel in front of the wall: the header row's
   band and the row under the pointer are a wash of dark paint instead, and
   the wall's relief shows through them. Darkened about as far as the solid
   colours they stand in for. The band moves from the cells to the row, since
   a painted cell keeps only its words. */
.is-relief .vub-schedule__table thead th { background-color: transparent; }

.is-relief .vub-schedule__table thead tr { background-color: rgba(0, 0, 0, 0.22); }

.is-relief .vub-schedule__table tbody tr:hover { background-color: rgba(0, 0, 0, 0.36); }

/* And its column lines and outer edge — Astra's table borders, a solid light
   grey — are painted on as well: the same grey, a little see-through, so the
   wall's light and shade comes through them too. */
.is-relief .vub-schedule__table { border-color: rgba(209, 213, 219, 0.7); }

.is-relief .vub-schedule__table th,
.is-relief .vub-schedule__table td { border-right-color: rgba(209, 213, 219, 0.7); }

/* ---------------------------------------------------------------------------
   6. COACHES — the ring band and its heading live in ring.css
--------------------------------------------------------------------------- */
/* The ring opens the section and the heading sits inside its band, already
   below the band's own padding (.vub-ring__overlay) — so the section adds no
   top padding of its own. The gap above the heading is just
   --vub-ring-head-pad. */
.vub-coaches { padding-top: 0; }

/* Straight into the gallery, on the same background: the section ends at the
   ring's edge, and the gallery's top padding is the whole gap — see below. */
.vub-coaches:has(+ .vub-gallery),
.vub-coaches:has(+ .vub-band > section.vub-gallery:first-of-type) { padding-bottom: 0; }

.vub-coaches:has(+ .vub-gallery) .vub-ring:last-child,
.vub-coaches:has(+ .vub-band > section.vub-gallery:first-of-type) .vub-ring:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------------------
   7. ACHIEVEMENTS — counters + honours list
--------------------------------------------------------------------------- */
.vub-achievements {
	background-color: var(--vub-surface);
	/* Near-black photograph: it needs a lift to read at all, and the full
	   --vub-overlay (0.72) would bury it again. */
	--vub-parallax-brightness: 1.6;
	--vub-parallax-scrim: rgba(8, 9, 10, 0.4);
}

.vub-achievements__counters {
	--min: 200px;
	margin-bottom: var(--vub-space-2xl);
	text-align: center;
}

.vub-achievements__value {
	display: block;
	font-family: var(--vub-font-display);
	font-size: var(--vub-text-3xl);
	font-weight: var(--vub-weight-black);
	line-height: 1;
	color: var(--vub-white);
}

.vub-achievements__label {
	display: block;
	margin-top: var(--vub-space-2xs);
	font-size: var(--vub-text-xs);
	letter-spacing: var(--vub-tracking-wide);
	text-transform: uppercase;
	color: var(--vub-text-muted);
}

.vub-achievements__list { margin: 0; padding: 0; list-style: none; }

.vub-achievements__row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--vub-space-sm);
	align-items: baseline;
	padding-block: var(--vub-space-md);
	border-top: var(--vub-rule);
	margin: 0;
}

.vub-achievements__year {
	flex: 0 0 5rem;
	font-family: var(--vub-font-mono);
	font-size: var(--vub-text-sm);
	color: var(--vub-red);
}

.vub-achievements__title { flex: 1 1 18rem; color: var(--vub-white); font-weight: var(--vub-weight-semibold); }

.vub-achievements__detail { flex: 1 1 12rem; color: var(--vub-text-muted); font-size: var(--vub-text-sm); }

/* ---------------------------------------------------------------------------
   8. GALLERY — five slanted frames on one drawn sheet
   The geometry is all in templates/sections/gallery.php. The sheet arrives
   with its aspect ratio, and each frame with its box and clip as custom
   properties, all worked out from the same lines the SVG draws.
--------------------------------------------------------------------------- */


/* The same gap above the heading as the coaches section has above its own:
   that section's top padding plus the ring band's padding over its heading.
   Built from the same two tokens, so the two match at every width. The bottom
   is untouched. */
.vub-gallery { padding-top: calc(var(--vub-section-y-tight) + var(--vub-ring-head-pad)); }

/* Below 800px the frames would shrink past the point of reading as
   photographs, so the sheet holds that width and the strip scrolls sideways
   instead — on phones and tablets in portrait; from 1024px up it fits. It runs out through the gutters to the screen edges, so it reads as
   a strip that carries on rather than a box that has been cut off. At every
   width where the sheet fits, nothing scrolls and the gutters stay empty. */
.vub-gallery__strip {
	margin-inline: calc(var(--vub-gutter) * -1);
	padding-inline: var(--vub-gutter);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scrollbar-width: thin;
	scrollbar-color: var(--vub-border-strong) transparent;
}

.vub-gallery__sheet {
	position: relative;
	min-width: 50rem;
}

.vub-gallery__item {
	position: absolute;
	left: var(--vub-frame-x);
	top: var(--vub-frame-y);
	width: var(--vub-frame-w);
	height: var(--vub-frame-h);
	margin: 0;
	clip-path: var(--vub-frame-clip);
	/* Held back at rest, the backdrop showing faintly through; the one under
	   the pointer comes up to full strength as it comes into colour, on the
	   same timing. */
	opacity: 0.7;
	transition: opacity calc(var(--vub-duration-slow) * 1.5) var(--vub-ease);
}

.vub-gallery__item:hover { opacity: 1; }

/* The photograph (or its stand-in) fills the frame's rectangle; the clip above
   cuts the frame out of it. No radius and no dashed border — the white lines
   are the edge now. */
.vub-gallery__item .vub-media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 0;
}

/* Black and white at rest; the one under the pointer comes up in its own
   colour as it eases in a little closer. Each picture keeps its subject in
   view inside the slanted crop — its focus is set per photo in gallery.php. */
.vub-gallery__item img {
	object-position: var(--vub-photo-focus, 50% 50%);
	filter: grayscale(1) contrast(1.06);
	transition:
		transform var(--vub-duration-slow) var(--vub-ease-out),
		filter calc(var(--vub-duration-slow) * 1.5) var(--vub-ease);
}

.vub-gallery__item:hover img {
	transform: scale(1.04);
	filter: grayscale(0) contrast(1);
}

/* The lines over the whole sheet are .vub-lines — base.css. */

.vub-gallery__more {
	display: flex;
	justify-content: flex-end;
	margin-top: var(--vub-space-xl);
}

/* ---------------------------------------------------------------------------
   9. MEMBERSHIP / PRICING
--------------------------------------------------------------------------- */
.vub-pricing__grid { --min: 280px; align-items: stretch; }

/* The grid is what its cards measure themselves against: one to a row, they
   make room for the boxer's reach (responsive.css, "Membership, one card to
   a row"). */
.vub-pricing__grid { container: vub-plans / inline-size; }

.vub-plan {
	display: flex;
	flex-direction: column;
	padding: var(--vub-space-xl) var(--vub-space-lg);
	background-color: var(--vub-surface-2);
	border: var(--vub-rule);
	border-radius: var(--vub-radius-box);
}

.vub-plan--featured {
	border-color: var(--vub-red);
	background-color: var(--vub-surface-3);
}

.vub-plan__badge {
	align-self: flex-start;
	margin-bottom: var(--vub-space-sm);
	padding: 0.3em 0.8em;
	border-radius: var(--vub-radius-pill);
	background-color: var(--vub-red);
	color: var(--vub-white);
	font-size: var(--vub-text-xs);
	font-weight: var(--vub-weight-bold);
	letter-spacing: var(--vub-tracking-wide);
	text-transform: uppercase;
}

.vub-plan__name { margin-bottom: var(--vub-space-2xs); font-size: var(--vub-text-lg); }

.vub-plan__price {
	display: flex;
	align-items: baseline;
	gap: 0.25em;
	margin-bottom: var(--vub-space-md);
	font-family: var(--vub-font-display);
	font-size: var(--vub-text-3xl);
	font-weight: var(--vub-weight-black);
	line-height: 1;
	color: var(--vub-white);
}

.vub-plan__period {
	font-family: var(--vub-font-body);
	font-size: var(--vub-text-sm);
	font-weight: var(--vub-weight-normal);
	color: var(--vub-text-muted);
}

.vub-plan__features {
	margin: 0 0 var(--vub-space-xl);
	padding: var(--vub-space-md) 0 0;
	list-style: none;
	border-top: var(--vub-rule);
	color: var(--vub-text-muted);
	font-size: var(--vub-text-base);
}

.vub-plan__features li {
	position: relative;
	padding-left: 1.5em;
	margin-bottom: var(--vub-space-2xs);
}

.vub-plan__features li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 8px;
	height: 2px;
	background-color: var(--vub-red);
}

.vub-plan__cta { margin-top: auto; }

/* ---------------------------------------------------------------------------
   The portrait cards — 'portrait' on a plan in pricing.php, being tried on the
   first two cards. Everything about a particular picture — its measurements
   and the colours picked from it — is in its tone block further down; this is
   the part they share.

   Shown stepped over, on every screen and all the time (the user's choice):
   the boxer at the right of the card, his hood reaching out past its edge, and
   the plan's content on the left. The card can also rest with him at the
   centre and the content hidden until it is hovered — switched off; see
   "Portrait card at rest" in responsive.css. The glide and fades below are
   that state's, and do nothing while it is off.
--------------------------------------------------------------------------- */
.vub-pricing { overflow-x: clip; }   /* the hood's reach never scrolls the page sideways on a phone */

/* How much the portrait cards' glass blurs the band's picture behind it — the
   one dial for the frost: raise it to frost the panes, lower it to clear
   them. At 1px the halftone dots and rules read through, softened, not lost. */
.vub-pricing { --vub-glass-blur: 1px; }

/* The size of the cards three across, as a share of the full row — the one
   dial for it (responsive.css, ≥ 1280px). The boxers are measured in card
   widths, so they scale with it; the text does not. */
.vub-pricing { --vub-pricing-scale: 0.9; }

.vub-plan--portrait {
	/* How far the figure reaches past the card's right edge once he has
	   stepped over — across the gap and half the next card's padding, so it
	   stops a clear 16px short of that card's text. */
	--vub-figure-reach: calc(var(--vub-grid-gap) + var(--vub-space-lg) - var(--vub-space-sm));

	/* The two places, as translates in the picture's own width, worked out from
	   the tone's measurements: at rest, the figure itself centred (not the
	   picture, which may have more empty room on one side); stepped over, its
	   far right edge out at the reach. */
	--vub-figure-centre: calc((0.5 - (var(--vub-figure-left) + var(--vub-figure-right)) / 2) * 100%);
	--vub-figure-step: calc(((1 + var(--vub-figure-size)) / (2 * var(--vub-figure-size)) - var(--vub-figure-right)) * 100% + var(--vub-figure-reach));

	/* The glide. Built from the motion tokens, so reduced motion (1ms) stops it
	   along with every delay below. Eased at both ends, the same both ways. */
	--vub-move: calc(var(--vub-duration-slow) * 2.2);
	--vub-move-ease: cubic-bezier(0.65, 0, 0.35, 1);

	/* Above the card to its right, so the figure is drawn over that card rather
	   than under it — each portrait card stacks above the next one along, the
	   order given in pricing.php. At rest nothing reaches out, so then this
	   changes nothing. */
	z-index: var(--vub-plan-stack, 1);
	/* The picture and the content share one cell, so the card is always tall
	   enough for its content, however narrow it gets. */
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	padding: 0;
	/* Clipped top and bottom — that is the crop — but open at the sides for the
	   hood. clip rather than hidden: hidden on one axis would make the other
	   scroll. */
	overflow-x: visible;
	overflow-y: clip;
	/* The tone's colours, as glass: the tone laid thinly over the band's
	   picture, so the picture reads through it under the faint blur both rows
	   share, deepening a little toward the foot. A breath of white at the top
	   left where the light catches the pane; the edge in the tone, brighter
	   along the top. The light behind the head is on .vub-plan__portrait. */
	border-color: var(--vub-portrait-edge);
	border-top-color: rgba(255, 255, 255, 0.26);
	background:
		radial-gradient(120% 55% at 0% 0%, rgba(255, 255, 255, 0.05), transparent 62%),
		linear-gradient(
			180deg,
			color-mix(in srgb, var(--vub-portrait-top) 50%, transparent) 0%,
			color-mix(in srgb, var(--vub-portrait-mid) 38%, transparent) 50%,
			color-mix(in srgb, var(--vub-portrait-foot) 55%, transparent) 100%
		);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.08),
		0 24px 48px -16px rgba(0, 0, 0, 0.5);
	-webkit-backdrop-filter: blur(var(--vub-glass-blur)) saturate(120%);
	backdrop-filter: blur(var(--vub-glass-blur)) saturate(120%);
}

/* Without backdrop-filter (or color-mix), the tone as it was: solid, deepening
   toward the foot until it meets the darkest folds of the clothes, so the
   crop at the bottom edge has no seam to show. */
@supports not (((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) and (color: color-mix(in srgb, red, blue))) {
	.vub-plan--portrait {
		background: linear-gradient(180deg, var(--vub-portrait-top) 0%, var(--vub-portrait-mid) 50%, var(--vub-portrait-foot) 100%);
	}
}

/* The picture and its light. Grows to fill the card when a neighbour, or the
   card's own content, makes it taller than the crop asks for, and holds the
   figure to the foot, so the extra becomes headroom and the crop never
   moves. */
.vub-plan__portrait {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	grid-area: 1 / 1;
}

/* The light behind the head: a backlight in the picture's own colour, faded
   out well before the edges. Two of them — behind the head at the centre, and
   where the head ends up — cross-fading as he moves, so the light goes with
   him. */
.vub-plan__portrait::before,
.vub-plan__portrait::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: radial-gradient(62% 40% at var(--vub-light-x) 22%, var(--vub-portrait-glow), transparent 72%);
	-webkit-mask-image: radial-gradient(85% 60% at var(--vub-light-x) 24%, #000 0%, transparent 100%);
	mask-image: radial-gradient(85% 60% at var(--vub-light-x) 24%, #000 0%, transparent 100%);
	transition: opacity var(--vub-move) var(--vub-move-ease);
}

.vub-plan__portrait::before { --vub-light-x: var(--vub-light-rest); opacity: 0; }
.vub-plan__portrait::after  { --vub-light-x: var(--vub-light-step); opacity: 1; }

/* The figure. In the flow, so it is what sizes the card: centred, headroom
   above, and the part of the picture below the crop hung outside the box (a
   negative margin, in the same card-width units) where the card's clip hides
   it. Stepped over, it sits translated to the right. Never a pointer target,
   so the hood reaching over the next card cannot pick up the pointer there. */
.vub-plan__figure {
	position: relative;
	flex: none;
	align-self: center;
	width: calc(var(--vub-figure-size) * 100%);
	height: auto;
	margin-top: calc(var(--vub-portrait-headroom) * 100%);
	margin-bottom: calc((var(--vub-figure-show) - 1) * var(--vub-portrait-ratio) * var(--vub-figure-size) * 100%);
	pointer-events: none;
	transform: translateX(var(--vub-figure-step));
	transition: transform var(--vub-move) var(--vub-move-ease);
}

/* The plan's content, laid over the left of the card. */
.vub-plan__body {
	position: relative;
	grid-area: 1 / 1;
	z-index: 1;
	display: flex;
	flex-direction: column;
	padding: var(--vub-space-xl) var(--vub-space-lg);
}

/* A shade from the left under the copy, so it reads wherever the figure comes
   in beneath it — light enough that the glass still shows the band's picture
   through it; the halo on the words does the rest. Comes and goes with the
   copy. */
.vub-plan__body::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(var(--vub-portrait-shade), 0.62) 0%, rgba(var(--vub-portrait-shade), 0.44) 45%, rgba(var(--vub-portrait-shade), 0.18) 65%, transparent 85%);
	transition: opacity calc(var(--vub-move) * 0.6) var(--vub-ease-out) var(--vub-in-delay, 0s);
	--vub-in-delay: calc(var(--vub-move) * 0.25);
}

/* Stacked from the top rather than the button sent to the foot, so the copy
   stays as far as it can from the figure lower down. The button keeps its own
   width even on the smallest phones, where every other button goes full
   width: here the right of the card is the boxer's. */
.vub-plan__body .vub-plan__features { margin-bottom: var(--vub-space-lg); }
.vub-plan__body .vub-plan__cta { margin-top: 0; }
.vub-plan__body .vub-btn { width: auto; }

/* The copy will cross the figure. The text does not shrink with the card, so
   on anything narrower than a wide desktop the longer lines and the button
   reach in over him — as the copy does in the design this follows. So it is
   made to read wherever it lands: a dark halo in the tone's own shade behind
   every line, the feature list in full white rather than muted, and the
   outlined button given a dark fill so it cannot vanish against a bright
   robe. (Its hover, white with dark text, is left as it is.) */
.vub-plan__body {
	text-shadow:
		0 1px 2px rgba(var(--vub-portrait-shade), 0.9),
		0 0 14px rgba(var(--vub-portrait-shade), 0.85);
}

.vub-plan__body .vub-plan__badge,
.vub-plan__body .vub-btn { text-shadow: none; }

.vub-plan__body .vub-plan__features { color: var(--vub-text); }

.vub-plan__body .vub-btn--secondary:not(:hover):not(:focus-visible) {
	background-color: rgba(var(--vub-portrait-shade), 0.82);
}

/* In one after another, into the room he leaves as he moves across. */
.vub-plan__body > * {
	transition:
		opacity calc(var(--vub-move) * 0.6) var(--vub-ease-out) var(--vub-in-delay, 0s),
		transform calc(var(--vub-move) * 0.6) var(--vub-ease-out) var(--vub-in-delay, 0s);
}

.vub-plan__body > :nth-child(1) { --vub-in-delay: calc(var(--vub-move) * 0.3); }
.vub-plan__body > :nth-child(2) { --vub-in-delay: calc(var(--vub-move) * 0.38); }
.vub-plan__body > :nth-child(3) { --vub-in-delay: calc(var(--vub-move) * 0.46); }
.vub-plan__body > :nth-child(4) { --vub-in-delay: calc(var(--vub-move) * 0.54); }
.vub-plan__body > :nth-child(5) { --vub-in-delay: calc(var(--vub-move) * 0.62); }

/* The tones. Each picture's measurements, then the colours picked from it.

     size      the figure's width as a share of the card's
     show      how much of it shows from the top down; the rest is cropped
     headroom  clear space above it, as a share of the card's width
     left/right  where the figure itself starts and ends across the picture,
               as shares of its width — what "centred" and "reaches out" are
               measured against

   size, show and headroom together set the card's height, and the row's,
   since the cards beside it stretch to match. A card that comes out shorter
   than its row simply gets more headroom: the figure is held to the foot. */

/* Blue: the hooded robe, side-on and looking up, arms crossed. 0.75 takes in
   the crossed arms whole and ends in the robe below them. Navy and the
   robe's cyan. */
.vub-plan--portrait-blue {
	--vub-figure-size: 0.86;
	--vub-figure-show: 0.75;
	--vub-portrait-headroom: 0.1;
	--vub-figure-left: 0.021;
	--vub-figure-right: 0.992;
	--vub-light-rest: 62%;
	--vub-light-step: 80%;

	--vub-portrait-top: #0c2c4f;
	--vub-portrait-mid: #081d36;
	--vub-portrait-foot: #040c17;
	--vub-portrait-glow: rgba(36, 150, 240, 0.6);
	--vub-portrait-edge: rgba(64, 204, 255, 0.24);
	--vub-portrait-shade: 4, 12, 23;
}

/* Mint: the hoodie, side-on and head bowed, facing right — so stepped over,
   it is his hood and face that reach out of the card. A squarer picture, shown
   whole, down to the hips, at the same width as the blue, so the two men stand
   at the same scale side by side. Deep teal and the hoodie's mint, which also
   takes the place of the featured card's red edge. */
.vub-plan--portrait-mint {
	--vub-figure-size: 0.86;
	--vub-figure-show: 1;
	--vub-portrait-headroom: 0.1;
	--vub-figure-left: 0.146;
	--vub-figure-right: 0.999;
	--vub-light-rest: 65%;
	--vub-light-step: 88%;

	--vub-portrait-top: #0d2e2a;
	--vub-portrait-mid: #08201d;
	--vub-portrait-foot: #040f0e;
	--vub-portrait-glow: rgba(60, 190, 155, 0.5);
	--vub-portrait-edge: rgba(122, 219, 195, 0.26);
	--vub-portrait-shade: 4, 15, 14;
}

/* Coral: the boxer in the torn sleeveless shirt and training mask, nearly
   square-on, a wrapped hand at the mask. Shown down to the waistband at the same width
   as the others — the last 1% trimmed so this card does not set the row a few
   pixels taller than the blue one does. He spans almost the whole picture, so
   stepped over it is his raised elbow that reaches out of the card. Deep
   maroon and the picture's coral, close kin to the site's own red. */
.vub-plan--portrait-coral {
	--vub-figure-size: 0.86;
	--vub-figure-show: 0.99;
	--vub-portrait-headroom: 0.1;
	--vub-figure-left: 0.06;
	--vub-figure-right: 0.999;
	--vub-light-rest: 56%;
	--vub-light-step: 76%;

	--vub-portrait-top: #3a1316;
	--vub-portrait-mid: #250b0d;
	--vub-portrait-foot: #120506;
	--vub-portrait-glow: rgba(226, 92, 80, 0.5);
	--vub-portrait-edge: rgba(250, 133, 114, 0.26);
	--vub-portrait-shade: 18, 5, 6;
}

/* Purple: the coral's boxer again — the torn sleeveless shirt, the training
   mask, the wrapped hand at it — in a purple duotone. The same picture in all
   but its colour, so the same measurements as the coral. Deep violet from the
   shirt's folds and the lilac of his skin, picked from the picture as the
   coral was from its own. */
.vub-plan--portrait-purple {
	--vub-figure-size: 0.86;
	--vub-figure-show: 0.99;
	--vub-portrait-headroom: 0.1;
	--vub-figure-left: 0.052;
	--vub-figure-right: 0.998;
	--vub-light-rest: 56%;
	--vub-light-step: 76%;

	--vub-portrait-top: #2a0d40;
	--vub-portrait-mid: #1c072c;
	--vub-portrait-foot: #10031c;
	--vub-portrait-glow: rgba(170, 105, 230, 0.5);
	--vub-portrait-edge: rgba(231, 189, 253, 0.26);
	--vub-portrait-shade: 16, 3, 28;
}

.vub-pricing__note {
	margin-top: var(--vub-space-lg);
	font-size: var(--vub-text-sm);
	color: var(--vub-text-faint);
}

/* "Get started": online payments are not open yet, so each plan's button
   says so in a small window (pricing.php, assets/js/notice.js), with the
   way to the contact section in it. The program details window's frame,
   cut down: the same backdrop, card and fade, and the words and two buttons
   on their own. */
.vub-notice {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: var(--vub-space-sm);
	border: 0;
	background: transparent;
	color: var(--vub-text);
	font-size: var(--vub-text-base);
	letter-spacing: normal;
	text-align: left;
	overflow: hidden;
}

.vub-notice[open] {
	display: flex;
	align-items: center;
	justify-content: center;
}

.vub-notice::backdrop {
	background-color: var(--vub-overlay);
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
	opacity: 0;
	transition: opacity 220ms var(--vub-ease);
}

.vub-notice.is-shown::backdrop { opacity: 1; }

.vub-notice__card {
	width: min(100%, 28rem);
	max-height: 100%;
	overflow-y: auto;
	padding: clamp(1.5rem, 5vw, 2.25rem);
	border: var(--vub-border-width) solid var(--vub-border-strong);
	background-color: var(--vub-surface);
	box-shadow: var(--vub-shadow-lg);
	opacity: 0;
	transform: translateY(14px) scale(0.985);
	transition: opacity 220ms var(--vub-ease), transform 280ms var(--vub-ease-out);
}

.vub-notice.is-shown .vub-notice__card {
	opacity: 1;
	transform: none;
}

.vub-theme .vub-notice__title {
	margin: 0 0 0.75rem;
	font-family: var(--vub-font-display);
	font-size: clamp(1.375rem, 1vw + 1.1rem, 1.75rem);
	font-weight: var(--vub-weight-black);
	line-height: 1.05;
	letter-spacing: 0.005em;
	text-transform: uppercase;
	color: var(--vub-white);
}

.vub-theme .vub-notice__text {
	margin: 0;
	font-size: var(--vub-text-base);
	line-height: 1.6;
	color: var(--vub-text-muted);
}

.vub-notice__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: var(--vub-space-lg);
}

/* Focus lands on the window's first button as it opens, and goes back to
   "Get started" as it closes, whichever way it was opened. A mouse should not
   see Astra's dotted :focus outline for that. The theme's :focus-visible ring
   stays for the keyboard. */
.vub-notice :focus:not(:focus-visible),
.vub-pricing .vub-btn:focus:not(:focus-visible) { outline: none; }

/* The page under it holds still, as under the program details window. */
html.vub-notice-open {
	overflow: hidden;
	scrollbar-gutter: stable;
}

/* ---------------------------------------------------------------------------
   11. FAQ — native <details> accordion, enhanced (not replaced) by main.js
--------------------------------------------------------------------------- */
.vub-faq__list { border-top: var(--vub-rule); }

.vub-faq__item {
	border-bottom: var(--vub-rule);
}

.vub-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--vub-space-md);
	padding-block: var(--vub-space-md);
	cursor: pointer;
	list-style: none;
	font-size: var(--vub-text-lg);
	font-weight: var(--vub-weight-semibold);
	color: var(--vub-white);
	transition: var(--vub-transition-color);
}

.vub-faq__question::-webkit-details-marker { display: none; }

.vub-faq__question:hover { color: var(--vub-red); }

.vub-faq__icon {
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	position: relative;
}

.vub-faq__icon::before,
.vub-faq__icon::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	background-color: currentColor;
}

.vub-faq__icon::before { width: 14px; height: 2px; }
.vub-faq__icon::after  { width: 2px;  height: 14px; transition: var(--vub-transition-transform); }

.vub-faq__item[open] .vub-faq__icon::after { transform: scaleY(0); }

.vub-faq__answer {
	padding-bottom: var(--vub-space-md);
	color: var(--vub-text-muted);
	max-width: 52rem;
}

/* ---------------------------------------------------------------------------
   12. CONTACT / LOCATION
--------------------------------------------------------------------------- */
/* The heading, the details, then the note, one under another; from 1024px
   the heading and details on the right and the note on the left
   (responsive.css). No row gap: the heading's own margin spaces it from the
   details, and the note keeps its distance with a margin of its own. */
.vub-contact__layout {
	display: grid;
	column-gap: var(--vub-grid-gap);
	grid-template-columns: 1fr;
}

.vub-contact__details { margin: 0; }

.vub-contact__row {
	padding-block: var(--vub-space-md);
	border-bottom: var(--vub-rule);
}

.vub-contact__label {
	display: block;
	margin-bottom: var(--vub-space-3xs);
	font-size: var(--vub-text-xs);
	font-weight: var(--vub-weight-bold);
	letter-spacing: var(--vub-tracking-wider);
	text-transform: uppercase;
	color: var(--vub-red);
}

.vub-contact__value { margin: 0; color: var(--vub-white); }

/* Beside the details, a few words asking the visitor in. Its title sits level
   with the first detail's label: both start one row's padding down. */
.vub-contact__note {
	max-width: 36rem;
	margin-top: var(--vub-grid-gap);
	padding-top: var(--vub-space-md);
	font-size: var(--vub-text-lg);
	color: var(--vub-text-muted);
}

.vub-contact__note-title {
	margin-bottom: var(--vub-space-md);
	text-transform: uppercase;
}

/* The last line with the Location button at its end. Where the line is too
   narrow for both, the button drops below it. */
.vub-contact__next {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--vub-space-sm) var(--vub-space-md);
}

.vub-contact__next > p { margin: 0; }

.vub-contact__note-next {
	font-weight: var(--vub-weight-medium);
	color: var(--vub-white);
}

/* Contact stands on its own ground, not the band's: an opaque section, so the
   band's picture (Membership's red dots and streaks) stops dead at its top
   edge — one straight line across the page — and nothing of Contact's reaches
   up past it. The page's black is only the ground under the wall. */
.vub-band > .vub-contact {
	background-color: var(--vub-black);
}

/* Half a section's space above and below: the wall is a ground of its own, so
   the words need less air to stand clear of Membership and the closing band. */
.vub-contact {
	--vub-contact-y: calc(var(--vub-section-y) * 0.5);

	padding-block: var(--vub-contact-y);
}

/* The world map in relief behind the section (contact.php). A wall of its own,
   edge to edge: a clean line where it meets Membership above and the closing
   band below, with no fade at either.

   The map is a render of the Blender project ~/Blender/WorldMapRelief
   (design/README.md, "world-map/"), and it fills one frame,
   .vub-contact__frame, in the picture's 1672×941 proportions: everything about
   where the map sits is here. The frame is sized and placed against the wall
   with container units, and the wall's own gradient carries on past the
   frame's edges where it does not cover.

   On a phone and a tablet the map is framed deliberately rather than
   squeezed in: at nearly twice the section's width, its middle (the Atlantic
   to India) behind the heading, fading down into the wall. From 1024px the
   whole map shows (responsive.css). */
.vub-contact--map {
	isolation: isolate;
}

.vub-contact__wall {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
	container-type: size;
	background: linear-gradient(180deg, var(--vub-map-wall-top) 0, var(--vub-map-wall-bottom) 46%);
}

/* The frame, in the picture's proportions. --vub-map-w is its width; the map
   itself (its continents, the Aleutians to Chukotka, with a margin) is the box
   from 3.5% to 92.5% across and 7% to 89% down, centred on 48% / 48.03% of
   the frame. */
.vub-contact__frame {
	--vub-map-w: 190cqw;

	position: absolute;
	left: calc(50cqw - var(--vub-map-w) * 0.48);
	top: calc(var(--vub-map-w) / -1.7768 * 0.04);
	width: var(--vub-map-w);
	aspect-ratio: 1672 / 941;
	-webkit-mask-image: linear-gradient(to bottom, #000 0, #000 62%, transparent 96%);
	mask-image: linear-gradient(to bottom, #000 0, #000 62%, transparent 96%);
}

.vub-contact__still {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

/* The words' ground: the wall darkened behind the heading and the details. */
.vub-contact__wall::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(8, 9, 10, 0.3) 0%, rgba(8, 9, 10, 0.42) 26%, rgba(8, 9, 10, 0.22) 50%, rgba(8, 9, 10, 0.1) 100%);
	transition: opacity 600ms var(--vub-ease);
}

/* LOCATION — the button finds the club on the map (assets/js/contact-locate.js).
   .is-away: the words leave, the note out to the left and the heading and the
   details out to the right, faster and faster, and the section clips them as
   they go; the script zooms the map in on Europe as the last of them leave.
   .is-located: the zoom has arrived and the place lights up. .is-returning:
   on the way back out. Coming back, the words glide in and settle. They are held one level out from .vub-reveal, so this never fights
   the reveal's own transform. .is-deep: the lit-up place has been pressed
   and the map dives on into it; .is-mapped: Google's map of its capital has
   faded in over it. */
.vub-contact--locate {
	--vub-locate-out: 600ms;
	--vub-locate-in: 800ms;
	/* Back comes in once the heading has cleared its corner: late in one
	   column, where the heading leaves from that very spot; earlier beside
	   the note (responsive.css). */
	--vub-locate-back-at: calc(var(--vub-locate-out) * 0.8);
	--vub-locate-ease-out: cubic-bezier(0.4, 0, 0.7, 0.2);

	overflow: clip;
}

.vub-contact--locate .vub-contact__layout > .vub-section__head,
.vub-contact--locate .vub-contact__main,
.vub-contact--locate .vub-contact__note {
	transition: translate var(--vub-locate-in) var(--vub-ease-out), visibility 0s;
}

.vub-contact.is-away .vub-contact__layout > .vub-section__head,
.vub-contact.is-away .vub-contact__main,
.vub-contact.is-away .vub-contact__note {
	visibility: hidden;
	transition: translate var(--vub-locate-out) var(--vub-locate-ease-out), visibility 0s linear var(--vub-locate-out);
}

.vub-contact.is-away .vub-contact__layout > .vub-section__head,
.vub-contact.is-away .vub-contact__main {
	translate: 100vw 0;
}

.vub-contact.is-away .vub-contact__note {
	translate: -100vw 0;
}

/* With the words gone, so is their ground. */
.vub-contact.is-away .vub-contact__wall::after {
	opacity: 0;
}

/* Astra's scroll-to-top square stays out of the zoomed map. */
.vub-theme:has(.vub-contact.is-away) #ast-scroll-top {
	opacity: 0;
	visibility: hidden;
}

/* No tap flash on the two buttons that start and end it all, and no ring
   when the script hands them the focus after a click or a tap (Astra rings
   every focused link); the keyboard's focus ring stays. */
.vub-contact__locate,
.vub-contact__back {
	-webkit-tap-highlight-color: transparent;
}

.vub-theme .vub-contact__locate:focus:not(:focus-visible),
.vub-theme .vub-contact__back:focus:not(:focus-visible) {
	outline: none;
}

/* The picture's frame zooms from its own corner (the script's transform). */
.vub-contact--locate .vub-contact__frame {
	transform-origin: 0 0;
}

/* The sharp render, drawn over the zooming picture. */
.vub-contact__zoom {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.vub-contact__zoom[hidden] {
	display: none;
}

/* Back to the words: where they started, at the top of the part of the wall
   that was on screen (--vub-locate-top, from the script). It comes in as the
   words go, so the zoom can be stopped at any point. Above Google's map
   too. */
.vub-contact__back {
	position: absolute;
	top: calc(var(--vub-locate-top, 0px) + var(--vub-contact-y));
	left: var(--vub-gutter);
	z-index: 2;
	gap: var(--vub-space-xs);
	opacity: 0;
	visibility: hidden;
	translate: 0 -0.5rem;
	transition:
		var(--vub-transition-color),
		opacity 250ms var(--vub-ease),
		translate 250ms var(--vub-ease),
		visibility 0s linear 250ms;
}

/* Astra paints every focused <button> its own blue (button:focus). Back is
   given the focus by the script, after a click or a tap as much as a key, so
   it keeps the theme's colours unless the focus came from the keyboard. */
.vub-theme .vub-contact__back:focus:not(:focus-visible) {
	border-color: var(--vub-border-strong);
	background-color: transparent;
	color: var(--vub-white);
	box-shadow: none;
}

.vub-theme .vub-contact__back:focus:not(:focus-visible):hover {
	border-color: var(--vub-white);
	background-color: var(--vub-white);
	color: var(--vub-black);
}

.vub-contact.is-away .vub-contact__back {
	opacity: 1;
	visibility: visible;
	translate: none;
	transition:
		var(--vub-transition-color),
		opacity 450ms var(--vub-ease-out) var(--vub-locate-back-at),
		translate 450ms var(--vub-ease-out) var(--vub-locate-back-at),
		visibility 0s;
}

/* It goes as soon as it has been pressed, before the words come back. */
.vub-contact.is-away.is-returning .vub-contact__back {
	opacity: 0;
	visibility: hidden;
	transition:
		var(--vub-transition-color),
		opacity 250ms var(--vub-ease),
		translate 250ms var(--vub-ease),
		visibility 0s linear 250ms;
}

/* Over Google's map, which is light: solid, and over in the top right
   corner, clear of Google's card for the place (top left, its height up to
   Google) and its buttons (the bottom corners). It fades in there, and fades
   in back in its own place once the map has gone (.is-unmapping). */
.vub-contact.is-away.is-deep .vub-contact__back {
	transition:
		var(--vub-transition-color),
		opacity 450ms var(--vub-ease-out),
		translate 400ms var(--vub-ease),
		visibility 0s;
}

.vub-contact.is-away.is-mapped .vub-contact__back {
	right: var(--vub-gutter);
	left: auto;
	animation: vub-back-swap 500ms var(--vub-ease-out);
}

.vub-contact.is-away.is-unmapping .vub-contact__back {
	animation: vub-back-swap 500ms var(--vub-ease-out);
}

@keyframes vub-back-swap {
	from {
		opacity: 0;
		translate: 0 -0.5rem;
	}
}

.vub-theme .vub-contact.is-mapped .vub-contact__back,
.vub-theme .vub-contact.is-mapped .vub-contact__back:focus:not(:focus-visible) {
	border-color: var(--vub-black);
	background-color: var(--vub-black);
	color: var(--vub-white);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.vub-theme .vub-contact.is-mapped .vub-contact__back:hover,
.vub-theme .vub-contact.is-mapped .vub-contact__back:focus:not(:focus-visible):hover {
	border-color: var(--vub-white);
	background-color: var(--vub-white);
	color: var(--vub-black);
}

.vub-theme .vub-contact.is-mapped .vub-contact__back:focus-visible {
	outline: 2px solid var(--vub-black);
	outline-offset: 2px;
	box-shadow: 0 0 0 2px var(--vub-white);
}

/* The place, lit up: its outline over the wall (framed by the script on the
   zoom's view), filled and edged in yellow, glowing, and breathing slowly once
   it is there. */
.vub-contact__glow {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	filter:
		drop-shadow(0 0 3px var(--vub-map-glow))
		drop-shadow(0 0 16px color-mix(in srgb, var(--vub-map-glow) 70%, transparent))
		drop-shadow(0 0 40px color-mix(in srgb, var(--vub-map-glow) 38%, transparent));
	transition: opacity 250ms var(--vub-ease), visibility 0s linear 250ms;
}

.vub-contact.is-located .vub-contact__glow {
	opacity: 1;
	visibility: visible;
	transition: opacity 900ms var(--vub-ease-out), filter 500ms var(--vub-ease), visibility 0s;
}

.vub-contact__glow svg {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.vub-contact__glow path {
	fill: color-mix(in srgb, var(--vub-map-glow) 32%, transparent);
	stroke: var(--vub-map-glow);
	stroke-width: 1.5px;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
	transition: fill 500ms var(--vub-ease);
}

.vub-contact.is-located .vub-contact__glow svg {
	animation: vub-glow-breathe 2.8s var(--vub-ease) 900ms infinite;
}

@keyframes vub-glow-breathe {
	0%, 100% { opacity: 1; }
	50%      { opacity: 0.72; }
}

/* The place's button: over the lit-up place once the zoom has arrived (the
   script sizes and places it), and the place brightens under the pointer or
   the keyboard's focus. Pressed, the map dives on into it. */
.vub-contact__place {
	position: absolute;
	z-index: 1;
	display: block;
	padding: 0;
	border: 0;
	border-radius: 30%;
	background: none;
	cursor: pointer;
	visibility: hidden;
	-webkit-tap-highlight-color: transparent;
}

.vub-contact__place[hidden] {
	display: none;
}

.vub-contact.is-located:not(.is-deep) .vub-contact__place {
	visibility: visible;
}

/* Astra gives every <button> its own colours and ring. */
.vub-theme .vub-contact__place,
.vub-theme .vub-contact__place:hover,
.vub-theme .vub-contact__place:focus {
	border: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	outline: none;
}

.vub-theme .vub-contact__place:focus-visible {
	outline: 2px solid var(--vub-focus);
	outline-offset: 6px;
}

.vub-contact:has(.vub-contact__place:hover) .vub-contact__glow path,
.vub-contact:has(.vub-contact__place:focus-visible) .vub-contact__glow path {
	fill: color-mix(in srgb, var(--vub-map-glow) 55%, transparent);
}

/* On the dive the place holds still, its fill thins as it grows to fill the
   section, and its glow is lighter (the outline is drawn afresh every
   frame). */
.vub-contact.is-deep .vub-contact__glow {
	filter:
		drop-shadow(0 0 3px var(--vub-map-glow))
		drop-shadow(0 0 10px color-mix(in srgb, var(--vub-map-glow) 55%, transparent))
		drop-shadow(0 0 0 transparent);
}

.vub-contact.is-deep .vub-contact__glow svg {
	animation: none;
}

.vub-contact.is-deep .vub-contact__glow path {
	fill: color-mix(in srgb, var(--vub-map-glow) 14%, transparent);
}

/* Google's map of the place's capital, over the stage (the script places it,
   and loads it only once the place is pressed). It fades in once the dive has
   arrived and the map has had a moment to draw: lined up with the wall, so
   the relief turns into it. Its frame is scaled from its corner to the
   dive's scale (the script sizes it). */
.vub-contact__gmap {
	position: absolute;
	z-index: 1;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity 350ms var(--vub-ease);
}

.vub-contact.is-mapped .vub-contact__gmap {
	opacity: 1;
	pointer-events: auto;
	transition: opacity 900ms var(--vub-ease);
}

/* The theme caps every iframe at its container's width (Astra's
   max-width: 100%), but scaled down this one is wider than the stage. */
.vub-contact__gmap iframe {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	border: 0;
	transform-origin: 0 0;
}

/* On the journey to the spot (contact-locate.js): the script fades the maps
   in itself, they are moved as pictures, and none of them takes the pointer
   until it has landed. Their box is there from the start (each map is
   transparent until its turn): inside a transparent box, Chrome counts a
   map as hidden and does not draw it until the box shows. */
.vub-contact__gmap.is-flying {
	opacity: 1;
	transition: none;
}

.vub-contact__gmap.is-flying iframe {
	pointer-events: none;
	will-change: transform, opacity;
}

/* ---------------------------------------------------------------------------
   ASTRA CONTAINER OVERRIDE (pages that supply their own sections)

   Astra lays out .ast-container with `display: flex` so it can place the
   content column and the sidebar side by side. The front page has no sidebar
   and supplies its own full-bleed sections, so flex only gets in the way: a
   single block child does not stretch to fill the main axis, which left <main>
   sized to its content instead of the viewport.

   Restoring normal block flow here is scoped to .vub-full-bleed — the front
   page, the About page, the Gallery page and the homepage sections moved onto pages of their own
   (see vub_is_section_page() in inc/setup.php) — so Astra's sidebar layouts on
   every other page are untouched.
--------------------------------------------------------------------------- */
.vub-full-bleed .site-content > .ast-container {
	display: block;
	max-width: 100%;
	padding: 0;
}

.vub-full-bleed .vub-main {
	width: 100%;
}

/* ---------------------------------------------------------------------------
   ABOUT PAGE — the destination of the homepage's gym card (page-about.php)

   The hero photograph is the same file, at the same crop and focal point, as
   the card on the homepage: object-fit: cover and object-position: 50% 50% in
   both places, so the shared element has nothing to correct on the way across
   and the room does not jump.

   Everything below the hero is the homepage's own vocabulary — .vub-section,
   .vub-container, .vub-about__mark-* , .vub-cta — so this page has no visual
   language of its own to keep in sync.
--------------------------------------------------------------------------- */
.vub-about-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	/* The rectangle the homepage card opens out to. --vub-header-h is measured
	   once by the snippet at the top of page-about.php, before this is laid out —
	   Astra's header is 132px on a desktop and 95px on a phone, so it cannot be a
	   constant. The fallback is only ever used with JavaScript off, where being a
	   few pixels out costs nothing.

	   The 100vw cap is what keeps the point of the transition on a phone. The
	   card's slanted frame shows about the middle half of this 16:9 photograph
	   at any height; a box has to be WIDER in proportion than that to show more
	   of it. On a desktop the viewport below the header already is (1440 x 787
	   shows the whole width), so the cap never binds. On a 390px phone the full
	   height would be 390 x 755, showing 29% — the room would close in rather
	   than open out. Capping the height at the width gives a square hero showing
	   56%: the picture pulls back and widens, which is the same movement the
	   desktop makes, at the size the screen allows. */
	padding-block: var(--vub-space-2xl) var(--vub-space-xl);
	overflow: hidden;
	/* Only ever seen below the picture, where a phone's words run on past it:
	   the page's own black, which the scrim's foot is already all but. */
	background-color: var(--vub-black);

	/* The opening, in order: the room arrives dark, its lights come up after
	   --vub-lights-delay (main.js reads it off this element), and a second
	   after that the words slide in from the left — the homepage hero's
	   sequence (lights at 1s, words at 2s). */
	--vub-lights-delay: 1000ms;
	--vub-about-enter-delay: calc(var(--vub-lights-delay) + 1000ms);
	--vub-about-enter-step: 140ms;
	--vub-about-enter-duration: 1100ms;
	--vub-about-enter-shift: -4rem;
}

/* No second frame, no lights to wait for: the words come straight in. */
.vub-about-hero:not(.vub-about-hero--lights) { --vub-about-enter-delay: 100ms; }

/* The hero's height, and the only place it is decided.
   .vub-enter-probe is an empty, invisible element the homepage drops in for one
   frame before it starts opening the card, purely so it can ask the browser
   what this resolves to on THIS viewport. That is why the opening stops exactly
   where the picture ends: the two are not two calculations that agree, they are
   one calculation, measured once on each side.

   Three quarters of the screen below the header, so the page's first section
   shows beneath it rather than the picture filling the screen — and, as
   before, no taller than the screen is wide. On a phone that cap is what
   binds: a square picture that widens as it arrives. */
:root {
	--vub-about-hero-h: max(18rem, min(calc((100svh - var(--vub-header-h, 6rem)) * 0.75), 100vw));
}

.vub-enter-probe { height: var(--vub-about-hero-h); }

/* The words never have to fit the picture: where they need more room — a
   phone's narrow column — the hero grows below it and the picture stays the
   rectangle the card opened out to. */
.vub-about-hero { min-height: var(--vub-about-hero-h); }

/* The element the homepage card morphs into: it holds the clip, so the card's
   rounded corners have something of the same kind to resolve into. */
.vub-about-hero__media {
	position: absolute;
	inset: 0 0 auto;
	height: var(--vub-about-hero-h);
	overflow: hidden;
	background-color: #000000;
}

.vub-about-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 50%;
}

/* The lights: the lit frame stacked exactly over the dark one, faded in by
   .is-lit --vub-lights-delay after arrival — initHeroLights() in main.js, the
   same as the homepage hero (hero.css). */
.vub-about-hero__frame--lit {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity var(--vub-lights-duration) var(--vub-ease);
}

.vub-about-hero.is-lit .vub-about-hero__frame--lit { opacity: 1; }

/* Reduced motion: main.js lights the room immediately, so kill the fade too. */
@media (prefers-reduced-motion: reduce) {
	.vub-about-hero__frame--lit { transition: none; }
}

/* Shared with the opening clone (see .vub-enter-clone__scrim in base.css), so
   the darkening the card arrives wearing is the darkening this page already
   has. Declared once, in one place, because the two must not drift. */
.vub-about-hero__scrim,
.vub-enter-clone__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		180deg,
		rgba(8, 9, 10, 0.55) 0%,
		rgba(8, 9, 10, 0.22) 38%,
		rgba(8, 9, 10, 0.88) 100%
	);
}

/* The scrim darkens the picture, not the room below it. */
.vub-about-hero__scrim {
	bottom: auto;
	height: var(--vub-about-hero-h);
}

.vub-about-hero > .vub-container {
	position: relative;
	z-index: 2;
}

/* The picture behind the words is lit in places — the red tubes, the lamps over
   the ring — so they carry a dark halo, as the pricing cards' copy does over
   their boxers, and the small red label stays legible wherever it falls. */
.vub-about-hero__inner {
	text-shadow:
		0 1px 2px rgba(8, 9, 10, 0.85),
		0 0 18px rgba(8, 9, 10, 0.75);
}

.vub-about-hero__title {
	max-width: 62rem;
	font-size: var(--vub-text-4xl);
	margin-bottom: var(--vub-space-md);
}

/* Each sentence of the heading holds together, so lines break only between
   them: two lines on a desktop, one sentence to a line on a phone. */
.vub-about-hero__line { white-space: nowrap; }

.vub-about-hero__lead {
	max-width: 44rem;
	margin-bottom: 0;
	font-size: var(--vub-text-lg);
	color: var(--vub-text);
}

/* The words slide in from the left, one after another, a second after the
   lights come up (the timing is on .vub-about-hero above). An animation rather
   than a transition on a class, as on the homepage hero (hero.css): `both`
   holds them hidden from the very first paint, and they arrive on their own,
   JavaScript or not, however the visitor got here.

   The picture itself is given no entrance. Arriving from the homepage it is
   already at the size, the position and the crop the card opened out to, so
   a settle, a fade or a scale on it would show as exactly the seam the
   transition exists to hide; the lights coming on is its only change. */
.vub-about-hero__inner > * {
	animation: vub-about-enter var(--vub-about-enter-duration) var(--vub-ease-out) both;
	animation-delay: calc(
		var(--vub-about-enter-delay) + var(--vub-about-enter-step) * var(--vub-about-enter-index, 0)
	);
}

.vub-about-hero__inner > .vub-about-hero__title { --vub-about-enter-index: 1; }
.vub-about-hero__inner > .vub-about-hero__lead  { --vub-about-enter-index: 2; }

@keyframes vub-about-enter {
	from {
		opacity: 0;
		transform: translateX(var(--vub-about-enter-shift));
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* ---------------------------------------------------------------------------
   ABOUT PAGE — the sections below the hero (templates/sections/about-*.php)

   All on the homepage's band (page-about.php), all from vub_club() in
   inc/club.php. Anything not yet confirmed is not printed at all, so nothing
   here styles an empty state. The vocabulary is the homepage's: section heads,
   the figures' type (.vub-about__mark-*), red rules, the FAQ accordion, and
   the slanted frame its pictures sit in.
--------------------------------------------------------------------------- */

/* The sections close up a little: each takes the tight measure, so a page
   with only a few of them confirmed does not read as gaps, and the story
   starts high enough under the hero for its heading to show on the first
   screen. They sit on three bands (page-about.php), so the measure is set on
   each section by name rather than by its place among its neighbours. Only
   the call to action keeps its full room, before the footer. */
.vub-about-story,
.vub-about-glance,
.vub-about-founder,
.vub-about-coaches,
.vub-about-facilities,
.vub-about-visit,
.vub-about-community,
.vub-about-cta { padding-block: var(--vub-section-y-tight); }

.vub-about-cta { padding-bottom: var(--vub-section-y); }

/* How far the slanted frames lean. Less on a phone, where the frame is tall
   and narrow and a full lean would reach past the gutter. */
.vub-about-story,
.vub-about-cta { --vub-frame-lean: -4deg; }

@media (min-width: 768px) {
	.vub-about-story,
	.vub-about-cta { --vub-frame-lean: -8deg; }
}

/* The band's red dot streaks fall wherever the page's length puts them, and
   red or grey words over red dots are lost — so the words carry the hero's
   dark halo. Not the buttons: theirs is a filled or outlined box already. */
.vub-about-story,
.vub-about-founder,
.vub-about-coaches,
.vub-about-facilities,
.vub-about-visit,
.vub-about-community {
	text-shadow:
		0 1px 2px rgba(8, 9, 10, 0.85),
		0 0 14px rgba(8, 9, 10, 0.8);
}

.vub-about-visit .vub-btn { text-shadow: none; }

.vub-about-story__layout {
	display: grid;
	gap: var(--vub-space-xl);
	grid-template-columns: minmax(0, 1fr);
}

.vub-about-story__copy > p {
	max-width: 42rem;
	color: var(--vub-text-muted);
}

.vub-about-story__copy .vub-section__head { margin-bottom: var(--vub-space-md); }

/* The founder's column. Without a photograph its facts stand in a slanted
   frame — the outline of the homepage's picture frames, leaning the same way,
   red along its top — so the column carries weight beside the story. */
.vub-about-facts {
	position: relative;
	display: grid;
	gap: var(--vub-space-lg) var(--vub-space-2xl);
	/* Stacked under the story (below 1024px), the frame is only as wide as
	   what it holds rather than a wide box with two short lines in it. */
	width: fit-content;
	max-width: 100%;
	margin: 0;
	padding: var(--vub-space-xl) var(--vub-space-xl) var(--vub-space-xl) calc(var(--vub-space-xl) + 0.5rem);
	isolation: isolate;
}

.vub-about-facts::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border: var(--vub-rule);
	border-top: 2px solid var(--vub-red);
	background-color: rgba(8, 9, 10, 0.55);
	transform: skewX(var(--vub-frame-lean));
}

/* Each fact as the homepage prints its figures: the value, its label under it. */
.vub-about-facts__item,
.vub-about-glance__item {
	display: flex;
	flex-direction: column-reverse;
	gap: var(--vub-space-2xs);
}

.vub-about-facts dt,
.vub-about-facts dd,
.vub-about-glance__list dt,
.vub-about-glance__list dd { margin: 0; }

.vub-about-facts__name {
	font-family: var(--vub-font-display);
	font-size: var(--vub-text-xl);
	font-weight: var(--vub-weight-black);
	line-height: var(--vub-leading-snug);
	color: var(--vub-white);
}

/* The founder's profile: the photograph in the homepage About photograph's
   frame (its margins and clip are .vub-about__frame's), the profile beside
   it, its parts under small white labels. */
.vub-about-founder__layout {
	display: grid;
	gap: var(--vub-space-xl);
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
}

/* The portrait is taller than the frame's box: cover fills the box on width,
   anchored at the top so the whole head shows, down past the crossed arms. */
.vub-about-founder__photo img { object-position: 50% 0%; }

.vub-about-founder__body .vub-section__head { margin-bottom: var(--vub-space-2xs); }

.vub-about-founder__body > p {
	max-width: 42rem;
	color: var(--vub-text-muted);
}

.vub-theme .vub-about-founder__role {
	margin-bottom: var(--vub-space-md);
	font-size: var(--vub-text-lg);
	color: var(--vub-text);
}

.vub-about-founder__label {
	margin: var(--vub-space-lg) 0 var(--vub-space-2xs);
	font-family: var(--vub-font-body);
	font-size: var(--vub-text-xs);
	font-weight: var(--vub-weight-bold);
	letter-spacing: var(--vub-tracking-wider);
	text-transform: uppercase;
	color: var(--vub-white);
}

/* A list of verified lines — experience, credentials: the plan cards' red dash.
   Lists, and paragraphs given margins of their own, are scoped under
   .vub-theme here to outrank its base list and paragraph rules (base.css). */
.vub-theme .vub-about-list {
	margin: var(--vub-space-md) 0 0;
	padding: 0;
	list-style: none;
	color: var(--vub-text-muted);
}

.vub-about-list li {
	position: relative;
	margin-bottom: var(--vub-space-2xs);
	padding-left: 1.5em;
}

.vub-about-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.75em;
	width: 8px;
	height: 2px;
	background-color: var(--vub-red);
}

/* The club at a glance: as many even columns as there are figures. */
.vub-about-glance__list {
	display: grid;
	gap: var(--vub-space-lg);
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
	padding-block: var(--vub-space-lg);
	border-block: var(--vub-rule);
}

/* The coaching team: every word on the card at rest; nothing to hover for. */
.vub-about-coaches__grid { --min: 260px; }

.vub-about-coach {
	display: flex;
	flex-direction: column;
	background-color: rgba(8, 9, 10, 0.9);
	border: var(--vub-rule);
	border-top: 2px solid var(--vub-red);
}

/* Compact, as the user asked (2026-10-16): the photograph a wide strip — 16:9
   made 15% and then 10% taller, 16:11.385 — held on the face, head and
   shoulders rather than a full-length portrait, and the words set a little
   closer. */
.vub-about-coach__body {
	padding: var(--vub-space-md) var(--vub-space-lg) var(--vub-space-lg);
	/* The card text a step down from the page's, as other cards set it. */
	font-size: var(--vub-text-base);
	line-height: 1.6;
}

.vub-about-coach__photo img { object-position: 50% 22%; }

/* One card to a row on a phone, so the strip is shallower still. (!important:
   vub_image() writes the box's ratio inline.) */
@media (max-width: 599.98px) {
	.vub-about-coach__photo { aspect-ratio: 2 / 1.265 !important; }

	.vub-about-coach__body { padding-inline: var(--vub-space-md); }
}

.vub-about-coach__name {
	margin-bottom: var(--vub-space-3xs);
	font-size: var(--vub-text-xl);
}

.vub-theme .vub-about-coach__body p { margin-bottom: var(--vub-space-sm); }

.vub-theme .vub-about-coach__body .vub-about-list { margin-top: var(--vub-space-sm); }

.vub-theme .vub-about-coach__body .vub-about-list li:last-child { margin-bottom: 0; }

.vub-theme .vub-about-coach__body .vub-about-coach__role {
	margin-bottom: var(--vub-space-xs);
	font-size: var(--vub-text-xs);
	font-weight: var(--vub-weight-bold);
	letter-spacing: var(--vub-tracking-wider);
	text-transform: uppercase;
	color: var(--vub-red);
}

.vub-about-coach__focus .vub-about__mark-label {
	display: block;
	margin-bottom: var(--vub-space-3xs);
}

.vub-about-coach__focus,
.vub-about-coach__bio { color: var(--vub-text-muted); }

/* Inside the academy: each group beside its pictures — the sides alternate on
   a desktop (responsive.css). No rule between them (the user's call): the
   groups are set apart by space alone, the same distance the rule and its
   padding took. Its items run in as many columns as fit. */
.vub-about-facilities__row {
	display: grid;
	gap: var(--vub-space-xl);
}

.vub-about-facilities__row + .vub-about-facilities__row { margin-top: var(--vub-space-3xl); }

/* With the carousel: the words above it, its list in as many columns as fit
   (a desktop sets them side by side — responsive.css). */
.vub-about-facilities__row--gallery { row-gap: var(--vub-space-md); }

.vub-about-facilities__title {
	margin-bottom: var(--vub-space-md);
	font-size: var(--vub-text-lg);
}

.vub-about-facilities__list {
	display: grid;
	gap: var(--vub-space-md) var(--vub-space-xl);
	grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr));
	margin: 0;
}

.vub-about-facilities__list dt {
	font-weight: var(--vub-weight-semibold);
	color: var(--vub-white);
}

.vub-about-facilities__list dd {
	margin: 0;
	color: var(--vub-text-muted);
}

.vub-about-facilities__photos {
	--min: 280px;

	margin-top: var(--vub-space-2xl);
}

.vub-about-facilities__figure { margin: 0; }

.vub-about-facilities__figure figcaption {
	display: block;
	margin-top: var(--vub-space-xs);
	font-size: var(--vub-text-sm);
	color: var(--vub-text-muted);
}

/* Your first visit: a few answers in full, a rule between each. */
/* Stacked on a phone; on a desktop the heading and links beside the
   questions (responsive.css). */
.vub-about-visit__layout {
	display: grid;
	grid-template-areas:
		"head"
		"list"
		"links";
}

.vub-about-visit__layout > .vub-section__head { grid-area: head; }
.vub-about-visit__layout > .vub-faq__list,
.vub-about-visit__layout > .vub-about-visit__list { grid-area: list; }
.vub-about-visit__layout > .vub-about-visit__links { grid-area: links; }

.vub-about-visit__list { margin: 0; }

.vub-about-visit__list > div {
	padding-block: var(--vub-space-md);
	border-top: var(--vub-rule);
}

.vub-about-visit__list dt {
	margin-bottom: var(--vub-space-2xs);
	font-weight: var(--vub-weight-semibold);
	color: var(--vub-white);
}

.vub-about-visit__list dd {
	margin: 0;
	color: var(--vub-text-muted);
}

.vub-theme .vub-about-visit__links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--vub-space-xs) var(--vub-space-lg);
	margin: var(--vub-space-xl) 0 0;
	padding: 0;
	list-style: none;
}

.vub-about-visit__links .vub-btn { padding-inline: 0; }

/* Community and milestones: dated entries, newest first, side by side as
   far as they fit — each under a rule, its photograph above when it has one. */
.vub-theme .vub-about-community__list {
	display: grid;
	gap: var(--vub-space-xl) var(--vub-grid-gap);
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.vub-theme .vub-about-community__item {
	display: grid;
	gap: var(--vub-space-md);
	margin: 0;
	padding-top: var(--vub-space-lg);
	border-top: var(--vub-rule);
}

.vub-about-community__title {
	margin: var(--vub-space-2xs) 0;
	font-size: var(--vub-text-xl);
}

.vub-about-community__body p {
	margin: 0;
	color: var(--vub-text-muted);
}

/* Come and meet your club: centred in a slanted frame, as the founder's facts. */
.vub-about-cta__frame {
	position: relative;
	max-width: 52rem;
	margin-inline: auto;
	padding: var(--vub-space-2xl) var(--vub-space-xl);
	text-align: center;
	isolation: isolate;
}

.vub-about-cta__frame::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border: var(--vub-rule);
	border-top: 2px solid var(--vub-red);
	background-color: rgba(8, 9, 10, 0.6);
	transform: skewX(var(--vub-frame-lean));
}

.vub-about-cta__title {
	margin-bottom: var(--vub-space-sm);
	font-size: var(--vub-text-3xl);
}

.vub-theme .vub-about-cta__text {
	max-width: 34rem;
	margin: 0 auto var(--vub-space-xl);
	font-size: var(--vub-text-lg);
	color: var(--vub-text-muted);
}

.vub-about-cta .vub-btn-group { justify-content: center; }

/* A stand-in where a photograph will go (vub_stand_in(), inc/club-samples.php):
   the band's halftone and a red glow, with a person's initials drawn in
   outline or a facility in the thin white line of the site's construction
   lines. Sized to the box it fills, so it reads the same in a coach card and
   in the founder's frame. */
.vub-stand-in {
	display: grid;
	place-items: center;
	container-type: inline-size;
	background-color: var(--vub-surface-2);
	background-image:
		radial-gradient(circle at 72% 22%, rgba(216, 31, 42, 0.32), transparent 58%),
		linear-gradient(180deg, transparent 55%, rgba(8, 9, 10, 0.55)),
		radial-gradient(rgba(255, 255, 255, 0.075) 1.1px, transparent 1.6px);
	background-size: auto, auto, 9px 9px;
}

.vub-stand-in__mark {
	font-family: var(--vub-font-display);
	font-size: 6rem;
	font-size: 34cqi;
	font-weight: var(--vub-weight-black);
	line-height: 1;
	letter-spacing: var(--vub-tracking-tight);
	/* A soft fill rather than an outline: the display face's letters are
	   drawn from overlapping shapes, and an outline shows their seams. */
	color: rgba(255, 255, 255, 0.14);
	text-shadow: none;
	user-select: none;
}

.vub-stand-in__icon {
	width: 9rem;
	width: 40cqi;
	height: auto;
	fill: none;
	stroke: rgba(255, 255, 255, 0.45);
	stroke-width: 1;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Motion turned down: the page is simply already in its final state. */
@media (prefers-reduced-motion: reduce) {
	.vub-about-hero__inner > * { animation: none; }
}
