/* ===========================================================================
   RESPONSIVE — ALL media queries live here, and this file always loads LAST.
   The base styles above are mobile-first, so these are progressive
   enhancements as the viewport grows (plus a few small-screen corrections).
   Breakpoints:
       544px   large phone
       768px   tablet portrait
       1024px  tablet landscape / small laptop
       1280px  desktop
       1600px  large desktop
   =========================================================================== */

/* ---------------------------------------------------------------------------
   Small phones — pull the largest type back a little
--------------------------------------------------------------------------- */
@media (max-width: 400px) {
	.vub-hero__title { font-size: clamp(2.5rem, 12vw, 3rem); }

	.vub-btn { width: 100%; }

	/* Back, over the zoomed map, keeps to its label. */
	.vub-contact__back { width: auto; }

	.vub-hero__stats { gap: var(--vub-space-md); }
}

/* ---------------------------------------------------------------------------
   Membership, one card to a row — a phone
--------------------------------------------------------------------------- */
/* Each portrait card's boxer reaches out past its right edge
   (--vub-figure-reach, sections.css), across the gap toward the card beside
   it. With one card to a row there is no card beside it, and on a phone that
   reach ran on past the gutter to the edge of the screen. So there the card
   gives up that much of its width. Card and hood together then fill the
   column, and the hood ends where every other section's content does. The
   boxer is measured in card widths, so he shrinks with the card. The grid
   holds one to a row until it has room for two at --min (280px) and the gap
   (base.css, .vub-grid--auto). Tablet and desktop, two and three to a row,
   are left as they are. */
@container vub-plans (width < 580px) {
	.vub-plan--portrait { width: calc(100% - var(--vub-figure-reach)); }
}

/* ---------------------------------------------------------------------------
   Under 768px — phones
--------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
	/* The footer's portrait wall (vub_peek()): the boxer is centred in it, in
	   its upper half, so a short crop keeps him. It has no twin, so the
	   painting stays hidden even under a mouse. */
	.vub-peek--narrow .vub-peek__wall { object-position: 50% 35%; }

	.vub-peek--narrow .vub-peek__paint { display: none; }
}

/* ---------------------------------------------------------------------------
   ≥ 768px — tablet portrait
--------------------------------------------------------------------------- */
@media (min-width: 768px) {
	.vub-about__marks { gap: var(--vub-space-2xl); }

	.vub-footer__top { grid-template-columns: repeat(2, 1fr); }

	.vub-achievements__row { flex-wrap: nowrap; }

	/* Schedule: the heading, and the clock on the right half beside it. */
	.vub-schedule__top { grid-template-columns: minmax(0, 1fr) 50%; }

	/* Contact: the map a little smaller against the wider section. */
	.vub-contact__frame { --vub-map-w: 140cqw; }

	/* About page: under the story, the founder's facts side by side. */
	.vub-about-facts { grid-auto-flow: column; }
}

/* ---------------------------------------------------------------------------
   ≥ 1024px — tablet landscape / small laptop
--------------------------------------------------------------------------- */
@media (min-width: 1024px) {
	/* About: copy beside portrait. */
	.vub-about__layout {
		grid-template-columns: 1.05fr 0.95fr;
		gap: var(--vub-space-3xl);
	}

	.vub-about__layout--reverse .vub-about__media { order: -1; }

	/* The frame takes the column's full width; its corner marks run on into the
	   column gap and the container's gutter, both wider than they reach. */
	.vub-about__frame { margin: 0; }

	/* About page: the story beside its founding facts. */
	.vub-about-story__layout {
		grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.75fr);
		gap: var(--vub-space-3xl);
		align-items: center;
	}

	/* In its own column the founding facts' frame fills it, the facts stacked. */
	.vub-about-facts {
		grid-auto-flow: row;
		width: auto;
	}

	.vub-about-story--solo .vub-about-story__layout { grid-template-columns: minmax(0, 1fr); }

	/* The figures, one even column each, however many are confirmed. */
	.vub-about-glance__list { grid-template-columns: repeat(var(--vub-glance-count, 4), minmax(0, 1fr)); }

	/* The founder: the framed photograph beside the profile, in the
	   homepage About section's proportions mirrored — the picture on the left. */
	.vub-about-founder__layout {
		grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
		gap: var(--vub-space-3xl);
	}

	.vub-about-founder--solo .vub-about-founder__layout { grid-template-columns: minmax(0, 1fr); }

	/* Facilities: each group beside its photograph, the photograph on the
	   right, then the left, then the right again. */
	.vub-about-facilities__row--photo {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: var(--vub-space-3xl);
		align-items: start;
	}

	.vub-about-facilities__row--photo:nth-of-type(even) .vub-about-facilities__figure { order: -1; }

	/* Your first visit: heading and links on the left, the questions on the
	   right. */
	.vub-about-visit__layout {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
		grid-template-rows: auto 1fr;
		grid-template-areas:
			"head  list"
			"links list";
		column-gap: var(--vub-space-3xl);
		align-items: start;
	}

	.vub-about-visit__layout > .vub-about-visit__links {
		flex-direction: column;
		align-items: flex-start;
		margin-top: 0;
	}

	/* Contact: the note on the left, level with the details; the heading
	   above the details on the right. */
	.vub-contact__layout {
		grid-template-columns: 1.15fr 1fr;
		grid-template-areas:
			".    head"
			"note main";
		column-gap: var(--vub-space-2xl);
	}

	.vub-contact__layout > .vub-section__head { grid-area: head; }

	/* Back's corner is clear of the heading here: it comes in sooner. */
	.vub-contact--locate { --vub-locate-back-at: calc(var(--vub-locate-out) * 0.5); }
	.vub-contact__main { grid-area: main; }

	.vub-contact__note {
		grid-area: note;
		margin-top: 0;
	}

	/* Contact: the whole world map behind it — as large as the section allows
	   without cutting into the map, covering the wall outright wherever the
	   proportions allow, and centred on the map rather than the frame. Where
	   the frame stops short of the wall its edges feather into the wall's own
	   gradient. No scrim behind the words here: the words on the left stand
	   on the same map as the right, not on a darker patch. */
	.vub-contact__frame {
		/* The section's own height: the wall's. */
		--vub-map-h: 100cqh;
		--vub-map-w: min(max(100cqw, var(--vub-map-h) * 1.7768), 100cqw * 1.1236, var(--vub-map-h) * 2.1545);

		top: calc(var(--vub-map-h) / 2 - var(--vub-map-w) / 1.7768 * 0.4803);
		-webkit-mask-image:
			linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%),
			linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
		-webkit-mask-composite: source-in;
		mask-image:
			linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%),
			linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
		mask-composite: intersect;
	}

	/* Where the frame stops short, the wall carries on in the render's own
	   edge tones: the right edge's, with the left edge's over it fading out
	   to the right, as the light falls off from the upper left. */
	.vub-contact__wall {
		background: linear-gradient(180deg, var(--vub-map-wall-right-top) 0%, var(--vub-map-wall-right-bottom) 100%);
	}

	.vub-contact__wall::before {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(180deg, var(--vub-map-wall-left-top) 0%, var(--vub-map-wall-left-bottom) 100%);
		-webkit-mask-image: linear-gradient(to right, #000, transparent);
		mask-image: linear-gradient(to right, #000, transparent);
	}

	.vub-contact__wall::after {
		background: none;
	}

	.vub-footer__top { grid-template-columns: 2fr 1fr 1fr 1.2fr; }
}

/* ---------------------------------------------------------------------------
   ≥ 1280px — desktop
--------------------------------------------------------------------------- */
@media (min-width: 1280px) {
	/* Boxing facilities: the words on the left, about 38%, their items one
	   under another, centred beside the carousel on the right. */
	.vub-about-facilities__row--gallery {
		grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
		column-gap: var(--vub-space-2xl);
		align-items: center;
	}

	.vub-about-facilities__row--gallery .vub-about-facilities__list {
		grid-template-columns: minmax(0, 1fr);
		row-gap: var(--vub-space-lg);
	}

	/* Every other group the other way round — the carousel on the left — so
	   pictures and words keep taking turns down the section. */
	.vub-about-facilities__row--gallery:nth-of-type(even) {
		grid-template-columns: minmax(0, 0.62fr) minmax(0, 0.38fr);
	}

	.vub-about-facilities__row--gallery:nth-of-type(even) .vub-coverflow { order: -1; }

	.vub-why__grid      { --cols: 4; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
	.vub-programs__grid { --cols: 3; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
	.vub-pricing__grid  { --cols: 3; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
	/* Three across, the cards and their boxers drawn a little smaller than the
	   full row (--vub-pricing-scale in sections.css), and centred — but never
	   narrower than the row at 1280px (1080px), where the cards are already as
	   narrow as their content allows. Their content stands a little closer to
	   the top and foot, so it fits the shorter cards as well. */
	.vub-pricing__grid  { width: max(var(--vub-pricing-scale) * 100%, 1080px); margin-inline: auto; }
	.vub-pricing__grid .vub-plan__body { padding-block: var(--vub-space-lg); }

	.vub-achievements__counters { --cols: 4; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------------------
   ≥ 1600px — large desktop
--------------------------------------------------------------------------- */
@media (min-width: 1600px) {
	:root { --vub-container: 1360px; }

	.vub-hero { min-height: min(88svh, 1000px); }
}

/* ---------------------------------------------------------------------------
   Hero quotes — where the apron lines sit at each width

   hero.css lays it along the foot of the hero. That stands until there is
   enough width for the ring apron to be visible beside the headline column,
   which is where the perspective placement below takes over.
--------------------------------------------------------------------------- */
@media (max-width: 1279.98px) {
	/* Reserve the quote's band at the foot of the hero, so it can never reach
	   the stats or the buttons. */
	.vub-hero { padding-bottom: 7.5rem; }
}

@media (min-width: 768px) and (max-width: 1279.98px) {
	/* Tablet: no perspective, but still tipped to echo the ring's angle. */
	.vub-hero__quote {
		right: auto;
		width: 26rem;
		transform: rotate(2deg);
		transform-origin: 0 100%;
	}
}

@media (min-width: 1280px) {
	/* The attribution takes its own, much lighter sheet — 2.5% wear against the
	   quote's 9.2%, since at 11px the words cannot carry more — and only here,
	   where the type is large enough to hold it at all. */
	@supports ((-webkit-background-clip: text) or (background-clip: text)) {
		.vub-hero__quote-attrib {
			color: transparent;
			background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 281 25%22 preserveAspectRatio=%22none%22%3E%3Cdefs%3E%3Cmask id=%22m%22%3E%3Crect width=%22281%22 height=%2225%22 fill=%22%23fff%22/%3E%3Cg stroke=%22%23000%22 fill=%22none%22 stroke-linecap=%22round%22%3E%3Cpath stroke-width=%220.3%22 stroke-opacity=%220.6%22 d=%22M24.0 3.7l6.9 0.1%22/%3E%3Cpath stroke-width=%220.3%22 stroke-opacity=%220.75%22 d=%22M14.9 10.9l7.7 -0.8M64.2 22.4l5.6 -0.0%22/%3E%3Cpath stroke-width=%220.3%22 stroke-opacity=%220.8%22 d=%22M124.2 25.5l.1 0%22/%3E%3Cpath stroke-width=%220.4%22 stroke-opacity=%220.45%22 d=%22M99.0 11.8l6.8 -1.1%22/%3E%3Cpath stroke-width=%220.4%22 stroke-opacity=%220.6%22 d=%22M7.6 6.2l5.4 -0.1M26.5 -0.2l3.4 -0.4M84.9 4.6l.1 0M46.0 4.3l.1 0M69.7 2.5l.1 0%22/%3E%3Cpath stroke-width=%220.4%22 stroke-opacity=%220.75%22 d=%22M6.9 7.8l3.2 -0.1M24.6 8.6l9.1 1.1%22/%3E%3Cpath stroke-width=%220.4%22 stroke-opacity=%220.8%22 d=%22M78.4 12.6l.1 0%22/%3E%3Cpath stroke-width=%220.4%22 stroke-opacity=%220.9%22 d=%22M122.4 16.9l3.6 -0.6M73.6 26.4l10.7 0.0M98.5 21.6l6.1 -0.6M93.0 9.4l7.3 -0.7M82.1 4.3l8.5 -0.5%22/%3E%3Cpath stroke-width=%220.4%22 stroke-opacity=%220.95%22 d=%22M91.8 21.3l.1 0%22/%3E%3Cpath stroke-width=%220.5%22 stroke-opacity=%220.6%22 d=%22M102.1 8.7l4.2 0.1M17.0 19.3l3.2 0.0M114.3 19.0l.1 0M29.5 -0.9l.1 0M48.9 9.9l.1 0%22/%3E%3Cpath stroke-width=%220.5%22 stroke-opacity=%220.75%22 d=%22M123.4 17.8l9.9 -0.9%22/%3E%3Cpath stroke-width=%220.5%22 stroke-opacity=%220.8%22 d=%22M85.0 17.7l.1 0M128.7 25.7l.1 0M35.2 22.2l.1 0%22/%3E%3Cpath stroke-width=%220.5%22 stroke-opacity=%220.9%22 d=%22M76.7 -1.7l6.5 -0.1M30.8 24.3l6.4 1.4%22/%3E%3Cpath stroke-width=%220.5%22 stroke-opacity=%220.95%22 d=%22M25.3 0.3l.1 0M87.6 15.0l.1 0%22/%3E%3Cpath stroke-width=%220.6%22 stroke-opacity=%220.6%22 d=%22M-1.2 25.3l.1 0M61.2 11.2l.1 0M15.7 2.1l.1 0%22/%3E%3Cpath stroke-width=%220.6%22 stroke-opacity=%220.8%22 d=%22M30.0 24.6l.1 0%22/%3E%3Cpath stroke-width=%220.6%22 stroke-opacity=%220.95%22 d=%22M26.8 22.6l.1 0M118.4 15.6l.1 0M9.2 25.2l.1 0M100.9 3.3l.1 0M123.5 2.5l.1 0%22/%3E%3Cpath stroke-width=%220.7%22 stroke-opacity=%220.6%22 d=%22M78.3 21.6l.1 0M63.6 23.3l.1 0%22/%3E%3Cpath stroke-width=%220.7%22 stroke-opacity=%220.8%22 d=%22M20.3 19.9l.1 0M59.1 18.3l.1 0%22/%3E%3Cpath stroke-width=%220.7%22 stroke-opacity=%220.95%22 d=%22M50.8 0.1l.1 0M79.0 16.2l.1 0M59.2 4.7l.1 0%22/%3E%3Cpath stroke-width=%220.8%22 stroke-opacity=%220.8%22 d=%22M128.2 21.1l.1 0%22/%3E%3Cpath stroke-width=%220.8%22 stroke-opacity=%220.95%22 d=%22M9.7 4.1l.1 0M23.7 0.4l.1 0M101.7 9.1l.1 0M73.0 25.9l.1 0M103.9 20.5l.1 0%22/%3E%3Cpath stroke-width=%220.9%22 stroke-opacity=%220.6%22 d=%22M96.0 12.0l.1 0M76.1 7.2l.1 0M117.0 21.0l.1 0M65.4 6.1l.1 0M23.6 7.9l.1 0M15.0 3.5l.1 0%22/%3E%3Cpath stroke-width=%220.9%22 stroke-opacity=%220.95%22 d=%22M87.3 5.8l.1 0M126.8 1.2l.1 0%22/%3E%3C/g%3E%3Cg fill=%22%23000%22%3E%3Cellipse cx=%2290%22 cy=%2211%22 rx=%2216%22 ry=%223%22 fill-opacity=%220.17%22/%3E%3Cellipse cx=%2282%22 cy=%2212%22 rx=%226%22 ry=%223%22 fill-opacity=%220.14%22/%3E%3C/g%3E%3C/mask%3E%3C/defs%3E%3Crect width=%22281%22 height=%2225%22 fill=%22%23e4e2db%22 fill-opacity=%220.46%22 mask=%22url(%23m)%22/%3E%3C/svg%3E");
			background-repeat: no-repeat;
			/* The sheet has to span the whole figcaption — the red rule sits
			   above the words, so a sheet sized to the text alone leaves the
			   words below it with no paint at all. */
			background-size: 100% 100%;
			-webkit-background-clip: text;
			background-clip: text;
		}
	}

	/* No container queries means no apron placement, so the quote stays on its
	   bottom band and still needs that band reserved. */
	@supports not (container-type: size) {
		.vub-hero { padding-bottom: 7.5rem; }
	}

	@supports (container-type: size) {
		/* The photograph's own box: sized exactly as object-fit: cover sizes it,
		   and offset exactly as object-position: center 30% offsets it — the
		   same two values .vub-hero__media img uses, so the two cannot drift
		   apart. Percentages inside it are percentages of the photograph. */
		.vub-hero {
			/* Desktop calibration of the apron keystone. */
			--vub-quote-size: 0.014777;
			--vub-quote-perspective: 27.4em;
		}

		.vub-hero__apron {
			--vub-photo-w: max(100cqw, calc(100cqh * 1672 / 941));
			--vub-photo-h: max(100cqh, calc(100cqw * 941 / 1672));
			inset: auto;
			top: 0;
			left: 0;
			width: var(--vub-photo-w);
			height: var(--vub-photo-h);
			transform: translate(calc(50cqw - 50%), calc(30cqh - 30%));
		}

		/* The composition is anchored to the apron's top-left corner, past the
		   headline column and stopping short of the near corner post at 74% of
		   the frame, so the lettering never runs across the post in front of it.

		   Both seams were measured off the photograph, in its own 1672x941
		   pixels: the upper runs y = 0.1045x + 536 (5.96°), the hem runs
		   y = 0.2670x + 516.6 (14.95°). They diverge, so the apron is a
		   trapezoid — 122px deep at x 869, 190px at x 1230 — and the type has
		   to open up with it rather than sit on it at one flat angle. */
		.vub-hero__quote {
			left: 51.44%;
			right: auto;
			top: 67.78%;
			bottom: auto;
			width: max-content;
			padding-inline: 0;
			/* Sized against the photograph rather than the viewport, so the
			   lettering keeps its proportion to the ring at any scale. Calibrated
			   so the untransformed block is 93px tall in the photo's pixels:
			   the apron's depth at the left edge, less the seam gaps. */
			/* The bounds are only rails against absurd viewports — the ceiling has
			   to stay clear of real ones, or the type stops tracking the photo
			   and the composition slides off the seam. */
			font-size: clamp(0.5rem, calc(var(--vub-photo-w) * var(--vub-quote-size)), 3rem);
			/* The projection the keystone below is divided by. In em, so it
			   scales with the type and the whole composition stays identical at
			   every viewport width instead of distorting as the photo grows. */
			perspective: var(--vub-quote-perspective);
			perspective-origin: 0 50%;
			transform: none;
		}

		/* The keystone itself: rotateY(-30.08°) swings the right-hand end of the
		   plane toward the camera, and the perspective above divides by depth,
		   so the block is magnified 1.32x at the right and the top and bottom
		   edges come out at different angles — a true four-corner projection,
		   not a rotate, skew or stretch. rotateZ(8.25°) then drops the whole
		   plane onto the seam, leaving the top edge running at exactly the
		   upper seam's 5.96°. Straight lines stay straight, so the lettering
		   cannot wave or bulge.

		   Composed as one matrix: columns are rotateZ(θ)·rotateY(φ). */
		.vub-hero__quote-plane {
			transform: matrix3d(
				0.85640,  0.12420,  0.50115, 0,
				-0.14352, 0.98965,  0,       0,
				-0.49596, -0.07193, 0.86536, 0,
				0,        0,        0,       1
			);
			/* The left edge is the anchor: it stays put while the composition
			   opens toward the right. Matches perspective-origin above. */
			transform-origin: left center;
		}
	}
}

/* ---------------------------------------------------------------------------
   Pointer-based refinements — hover effects only where hover exists
--------------------------------------------------------------------------- */
/* Portrait card at rest — switched off: the user wants every card shown
   stepped over all the time, as sections.css writes it. Adding
   .vub-pricing--rest to the pricing section brings it back: where a pointer
   can hover, the boxer stands at the centre with the content hidden until the
   card is hovered or tabbed into. Going back, the copy leaves at once and he
   glides back the way he came. */
@media (hover: hover) {
	.vub-pricing--rest .vub-plan--portrait:not(:hover):not(:focus-within) .vub-plan__portrait::before { opacity: 1; }
	.vub-pricing--rest .vub-plan--portrait:not(:hover):not(:focus-within) .vub-plan__portrait::after  { opacity: 0; }

	.vub-pricing--rest .vub-plan--portrait:not(:hover):not(:focus-within) .vub-plan__figure { transform: translateX(var(--vub-figure-centre)); }

	.vub-pricing--rest .vub-plan--portrait:not(:hover):not(:focus-within) .vub-plan__body::before,
	.vub-pricing--rest .vub-plan--portrait:not(:hover):not(:focus-within) .vub-plan__body > * {
		--vub-in-delay: 0s;

		opacity: 0;
	}

	.vub-pricing--rest .vub-plan--portrait:not(:hover):not(:focus-within) .vub-plan__body > * { transform: translateX(-1rem); }
}

/* Portrait card lights. Where a pointer can hover, each boxer stands in the
   dark, his backlight barely on, until his card is hovered or tabbed into.
   Then the light comes up on him: a quick swell that flares past full, with a
   burst of glow round him in the card's own colour (vub-lights-flare), and
   the backlight behind his head blooming out from it, before it all settles.
   Leaving, it dims slowly back down. Lit, the card is exactly as a touch
   screen always shows it. Built from the motion tokens, so reduced motion
   simply switches it. */
@keyframes vub-lights-flare {
	0% {
		filter: brightness(1) drop-shadow(0 0 0 transparent);
		animation-timing-function: var(--vub-ease-out);
	}

	/* The peak, then a long, slow fall back to the lit card. */
	30% {
		filter: brightness(1.25) drop-shadow(0 0 22px var(--vub-portrait-glow));
		animation-timing-function: var(--vub-ease);
	}

	100% { filter: brightness(1) drop-shadow(0 0 0 transparent); }
}

@media (hover: hover) {
	.vub-plan--portrait {
		--vub-lights-on: calc(var(--vub-duration-slow) * 2.5);
		--vub-lights-off: calc(var(--vub-duration-slow) * 2);
		--vub-lights-flare: cubic-bezier(0.25, 1.6, 0.45, 1);
	}

	.vub-plan--portrait .vub-plan__figure {
		filter: brightness(0.3) saturate(0.7);
		transition:
			transform var(--vub-move) var(--vub-move-ease),
			filter var(--vub-lights-off) var(--vub-ease);
	}

	.vub-plan--portrait .vub-plan__portrait::after {
		opacity: 0.15;
		transform: scale(0.75);
		transform-origin: var(--vub-light-x) 22%;
		transition:
			opacity var(--vub-lights-off) var(--vub-ease),
			transform var(--vub-lights-off) var(--vub-ease);
	}

	.vub-plan--portrait:is(:hover, :has(:focus-visible)) .vub-plan__portrait {
		animation: vub-lights-flare calc(var(--vub-lights-on) * 1.5);
	}

	.vub-plan--portrait:is(:hover, :has(:focus-visible)) .vub-plan__figure {
		filter: brightness(1) saturate(1);
		transition:
			transform var(--vub-move) var(--vub-move-ease),
			filter var(--vub-lights-on) var(--vub-ease-out);
	}

	.vub-plan--portrait:is(:hover, :has(:focus-visible)) .vub-plan__portrait::after {
		opacity: 1;
		transform: none;
		transition:
			opacity var(--vub-lights-on) var(--vub-ease-out),
			transform var(--vub-lights-on) var(--vub-lights-flare);
	}
}

/* Training programs: a hovered card, as a tabbed-to one is (sections.css, 4). */
@media (hover: hover) {
	.vub-program:hover { border-color: color-mix(in srgb, var(--vub-red) 60%, transparent); }

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

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

/* ...and the photograph a little closer, towards its focus. */
@media (prefers-reduced-motion: no-preference) {
	.vub-program:has(:focus-visible) .vub-program__media img { transform: scale(1.05); }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.vub-program:hover .vub-program__media img { transform: scale(1.05); }
}

@media (hover: none) {
	.vub-gallery__item:hover img { transform: none; }
	.vub-card:hover { background-color: var(--vub-surface-2); }

	/* Location and Back keep their own colours after a tap, rather than
	   sticking in the white hover while the map moves. */
	.vub-contact__locate.vub-btn--secondary:hover,
	.vub-theme .vub-contact__back.vub-btn--secondary:hover,
	.vub-theme .vub-contact__back:focus:not(:focus-visible):hover {
		border-color: var(--vub-border-strong);
		background-color: transparent;
		color: var(--vub-white);
	}

	/* Over Google's map, Back stays solid. */
	.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-black);
		background-color: var(--vub-black);
		color: var(--vub-white);
	}
}

@media (prefers-reduced-motion: reduce) {
	/* Location: the words fade rather than slide, the map is simply there
	   (contact-locate.js skips the zoom), and the place holds still. */
	.vub-contact--locate .vub-contact__layout > .vub-section__head,
	.vub-contact--locate .vub-contact__main,
	.vub-contact--locate .vub-contact__note {
		transition: opacity 200ms linear, 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 {
		translate: none;
		opacity: 0;
		transition: opacity 200ms linear, visibility 0s linear 200ms;
	}

	.vub-contact__back,
	.vub-contact.is-away .vub-contact__back { translate: none; }

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

/* ---------------------------------------------------------------------------
   Training programs' details window (sections.css, 4b) — side by side from
   1024px, and on a short screen on its side (a phone in landscape): the
   photograph at its own 4:3 with the facts under it on the left, the words
   on the right with the contact button at their foot. Neither column leaves
   a gap in the other: the middle row takes up whatever one is taller by.
--------------------------------------------------------------------------- */
@media (min-width: 1024px), (min-width: 600px) and (max-height: 560px) {
	.vub-program-modal__card { width: min(100%, 66rem); }

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

	.vub-program-modal__media { aspect-ratio: 4 / 3; }

	.vub-program-modal__main { padding-bottom: 1.75rem; }

	.vub-program-modal__aside {
		padding-block: 1.75rem;
		border-top: 0;
	}

	.vub-program-modal__action { background-color: transparent; }
}

@media (prefers-reduced-motion: reduce) {
	.vub-program-modal::backdrop,
	.vub-program-modal__card { transition: none; }

	.vub-program-modal__card { transform: none; }

	.vub-notice::backdrop,
	.vub-notice__card { transition: none; }

	.vub-notice__card { transform: none; }
}

/* ---------------------------------------------------------------------------
   Print — flip to a light, ink-friendly rendering
--------------------------------------------------------------------------- */
@media print {
	.vub-theme {
		background: #fff;
		color: #000;
	}

	.vub-hero__media,
	.vub-hero__scrim,
	.vub-cta,
	.site-header,
	.vub-clock,
	.vub-footer__social { display: none !important; }

	.vub-theme h1,
	.vub-theme h2,
	.vub-theme h3 { color: #000; }

	.vub-section { padding-block: 1.5rem; }

	a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
